From 7dcfa54fe1de32288f2ee016b81179c359065182 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 16 Mar 2026 12:07:33 -0400 Subject: [PATCH 1/5] chore: regenerate compute v1 client --- .../v1/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 45837 ++++++++++------ .../compute/model/AcceleratorType.java | 15 +- .../model/AcceleratorTypeAggregatedList.java | 24 +- .../compute/model/AcceleratorTypeList.java | 18 +- .../services/compute/model/AccessConfig.java | 6 +- .../api/services/compute/model/Address.java | 108 +- .../compute/model/AddressAggregatedList.java | 24 +- .../services/compute/model/AddressList.java | 12 +- .../model/AllocationAggregateReservation.java | 6 +- ...UAllocationReservedInstanceProperties.java | 2 +- .../AllocationSpecificSKUReservation.java | 12 +- .../services/compute/model/AttachedDisk.java | 60 +- .../model/AttachedDiskInitializeParams.java | 24 +- .../services/compute/model/Autoscaler.java | 75 +- .../model/AutoscalerAggregatedList.java | 27 +- .../compute/model/AutoscalerList.java | 15 +- .../api/services/compute/model/Backend.java | 24 + .../BackendBackendOrchestrationInfo.java | 66 + .../services/compute/model/BackendBucket.java | 12 +- .../compute/model/BackendBucketList.java | 12 +- .../compute/model/BackendBucketUsedBy.java | 6 +- .../compute/model/BackendService.java | 93 +- .../model/BackendServiceAggregatedList.java | 18 +- .../model/BackendServiceFailoverPolicy.java | 6 +- .../model/BackendServiceGroupHealth.java | 12 +- .../compute/model/BackendServiceIAP.java | 6 +- .../compute/model/BackendServiceList.java | 15 +- .../model/BackendServiceListUsable.java | 18 +- ...viceNetworkPassThroughLbTrafficPolicy.java | 69 + ...ssThroughLbTrafficPolicyZonalAffinity.java | 135 + .../BackendServiceOrchestrationInfo.java | 66 + .../compute/model/BackendServiceUsedBy.java | 12 +- .../api/services/compute/model/BgpRoute.java | 30 +- .../compute/model/BgpRouteAsPath.java | 30 +- .../model/BulkInsertInstanceResource.java | 24 + ...InstanceResourcePerInstanceProperties.java | 6 +- .../compute/model/BundledLocalSsds.java | 90 + .../model/CalendarModeAdviceRequest.java | 72 + .../model/CalendarModeAdviceResponse.java | 71 + .../model/CalendarModeRecommendation.java | 70 + .../services/compute/model/Commitment.java | 105 +- .../model/CommitmentAggregatedList.java | 24 +- .../compute/model/CommitmentList.java | 15 +- .../model/CommitmentResourceStatus.java | 18 +- .../compute/model/CompositeHealthCheck.java | 397 + .../CompositeHealthCheckAggregatedList.java | 401 + .../model/CompositeHealthCheckList.java | 386 + .../CompositeHealthChecksScopedList.java | 281 + .../compute/model/CrossSiteNetwork.java | 33 +- .../compute/model/CrossSiteNetworkList.java | 18 +- .../api/services/compute/model/Disk.java | 219 +- .../compute/model/DiskAggregatedList.java | 24 +- .../compute/model/DiskAsyncReplication.java | 54 +- .../api/services/compute/model/DiskList.java | 12 +- .../services/compute/model/DiskParams.java | 24 +- .../api/services/compute/model/DiskType.java | 6 +- .../compute/model/DiskTypeAggregatedList.java | 18 +- .../services/compute/model/DiskTypeList.java | 12 +- .../compute/model/DistributionPolicy.java | 18 +- .../model/ExchangedPeeringRoutesList.java | 18 +- .../compute/model/ExternalVpnGateway.java | 57 +- .../compute/model/ExternalVpnGatewayList.java | 12 +- .../model/ExternalVpnGatewayParams.java | 87 + .../api/services/compute/model/Firewall.java | 21 +- .../services/compute/model/FirewallList.java | 15 +- ...ewallPoliciesListAssociationsResponse.java | 6 +- .../compute/model/FirewallPolicy.java | 63 +- .../model/FirewallPolicyAssociation.java | 12 +- .../compute/model/FirewallPolicyList.java | 9 +- .../compute/model/FirewallPolicyRule.java | 18 +- .../model/FirewallPolicyRuleMatcher.java | 54 + .../model/FirewallPolicyRuleSecureTag.java | 12 +- .../compute/model/FixedOrPercent.java | 9 +- .../compute/model/FlexibleTimeRange.java | 129 + .../compute/model/ForwardingRule.java | 63 +- .../model/ForwardingRuleAggregatedList.java | 24 +- .../compute/model/ForwardingRuleList.java | 12 +- .../compute/model/FutureReservation.java | 75 +- .../model/FutureReservationStatus.java | 81 +- ...vationStatusExistingMatchingUsageInfo.java | 12 +- ...reReservationStatusLastKnownGoodState.java | 45 +- ...tKnownGoodStateFutureReservationSpecs.java | 18 +- ...ureReservationsAggregatedListResponse.java | 27 +- .../model/FutureReservationsListResponse.java | 24 +- .../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 + .../model/GetVersionOperationMetadata.java | 63 + .../GetVersionOperationMetadataSbomInfo.java | 96 + .../compute/model/GuestAttributes.java | 27 +- .../HealthAggregationPoliciesScopedList.java | 276 + .../model/HealthAggregationPolicy.java | 451 + ...HealthAggregationPolicyAggregatedList.java | 407 + .../model/HealthAggregationPolicyList.java | 386 + .../services/compute/model/HealthCheck.java | 21 +- .../compute/model/HealthCheckList.java | 12 +- .../compute/model/HealthCheckService.java | 48 +- .../HealthCheckServiceAggregatedList.java | 401 + .../model/HealthCheckServicesList.java | 54 +- .../model/HealthCheckServicesScopedList.java | 278 + .../model/HealthChecksAggregatedList.java | 18 +- .../services/compute/model/HealthSource.java | 420 + .../model/HealthSourceAggregatedList.java | 401 + .../compute/model/HealthSourceList.java | 383 + .../model/HealthSourcesScopedList.java | 278 + .../compute/model/HttpHeaderMatch.java | 6 +- .../compute/model/HttpHealthCheck.java | 9 +- .../compute/model/HttpHealthCheckList.java | 12 +- .../model/HttpQueryParameterMatch.java | 6 +- .../compute/model/HttpRouteRuleMatch.java | 72 +- .../compute/model/HttpsHealthCheck.java | 6 +- .../compute/model/HttpsHealthCheckList.java | 12 +- .../api/services/compute/model/Image.java | 150 +- .../api/services/compute/model/ImageList.java | 12 +- .../services/compute/model/ImageParams.java | 24 +- .../api/services/compute/model/Instance.java | 168 +- .../compute/model/InstanceAggregatedList.java | 24 +- .../model/InstanceConsumptionData.java | 12 +- .../model/InstanceConsumptionInfo.java | 24 +- .../model/InstanceFlexibilityPolicy.java | 75 + ...nceFlexibilityPolicyInstanceSelection.java | 134 + .../services/compute/model/InstanceGroup.java | 98 +- .../model/InstanceGroupAggregatedList.java | 62 +- .../compute/model/InstanceGroupList.java | 56 +- .../compute/model/InstanceGroupManager.java | 123 +- .../InstanceGroupManagerActionsSummary.java | 192 +- .../InstanceGroupManagerAggregatedList.java | 65 +- ...ceGroupManagerInstanceLifecyclePolicy.java | 39 + .../model/InstanceGroupManagerList.java | 56 +- .../InstanceGroupManagerResizeRequest.java | 93 +- ...stanceGroupManagerResizeRequestStatus.java | 64 +- ...ManagerResizeRequestStatusLastAttempt.java | 8 +- ...roupManagerResizeRequestsListResponse.java | 56 +- .../model/InstanceGroupManagerStatus.java | 138 +- ...GroupManagerStatusAcceleratorTopology.java | 117 + ...pologyAcceleratorTopologyStateDetails.java | 370 + ...eGroupManagerStatusAllInstancesConfig.java | 24 +- ...oupManagerStatusBulkInstanceOperation.java | 91 + ...ulkInstanceOperationLastProgressCheck.java | 368 + ...oupManagerStatusInstanceStatusSummary.java | 404 + .../InstanceGroupManagerStatusStateful.java | 36 +- ...nagerStatusStatefulPerInstanceConfigs.java | 15 +- ...stanceGroupManagerStatusVersionTarget.java | 18 +- .../InstanceGroupManagerTargetSizePolicy.java | 69 + ...stanceGroupManagersListErrorsResponse.java | 30 +- ...pManagersListManagedInstancesResponse.java | 30 +- ...oupManagersListPerInstanceConfigsResp.java | 38 +- .../InstanceGroupManagersScopedList.java | 28 +- .../model/InstanceGroupsListInstances.java | 59 +- .../model/InstanceGroupsScopedList.java | 22 +- .../services/compute/model/InstanceList.java | 15 +- .../compute/model/InstanceListReferrers.java | 18 +- .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../compute/model/InstanceParams.java | 24 +- .../compute/model/InstanceProperties.java | 69 +- .../compute/model/InstanceSettings.java | 21 +- .../model/InstanceSettingsMetadata.java | 6 +- .../compute/model/InstanceTemplate.java | 51 +- .../model/InstanceTemplateAggregatedList.java | 12 +- .../compute/model/InstanceTemplateList.java | 18 +- .../compute/model/InstanceWithNamedPorts.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- .../compute/model/InstantSnapshot.java | 150 +- .../model/InstantSnapshotAggregatedList.java | 24 +- .../compute/model/InstantSnapshotList.java | 12 +- .../compute/model/InstantSnapshotParams.java | 78 + .../services/compute/model/Interconnect.java | 195 +- .../compute/model/InterconnectAttachment.java | 411 +- .../InterconnectAttachmentAggregatedList.java | 24 +- ...ectAttachmentConfigurationConstraints.java | 33 +- .../model/InterconnectAttachmentGroup.java | 30 +- ...redAvailabilitySLAIntendedSlaBlockers.java | 78 +- ...AttachmentGroupLogicalStructureRegion.java | 6 +- ...hmentGroupLogicalStructureRegionMetro.java | 12 +- ...upLogicalStructureRegionMetroFacility.java | 6 +- ...gicalStructureRegionMetroFacilityZone.java | 18 +- ...erconnectAttachmentGroupsListResponse.java | 9 +- ...nectAttachmentGroupsOperationalStatus.java | 12 +- ...oupsOperationalStatusAttachmentStatus.java | 42 +- .../model/InterconnectAttachmentList.java | 18 +- .../compute/model/InterconnectGroup.java | 30 +- ...yCapabilityIntendedCapabilityBlockers.java | 66 +- ...erconnectGroupPhysicalStructureMetros.java | 12 +- ...roupPhysicalStructureMetrosFacilities.java | 12 +- ...hysicalStructureMetrosFacilitiesZones.java | 24 +- .../model/InterconnectGroupsListResponse.java | 9 +- .../InterconnectGroupsOperationalStatus.java | 24 +- ...psOperationalStatusInterconnectStatus.java | 27 +- .../compute/model/InterconnectList.java | 15 +- .../compute/model/InterconnectLocation.java | 123 +- ...nectLocationCrossSiteInterconnectInfo.java | 15 +- .../model/InterconnectLocationList.java | 18 +- .../model/InterconnectLocationRegionInfo.java | 36 +- .../model/InterconnectRemoteLocation.java | 216 +- ...InterconnectRemoteLocationConstraints.java | 30 +- .../model/InterconnectRemoteLocationList.java | 18 +- ...ectRemoteLocationPermittedConnections.java | 12 +- .../api/services/compute/model/License.java | 57 +- .../services/compute/model/LicenseCode.java | 63 +- .../model/LicenseCodeLicenseAlias.java | 12 +- .../services/compute/model/LicenseParams.java | 78 + .../compute/model/LicensesListResponse.java | 6 +- .../compute/model/LocationPolicy.java | 48 +- .../LocationPolicyZoneConfiguration.java | 69 + .../services/compute/model/MachineImage.java | 102 +- .../compute/model/MachineImageList.java | 18 +- .../compute/model/MachineImageParams.java | 78 + .../services/compute/model/MachineType.java | 33 +- .../model/MachineTypeAggregatedList.java | 24 +- .../compute/model/MachineTypeList.java | 15 +- .../compute/model/ManagedInstance.java | 177 +- .../model/ManagedInstanceInstanceHealth.java | 15 +- .../model/ManagedInstanceLastAttempt.java | 12 +- ...stancePropertiesFromFlexibilityPolicy.java | 6 +- .../compute/model/ManagedInstanceVersion.java | 18 +- .../api/services/compute/model/Metadata.java | 6 +- .../api/services/compute/model/NatIpInfo.java | 12 +- .../model/NatIpInfoNatIpInfoMapping.java | 18 +- .../api/services/compute/model/Network.java | 39 +- .../compute/model/NetworkAttachment.java | 90 +- .../NetworkAttachmentConnectedEndpoint.java | 9 +- .../model/NetworkEdgeSecurityService.java | 45 +- ...workEdgeSecurityServiceAggregatedList.java | 27 +- .../compute/model/NetworkEndpointGroup.java | 57 +- .../NetworkEndpointGroupAggregatedList.java | 27 +- .../model/NetworkEndpointGroupList.java | 18 +- .../model/NetworkEndpointGroupPscData.java | 24 +- ...orkEndpointGroupsListNetworkEndpoints.java | 6 +- .../NetworkEndpointGroupsScopedList.java | 22 +- .../NetworkEndpointWithHealthStatus.java | 12 +- .../NetworkFirewallPolicyAggregatedList.java | 24 +- .../compute/model/NetworkInterface.java | 48 +- .../services/compute/model/NetworkList.java | 12 +- .../compute/model/NetworkPeering.java | 27 +- .../compute/model/NetworkProfile.java | 66 +- .../model/NetworkProfileNetworkFeatures.java | 201 +- ...workFeaturesPredefinedSubnetworkRange.java | 90 + .../model/NetworkProfilesListResponse.java | 24 +- .../compute/model/NetworkRoutingConfig.java | 12 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- .../api/services/compute/model/NodeGroup.java | 42 +- .../model/NodeGroupAggregatedList.java | 24 +- .../services/compute/model/NodeGroupList.java | 15 +- .../model/NodeGroupMaintenanceWindow.java | 12 +- .../services/compute/model/NodeGroupNode.java | 30 +- .../compute/model/NodeGroupsListNodes.java | 56 +- .../services/compute/model/NodeTemplate.java | 57 +- .../model/NodeTemplateAggregatedList.java | 24 +- .../compute/model/NodeTemplateList.java | 15 +- .../api/services/compute/model/NodeType.java | 27 +- .../compute/model/NodeTypeAggregatedList.java | 24 +- .../services/compute/model/NodeTypeList.java | 15 +- .../compute/model/NotificationEndpoint.java | 51 +- .../NotificationEndpointAggregatedList.java | 401 + .../model/NotificationEndpointList.java | 12 +- .../NotificationEndpointsScopedList.java | 278 + .../api/services/compute/model/Operation.java | 54 +- .../model/OperationAggregatedList.java | 18 +- .../services/compute/model/OperationList.java | 9 +- ...urityPoliciesListAssociationsResponse.java | 6 +- .../compute/model/PacketMirroring.java | 30 +- .../model/PacketMirroringAggregatedList.java | 18 +- .../PacketMirroringForwardingRuleInfo.java | 6 +- .../compute/model/PacketMirroringList.java | 15 +- ...oringMirroredResourceInfoInstanceInfo.java | 6 +- ...rroringMirroredResourceInfoSubnetInfo.java | 6 +- .../model/PacketMirroringNetworkInfo.java | 6 +- .../compute/model/PartnerMetadata.java | 128 + .../services/compute/model/PathMatcher.java | 21 +- .../compute/model/PreviewFeature.java | 42 +- .../compute/model/PreviewFeatureList.java | 15 +- .../compute/model/PreviewFeatureStatus.java | 12 +- .../PreviewFeatureStatusReleaseStatus.java | 6 +- .../api/services/compute/model/Project.java | 24 +- .../model/ProjectsGetXpnResources.java | 36 +- .../compute/model/PublicAdvertisedPrefix.java | 54 +- .../model/PublicAdvertisedPrefixList.java | 12 +- .../compute/model/PublicDelegatedPrefix.java | 99 +- .../PublicDelegatedPrefixAggregatedList.java | 21 +- .../model/PublicDelegatedPrefixList.java | 12 +- ...legatedPrefixPublicDelegatedSubPrefix.java | 57 +- .../api/services/compute/model/Reference.java | 6 +- .../api/services/compute/model/Region.java | 28 +- .../compute/model/RegionAutoscalerList.java | 12 +- .../compute/model/RegionDiskTypeList.java | 15 +- .../model/RegionInstanceGroupList.java | 50 +- .../model/RegionInstanceGroupManagerList.java | 56 +- ...roupManagerResizeRequestsListResponse.java | 434 + ...stanceGroupManagersListErrorsResponse.java | 24 +- ...eGroupManagersListInstanceConfigsResp.java | 38 +- ...nceGroupManagersListInstancesResponse.java | 24 +- .../RegionInstanceGroupsListInstances.java | 50 +- .../services/compute/model/RegionList.java | 12 +- ...PoliciesGetEffectiveFirewallsResponse.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 39 +- .../services/compute/model/Reservation.java | 165 +- .../model/ReservationAggregatedList.java | 18 +- .../compute/model/ReservationBlock.java | 144 +- .../ReservationBlockPhysicalTopology.java | 6 +- ...ervationBlockPhysicalTopologyInstance.java | 6 +- .../compute/model/ReservationList.java | 15 +- .../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 | 129 +- ...ReservationSubBlocksGetVersionRequest.java | 66 + .../compute/model/ResourcePolicy.java | 42 +- .../model/ResourcePolicyAggregatedList.java | 18 +- .../model/ResourcePolicyDailyCycle.java | 12 +- .../ResourcePolicyGroupPlacementPolicy.java | 27 + .../model/ResourcePolicyHourlyCycle.java | 12 +- .../compute/model/ResourcePolicyList.java | 15 +- .../model/ResourcePolicyResourceStatus.java | 15 +- ...rceStatusInstanceSchedulePolicyStatus.java | 21 +- .../ResourcePolicyWeeklyCycleDayOfWeek.java | 12 +- .../model/ResourcePolicyWorkloadPolicy.java | 27 + .../compute/model/ResourceStatus.java | 54 +- ...sourceStatusEffectiveInstanceMetadata.java | 24 + ...ourceStatusReservationConsumptionInfo.java | 9 +- .../api/services/compute/model/Route.java | 168 +- .../api/services/compute/model/RouteList.java | 12 +- .../api/services/compute/model/Router.java | 12 +- .../compute/model/RouterAggregatedList.java | 18 +- .../services/compute/model/RouterBgpPeer.java | 36 +- .../compute/model/RouterInterface.java | 36 +- .../services/compute/model/RouterList.java | 12 +- .../model/RouterStatusBgpPeerStatus.java | 126 +- .../compute/model/RouterStatusNatStatus.java | 63 +- .../RouterStatusNatStatusNatRuleStatus.java | 39 +- .../compute/model/RouterStatusResponse.java | 6 +- .../compute/model/RoutersListBgpRoutes.java | 21 +- .../model/RoutersListRoutePolicies.java | 24 +- .../compute/model/SavedAttachedDisk.java | 57 +- .../api/services/compute/model/SavedDisk.java | 48 +- .../services/compute/model/Screenshot.java | 6 +- .../model/SecurityPoliciesAggregatedList.java | 24 +- .../compute/model/SecurityPolicy.java | 48 +- .../SecurityPolicyAdvancedOptionsConfig.java | 27 + .../model/SecurityPolicyAssociation.java | 18 +- .../compute/model/SecurityPolicyList.java | 9 +- .../compute/model/SecurityPolicyRule.java | 9 +- .../compute/model/SerialPortOutput.java | 15 +- .../compute/model/ServiceAttachment.java | 69 +- .../ServiceAttachmentAggregatedList.java | 18 +- .../ServiceAttachmentConnectedEndpoint.java | 24 + ...ServiceAttachmentConsumerProjectLimit.java | 24 + .../compute/model/ServiceAttachmentList.java | 9 +- .../model/ShieldedInstanceIdentity.java | 12 +- .../api/services/compute/model/Snapshot.java | 231 +- .../services/compute/model/SnapshotList.java | 12 +- .../compute/model/SnapshotParams.java | 24 +- .../model/SourceInstanceProperties.java | 24 + .../compute/model/SslCertificate.java | 36 +- .../model/SslCertificateAggregatedList.java | 24 +- .../compute/model/SslCertificateList.java | 12 +- .../SslCertificateManagedSslCertificate.java | 15 +- .../model/SslPoliciesAggregatedList.java | 24 +- .../compute/model/SslPoliciesList.java | 51 +- .../api/services/compute/model/SslPolicy.java | 72 +- .../services/compute/model/StoragePool.java | 126 +- .../model/StoragePoolAggregatedList.java | 24 +- .../compute/model/StoragePoolDisk.java | 66 +- ...oragePoolExapoolProvisionedCapacityGb.java | 114 + .../compute/model/StoragePoolList.java | 24 +- .../compute/model/StoragePoolListDisks.java | 65 +- .../compute/model/StoragePoolParams.java | 78 + .../model/StoragePoolResourceStatus.java | 102 +- .../compute/model/StoragePoolType.java | 15 +- .../model/StoragePoolTypeAggregatedList.java | 12 +- .../compute/model/StoragePoolTypeList.java | 15 +- .../compute/model/StructuredEntries.java | 69 + .../services/compute/model/Subnetwork.java | 222 +- .../model/SubnetworkAggregatedList.java | 24 +- .../compute/model/SubnetworkList.java | 15 +- .../model/SubnetworkSecondaryRange.java | 57 +- .../compute/model/TargetGrpcProxy.java | 39 +- .../compute/model/TargetGrpcProxyList.java | 9 +- .../compute/model/TargetHttpProxy.java | 27 +- .../model/TargetHttpProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpProxyList.java | 15 +- .../compute/model/TargetHttpsProxy.java | 27 +- .../model/TargetHttpsProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpsProxyList.java | 15 +- .../compute/model/TargetInstance.java | 27 +- .../model/TargetInstanceAggregatedList.java | 18 +- .../compute/model/TargetInstanceList.java | 12 +- .../services/compute/model/TargetPool.java | 18 +- .../model/TargetPoolAggregatedList.java | 24 +- .../model/TargetPoolInstanceHealth.java | 12 +- .../compute/model/TargetPoolList.java | 15 +- .../compute/model/TargetSslProxy.java | 15 +- .../compute/model/TargetSslProxyList.java | 12 +- .../compute/model/TargetTcpProxy.java | 27 +- .../model/TargetTcpProxyAggregatedList.java | 24 +- .../compute/model/TargetTcpProxyList.java | 12 +- .../compute/model/TargetVpnGateway.java | 42 +- .../model/TargetVpnGatewayAggregatedList.java | 21 +- .../compute/model/TargetVpnGatewayList.java | 15 +- .../compute/model/TargetVpnGatewayParams.java | 87 + .../api/services/compute/model/UrlMap.java | 30 +- .../services/compute/model/UrlMapList.java | 12 +- .../compute/model/UrlMapsAggregatedList.java | 18 +- .../compute/model/UsableSubnetwork.java | 12 +- .../model/UsableSubnetworkSecondaryRange.java | 9 +- .../UsableSubnetworksAggregatedList.java | 30 +- .../compute/model/VmEndpointNatMappings.java | 6 +- ...dpointNatMappingsInterfaceNatMappings.java | 72 +- ...gsInterfaceNatMappingsNatRuleMappings.java | 66 +- .../model/VmEndpointNatMappingsList.java | 18 +- .../compute/model/VmExtensionPolicy.java | 414 + .../VmExtensionPolicyExtensionPolicy.java | 93 + .../VmExtensionPolicyInstanceSelector.java | 66 + .../model/VmExtensionPolicyLabelSelector.java | 87 + .../compute/model/VmExtensionPolicyList.java | 449 + .../services/compute/model/VpnGateway.java | 60 +- .../model/VpnGatewayAggregatedList.java | 18 +- .../compute/model/VpnGatewayList.java | 12 +- .../compute/model/VpnGatewayParams.java | 87 + .../compute/model/VpnGatewayStatus.java | 6 +- .../compute/model/VpnGatewayStatusTunnel.java | 24 +- .../model/VpnGatewayStatusVpnConnection.java | 24 +- .../model/VpnGatewayVpnGatewayInterface.java | 66 +- .../api/services/compute/model/VpnTunnel.java | 39 +- .../model/VpnTunnelAggregatedList.java | 18 +- .../services/compute/model/VpnTunnelList.java | 12 +- .../compute/model/VpnTunnelParams.java | 87 + .../api/services/compute/model/Wire.java | 48 +- .../api/services/compute/model/WireGroup.java | 48 +- .../services/compute/model/WireGroupList.java | 15 +- .../compute/model/WireGroupTopology.java | 6 +- .../model/WireGroupTopologyEndpoint.java | 18 +- .../compute/model/WorkloadIdentityConfig.java | 84 + .../services/compute/model/XpnHostList.java | 15 +- .../api/services/compute/model/Zone.java | 12 +- .../api/services/compute/model/ZoneList.java | 12 +- .../v1/2.0.0/pom.xml | 4 +- 449 files changed, 51351 insertions(+), 21188 deletions(-) create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSource.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerResizeRequestsListResponse.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlot.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java create mode 100644 clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java 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 7e642923724..6ec57d6ec8a 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-rev20251110-2.0.0 + v1-rev20260306-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20251110-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260306-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 1ed6f6eed50..b9801d76755 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 @@ -103,7 +103,7 @@ public class Compute extends com.google.api.client.googleapis.services.json.Abst * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * * @param jsonFactory JSON factory, which may be: @@ -3574,6 +3574,201 @@ public TestIamPermissions set(String parameterName, Object 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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); + } + } + + } + /** * An accessor for creating requests from the Autoscalers collection. * @@ -5415,6 +5610,206 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + } + } + + @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. * @@ -19506,8 +19901,7 @@ public TestIamPermissions set(String parameterName, Object 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. Only the following fields can be modified: - * user_license. + * selected fields included as part of update-mask. * * Create a request for the method "disks.update". * @@ -19541,8 +19935,7 @@ public class Update extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern RESOURCE_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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "healthChecks.update". + * 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 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.

    + * 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 healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @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 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); + 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40718,7 +41150,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -40728,220 +41160,150 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the HealthCheck resource to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String resource; - /** Name of the HealthCheck resource to update. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getResource() { + return resource; } - /** Name of the HealthCheck resource to update. */ - public Update setHealthCheck(java.lang.String healthCheck) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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. + * Updates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "httpHealthChecks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param healthCheck Name of the HealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, httpHealthCheck); + 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 Delete extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 HttpHealthCheck resource. + * Updates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "httpHealthChecks.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @param healthCheck Name of the HealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @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); + 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + 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(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40955,7 +41317,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -40965,24 +41327,261 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the HttpHealthCheck resource to delete. */ + /** Name of the HealthCheck resource to update. */ @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; + private java.lang.String healthCheck; - /** Name of the HttpHealthCheck resource to delete. + /** Name of the HealthCheck resource to update. */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** Name of the HttpHealthCheck resource to delete. */ - public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { + /** Name of the HealthCheck resource to update. */ + public Update setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + 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.httpHealthCheck = httpHealthCheck; + 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 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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; } @@ -42028,6 +42627,174 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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. @@ -43471,6 +44238,174 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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. @@ -58844,6 +59779,22 @@ public Get setInstanceTemplate(java.lang.String instanceTemplate) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + 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); @@ -59634,6 +60585,22 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -63021,6 +63988,22 @@ public Get setInstance(java.lang.String instance) { return this; } + /** View of the instance. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance. */ + 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); @@ -63720,27 +64703,27 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Returns the screenshot from the specified instance. + * Gets partner metadata of the specified instance and namespaces. * - * Create a request for the method "instances.getScreenshot". + * Create a request for the method "instances.getPartnerMetadata". * * 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. + * parameters, call the {@link GetPartnerMetadata#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); + public GetPartnerMetadata getPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetPartnerMetadata result = new GetPartnerMetadata(project, zone, instance); initialize(result); return result; } - public class GetScreenshot extends ComputeRequest { + public class GetPartnerMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/screenshot"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -63752,23 +64735,23 @@ public class GetScreenshot extends ComputeRequest - * {@link GetScreenshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

    + * parameters, call the {@link GetPartnerMetadata#execute()} method to invoke the remote + * operation.

    {@link GetPartnerMetadata#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 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); + protected GetPartnerMetadata(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.PartnerMetadata.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -63800,63 +64783,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetScreenshot set$Xgafv(java.lang.String $Xgafv) { - return (GetScreenshot) super.set$Xgafv($Xgafv); + public GetPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { + return (GetPartnerMetadata) super.set$Xgafv($Xgafv); } @Override - public GetScreenshot setAccessToken(java.lang.String accessToken) { - return (GetScreenshot) super.setAccessToken(accessToken); + public GetPartnerMetadata setAccessToken(java.lang.String accessToken) { + return (GetPartnerMetadata) super.setAccessToken(accessToken); } @Override - public GetScreenshot setAlt(java.lang.String alt) { - return (GetScreenshot) super.setAlt(alt); + public GetPartnerMetadata setAlt(java.lang.String alt) { + return (GetPartnerMetadata) super.setAlt(alt); } @Override - public GetScreenshot setCallback(java.lang.String callback) { - return (GetScreenshot) super.setCallback(callback); + public GetPartnerMetadata setCallback(java.lang.String callback) { + return (GetPartnerMetadata) super.setCallback(callback); } @Override - public GetScreenshot setFields(java.lang.String fields) { - return (GetScreenshot) super.setFields(fields); + public GetPartnerMetadata setFields(java.lang.String fields) { + return (GetPartnerMetadata) super.setFields(fields); } @Override - public GetScreenshot setKey(java.lang.String key) { - return (GetScreenshot) super.setKey(key); + public GetPartnerMetadata setKey(java.lang.String key) { + return (GetPartnerMetadata) super.setKey(key); } @Override - public GetScreenshot setOauthToken(java.lang.String oauthToken) { - return (GetScreenshot) super.setOauthToken(oauthToken); + public GetPartnerMetadata setOauthToken(java.lang.String oauthToken) { + return (GetPartnerMetadata) super.setOauthToken(oauthToken); } @Override - public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetScreenshot) super.setPrettyPrint(prettyPrint); + public GetPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPartnerMetadata) super.setPrettyPrint(prettyPrint); } @Override - public GetScreenshot setQuotaUser(java.lang.String quotaUser) { - return (GetScreenshot) super.setQuotaUser(quotaUser); + public GetPartnerMetadata setQuotaUser(java.lang.String quotaUser) { + return (GetPartnerMetadata) super.setQuotaUser(quotaUser); } @Override - public GetScreenshot setUploadType(java.lang.String uploadType) { - return (GetScreenshot) super.setUploadType(uploadType); + public GetPartnerMetadata setUploadType(java.lang.String uploadType) { + return (GetPartnerMetadata) super.setUploadType(uploadType); } @Override - public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { - return (GetScreenshot) super.setUploadProtocol(uploadProtocol); + public GetPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPartnerMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public GetScreenshot setUserIp(java.lang.String userIp) { - return (GetScreenshot) super.setUserIp(userIp); + public GetPartnerMetadata setUserIp(java.lang.String userIp) { + return (GetPartnerMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -63870,7 +64853,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetScreenshot setProject(java.lang.String project) { + public GetPartnerMetadata setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -63891,7 +64874,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetScreenshot setZone(java.lang.String zone) { + public GetPartnerMetadata setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -63912,7 +64895,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public GetScreenshot setInstance(java.lang.String instance) { + public GetPartnerMetadata 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 " + @@ -63922,33 +64905,49 @@ public GetScreenshot setInstance(java.lang.String instance) { return this; } + /** Comma separated partner metadata namespaces. */ + @com.google.api.client.util.Key + private java.lang.String namespaces; + + /** Comma separated partner metadata namespaces. + */ + public java.lang.String getNamespaces() { + return namespaces; + } + + /** Comma separated partner metadata namespaces. */ + public GetPartnerMetadata setNamespaces(java.lang.String namespaces) { + this.namespaces = namespaces; + return this; + } + @Override - public GetScreenshot set(String parameterName, Object value) { - return (GetScreenshot) super.set(parameterName, value); + public GetPartnerMetadata set(String parameterName, Object value) { + return (GetPartnerMetadata) super.set(parameterName, value); } } /** - * Returns the last 1 MB of serial port output from the specified instance. + * Returns the screenshot from the specified instance. * - * Create a request for the method "instances.getSerialPortOutput". + * 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 GetSerialPortOutput#execute()} method to invoke the remote operation. + * 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 for this request. + * @param instance Name of the instance scoping 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); + 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 GetSerialPortOutput extends ComputeRequest { + public class GetScreenshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/screenshot"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -63960,23 +64959,231 @@ public class GetSerialPortOutput extends ComputeRequest {@link GetSerialPortOutput#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 for this request. + * @param instance Name of the instance scoping 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); + 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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(), @@ -65151,6 +66358,22 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -65644,27 +66867,29 @@ public ListReferrers set(String parameterName, Object value) { } } /** - * Perform a manual maintenance on the instance. + * Patches partner metadata of the specified instance. * - * Create a request for the method "instances.performMaintenance". + * Create a request for the method "instances.patchPartnerMetadata". * * 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. + * parameters, call the {@link PatchPartnerMetadata#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.PartnerMetadata} * @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); + public PatchPartnerMetadata patchPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.PartnerMetadata content) throws java.io.IOException { + PatchPartnerMetadata result = new PatchPartnerMetadata(project, zone, instance, content); initialize(result); return result; } - public class PerformMaintenance extends ComputeRequest { + public class PatchPartnerMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -65676,23 +66901,24 @@ public class PerformMaintenance extends ComputeRequest {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link PatchPartnerMetadata#execute()} method to invoke the remote + * operation.

    {@link PatchPartnerMetadata#initialize(com.google.api.client.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.PartnerMetadata} * @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); + protected PatchPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.PartnerMetadata content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -65714,63 +66940,63 @@ protected PerformMaintenance(java.lang.String project, java.lang.String zone, ja } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public PatchPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { + return (PatchPartnerMetadata) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public PatchPartnerMetadata setAccessToken(java.lang.String accessToken) { + return (PatchPartnerMetadata) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public PatchPartnerMetadata setAlt(java.lang.String alt) { + return (PatchPartnerMetadata) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public PatchPartnerMetadata setCallback(java.lang.String callback) { + return (PatchPartnerMetadata) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public PatchPartnerMetadata setFields(java.lang.String fields) { + return (PatchPartnerMetadata) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public PatchPartnerMetadata setKey(java.lang.String key) { + return (PatchPartnerMetadata) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public PatchPartnerMetadata setOauthToken(java.lang.String oauthToken) { + return (PatchPartnerMetadata) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public PatchPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPartnerMetadata) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public PatchPartnerMetadata setQuotaUser(java.lang.String quotaUser) { + return (PatchPartnerMetadata) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public PatchPartnerMetadata setUploadType(java.lang.String uploadType) { + return (PatchPartnerMetadata) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public PatchPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPartnerMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public PatchPartnerMetadata setUserIp(java.lang.String userIp) { + return (PatchPartnerMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -65784,7 +67010,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + public PatchPartnerMetadata setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -65805,7 +67031,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { + public PatchPartnerMetadata setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -65826,7 +67052,254 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public PerformMaintenance setInstance(java.lang.String instance) { + public PatchPartnerMetadata 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 PatchPartnerMetadata setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchPartnerMetadata set(String parameterName, Object value) { + return (PatchPartnerMetadata) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + } + } + + @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 " + @@ -72371,6 +73844,26 @@ public Update setInstance(java.lang.String 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 @@ -95553,6 +97046,12 @@ public Get set(String parameterName, Object 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 @@ -95582,6 +97081,12 @@ public class Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -127685,26 +129191,28 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @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 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); + 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(), @@ -127717,66 +129225,72 @@ protected Update(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127790,7 +129304,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -127800,18 +129314,18 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String 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 " + @@ -127821,126 +129335,54 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the autoscaler to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String resource; - /** Name of the autoscaler to update. + /** Name or id of the resource for this request. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getResource() { + return resource; } - /** Name of the autoscaler to update. */ - public Update setAutoscaler(java.lang.String autoscaler) { + /** 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(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + 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. + * Updates an autoscaler in the specified project using the data included in the request. * - * Create a request for the method "regionBackendServices.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} * @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); + 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 Delete extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -127948,26 +129390,26 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @param content the {@link com.google.api.services.compute.model.Autoscaler} * @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); + 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(), @@ -127980,72 +129422,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128059,7 +129495,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -128080,7 +129516,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -128090,24 +129526,293 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the BackendService resource to delete. */ + /** Name of the autoscaler to update. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String autoscaler; - /** Name of the BackendService resource to delete. + /** Name of the autoscaler to update. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getAutoscaler() { + return autoscaler; } - /** Name of the BackendService resource to delete. */ - public Delete setBackendService(java.lang.String backendService) { + /** Name of the autoscaler to update. */ + public Update setAutoscaler(java.lang.String autoscaler) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + 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.backendService = backendService; + 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 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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; } @@ -132685,288 +134390,79 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the RegionDiskTypes collection. + * An accessor for creating requests from the RegionCompositeHealthChecks collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionDiskTypes.List request = compute.regionDiskTypes().list(parameters ...)}
    +   *   {@code Compute.RegionCompositeHealthChecks.List request = compute.regionCompositeHealthChecks().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionDiskTypes regionDiskTypes() { - return new RegionDiskTypes(); + public RegionCompositeHealthChecks regionCompositeHealthChecks() { + return new RegionCompositeHealthChecks(); } /** - * The "regionDiskTypes" collection of methods. + * The "regionCompositeHealthChecks" collection of methods. */ - public class RegionDiskTypes { + public class RegionCompositeHealthChecks { /** - * 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. + * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the + * specified project. * - * @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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. + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "regionDiskTypes.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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 project Name of the project 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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; + private static final String REST_PATH = "projects/{project}/aggregated/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the + * specified project. * - * Create a request for the method "regionDiskTypes.list". + * 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 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.

    + * 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. - * @param region The name of the region for this request. + * @param project Name of the project 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.RegionDiskTypeList.class); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -132980,77 +134476,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -133060,27 +134556,6 @@ public List setProject(java.lang.String 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 @@ -133212,11 +134687,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -133241,7 +134750,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -133285,7 +134794,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -133308,7 +134817,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -133340,63 +134849,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } + /** + * 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; - /** - * 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 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 "regionDisks" collection of methods. - */ - public class RegionDisks { + /** + * 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); + } + } /** - * 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. + * Deletes the specified CompositeHealthCheck in the given region * - * Create a request for the method "regionDisks.addResourcePolicies". + * 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 AddResourcePolicies#execute()} method to invoke the remote operation. + * 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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. * @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); + 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 AddResourcePolicies extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -133404,29 +134911,26 @@ public class AddResourcePolicies extends ComputeRequest {@link AddResourcePolicies#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to delete. * @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); + 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(), @@ -133439,72 +134943,72 @@ protected AddResourcePolicies(java.lang.String project, java.lang.String region, "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -133518,7 +135022,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddResourcePolicies setProject(java.lang.String project) { + 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 " + @@ -133528,18 +135032,18 @@ public AddResourcePolicies setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public AddResourcePolicies setRegion(java.lang.String 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 " + @@ -133549,24 +135053,24 @@ public AddResourcePolicies setRegion(java.lang.String region) { return this; } - /** The disk name for this request. */ + /** Name of the CompositeHealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String compositeHealthCheck; - /** The disk name for this request. + /** Name of the CompositeHealthCheck resource to delete. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } - /** The disk name for this request. */ - public AddResourcePolicies setDisk(java.lang.String disk) { + /** Name of the CompositeHealthCheck resource to delete. */ + public Delete setCompositeHealthCheck(java.lang.String compositeHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + this.compositeHealthCheck = compositeHealthCheck; return this; } @@ -133614,38 +135118,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Bulk create a set of disks. + * Returns the specified CompositeHealthCheck resource in the given region. * - * Create a request for the method "regionDisks.bulkInsert". + * 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 BulkInsert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. * @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); + 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 BulkInsert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -133653,24 +135157,26 @@ public class BulkInsert extends ComputeRequest - * {@link - * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param region Name of the region scoping this request. + * @param compositeHealthCheck Name of the CompositeHealthCheck resource to return. * @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); + 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(), @@ -133683,66 +135189,82 @@ protected BulkInsert(java.lang.String project, java.lang.String region, com.goog "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}"); + } } @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -133756,7 +135278,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public BulkInsert setProject(java.lang.String project) { + 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 " + @@ -133766,18 +135288,18 @@ public BulkInsert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public BulkInsert setRegion(java.lang.String 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 " + @@ -133787,85 +135309,55 @@ public BulkInsert setRegion(java.lang.String 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). - */ + /** Name of the CompositeHealthCheck resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String compositeHealthCheck; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the CompositeHealthCheck resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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 CompositeHealthCheck in the specified project in the given region using the parameters + * that are included in the request. * - * Create a request for the method "regionDisks.createSnapshot". + * 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 CreateSnapshot#execute()} method to invoke the remote operation. + * 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 disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} * @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); + 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 CreateSnapshot extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -133873,29 +135365,23 @@ public class CreateSnapshot extends ComputeRequest {@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.CompositeHealthCheck} * @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) { + 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()) { @@ -133909,72 +135395,66 @@ protected CreateSnapshot(java.lang.String project, java.lang.String region, java "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}"); - } } @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -133988,7 +135468,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateSnapshot setProject(java.lang.String project) { + 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 " + @@ -133998,18 +135478,18 @@ public CreateSnapshot setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public CreateSnapshot setRegion(java.lang.String 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 " + @@ -134019,27 +135499,6 @@ public CreateSnapshot setRegion(java.lang.String 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 @@ -134084,40 +135543,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateSnapshot set(String parameterName, Object value) { - return (CreateSnapshot) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Lists the CompositeHealthChecks for a project in the given region. * - * Create a request for the method "regionDisks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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. - * @param disk Name of the regional persistent disk to delete. + * @param region Name of the region scoping this request. * @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); + 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 Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134125,28 +135581,22 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @param disk Name of the regional persistent disk to delete. + * @param region Name of the region scoping this request. * @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); + 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(), @@ -134159,72 +135609,76 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -134238,7 +135692,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -134248,18 +135702,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -134269,103 +135723,302 @@ public Delete setRegion(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns a specified regional persistent disk. + * 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 "regionDisks.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 disk Name of the regional persistent disk to return. + * @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 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); + 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 Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134373,26 +136026,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 disk Name of the regional persistent disk to return. + * @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 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); + 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(), @@ -134405,82 +136060,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134494,7 +136134,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -134504,18 +136144,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -134525,54 +136165,106 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to return. */ + /** + * 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 disk; + private java.lang.String compositeHealthCheck; - /** Name of the regional persistent disk to return. + /** Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } - /** 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; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionDisks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134584,24 +136276,24 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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); + 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(), @@ -134623,73 +136315,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134703,7 +136385,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -134724,7 +136406,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + 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 " + @@ -134745,7 +136427,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -134755,50 +136437,56 @@ public GetIamPolicy setResource(java.lang.String 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); + 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 { + /** - * Creates a persistent regional disk in the specified project using the data included in the - * request. + * Returns the specified regional disk type. * - * Create a request for the method "regionDisks.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.Disk} + * @param region The name of the region for this request. + * @param diskType Name of the disk type to return. * @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); + 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 Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134806,24 +136494,26 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.Disk} + * @param region The name of the region for this request. + * @param diskType Name of the disk type to return. * @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); + 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(), @@ -134836,66 +136526,82 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -134909,7 +136615,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -134919,18 +136625,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -134940,86 +136646,42 @@ public Insert setRegion(java.lang.String 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. */ + /** Name of the disk type to return. */ @com.google.api.client.util.Key - private java.lang.String sourceImage; + private java.lang.String diskType; - /** Source image to restore onto a disk. This field is optional. + /** Name of the disk type to return. */ - public java.lang.String getSourceImage() { - return sourceImage; + public java.lang.String getDiskType() { + return diskType; } - /** Source image to restore onto a disk. This field is optional. */ - public Insert setSourceImage(java.lang.String sourceImage) { - this.sourceImage = sourceImage; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the list of persistent disks contained within the specified region. + * Retrieves a list of regional disk types available to the specified project. * - * Create a request for the method "regionDisks.list". + * 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 Name of the region 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 { @@ -135028,9 +136690,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -135039,9 +136701,9 @@ public class List extends ComputeRequest {@link @@ -135049,11 +136711,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.DiskList.class); + 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(), @@ -135159,17 +136821,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -135449,30 +137111,53 @@ 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 { + /** - * Removes resource policies from a regional disk. + * 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.removeResourcePolicies". + * 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 RemoveResourcePolicies#execute()} method to invoke the remote - * operation. + * 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.RegionDisksRemoveResourcePoliciesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} * @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); + 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 RemoveResourcePolicies extends ComputeRequest { + public class AddResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -135484,23 +137169,24 @@ public class RemoveResourcePolicies extends ComputeRequest {@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * 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.RegionDisksRemoveResourcePoliciesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} * @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) { + 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()) { @@ -135523,63 +137209,63 @@ protected RemoveResourcePolicies(java.lang.String project, java.lang.String regi } @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); } @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); } @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); } @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); } @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); } @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); } @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); } @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) super.setUserIp(userIp); + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -135593,7 +137279,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveResourcePolicies setProject(java.lang.String project) { + 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 " + @@ -135614,7 +137300,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public RemoveResourcePolicies setRegion(java.lang.String region) { + 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 " + @@ -135635,7 +137321,7 @@ public java.lang.String getDisk() { } /** The disk name for this request. */ - public RemoveResourcePolicies setDisk(java.lang.String disk) { + 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 " + @@ -135689,39 +137375,38 @@ public java.lang.String getRequestId() { * 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) { + public AddResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); } } /** - * Resizes the specified regional persistent disk. + * Bulk create a set of disks. * - * Create a request for the method "regionDisks.resize". + * 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 Resize#execute()} method to invoke the remote operation. + * parameters, call the {@link BulkInsert#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} + * @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 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); + 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 Resize extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -135729,26 +137414,23 @@ public class Resize extends ComputeRequest {@link - * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 Resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) { + 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()) { @@ -135762,86 +137444,80 @@ protected Resize(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** 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) { + /** 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 " + @@ -135851,18 +137527,18 @@ public Resize setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -135872,27 +137548,6 @@ public Resize setRegion(java.lang.String 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 @@ -135937,39 +137592,41 @@ public java.lang.String getRequestId() { * 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) { + public BulkInsert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateSnapshot#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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class CreateSnapshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -135977,28 +137634,30 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -136011,72 +137670,72 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { + return (CreateSnapshot) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136090,7 +137749,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -136100,18 +137759,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -136121,55 +137780,105 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the regional persistent disk to snapshot. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String disk; - /** Name or id of the resource for this request. + /** Name of the regional persistent disk to snapshot. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getDisk() { + return disk; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the regional persistent disk to snapshot. */ + public CreateSnapshot setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public CreateSnapshot set(String parameterName, Object value) { + return (CreateSnapshot) super.set(parameterName, value); } } /** - * Sets the labels on the target regional disk. + * 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.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. * @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); + 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 SetLabels extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136177,28 +137886,28 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. * @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); + 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(), @@ -136211,72 +137920,72 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136290,7 +137999,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -136300,18 +138009,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String 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 " + @@ -136321,24 +138030,24 @@ public SetLabels setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the regional persistent disk to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String disk; - /** Name or id of the resource for this request. + /** Name of the regional persistent disk to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getDisk() { + return disk; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the regional persistent disk to delete. */ + public Delete setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); } - this.resource = resource; + this.disk = disk; return this; } @@ -136386,40 +138095,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Starts asynchronous replication. Must be invoked on the primary disk. + * Returns a specified regional persistent disk. * - * Create a request for the method "regionDisks.startAsyncReplication". + * 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 StartAsyncReplication#execute()} method to invoke the remote - * operation. + * 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 disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. * @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); + 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 StartAsyncReplication extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136431,24 +138138,22 @@ public class StartAsyncReplication extends ComputeRequest {@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. * @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); + 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(), @@ -136470,63 +138175,73 @@ protected StartAsyncReplication(java.lang.String project, java.lang.String regio } @Override - public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StartAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StartAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StartAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StartAsyncReplication setAlt(java.lang.String alt) { - return (StartAsyncReplication) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public StartAsyncReplication setCallback(java.lang.String callback) { - return (StartAsyncReplication) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public StartAsyncReplication setFields(java.lang.String fields) { - return (StartAsyncReplication) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public StartAsyncReplication setKey(java.lang.String key) { - return (StartAsyncReplication) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StartAsyncReplication) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StartAsyncReplication) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public StartAsyncReplication setUploadType(java.lang.String uploadType) { - return (StartAsyncReplication) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public StartAsyncReplication setUserIp(java.lang.String userIp) { - return (StartAsyncReplication) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -136540,7 +138255,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -136550,18 +138265,18 @@ public StartAsyncReplication setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -136571,18 +138286,18 @@ public StartAsyncReplication setRegion(java.lang.String region) { return this; } - /** The name of the persistent disk. */ + /** Name of the regional persistent disk to return. */ @com.google.api.client.util.Key private java.lang.String disk; - /** The name of the persistent disk. + /** Name of the regional persistent disk to return. */ public java.lang.String getDisk() { return disk; } - /** The name of the persistent disk. */ - public StartAsyncReplication setDisk(java.lang.String 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 " + @@ -136592,83 +138307,33 @@ public StartAsyncReplication setDisk(java.lang.String 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * 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.stopAsyncReplication". + * 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 StopAsyncReplication#execute()} method to invoke the remote - * operation. + * 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 disk The name of the persistent disk. + * @param resource Name or id of the resource for this request. * @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); + 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 StopAsyncReplication extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136676,27 +138341,28 @@ public class StopAsyncReplication extends ComputeRequest {@link StopAsyncReplication#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 disk The name of the persistent disk. + * @param resource Name or id of the resource for this request. * @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); + 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(), @@ -136709,72 +138375,82 @@ protected StopAsyncReplication(java.lang.String project, java.lang.String region "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StopAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StopAsyncReplication setAlt(java.lang.String alt) { - return (StopAsyncReplication) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public StopAsyncReplication setCallback(java.lang.String callback) { - return (StopAsyncReplication) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public StopAsyncReplication setFields(java.lang.String fields) { - return (StopAsyncReplication) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public StopAsyncReplication setKey(java.lang.String key) { - return (StopAsyncReplication) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopAsyncReplication) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopAsyncReplication) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public StopAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopAsyncReplication) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public StopAsyncReplication setUserIp(java.lang.String userIp) { - return (StopAsyncReplication) super.setUserIp(userIp); + 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. */ @@ -136788,7 +138464,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -136809,7 +138485,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public StopAsyncReplication setRegion(java.lang.String region) { + 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 " + @@ -136819,107 +138495,71 @@ public StopAsyncReplication setRegion(java.lang.String region) { return this; } - /** The name of the persistent disk. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String resource; - /** The name of the persistent disk. + /** Name or id of the resource for this request. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getResource() { + return resource; } - /** The name of the persistent disk. */ - public StopAsyncReplication setDisk(java.lang.String disk) { + /** 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.disk = disk; + 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). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public StopAsyncReplication set(String parameterName, Object value) { - return (StopAsyncReplication) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. + * Creates a persistent regional disk in the specified project using the data included in the + * request. * - * Create a request for the method "regionDisks.stopGroupAsyncReplication". + * 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 StopGroupAsyncReplication#execute()} method to invoke the remote - * operation. + * 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. 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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} * @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); + 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 StopGroupAsyncReplication extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136928,25 +138568,22 @@ public class StopGroupAsyncReplication extends ComputeRequest {@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * 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. 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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Disk} * @since 1.13 */ - protected StopGroupAsyncReplication(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DisksStopGroupAsyncReplicationResource content) { + 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()) { @@ -136963,63 +138600,63 @@ protected StopGroupAsyncReplication(java.lang.String project, java.lang.String r } @Override - public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopGroupAsyncReplication) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public StopGroupAsyncReplication setAlt(java.lang.String alt) { - return (StopGroupAsyncReplication) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public StopGroupAsyncReplication setCallback(java.lang.String callback) { - return (StopGroupAsyncReplication) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public StopGroupAsyncReplication setFields(java.lang.String fields) { - return (StopGroupAsyncReplication) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public StopGroupAsyncReplication setKey(java.lang.String key) { - return (StopGroupAsyncReplication) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopGroupAsyncReplication) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { - return (StopGroupAsyncReplication) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137033,7 +138670,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopGroupAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -137043,25 +138680,18 @@ public StopGroupAsyncReplication setProject(java.lang.String 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. - */ + /** 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. This must be the region of the primary or secondary disks - in the consistency group. + /** Name of the region for this request. */ 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) { + /** 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 " + @@ -137115,39 +138745,53 @@ public java.lang.String getRequestId() { * 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) { + 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 StopGroupAsyncReplication set(String parameterName, Object value) { - return (StopGroupAsyncReplication) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of persistent disks contained within the specified region. * - * Create a request for the method "regionDisks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region for this request. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137155,28 +138799,22 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region for this request. * @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); + 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(), @@ -137189,72 +138827,76 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -137268,7 +138910,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -137278,18 +138920,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -137299,87 +138941,328 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @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. Only the following fields can be modified: - * user_license. - * - * 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; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - public class Update extends ComputeRequest { + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - 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}"); + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Update the specified disk 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 modified: - * user_license. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionDisks.update". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 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.

    + * 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.Disk} + * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} * @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); + 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(), @@ -137401,63 +139284,63 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137471,7 +139354,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -137492,7 +139375,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public Update setRegion(java.lang.String region) { + 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 " + @@ -137513,7 +139396,7 @@ public java.lang.String getDisk() { } /** The disk name for this request. */ - public Update setDisk(java.lang.String disk) { + 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 " + @@ -137523,21 +139406,6 @@ public Update setDisk(java.lang.String 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 @@ -137582,79 +139450,39 @@ public java.lang.String getRequestId() { * 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) { + public RemoveResourcePolicies 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); + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) 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 { - /** - * Deletes the specified regional HealthCheckService. + * Resizes the specified regional persistent disk. * - * Create a request for the method "regionHealthCheckServices.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @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 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); + 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 Delete extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137662,25 +139490,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @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 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); + 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(), @@ -137693,81 +139523,86 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String 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 " + @@ -137777,18 +139612,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -137798,26 +139633,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name of the regional persistent disk. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String disk; - /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name of the regional persistent disk. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getDisk() { + return disk; } - /** - * 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; + /** 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; } @@ -137865,40 +139698,39 @@ public java.lang.String getRequestId() { * 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) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } /** - * Returns the specified regional HealthCheckService resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionHealthCheckServices.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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 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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137906,25 +139738,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 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 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 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); + 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(), @@ -137937,77 +139772,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138021,7 +139851,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -138031,18 +139861,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -138052,57 +139882,55 @@ public Get setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String resource; - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a regional HealthCheckService resource in the specified project and region using the data - * included in the request. + * Sets the labels on the target regional disk. * - * Create a request for the method "regionHealthCheckServices.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138110,23 +139938,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheckService content) { + 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()) { @@ -138140,66 +139972,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138213,7 +140051,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -138223,18 +140061,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -138244,6 +140082,27 @@ public Insert setRegion(java.lang.String 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 @@ -138288,38 +140147,40 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Lists all the HealthCheckService resources that have been configured for the specified project in - * the given region. + * Starts asynchronous replication. Must be invoked on the primary disk. * - * Create a request for the method "regionHealthCheckServices.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link StartAsyncReplication#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region scoping 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class StartAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138327,23 +140188,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckServicesList.class); + 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(), @@ -138356,76 +140222,72 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StartAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StartAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StartAsyncReplication) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StartAsyncReplication setAlt(java.lang.String alt) { + return (StartAsyncReplication) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StartAsyncReplication setCallback(java.lang.String callback) { + return (StartAsyncReplication) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StartAsyncReplication setFields(java.lang.String fields) { + return (StartAsyncReplication) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StartAsyncReplication setKey(java.lang.String key) { + return (StartAsyncReplication) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StartAsyncReplication) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StartAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StartAsyncReplication setUploadType(java.lang.String uploadType) { + return (StartAsyncReplication) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StartAsyncReplication setUserIp(java.lang.String userIp) { + return (StartAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138439,7 +140301,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -138449,18 +140311,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String 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 " + @@ -138470,301 +140332,104 @@ public List setRegion(java.lang.String 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; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StartAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public StartAsyncReplication set(String parameterName, Object value) { + return (StartAsyncReplication) 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. + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. * - * Create a request for the method "regionHealthCheckServices.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link StopAsyncReplication#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} + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. * @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); + 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 Patch extends ComputeRequest { + public class StopAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138772,28 +140437,27 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. * @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); + 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(), @@ -138806,67 +140470,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public StopAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopAsyncReplication) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public StopAsyncReplication setAlt(java.lang.String alt) { + return (StopAsyncReplication) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public StopAsyncReplication setCallback(java.lang.String callback) { + return (StopAsyncReplication) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public StopAsyncReplication setFields(java.lang.String fields) { + return (StopAsyncReplication) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public StopAsyncReplication setKey(java.lang.String key) { + return (StopAsyncReplication) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public StopAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopAsyncReplication) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public StopAsyncReplication setUserIp(java.lang.String userIp) { + return (StopAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138880,7 +140549,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -138890,18 +140559,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -138911,26 +140580,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** The name of the persistent disk. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String disk; - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. + /** The name of the persistent disk. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getDisk() { + return disk; } - /** - * 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; + /** 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; } @@ -138978,61 +140645,42 @@ public java.lang.String getRequestId() { * 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) { + public StopAsyncReplication setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public StopAsyncReplication set(String parameterName, Object value) { + return (StopAsyncReplication) 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. + * 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 "regionHealthChecks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link StopGroupAsyncReplication#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class StopGroupAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139040,26 +140688,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to delete. + * @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 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); + 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(), @@ -139072,72 +140721,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopGroupAsyncReplication) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public StopGroupAsyncReplication setAlt(java.lang.String alt) { + return (StopGroupAsyncReplication) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public StopGroupAsyncReplication setCallback(java.lang.String callback) { + return (StopGroupAsyncReplication) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public StopGroupAsyncReplication setFields(java.lang.String fields) { + return (StopGroupAsyncReplication) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public StopGroupAsyncReplication setKey(java.lang.String key) { + return (StopGroupAsyncReplication) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopGroupAsyncReplication) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { + return (StopGroupAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139151,7 +140794,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -139161,18 +140804,25 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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; - /** Name of the region scoping this request. + /** 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; } - /** Name of the region scoping this request. */ - public Delete setRegion(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 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 " + @@ -139182,27 +140832,6 @@ public Delete setRegion(java.lang.String 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 @@ -139247,38 +140876,39 @@ public java.lang.String getRequestId() { * 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) { + public StopGroupAsyncReplication setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public StopGroupAsyncReplication set(String parameterName, Object value) { + return (StopGroupAsyncReplication) super.set(parameterName, value); } } /** - * Returns the specified HealthCheck resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionHealthChecks.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139286,26 +140916,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to return. + * @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 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); + 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(), @@ -139318,82 +140950,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139407,7 +141029,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -139417,18 +141039,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -139438,54 +141060,56 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String resource; - /** Name of the HealthCheck resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getResource() { + return resource; } - /** Name of the HealthCheck resource to return. */ - public Get setHealthCheck(java.lang.String healthCheck) { + /** 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(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.healthCheck = healthCheck; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * 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 "regionHealthChecks.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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.HealthCheck} + * @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 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); + 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 Insert extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139493,23 +141117,28 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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.HealthCheck} + * @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 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); + 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(), @@ -139522,66 +141151,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139595,7 +141230,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -139605,18 +141240,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -139626,6 +141261,42 @@ public Insert setRegion(java.lang.String 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 @@ -139670,72 +141341,109 @@ public java.lang.String getRequestId() { * 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) { + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) 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 HealthCheck resources available to the specified project. + * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to + * the specified project. * - * Create a request for the method "regionHealthChecks.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param project Name of the project 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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/aggregated/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to + * the specified project. * - * Create a request for the method "regionHealthChecks.list". + * 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 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.

    + * 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. - * @param region Name of the region scoping this request. + * @param project Name of the project 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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -139749,77 +141457,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -139829,27 +141537,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -139981,11 +141668,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -140010,7 +141731,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -140054,7 +141775,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -140077,7 +141798,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -140109,40 +141830,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified HealthAggregationPolicy in the given region. * - * Create a request for the method "regionHealthChecks.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -140150,28 +141892,26 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. * @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); + 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(), @@ -140184,72 +141924,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -140263,7 +142003,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -140284,7 +142024,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + 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 " + @@ -140294,24 +142034,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to patch. */ + /** Name of the HealthAggregationPolicy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String healthAggregationPolicy; - /** Name of the HealthCheck resource to patch. + /** Name of the HealthAggregationPolicy resource to delete. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } - /** Name of the HealthCheck resource to patch. */ - public Patch setHealthCheck(java.lang.String healthCheck) { + /** Name of the HealthAggregationPolicy resource to delete. */ + public Delete setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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.healthCheck = healthCheck; + this.healthAggregationPolicy = healthAggregationPolicy; return this; } @@ -140359,39 +142099,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Returns the specified HealthAggregationPolicy resource in the given region. * - * Create a request for the method "regionHealthChecks.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. * @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); + 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 Update extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -140399,27 +142138,26 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. * @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); + 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(), @@ -140432,72 +142170,82 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -140511,7 +142259,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -140532,7 +142280,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + 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 " + @@ -140542,173 +142290,79 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to update. */ + /** Name of the HealthAggregationPolicy resource to return. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String healthAggregationPolicy; - /** Name of the HealthCheck resource to update. + /** Name of the HealthAggregationPolicy resource to return. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } - /** Name of the HealthCheck resource to update. */ - public Update setHealthCheck(java.lang.String healthCheck) { + /** Name of the HealthAggregationPolicy resource to return. */ + public Get setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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.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; + this.healthAggregationPolicy = healthAggregationPolicy; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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 HealthAggregationPolicy in the specified project in the given region using the + * parameters that are included in the request. * - * Create a request for the method "regionInstanceGroupManagers.abandonInstances". + * 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 AbandonInstances#execute()} method to invoke the remote operation. + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} * @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); + 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 AbandonInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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 HealthAggregationPolicy in the specified project in the given region using the + * parameters that are included in the request. * - * Create a request for the method "regionInstanceGroupManagers.abandonInstances". + * 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 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.

    + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} * @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) { + 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()) { @@ -140717,67 +142371,71 @@ protected AbandonInstances(java.lang.String project, java.lang.String region, ja "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -140791,7 +142449,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AbandonInstances setProject(java.lang.String project) { + 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 " + @@ -140812,27 +142470,16 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public AbandonInstances setRegion(java.lang.String region) { + 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; } - /** 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 @@ -140877,63 +142524,60 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Apply updates to selected instances the managed instance group. + * Lists the HealthAggregationPolicies for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * 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 ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region Name of the region scoping this request. * @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); + 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 ApplyUpdatesToInstances extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Apply updates to selected instances the managed instance group. + * Lists the HealthAggregationPolicies for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * 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 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.

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

    + * 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 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} + * @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 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); + 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(), @@ -141129,67 +143036,72 @@ protected CreateInstances(java.lang.String project, java.lang.String region, jav "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141203,7 +143115,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateInstances setProject(java.lang.String project) { + 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 " + @@ -141213,45 +143125,47 @@ public CreateInstances setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** 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; } /** - * The name of the managed instance group. It should conform to RFC1035. + * 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 instanceGroupManager; + private java.lang.String healthAggregationPolicy; - /** The name of the managed instance group. It should conform to RFC1035. + /** Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and comply + with RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } /** - * The name of the managed instance group. It should conform to RFC1035. + * Name of the HealthAggregationPolicy to update. The name must be 1-63 characters long, and + * comply with RFC1035. */ - public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + public Patch setHealthAggregationPolicy(java.lang.String healthAggregationPolicy) { + this.healthAggregationPolicy = healthAggregationPolicy; return this; } @@ -141263,7 +143177,7 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -141276,7 +143190,8 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -141293,64 +143208,73 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified managed instance group and all of the instances in that group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Deletes the specified managed instance group and all of the instances in that group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.delete". + * 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 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.

    + * 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 Name of the region scoping this request. - * @param instanceGroupManager Name of the managed instance group to delete. + * @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 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); + 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(), @@ -141358,67 +143282,77 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141432,7 +143366,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -141442,242 +143376,214 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 of the managed instance group to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** Name of the managed instance group to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** Name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionHealthCheckServices" collection of methods. + */ + public class RegionHealthCheckServices { - @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. + * Retrieves the list of all HealthCheckService resources, regional and global, available to the + * specified project. * - * You can specify a maximum of 1000 instances with this method per request. + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * 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 DeleteInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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} + * @param project Name of the project scoping this request. * @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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class DeleteInstances extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/aggregated/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of all HealthCheckService resources, regional and global, available to the + * specified project. * - * You can specify a maximum of 1000 instances with this method per request. + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * 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 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 + * 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. - * @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} + * @param project Name of the project scoping this request. * @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); + 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])?))"); } - 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."); } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String 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 " + @@ -141687,139 +143593,382 @@ public DeleteInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** Name of the region scoping this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** Name of the region scoping this request. */ - public DeleteInstances setRegion(java.lang.String region) { - this.region = region; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - /** Name of the managed instance group. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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.String instanceGroupManager; + private java.lang.Boolean includeAllScopes; - /** Name of the managed instance group. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if 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.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public DeleteInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Deletes selected per-instance configurations for the managed instance group. + * Deletes the specified regional HealthCheckService. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * 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 DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, 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} + * @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 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); + 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 DeletePerInstanceConfigs extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 selected per-instance configurations for the managed instance group. + * Deletes the specified regional HealthCheckService. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * 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 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.

    + * 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, 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} + * @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 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); + 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(), @@ -141827,67 +143976,72 @@ protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String re "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141901,7 +144055,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeletePerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -141911,73 +144065,139 @@ public DeletePerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** The name of the managed instance group. It should conform to RFC1035. */ + /** + * 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 instanceGroupManager; + private java.lang.String healthCheckService; - /** The name of the managed instance group. It should conform to RFC1035. + /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthCheckService() { + return healthCheckService; } - /** The name of the managed instance group. It should conform to RFC1035. */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * 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 DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns all of the details about the specified managed instance group. + * Returns the specified regional HealthCheckService resource. * - * Create a request for the method "regionInstanceGroupManagers.get". + * 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 instanceGroupManager Name of the managed instance group to return. + * @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 instanceGroupManager) throws java.io.IOException { - Get result = new Get(project, region, instanceGroupManager); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 all of the details about the specified managed instance group. + * Returns the specified regional HealthCheckService resource. * - * Create a request for the method "regionInstanceGroupManagers.get". + * 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 @@ -141986,11 +144206,13 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * Creates a regional HealthCheckService resource in the specified project and region using the + * data included in the request. * - * Create a request for the method "regionInstanceGroupManagers.insert". + * 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 @@ -142179,10 +144411,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 managed instance groups that are contained within the specified region. + * Lists all the HealthCheckService resources that have been configured for the specified project + * in the given region. * - * Create a request for the method "regionInstanceGroupManagers.list". + * 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 @@ -142384,7 +144631,7 @@ public class List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 errors thrown by actions on instances for a given regional managed instance group. - * The filter andorderBy query parameters are not supported. + * 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 "regionInstanceGroupManagers.listErrors". + * 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 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.

    + * 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. - 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}. + * @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 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); + 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(), @@ -142833,77 +145089,8013 @@ protected ListErrors(java.lang.String project, java.lang.String region, java.lan "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) super.setUserIp(userIp); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ @@ -148783,6 +158975,22 @@ public Get setInstanceTemplate(java.lang.String instanceTemplate) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + 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); @@ -149442,6 +159650,22 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -152648,6 +162872,12 @@ public Get set(String parameterName, Object 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 @@ -152677,6 +162907,12 @@ public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/notificationEndpoints"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 * @@ -159156,6 +169859,206 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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); + } + } } @@ -174657,6 +185560,1177 @@ public TestIamPermissions set(String parameterName, Object 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 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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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); + } + } + /** + * 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 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."); + } + + @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 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})"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 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."); + } + + @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. * @@ -174701,7 +186775,10 @@ public Get get(java.lang.String project, java.lang.String zone, java.lang.String public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** * Retrieves information about the specified reservation subBlock. @@ -174726,6 +186803,11 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String 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."); } @@ -174850,6 +186932,11 @@ public java.lang.String getParentName() { * 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; } @@ -174917,7 +187004,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -175152,6 +187239,263 @@ 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 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."); + } + + @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. * @@ -175174,7 +187518,10 @@ public List list(java.lang.String project, java.lang.String zone, java.lang.Stri public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks"; + + 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. @@ -175197,6 +187544,11 @@ protected List(java.lang.String project, java.lang.String zone, java.lang.String 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/[^/]+$"); + } } @Override @@ -175320,6 +187672,11 @@ public java.lang.String getParentName() { * 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; } @@ -175617,7 +187974,10 @@ public PerformMaintenance performMaintenance(java.lang.String project, java.lang public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + + 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 @@ -175643,6 +188003,11 @@ protected PerformMaintenance(java.lang.String project, java.lang.String zone, ja 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."); } @@ -175757,6 +188122,11 @@ public java.lang.String getParentName() { * 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; } @@ -175860,7 +188230,10 @@ public ReportFaulty reportFaulty(java.lang.String project, java.lang.String zone public class ReportFaulty extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** * Allows customers to report a faulty subBlock. @@ -175887,6 +188260,11 @@ protected ReportFaulty(java.lang.String project, java.lang.String zone, java.lan 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."); } @@ -176001,6 +188379,11 @@ public java.lang.String getParentName() { * 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; } @@ -176102,7 +188485,7 @@ public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -176334,7 +188717,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188335,6 +200718,174 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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); + } + } } @@ -194540,107 +207091,1065 @@ public class Get extends ComputeRequest {@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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 the specified Snapshot resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "snapshots.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 snapshot Name of the Snapshot resource to return. + * @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 Get(java.lang.String project, java.lang.String snapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Snapshot.class); + 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.snapshot = com.google.api.client.util.Preconditions.checkNotNull(snapshot, "Required parameter snapshot must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194654,7 +208163,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -194664,53 +208173,55 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the Snapshot resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String snapshot; + private java.lang.String resource; - /** Name of the Snapshot resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getSnapshot() { - return snapshot; + public java.lang.String getResource() { + return resource; } - /** Name of the Snapshot resource to return. */ - public Get setSnapshot(java.lang.String snapshot) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.snapshot = snapshot; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "snapshots.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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 GetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194719,23 +208230,24 @@ public class GetIamPolicy extends ComputeRequest + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + 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(), @@ -194751,73 +208263,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String resource) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194831,7 +208333,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -194852,7 +208354,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -194862,140 +208364,130 @@ public GetIamPolicy setResource(java.lang.String 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); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "snapshots.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.Snapshot content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots"; + private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "snapshots.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.Snapshot} + * @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 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); + 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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195009,7 +208501,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -195019,99 +208511,103 @@ public Insert setProject(java.lang.String 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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 Snapshot resources contained within the specified project. + * Retrieves the list of all SslCertificate resources, regional and global, available to the + * specified project. * - * Create a request for the method "snapshots.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots"; + private static final String REST_PATH = "projects/{project}/aggregated/sslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of all SslCertificate resources, regional and global, available to the + * specified project. * - * Create a request for the method "snapshots.list". + * 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 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.

    + * 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. + * @param project Name of the project scoping 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); + 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(), @@ -195131,77 +208627,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -195342,11 +208838,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -195371,7 +208901,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -195415,7 +208945,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -195438,7 +208968,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -195470,135 +209000,155 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified SslCertificate resource. * - * Create a request for the method "snapshots.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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} + * @param sslCertificate Name of the SslCertificate resource to delete. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified SslCertificate resource. * - * Create a request for the method "snapshots.setIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param sslCertificate Name of the SslCertificate resource to delete. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195612,7 +209162,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -195622,153 +209172,207 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the SslCertificate resource to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String sslCertificate; - /** Name or id of the resource for this request. + /** Name of the SslCertificate resource to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getSslCertificate() { + return sslCertificate; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the SslCertificate resource to delete. */ + public Delete setSslCertificate(java.lang.String sslCertificate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources - * documentation. + * Returns the specified SslCertificate resource. * - * Create a request for the method "snapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param sslCertificate Name of the SslCertificate resource to return. * @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); + 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 SetLabels extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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}"); /** - * Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources - * documentation. + * Returns the specified SslCertificate resource. * - * Create a request for the method "snapshots.setLabels". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param sslCertificate Name of the SslCertificate resource to return. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -195782,7 +209386,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -195792,151 +209396,333 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of SslCertificate resources available to the specified project. * - * Create a request for the method "snapshots.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/sslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Retrieves the list of SslCertificate resources available to the specified project. * - * Create a request for the method "snapshots.testIamPermissions". + * 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 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.

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

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.SslCertificates.List request = compute.sslCertificates().list(parameters ...)}
    +   *   {@code Compute.SslPolicies.List request = compute.sslPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public SslCertificates sslCertificates() { - return new SslCertificates(); + public SslPolicies sslPolicies() { + return new SslPolicies(); } /** - * The "sslCertificates" collection of methods. + * The "sslPolicies" collection of methods. */ - public class SslCertificates { + public class SslPolicies { /** - * Retrieves the list of all SslCertificate resources, regional and global, available to the - * specified project. + * 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 "sslCertificates.aggregatedList". + * 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. @@ -196030,21 +210059,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/sslCertificates"; + private static final String REST_PATH = "projects/{project}/aggregated/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "sslCertificates.aggregatedList". + * 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. @@ -196056,7 +210085,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * 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 "sslCertificates.delete". + * 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 @@ -196521,10 +210550,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param sslCertificate Name of the SslCertificate resource to delete. + * @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 sslCertificate) { + 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()) { @@ -196532,12 +210562,7 @@ protected Delete(java.lang.String project, java.lang.String sslCertificate) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); - } + this.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); } @Override @@ -196621,24 +210646,25 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the SslCertificate resource to delete. */ + /** + * 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 sslCertificate; + private java.lang.String sslPolicy; - /** Name of the SslCertificate resource to delete. + /** Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. */ - public java.lang.String getSslCertificate() { - return sslCertificate; + public java.lang.String getSslPolicy() { + return sslPolicy; } - /** 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; + /** + * 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; } @@ -196697,37 +210723,35 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified SslCertificate resource. + * Lists all of the ordered rules present in a single specified policy. * - * Create a request for the method "sslCertificates.get". + * 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 sslCertificate Name of the SslCertificate resource to return. + * @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 sslCertificate) throws java.io.IOException { - Get result = new Get(project, sslCertificate); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Lists all of the ordered rules present in a single specified policy. * - * Create a request for the method "sslCertificates.get". + * 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 @@ -196735,23 +210759,19 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param sslCertificate Name of the SslCertificate resource to return. + * @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 sslCertificate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslCertificate.class); + 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.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}"); - } + this.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); } @Override @@ -196845,24 +210865,25 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the SslCertificate resource to return. */ + /** + * 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 sslCertificate; + private java.lang.String sslPolicy; - /** Name of the SslCertificate resource to return. + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. */ - public java.lang.String getSslCertificate() { - return sslCertificate; + public java.lang.String getSslPolicy() { + return sslPolicy; } - /** 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; + /** + * 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; } @@ -196872,19 +210893,18 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a SslCertificate resource in the specified project using the data included in the - * request. + * Returns the specified SSL policy resource. * - * Create a request for the method "sslCertificates.insert". + * 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.SslCertificate} + * @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.SslCertificate content) throws java.io.IOException { + 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; @@ -196892,16 +210912,15 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Returns the specified SSL policy resource. * - * Create a request for the method "sslCertificates.insert". + * 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 @@ -196909,10 +210928,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SslCertificate} + * @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.SslCertificate content) { + 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()) { @@ -197058,9 +211077,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of SslCertificate resources available to the specified project. + * Lists all the SSL policies that have been configured for the specified project. * - * Create a request for the method "sslCertificates.list". + * 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. @@ -197074,17 +211093,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslCertificates"; + private static final String REST_PATH = "projects/{project}/global/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Lists all the SSL policies that have been configured for the specified project. * - * Create a request for the method "sslCertificates.list". + * 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 @@ -197095,7 +211114,7 @@ public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/sslPolicies/listAvailableFeatures"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; } @@ -197355,7 +211783,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListAvailableFeatures setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -197399,7 +211827,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListAvailableFeatures setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -197422,7 +211850,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListAvailableFeatures setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -197454,52 +211882,262 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 SslPolicies collection. + * An accessor for creating requests from the StoragePoolTypes collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.SslPolicies.List request = compute.sslPolicies().list(parameters ...)}
    +   *   {@code Compute.StoragePoolTypes.List request = compute.storagePoolTypes().list(parameters ...)}
        * 
    * * @return the resource collection */ - public SslPolicies sslPolicies() { - return new SslPolicies(); + public StoragePoolTypes storagePoolTypes() { + return new StoragePoolTypes(); } /** - * The "sslPolicies" collection of methods. + * The "storagePoolTypes" collection of methods. */ - public class SslPolicies { + public class StoragePoolTypes { /** - * Retrieves the list of all SslPolicy resources, regional and global, available to the specified - * project. + * 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 "sslPolicies.aggregatedList". + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -197508,21 +212146,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/sslPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/storagePoolTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "sslPolicies.aggregatedList". + * 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. @@ -197530,11 +212167,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @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.SslPoliciesAggregatedList.class); + 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(), @@ -197613,17 +212250,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** 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(), @@ -197961,246 +212598,41 @@ public AggregatedList set(String parameterName, Object 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. + * Returns the specified storage pool type. * - * Create a request for the method "sslPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. The name must be 1-63 characters long, - and comply with RFC1035. + * @param zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, sslPolicy); + 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 Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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 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 PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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}"); /** - * Lists all of the ordered rules present in a single specified policy. + * Returns the specified storage pool type. * - * Create a request for the method "sslPolicies.get". + * 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 @@ -198208,19 +212640,30 @@ public class Get extends ComputeRequest * * @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 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 sslPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPolicy.class); + 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -198314,245 +212757,85 @@ public Get setProject(java.lang.String project) { return this; } - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ + /** The name of the zone for this request. */ @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; - } + private java.lang.String zone; - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. + /** The name of the zone for this request. */ - 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); + public java.lang.String getZone() { + return zone; } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 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. */ + /** Name of the storage pool type to return. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String storagePoolType; - /** Project ID for this request. + /** Name of the storage pool type to return. */ - public java.lang.String getProject() { - return project; + public java.lang.String getStoragePoolType() { + return storagePoolType; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Name of the storage pool type to return. */ + public Get setStoragePoolType(java.lang.String storagePoolType) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.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; + this.storagePoolType = storagePoolType; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists all the SSL policies that have been configured for the specified project. + * Retrieves a list of storage pool types available to the specified project. * - * Create a request for the method "sslPolicies.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 the SSL policies that have been configured for the specified project. + * Retrieves a list of storage pool types available to the specified project. * - * Create a request for the method "sslPolicies.list". + * 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 @@ -198560,16 +212843,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesList.class); + 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])?"); + } } @Override @@ -198663,6 +212953,27 @@ public List setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -198932,47 +213243,75 @@ 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 { + /** - * Lists all features that can be specified in the SSL policy when using custom profile. + * Retrieves an aggregated list of storage pools. * - * Create a request for the method "sslPolicies.listAvailableFeatures". + * 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 ListAvailableFeatures#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListAvailableFeatures extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies/listAvailableFeatures"; + private static final String REST_PATH = "projects/{project}/aggregated/storagePools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves an aggregated list of storage pools. * - * Create a request for the method "sslPolicies.listAvailableFeatures". + * 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 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.

    + * 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 ListAvailableFeatures(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesListAvailableFeaturesResponse.class); + 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(), @@ -198992,63 +213331,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { - return (ListAvailableFeatures) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { - return (ListAvailableFeatures) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListAvailableFeatures setAlt(java.lang.String alt) { - return (ListAvailableFeatures) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListAvailableFeatures setCallback(java.lang.String callback) { - return (ListAvailableFeatures) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListAvailableFeatures setFields(java.lang.String fields) { - return (ListAvailableFeatures) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListAvailableFeatures setKey(java.lang.String key) { - return (ListAvailableFeatures) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { - return (ListAvailableFeatures) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { - return (ListAvailableFeatures) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListAvailableFeatures setUploadType(java.lang.String uploadType) { - return (ListAvailableFeatures) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListAvailableFeatures setUserIp(java.lang.String userIp) { - return (ListAvailableFeatures) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -199062,7 +213401,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListAvailableFeatures setProject(java.lang.String project) { + 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 " + @@ -199203,11 +213542,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListAvailableFeatures setFilter(java.lang.String filter) { + 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 @@ -199232,7 +213605,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -199276,7 +213649,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListAvailableFeatures setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -199299,7 +213672,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -199331,128 +213704,170 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 ListAvailableFeatures set(String parameterName, Object value) { - return (ListAvailableFeatures) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches the specified SSL policy with the data included in the request. + * 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 "sslPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @param zone The name of the zone for this request. + * @param storagePool Name of the storage pool to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Patches the specified SSL policy with the data included in the request. + * 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 "sslPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. The name must be 1-63 characters long, - and comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.SslPolicy} + * @param zone The name of the zone for this request. + * @param storagePool Name of the storage pool to delete. * @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); + 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.sslPolicy = com.google.api.client.util.Preconditions.checkNotNull(sslPolicy, "Required parameter sslPolicy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -199466,7 +213881,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -199476,25 +213891,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String sslPolicy; + private java.lang.String zone; - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + /** The name of the zone for this request. */ - public java.lang.String getSslPolicy() { - return sslPolicy; + public java.lang.String getZone() { + return zone; } - /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. + /** 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 Patch setSslPolicy(java.lang.String sslPolicy) { - this.sslPolicy = sslPolicy; + 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; } @@ -199542,91 +213977,85 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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`. + * Returns a specified storage pool. Gets a list of available storage pools by making a list() + * request. * - * Create a request for the method "storagePoolTypes.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/storagePoolTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Retrieves an aggregated list of storage pool types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Returns a specified storage pool. Gets a list of available storage pools by making a list() + * request. * - * Create a request for the method "storagePoolTypes.aggregatedList". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolTypeAggregatedList.class); + 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}"); + } } @Override @@ -199640,63 +214069,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -199710,7 +214139,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -199720,354 +214149,300 @@ public AggregatedList setProject(java.lang.String 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. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String zone; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** 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; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name of the storage pool to return. */ + @com.google.api.client.util.Key + private java.lang.String storagePool; - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** Name of the storage pool to return. + */ + public java.lang.String getStoragePool() { + return storagePool; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** 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; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @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; + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + public class GetIamPolicy extends ComputeRequest { - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy"; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "storagePools.getIamPolicy". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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}"); + } } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + } - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if 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; + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String zone; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the zone for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getZone() { + return zone; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.Integer optionsRequestedPolicyVersion; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Requested IAM Policy version. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified storage pool type. + * Creates a storage pool in the specified project using the data in the request. * - * Create a request for the method "storagePoolTypes.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 storagePoolType Name of the storage pool type to return. + * @param content the {@link com.google.api.services.compute.model.StoragePool} * @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); + 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 Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes/{storagePoolType}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -200075,26 +214450,23 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 storagePoolType Name of the storage pool type to return. + * @param content the {@link com.google.api.services.compute.model.StoragePool} * @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); + 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(), @@ -200107,82 +214479,66 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200196,7 +214552,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -200217,7 +214573,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + 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 " + @@ -200227,36 +214583,64 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the storage pool type to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String storagePoolType; + private java.lang.String requestId; - /** Name of the storage pool type to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getStoragePoolType() { - return storagePoolType; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of storage pool types available to the specified project. + * Retrieves a list of storage pools contained within the specified zone. * - * Create a request for the method "storagePoolTypes.list". + * 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. @@ -200271,9 +214655,9 @@ public List list(java.lang.String project, java.lang.String zone) throws java.io return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePoolTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -200282,9 +214666,9 @@ public class List extends ComputeRequest {@link @@ -200296,7 +214680,7 @@ public class List extends ComputeRequestThe 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`. + * Lists the disks in a specified storage pool. * - * Create a request for the method "storagePools.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class ListDisks extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/storagePools"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Retrieves an aggregated list of storage pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists the disks in a specified storage pool. * - * Create a request for the method "storagePools.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.StoragePoolAggregatedList.class); + 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}"); + } } @Override @@ -200780,63 +215157,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ListDisks set$Xgafv(java.lang.String $Xgafv) { + return (ListDisks) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListDisks setAccessToken(java.lang.String accessToken) { + return (ListDisks) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListDisks setAlt(java.lang.String alt) { + return (ListDisks) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListDisks setCallback(java.lang.String callback) { + return (ListDisks) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListDisks setFields(java.lang.String fields) { + return (ListDisks) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListDisks setKey(java.lang.String key) { + return (ListDisks) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListDisks setOauthToken(java.lang.String oauthToken) { + return (ListDisks) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListDisks setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListDisks) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListDisks setQuotaUser(java.lang.String quotaUser) { + return (ListDisks) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListDisks setUploadType(java.lang.String uploadType) { + return (ListDisks) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListDisks setUploadProtocol(java.lang.String uploadProtocol) { + return (ListDisks) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ListDisks setUserIp(java.lang.String userIp) { + return (ListDisks) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200850,7 +215227,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -200860,6 +215237,48 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public 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 @@ -200991,45 +215410,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListDisks 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 @@ -201054,7 +215439,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListDisks setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -201098,7 +215483,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListDisks setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -201121,7 +215506,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListDisks setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -201153,312 +215538,39 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListDisks setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); - } - } - - @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); + public ListDisks set(String parameterName, Object value) { + return (ListDisks) super.set(parameterName, value); } } /** - * Returns a specified storage pool. Gets a list of available storage pools by making a list() - * request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "storagePools.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 storagePool Name of the storage pool to return. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -201466,27 +215578,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 storagePool Name of the storage pool to return. + * @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 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); + 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(), @@ -201499,82 +215612,72 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201588,7 +215691,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -201609,7 +215712,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + 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 " + @@ -201619,54 +215722,55 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the storage pool to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String storagePool; + private java.lang.String resource; - /** Name of the storage pool to return. + /** Name or id of the resource for this request. */ - public java.lang.String getStoragePool() { - return storagePool; + public java.lang.String getResource() { + return resource; } - /** Name of the storage pool to return. */ - public Get setStoragePool(java.lang.String storagePool) { + /** 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(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.storagePool = storagePool; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "storagePools.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -201678,24 +215782,24 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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); + 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(), @@ -201717,73 +215821,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201797,7 +215891,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -201818,7 +215912,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + 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 " + @@ -201839,7 +215933,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -201849,49 +215943,36 @@ public GetIamPolicy setResource(java.lang.String 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); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Creates a storage pool in the specified project using the data in the request. + * 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.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 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); + 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 Insert extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -201899,23 +215980,30 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 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); + 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(), @@ -201928,66 +216016,72 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -202001,7 +216095,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -202022,7 +216116,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + 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 " + @@ -202032,6 +216126,27 @@ public Insert setZone(java.lang.String 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 @@ -202076,72 +216191,107 @@ public java.lang.String getRequestId() { * 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) { + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 a list of storage pools contained within the specified zone. + * Retrieves an aggregated list of subnetworks. * - * Create a request for the method "storagePools.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools"; + private static final String REST_PATH = "projects/{project}/aggregated/subnetworks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves an aggregated list of subnetworks. * - * Create a request for the method "storagePools.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -202155,63 +216305,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -202225,7 +216375,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -202235,27 +216385,6 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -202387,11 +216516,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -202416,7 +216579,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -202460,7 +216623,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -202483,7 +216646,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -202515,82 +216678,625 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists the disks in a specified storage pool. + * Deletes the specified subnetwork. * - * Create a request for the method "storagePools.listDisks". + * 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 ListDisks#execute()} method to invoke the remote operation. + * 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 list disks of. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to delete. * @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); + 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 ListDisks extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}/listDisks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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 = + 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}"); /** - * Lists the disks in a specified storage pool. + * Deletes the specified subnetwork. * - * Create a request for the method "storagePools.listDisks". + * 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 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.

    + * 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 list disks of. + * @param region Name of the region scoping this request. + * @param subnetwork Name of the Subnetwork resource to delete. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + + 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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); } } @@ -202606,63 +217312,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListDisks set$Xgafv(java.lang.String $Xgafv) { - return (ListDisks) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListDisks setAccessToken(java.lang.String accessToken) { - return (ListDisks) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListDisks setAlt(java.lang.String alt) { - return (ListDisks) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListDisks setCallback(java.lang.String callback) { - return (ListDisks) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListDisks setFields(java.lang.String fields) { - return (ListDisks) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListDisks setKey(java.lang.String key) { - return (ListDisks) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListDisks setOauthToken(java.lang.String oauthToken) { - return (ListDisks) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListDisks setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListDisks) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListDisks setQuotaUser(java.lang.String quotaUser) { - return (ListDisks) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListDisks setUploadType(java.lang.String uploadType) { - return (ListDisks) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public ListDisks setUploadProtocol(java.lang.String uploadProtocol) { - return (ListDisks) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public ListDisks setUserIp(java.lang.String userIp) { - return (ListDisks) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -202676,7 +217382,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListDisks setProject(java.lang.String project) { + 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 " + @@ -202686,379 +217392,140 @@ public ListDisks setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public ListDisks setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the storage pool to list disks of. */ + /** Name of the Subnetwork resource to return. */ @com.google.api.client.util.Key - private java.lang.String storagePool; + private java.lang.String subnetwork; - /** Name of the storage pool to list disks of. + /** Name of the Subnetwork resource to return. */ - public java.lang.String getStoragePool() { - return storagePool; + public java.lang.String getSubnetwork() { + return subnetwork; } - /** Name of the storage pool to list disks of. */ - public ListDisks setStoragePool(java.lang.String storagePool) { + /** Name of the Subnetwork resource to return. */ + public Get setSubnetwork(java.lang.String subnetwork) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(STORAGE_POOL_PATTERN.matcher(storagePool).matches(), - "Parameter storagePool must conform to the pattern " + + 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.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; + this.subnetwork = subnetwork; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * Defines the extra views returned back in the subnetwork resource. Supported values: * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * - WITH_UTILIZATION: Utilization data is included in the response. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.util.List views; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** Defines the extra views returned back in the subnetwork resource. Supported values: - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + - WITH_UTILIZATION: Utilization data is included in the response. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.util.List getViews() { + return views; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * Defines the extra views returned back in the subnetwork resource. Supported values: * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * - WITH_UTILIZATION: Utilization data is included in the response. */ - public ListDisks setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Get setViews(java.util.List views) { + this.views = views; return this; } @Override - public ListDisks set(String parameterName, Object value) { - return (ListDisks) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 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.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); + 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 SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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.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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.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."); @@ -203070,63 +217537,73 @@ protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + 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. */ @@ -203140,7 +217617,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -203150,24 +217627,24 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } @@ -203182,7 +217659,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -203192,141 +217669,145 @@ public SetIamPolicy setResource(java.lang.String 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Creates a subnetwork in the specified project using the data included in the request. * - * Create a request for the method "storagePools.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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. + * Creates a subnetwork in the specified project using the data included in the request. * - * Create a request for the method "storagePools.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203340,7 +217821,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -203350,187 +217831,207 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves a list of subnetworks available to the specified project. * - * Create a request for the method "storagePools.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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. - * @param storagePool The storagePool name for this request. - * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @param region Name of the region scoping this request. * @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); + 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 Update extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/storagePools/{storagePool}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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. + * Retrieves a list of subnetworks available to the specified project. * - * Create a request for the method "storagePools.update". + * 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 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.

    + * 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. - * @param storagePool The storagePool name for this request. - * @param content the {@link com.google.api.services.compute.model.StoragePool} + * @param region Name of the region scoping this request. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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}"); - } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + 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. */ @@ -203544,7 +218045,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -203554,187 +218055,362 @@ public Update setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** 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 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; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** The storagePool name for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String storagePool; + private java.lang.String pageToken; - /** The storagePool name for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getStoragePool() { - return storagePool; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** update_mask indicates fields to be updated as part of this request. */ + /** + * 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 String updateMask; + private java.util.List views; - /** update_mask indicates fields to be updated as part of this request. + /** Defines the extra views returned back in the subnetwork resource. Supported values: + + - WITH_UTILIZATION: Utilization data is included in the response. */ - public String getUpdateMask() { - return updateMask; + public java.util.List getViews() { + return views; } - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * 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 Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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`. + * Retrieves an aggregated list of all usable subnetworks in the project. * - * Create a request for the method "subnetworks.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link ListUsable#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); + public ListUsable listUsable(java.lang.String project) throws java.io.IOException { + ListUsable result = new ListUsable(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class ListUsable extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/subnetworks"; + private static final String REST_PATH = "projects/{project}/aggregated/subnetworks/listUsable"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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`. + * Retrieves an aggregated list of all usable subnetworks in the project. * - * Create a request for the method "subnetworks.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SubnetworkAggregatedList.class); + 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(), @@ -203754,63 +218430,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203824,7 +218500,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -203965,45 +218641,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListUsable 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 @@ -204028,7 +218670,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListUsable setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -204072,7 +218714,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListUsable setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -204095,7 +218737,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListUsable setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -204127,85 +218769,64 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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. + * 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.util.List views; - - /** Defines the extra views returned back in the subnetwork resource. Supported values: + private java.lang.String serviceProject; - - WITH_UTILIZATION: Utilization data is included in the response. + /** 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.util.List getViews() { - return views; + public java.lang.String getServiceProject() { + return serviceProject; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: - * - * - WITH_UTILIZATION: Utilization data is included in the response. + * 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 AggregatedList setViews(java.util.List views) { - this.views = views; + public ListUsable setServiceProject(java.lang.String serviceProject) { + this.serviceProject = serviceProject; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); } } /** - * Deletes the specified subnetwork. + * 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.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param subnetwork Name of the Subnetwork resource to patch. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; @@ -204219,22 +218840,25 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @param subnetwork Name of the Subnetwork resource to patch. + * @param content the {@link com.google.api.services.compute.model.Subnetwork} * @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); + 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(), @@ -204256,63 +218880,63 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204326,7 +218950,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -204347,7 +218971,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -204357,18 +218981,18 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the Subnetwork resource to delete. */ + /** Name of the Subnetwork resource to patch. */ @com.google.api.client.util.Key private java.lang.String subnetwork; - /** Name of the Subnetwork resource to delete. + /** Name of the Subnetwork resource to patch. */ public java.lang.String getSubnetwork() { return subnetwork; } - /** Name of the Subnetwork resource to delete. */ - public Delete setSubnetwork(java.lang.String 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 " + @@ -204378,6 +219002,41 @@ public Delete setSubnetwork(java.lang.String 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 @@ -204422,39 +219081,241 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Expands the IP CIDR range of the subnetwork to a specified value. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "subnetworks.expandIpCidrRange". + * 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 ExpandIpCidrRange#execute()} method to invoke the remote operation. + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 to update. - * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @param subnetwork Name of the Subnetwork resource. + * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} * @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); + 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 ExpandIpCidrRange extends ComputeRequest { + public class SetPrivateIpGoogleAccess extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204466,23 +219327,24 @@ public class ExpandIpCidrRange extends ComputeRequest {@link ExpandIpCidrRange#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 to update. - * @param content the {@link com.google.api.services.compute.model.SubnetworksExpandIpCidrRangeRequest} + * @param subnetwork Name of the Subnetwork resource. + * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} * @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) { + 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()) { @@ -204505,63 +219367,63 @@ protected ExpandIpCidrRange(java.lang.String project, java.lang.String region, j } @Override - public ExpandIpCidrRange set$Xgafv(java.lang.String $Xgafv) { - return (ExpandIpCidrRange) super.set$Xgafv($Xgafv); + public SetPrivateIpGoogleAccess set$Xgafv(java.lang.String $Xgafv) { + return (SetPrivateIpGoogleAccess) super.set$Xgafv($Xgafv); } @Override - public ExpandIpCidrRange setAccessToken(java.lang.String accessToken) { - return (ExpandIpCidrRange) super.setAccessToken(accessToken); + public SetPrivateIpGoogleAccess setAccessToken(java.lang.String accessToken) { + return (SetPrivateIpGoogleAccess) super.setAccessToken(accessToken); } @Override - public ExpandIpCidrRange setAlt(java.lang.String alt) { - return (ExpandIpCidrRange) super.setAlt(alt); + public SetPrivateIpGoogleAccess setAlt(java.lang.String alt) { + return (SetPrivateIpGoogleAccess) super.setAlt(alt); } @Override - public ExpandIpCidrRange setCallback(java.lang.String callback) { - return (ExpandIpCidrRange) super.setCallback(callback); + public SetPrivateIpGoogleAccess setCallback(java.lang.String callback) { + return (SetPrivateIpGoogleAccess) super.setCallback(callback); } @Override - public ExpandIpCidrRange setFields(java.lang.String fields) { - return (ExpandIpCidrRange) super.setFields(fields); + public SetPrivateIpGoogleAccess setFields(java.lang.String fields) { + return (SetPrivateIpGoogleAccess) super.setFields(fields); } @Override - public ExpandIpCidrRange setKey(java.lang.String key) { - return (ExpandIpCidrRange) super.setKey(key); + public SetPrivateIpGoogleAccess setKey(java.lang.String key) { + return (SetPrivateIpGoogleAccess) super.setKey(key); } @Override - public ExpandIpCidrRange setOauthToken(java.lang.String oauthToken) { - return (ExpandIpCidrRange) super.setOauthToken(oauthToken); + public SetPrivateIpGoogleAccess setOauthToken(java.lang.String oauthToken) { + return (SetPrivateIpGoogleAccess) super.setOauthToken(oauthToken); } @Override - public ExpandIpCidrRange setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ExpandIpCidrRange) super.setPrettyPrint(prettyPrint); + public SetPrivateIpGoogleAccess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetPrivateIpGoogleAccess) super.setPrettyPrint(prettyPrint); } @Override - public ExpandIpCidrRange setQuotaUser(java.lang.String quotaUser) { - return (ExpandIpCidrRange) super.setQuotaUser(quotaUser); + public SetPrivateIpGoogleAccess setQuotaUser(java.lang.String quotaUser) { + return (SetPrivateIpGoogleAccess) super.setQuotaUser(quotaUser); } @Override - public ExpandIpCidrRange setUploadType(java.lang.String uploadType) { - return (ExpandIpCidrRange) super.setUploadType(uploadType); + public SetPrivateIpGoogleAccess setUploadType(java.lang.String uploadType) { + return (SetPrivateIpGoogleAccess) super.setUploadType(uploadType); } @Override - public ExpandIpCidrRange setUploadProtocol(java.lang.String uploadProtocol) { - return (ExpandIpCidrRange) super.setUploadProtocol(uploadProtocol); + public SetPrivateIpGoogleAccess setUploadProtocol(java.lang.String uploadProtocol) { + return (SetPrivateIpGoogleAccess) super.setUploadProtocol(uploadProtocol); } @Override - public ExpandIpCidrRange setUserIp(java.lang.String userIp) { - return (ExpandIpCidrRange) super.setUserIp(userIp); + public SetPrivateIpGoogleAccess setUserIp(java.lang.String userIp) { + return (SetPrivateIpGoogleAccess) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204575,7 +219437,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ExpandIpCidrRange setProject(java.lang.String project) { + 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 " + @@ -204596,7 +219458,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public ExpandIpCidrRange setRegion(java.lang.String region) { + 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 " + @@ -204606,18 +219468,18 @@ public ExpandIpCidrRange setRegion(java.lang.String region) { return this; } - /** Name of the Subnetwork resource to update. */ + /** Name of the Subnetwork resource. */ @com.google.api.client.util.Key private java.lang.String subnetwork; - /** Name of the Subnetwork resource to update. + /** Name of the Subnetwork resource. */ public java.lang.String getSubnetwork() { return subnetwork; } - /** Name of the Subnetwork resource to update. */ - public ExpandIpCidrRange setSubnetwork(java.lang.String 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 " + @@ -204671,38 +219533,39 @@ public java.lang.String getRequestId() { * 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) { + public SetPrivateIpGoogleAccess setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public ExpandIpCidrRange set(String parameterName, Object value) { - return (ExpandIpCidrRange) super.set(parameterName, value); + public SetPrivateIpGoogleAccess set(String parameterName, Object value) { + return (SetPrivateIpGoogleAccess) super.set(parameterName, value); } } /** - * Returns the specified subnetwork. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "subnetworks.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204710,114 +219573,315 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param subnetwork Name of the Subnetwork resource to return. + * @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 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); + 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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204831,7 +219895,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -204841,146 +219905,135 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** Name of the TargetGrpcProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String subnetwork; + private java.lang.String targetGrpcProxy; - /** Name of the Subnetwork resource to return. + /** Name of the TargetGrpcProxy resource to delete. */ - public java.lang.String getSubnetwork() { - return subnetwork; + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; } - /** Name of the Subnetwork resource to return. */ - public Get setSubnetwork(java.lang.String subnetwork) { + /** Name of the TargetGrpcProxy resource to delete. */ + public Delete setTargetGrpcProxy(java.lang.String targetGrpcProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + + 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.subnetwork = subnetwork; + this.targetGrpcProxy = targetGrpcProxy; return this; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.util.List views; + private java.lang.String requestId; - /** Defines the extra views returned back in the subnetwork resource. Supported values: + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - - WITH_UTILIZATION: Utilization data is included in the response. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.util.List getViews() { - return views; + public java.lang.String getRequestId() { + return requestId; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public Get setViews(java.util.List views) { - this.views = views; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified TargetGrpcProxy resource in the given scope. * - * Create a request for the method "subnetworks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to return. * @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); + 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 GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the specified TargetGrpcProxy resource in the given scope. * - * Create a request for the method "subnetworks.getIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. + * @param targetGrpcProxy Name of the TargetGrpcProxy resource to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @@ -204996,63 +220049,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -205066,7 +220119,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -205076,102 +220129,63 @@ public GetIamPolicy setProject(java.lang.String 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. */ + /** Name of the TargetGrpcProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetGrpcProxy; - /** Name or id of the resource for this request. + /** Name of the TargetGrpcProxy resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetGrpcProxy() { + return targetGrpcProxy; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the TargetGrpcProxy resource to return. */ + public Get setTargetGrpcProxy(java.lang.String targetGrpcProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.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; + this.targetGrpcProxy = targetGrpcProxy; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a subnetwork in the specified project using the data included in the request. + * 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 "subnetworks.insert". + * 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 region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} * @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); + 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}/regions/{region}/subnetworks"; + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "subnetworks.insert". + * 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 @@ -205179,11 +220193,10 @@ public class Insert extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Subnetwork content) { + 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()) { @@ -205191,12 +220204,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -205280,27 +220287,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -205356,37 +220342,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of subnetworks available to the specified project. + * Lists the TargetGrpcProxies for a project in the given scope. * - * Create a request for the method "subnetworks.list". + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks"; + private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists the TargetGrpcProxies for a project in the given scope. * - * Create a request for the method "subnetworks.list". + * 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 @@ -205394,23 +220376,16 @@ public class List extends ComputeRequest * * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -205504,27 +220479,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -205789,77 +220743,300 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * 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. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * 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}"); + } + } + + @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.util.List views; + private java.lang.String requestId; - /** Defines the extra views returned back in the subnetwork resource. Supported values: + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - - WITH_UTILIZATION: Utilization data is included in the response. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.util.List getViews() { - return views; + public java.lang.String getRequestId() { + return requestId; } /** - * Defines the extra views returned back in the subnetwork resource. Supported values: + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * - WITH_UTILIZATION: Utilization data is included in the response. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setViews(java.util.List views) { - this.views = views; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + 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 an aggregated list of all usable subnetworks in the project. + * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the + * specified project. * - * Create a request for the method "subnetworks.listUsable". + * 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 ListUsable#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ - public ListUsable listUsable(java.lang.String project) throws java.io.IOException { - ListUsable result = new ListUsable(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListUsable extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/subnetworks/listUsable"; + private static final String REST_PATH = "projects/{project}/aggregated/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of all TargetHttpProxy resources, regional and global, available to the + * specified project. * - * Create a request for the method "subnetworks.listUsable". + * 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 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.

    + * 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. + * @param project Name of the project scoping 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); + 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(), @@ -205879,77 +221056,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public ListUsable setProject(java.lang.String 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 " + @@ -206090,11 +221267,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListUsable setFilter(java.lang.String filter) { + 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 @@ -206119,7 +221330,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -206163,7 +221374,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListUsable setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -206186,7 +221397,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -206218,174 +221429,155 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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/) + * 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.String serviceProject; + private java.lang.Long serviceProjectNumber; - /** 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/) + /** 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.String getServiceProject() { - return serviceProject; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * 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/) + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public ListUsable setServiceProject(java.lang.String serviceProject) { - this.serviceProject = serviceProject; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 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. + * Deletes the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.Subnetwork} + * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(SUBNETWORK_PATTERN.matcher(subnetwork).matches(), - "Parameter subnetwork must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -206399,7 +221591,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -206409,80 +221601,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. - */ + /** Name of the TargetHttpProxy resource to delete. */ @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; - } + private java.lang.String targetHttpProxy; - /** - * 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. + /** Name of the TargetHttpProxy resource to delete. */ - public Patch setDrainTimeoutSeconds(java.lang.Integer drainTimeoutSeconds) { - this.drainTimeoutSeconds = drainTimeoutSeconds; + 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; } @@ -206530,146 +221666,142 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified TargetHttpProxy resource. * - * Create a request for the method "subnetworks.setIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -206683,7 +221815,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -206693,107 +221825,74 @@ public SetIamPolicy setProject(java.lang.String 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. */ + /** Name of the TargetHttpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetHttpProxy; - /** Name or id of the resource for this request. + /** Name of the TargetHttpProxy resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the TargetHttpProxy resource to return. */ + public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.targetHttpProxy = targetHttpProxy; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Set whether VMs in this subnet can access Google services without assigning external IP addresses - * through Private Google Access. + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". + * 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 SetPrivateIpGoogleAccess#execute()} method to invoke the remote - * operation. + * 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 subnetwork Name of the Subnetwork resource. - * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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); + 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 SetPrivateIpGoogleAccess extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "subnetworks.setPrivateIpGoogleAccess". + * 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 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.

    + * 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 subnetwork Name of the Subnetwork resource. - * @param content the {@link com.google.api.services.compute.model.SubnetworksSetPrivateIpGoogleAccessRequest} + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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) { + 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()) { @@ -206801,78 +221900,66 @@ protected SetPrivateIpGoogleAccess(java.lang.String project, java.lang.String re "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public SetPrivateIpGoogleAccess set$Xgafv(java.lang.String $Xgafv) { - return (SetPrivateIpGoogleAccess) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetPrivateIpGoogleAccess setAccessToken(java.lang.String accessToken) { - return (SetPrivateIpGoogleAccess) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetPrivateIpGoogleAccess setAlt(java.lang.String alt) { - return (SetPrivateIpGoogleAccess) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetPrivateIpGoogleAccess setCallback(java.lang.String callback) { - return (SetPrivateIpGoogleAccess) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetPrivateIpGoogleAccess setFields(java.lang.String fields) { - return (SetPrivateIpGoogleAccess) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetPrivateIpGoogleAccess setKey(java.lang.String key) { - return (SetPrivateIpGoogleAccess) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetPrivateIpGoogleAccess setOauthToken(java.lang.String oauthToken) { - return (SetPrivateIpGoogleAccess) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetPrivateIpGoogleAccess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetPrivateIpGoogleAccess) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetPrivateIpGoogleAccess setQuotaUser(java.lang.String quotaUser) { - return (SetPrivateIpGoogleAccess) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetPrivateIpGoogleAccess setUploadType(java.lang.String uploadType) { - return (SetPrivateIpGoogleAccess) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetPrivateIpGoogleAccess setUploadProtocol(java.lang.String uploadProtocol) { - return (SetPrivateIpGoogleAccess) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetPrivateIpGoogleAccess setUserIp(java.lang.String userIp) { - return (SetPrivateIpGoogleAccess) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -206886,7 +221973,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetPrivateIpGoogleAccess setProject(java.lang.String project) { + 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 " + @@ -206896,48 +221983,6 @@ public SetPrivateIpGoogleAccess setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -206982,146 +222027,131 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetPrivateIpGoogleAccess set(String parameterName, Object value) { - return (SetPrivateIpGoogleAccess) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of TargetHttpProxy resources available to the specified project. * - * Create a request for the method "subnetworks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Retrieves the list of TargetHttpProxy resources available to the specified project. * - * Create a request for the method "subnetworks.testIamPermissions". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -207135,7 +222165,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -207145,416 +222175,395 @@ public TestIamPermissions setProject(java.lang.String 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. + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - /** - * 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(); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - /** - * The "targetGrpcProxies" collection of methods. - */ - public class TargetGrpcProxies { + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - /** - * 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; - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - public class Delete extends ComputeRequest { + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - 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}"); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Deletes the specified TargetGrpcProxy in the given scope + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "targetGrpcProxies.delete". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param targetGrpcProxy Name of the TargetGrpcProxy resource to delete. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } - - @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); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the TargetGrpcProxy resource to delete. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; + private java.lang.String pageToken; - /** Name of the TargetGrpcProxy resource to delete. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the specified TargetGrpcProxy resource in the given scope. + * 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 "targetGrpcProxies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 return. + * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @return the request */ - public Get get(java.lang.String project, java.lang.String targetGrpcProxy) throws java.io.IOException { - Get result = new Get(project, targetGrpcProxy); + 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 Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetGrpcProxy resource in the given scope. + * 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 "targetGrpcProxies.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 return. + * @param targetHttpProxy Name of the TargetHttpProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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); + 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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + 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_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207568,7 +222577,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -207578,74 +222587,127 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetGrpcProxy resource to return. */ + /** Name of the TargetHttpProxy resource to patch. */ @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; + 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. - /** Name of the TargetGrpcProxy resource to return. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that - * are included in the request. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "targetGrpcProxies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetUrlMap#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} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 Insert extends ComputeRequest { + public class SetUrlMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; + private static final String REST_PATH = "projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that - * are included in the request. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "targetGrpcProxies.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @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 Insert(java.lang.String project, com.google.api.services.compute.model.TargetGrpcProxy content) { + 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()) { @@ -207653,66 +222715,72 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207726,7 +222794,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -207736,6 +222804,27 @@ public Insert setProject(java.lang.String 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 @@ -207780,55 +222869,87 @@ public java.lang.String getRequestId() { * 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) { + public SetUrlMap setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 { + /** - * Lists the TargetGrpcProxies for a project in the given scope. + * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the + * specified project. * - * Create a request for the method "targetGrpcProxies.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies"; + private static final String REST_PATH = "projects/{project}/aggregated/targetHttpsProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the + * specified project. * - * Create a request for the method "targetGrpcProxies.list". + * 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 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.

    + * 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. + * @param project Name of the project scoping 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); + 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(), @@ -207848,77 +222969,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -208059,11 +223180,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -208088,7 +223243,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -208132,7 +223287,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -208155,7 +223310,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -208187,136 +223342,155 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified TargetHttpsProxy resource. * - * Create a request for the method "targetGrpcProxies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetGrpcProxy resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Deletes the specified TargetHttpsProxy resource. * - * Create a request for the method "targetGrpcProxies.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.TargetGrpcProxy} + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. * @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); + 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.targetGrpcProxy = com.google.api.client.util.Preconditions.checkNotNull(targetGrpcProxy, "Required parameter targetGrpcProxy must be specified."); + 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_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -208330,7 +223504,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -208340,24 +223514,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the TargetGrpcProxy resource to patch. */ + /** Name of the TargetHttpsProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetGrpcProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetGrpcProxy resource to patch. + /** Name of the TargetHttpsProxy resource to delete. */ - public java.lang.String getTargetGrpcProxy() { - return targetGrpcProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetGrpcProxy resource to patch. */ - public Patch setTargetGrpcProxy(java.lang.String targetGrpcProxy) { + /** Name of the TargetHttpsProxy resource to delete. */ + public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_GRPC_PROXY_PATTERN.matcher(targetGrpcProxy).matches(), - "Parameter targetGrpcProxy must conform to the pattern " + + 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.targetGrpcProxy = targetGrpcProxy; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -208405,87 +223579,416 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + 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 { - /** - * 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(); - } + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; - /** - * The "targetHttpProxies" collection of methods. - */ - public class TargetHttpProxies { + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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); + } + } /** - * 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`. + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "targetHttpProxies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Create a request for the method "targetHttpsProxies.insert". * - * 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 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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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.

    + * 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 Name of the project scoping this request. + * @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.TargetHttpProxyAggregatedList.class); + 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(), @@ -208505,77 +224008,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String 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 " + @@ -208716,45 +224219,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -208779,7 +224248,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -208823,7 +224292,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -208846,7 +224315,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -208878,155 +224347,136 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified TargetHttpProxy resource. + * 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 "targetHttpProxies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { - Delete result = new Delete(project, targetHttpProxy); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetHttpProxy resource. + * 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 "targetHttpProxies.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @param targetHttpsProxy Name of the TargetHttpsProxy resource to patch. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @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); + 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.targetHttpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpProxy, "Required parameter targetHttpProxy must be specified."); + 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_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209040,7 +224490,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -209050,24 +224500,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy resource to delete. */ + /** Name of the TargetHttpsProxy resource to patch. */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy resource to delete. + /** Name of the TargetHttpsProxy resource to patch. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetHttpProxy resource to delete. */ - public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** Name of the TargetHttpsProxy resource to patch. */ + public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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.targetHttpProxy = targetHttpProxy; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -209115,142 +224565,131 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified TargetHttpProxy resource. + * Changes the Certificate Map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetCertificateMap#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy resource to return. + * @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 Get get(java.lang.String project, java.lang.String targetHttpProxy) throws java.io.IOException { - Get result = new Get(project, targetHttpProxy); + 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 Get extends ComputeRequest { + public class SetCertificateMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Changes the Certificate Map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @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 Get(java.lang.String project, java.lang.String targetHttpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxy.class); + 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.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { + return (SetCertificateMap) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetCertificateMap setAccessToken(java.lang.String accessToken) { + return (SetCertificateMap) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetCertificateMap setAlt(java.lang.String alt) { + return (SetCertificateMap) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetCertificateMap setCallback(java.lang.String callback) { + return (SetCertificateMap) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetCertificateMap setFields(java.lang.String fields) { + return (SetCertificateMap) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetCertificateMap setKey(java.lang.String key) { + return (SetCertificateMap) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetCertificateMap setOauthToken(java.lang.String oauthToken) { + return (SetCertificateMap) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCertificateMap) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { + return (SetCertificateMap) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetCertificateMap setUploadType(java.lang.String uploadType) { + return (SetCertificateMap) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetCertificateMap setUserIp(java.lang.String userIp) { + return (SetCertificateMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209264,7 +224703,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -209274,74 +224713,130 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy resource to return. */ + /** + * 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 targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy resource to return. + /** 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 getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** 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; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetCertificateMap set(String parameterName, Object value) { + return (SetCertificateMap) super.set(parameterName, value); } } /** - * Creates a TargetHttpProxy resource in the specified project using the data included in the - * request. + * Sets the QUIC override policy for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetQuicOverride#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} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 Insert extends ComputeRequest { + public class SetQuicOverride extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Sets the QUIC override policy for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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 Insert(java.lang.String project, com.google.api.services.compute.model.TargetHttpProxy content) { + 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()) { @@ -209349,66 +224844,67 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetQuicOverride set$Xgafv(java.lang.String $Xgafv) { + return (SetQuicOverride) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetQuicOverride setAccessToken(java.lang.String accessToken) { + return (SetQuicOverride) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetQuicOverride setAlt(java.lang.String alt) { + return (SetQuicOverride) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetQuicOverride setCallback(java.lang.String callback) { + return (SetQuicOverride) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetQuicOverride setFields(java.lang.String fields) { + return (SetQuicOverride) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetQuicOverride setKey(java.lang.String key) { + return (SetQuicOverride) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetQuicOverride setOauthToken(java.lang.String oauthToken) { + return (SetQuicOverride) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetQuicOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetQuicOverride) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetQuicOverride setQuotaUser(java.lang.String quotaUser) { + return (SetQuicOverride) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetQuicOverride setUploadType(java.lang.String uploadType) { + return (SetQuicOverride) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetQuicOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (SetQuicOverride) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetQuicOverride setUserIp(java.lang.String userIp) { + return (SetQuicOverride) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209422,7 +224918,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -209432,6 +224928,29 @@ public Insert setProject(java.lang.String 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 @@ -209476,131 +224995,137 @@ public java.lang.String getRequestId() { * 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) { + public SetQuicOverride setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetQuicOverride set(String parameterName, Object value) { + return (SetQuicOverride) super.set(parameterName, value); } } /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class SetSslCertificates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves the list of TargetHttpProxy resources available to the specified project. + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpProxyList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209614,7 +225139,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -209625,394 +225150,203 @@ public List setProject(java.lang.String project) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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`) + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String targetHttpsProxy; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public SetSslCertificates setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) 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. + * 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 "targetHttpProxies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSslPolicy#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class SetSslPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * 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 "targetHttpProxies.patch". + * 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 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.

    + * 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 targetHttpProxy Name of the TargetHttpProxy resource to patch. - * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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 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); + 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.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}"); - } + this.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSslPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetSslPolicy setAccessToken(java.lang.String accessToken) { + return (SetSslPolicy) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetSslPolicy setAlt(java.lang.String alt) { + return (SetSslPolicy) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetSslPolicy setCallback(java.lang.String callback) { + return (SetSslPolicy) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetSslPolicy setFields(java.lang.String fields) { + return (SetSslPolicy) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetSslPolicy setKey(java.lang.String key) { + return (SetSslPolicy) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetSslPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSslPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSslPolicy) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetSslPolicy setUploadType(java.lang.String uploadType) { + return (SetSslPolicy) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetSslPolicy setUserIp(java.lang.String userIp) { + return (SetSslPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -210026,7 +225360,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -210036,24 +225370,26 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy resource to patch. */ + /** + * 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 targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy resource to patch. + /** 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 getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** 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; + /** + * 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; } @@ -210101,49 +225437,50 @@ public java.lang.String getRequestId() { * 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) { + public SetSslPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public SetSslPolicy set(String parameterName, Object value) { + return (SetSslPolicy) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpProxy. + * Changes the URL map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.setUrlMap". + * 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 targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @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 targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) throws java.io.IOException { - SetUrlMap result = new SetUrlMap(project, targetHttpProxy, content); + 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}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetHttpProxy. + * Changes the URL map for TargetHttpsProxy. * - * Create a request for the method "targetHttpProxies.setUrlMap". + * 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.

    @@ -210152,11 +225489,12 @@ public class SetUrlMap extends ComputeRequest * * @param project Project ID for this request. - * @param targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @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 targetHttpProxy, com.google.api.services.compute.model.UrlMapReference content) { + 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()) { @@ -210164,10 +225502,10 @@ protected SetUrlMap(java.lang.String project, java.lang.String targetHttpProxy, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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}"); } } @@ -210253,24 +225591,28 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpProxy to set a URL map for. */ + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String targetHttpsProxy; - /** Name of the TargetHttpProxy to set a URL map for. + /** Name of the TargetHttpsProxy resource whose URL map is to be set. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the TargetHttpProxy to set a URL map for. */ - public SetUrlMap setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** + * 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_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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.targetHttpProxy = targetHttpProxy; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -210332,38 +225674,37 @@ public SetUrlMap set(String parameterName, Object value) { } /** - * An accessor for creating requests from the TargetHttpsProxies collection. + * An accessor for creating requests from the TargetInstances collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.TargetHttpsProxies.List request = compute.targetHttpsProxies().list(parameters ...)}
    +   *   {@code Compute.TargetInstances.List request = compute.targetInstances().list(parameters ...)}
        * 
    * * @return the resource collection */ - public TargetHttpsProxies targetHttpsProxies() { - return new TargetHttpsProxies(); + public TargetInstances targetInstances() { + return new TargetInstances(); } /** - * The "targetHttpsProxies" collection of methods. + * The "targetInstances" collection of methods. */ - public class TargetHttpsProxies { + public class TargetInstances { /** - * Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the - * specified project. + * 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 "targetHttpsProxies.aggregatedList". + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -210372,21 +225713,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/aggregated/targetInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "targetHttpsProxies.aggregatedList". + * 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. @@ -210394,11 +225734,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @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.TargetHttpsProxyAggregatedList.class); + 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(), @@ -210477,17 +225817,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** 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(), @@ -210825,37 +226165,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified TargetHttpsProxy resource. + * Deletes the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.delete". + * 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 targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @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 targetHttpsProxy) throws java.io.IOException { - Delete result = new Delete(project, targetHttpsProxy); + 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}/global/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetHttpsProxy resource. + * Deletes the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.delete". + * 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 @@ -210863,10 +226207,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @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 targetHttpsProxy) { + 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()) { @@ -210874,10 +226219,16 @@ protected Delete(java.lang.String project, java.lang.String targetHttpsProxy) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -210963,24 +226314,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpsProxy resource to delete. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String zone; - /** Name of the TargetHttpsProxy resource to delete. + /** Name of the zone scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getZone() { + return zone; } - /** Name of the TargetHttpsProxy resource to delete. */ - public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** Name of the zone scoping this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.targetHttpsProxy = targetHttpsProxy; + this.targetInstance = targetInstance; return this; } @@ -211039,37 +226411,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetHttpsProxy resource. + * Returns the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.get". + * 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 targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @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 targetHttpsProxy) throws java.io.IOException { - Get result = new Get(project, targetHttpsProxy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetHttpsProxy resource. + * Returns the specified TargetInstance resource. * - * Create a request for the method "targetHttpsProxies.get". + * 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 @@ -211077,21 +226453,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @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 targetHttpsProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.class); + 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -211187,24 +226570,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetHttpsProxy resource to return. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String zone; - /** Name of the TargetHttpsProxy resource to return. + /** Name of the zone scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getZone() { + return zone; } - /** Name of the TargetHttpsProxy resource to return. */ - public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** Name of the zone scoping this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.targetHttpsProxy = targetHttpsProxy; + this.targetInstance = targetInstance; return this; } @@ -211214,36 +226618,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetHttpsProxy resource in the specified project using the data included in the - * request. + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. * - * Create a request for the method "targetHttpsProxies.insert". + * 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 content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @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, com.google.api.services.compute.model.TargetHttpsProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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}/global/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 TargetHttpsProxy resource in the specified project using the data included in the - * request. + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. * - * Create a request for the method "targetHttpsProxies.insert". + * 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 @@ -211251,10 +226659,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @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, com.google.api.services.compute.model.TargetHttpsProxy content) { + 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()) { @@ -211262,6 +226671,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -211345,6 +226760,27 @@ public Insert setProject(java.lang.String 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 @@ -211400,33 +226836,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project. + * Retrieves a list of TargetInstance resources available to the specified project and zone. * - * Create a request for the method "targetHttpsProxies.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 TargetHttpsProxy resources available to the specified project. + * Retrieves a list of TargetInstance resources available to the specified project and zone. * - * Create a request for the method "targetHttpsProxies.list". + * 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 @@ -211434,16 +226874,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyList.class); + 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])?"); + } } @Override @@ -211537,6 +226984,27 @@ public List setProject(java.lang.String 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 @@ -211807,270 +227275,59 @@ public List set(String parameterName, Object 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. + * 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 "targetHttpsProxies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSecurityPolicy#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Changes the Certificate Map for TargetHttpsProxy. + * 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 "targetHttpsProxies.setCertificateMap". + * 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 SetCertificateMap#execute()} method to invoke the remote operation. - *

    {@link SetCertificateMap#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * 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 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} + * @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 SetCertificateMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.TargetHttpsProxiesSetCertificateMapRequest content) { + 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()) { @@ -212078,67 +227335,73 @@ protected SetCertificateMap(java.lang.String project, java.lang.String targetHtt "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { - return (SetCertificateMap) super.set$Xgafv($Xgafv); + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public SetCertificateMap setAccessToken(java.lang.String accessToken) { - return (SetCertificateMap) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public SetCertificateMap setAlt(java.lang.String alt) { - return (SetCertificateMap) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public SetCertificateMap setCallback(java.lang.String callback) { - return (SetCertificateMap) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public SetCertificateMap setFields(java.lang.String fields) { - return (SetCertificateMap) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public SetCertificateMap setKey(java.lang.String key) { - return (SetCertificateMap) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public SetCertificateMap setOauthToken(java.lang.String oauthToken) { - return (SetCertificateMap) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCertificateMap) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { - return (SetCertificateMap) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public SetCertificateMap setUploadType(java.lang.String uploadType) { - return (SetCertificateMap) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetCertificateMap setUserIp(java.lang.String userIp) { - return (SetCertificateMap) super.setUserIp(userIp); + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212152,7 +227415,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetCertificateMap setProject(java.lang.String project) { + 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 " + @@ -212162,241 +227425,47 @@ public SetCertificateMap setProject(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String zone; - /** Project ID for this request. + /** Name of the zone scoping this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getZone() { + return zone; } - /** Project ID for this request. */ - public SetQuicOverride setProject(java.lang.String project) { + /** Name of the zone scoping this request. */ + public SetSecurityPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.project = project; + this.zone = zone; return this; } /** - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should - * conform to RFC1035. + * 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 targetHttpsProxy; + private java.lang.String targetInstance; - /** Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should conform - to RFC1035. + /** Name of the TargetInstance resource to which the security policy should be set. The name should + conform to RFC1035. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getTargetInstance() { + return targetInstance; } /** - * Name of the TargetHttpsProxy resource to set the QUIC override policy for. The name should - * conform to RFC1035. + * Name of the TargetInstance resource to which the security policy should be set. The name + * should conform to RFC1035. */ - public SetQuicOverride setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; + public SetSecurityPolicy setTargetInstance(java.lang.String targetInstance) { + this.targetInstance = targetInstance; return this; } @@ -212444,137 +227513,146 @@ public java.lang.String getRequestId() { * 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) { + public SetSecurityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetQuicOverride set(String parameterName, Object value) { - return (SetQuicOverride) super.set(parameterName, value); + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); } } /** - * Replaces SslCertificates for TargetHttpsProxy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetHttpsProxies.setSslCertificates". + * 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 SetSslCertificates#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 SetSslCertificates extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Replaces SslCertificates for TargetHttpsProxy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetHttpsProxies.setSslCertificates". + * 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 SetSslCertificates#execute()} method to invoke the remote - * operation.

    {@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A + * 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 targetHttpsProxy Name of the TargetHttpsProxy resource to set an - SslCertificates resource for. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxiesSetSslCertificatesRequest} + * @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 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); + 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.targetHttpsProxy = com.google.api.client.util.Preconditions.checkNotNull(targetHttpsProxy, "Required parameter targetHttpsProxy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212588,7 +227666,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSslCertificates setProject(java.lang.String project) { + 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 " + @@ -212598,136 +227676,127 @@ public SetSslCertificates setProject(java.lang.String project) { return this; } - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String zone; - /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + /** The name of the zone for this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getZone() { + return zone; } - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.targetHttpsProxy = targetHttpsProxy; + 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); + 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 { + /** - * 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. + * Adds health check URLs to a target pool. * - * Create a request for the method "targetHttpsProxies.setSslPolicy". + * 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 SetSslPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link AddHealthCheck#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} + * @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 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); + 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 SetSslPolicy extends ComputeRequest { + public class AddHealthCheck extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Adds health check URLs to a target pool. * - * Create a request for the method "targetHttpsProxies.setSslPolicy". + * 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 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.

    + * 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 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} + * @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 SetSslPolicy(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.SslPolicyReference content) { + 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()) { @@ -212735,67 +227804,78 @@ protected SetSslPolicy(java.lang.String project, java.lang.String targetHttpsPro "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSslPolicy) super.set$Xgafv($Xgafv); + public AddHealthCheck set$Xgafv(java.lang.String $Xgafv) { + return (AddHealthCheck) super.set$Xgafv($Xgafv); } @Override - public SetSslPolicy setAccessToken(java.lang.String accessToken) { - return (SetSslPolicy) super.setAccessToken(accessToken); + public AddHealthCheck setAccessToken(java.lang.String accessToken) { + return (AddHealthCheck) super.setAccessToken(accessToken); } @Override - public SetSslPolicy setAlt(java.lang.String alt) { - return (SetSslPolicy) super.setAlt(alt); + public AddHealthCheck setAlt(java.lang.String alt) { + return (AddHealthCheck) super.setAlt(alt); } @Override - public SetSslPolicy setCallback(java.lang.String callback) { - return (SetSslPolicy) super.setCallback(callback); + public AddHealthCheck setCallback(java.lang.String callback) { + return (AddHealthCheck) super.setCallback(callback); } @Override - public SetSslPolicy setFields(java.lang.String fields) { - return (SetSslPolicy) super.setFields(fields); + public AddHealthCheck setFields(java.lang.String fields) { + return (AddHealthCheck) super.setFields(fields); } @Override - public SetSslPolicy setKey(java.lang.String key) { - return (SetSslPolicy) super.setKey(key); + public AddHealthCheck setKey(java.lang.String key) { + return (AddHealthCheck) super.setKey(key); } @Override - public SetSslPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSslPolicy) super.setOauthToken(oauthToken); + public AddHealthCheck setOauthToken(java.lang.String oauthToken) { + return (AddHealthCheck) super.setOauthToken(oauthToken); } @Override - public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslPolicy) super.setPrettyPrint(prettyPrint); + public AddHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddHealthCheck) super.setPrettyPrint(prettyPrint); } @Override - public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSslPolicy) super.setQuotaUser(quotaUser); + public AddHealthCheck setQuotaUser(java.lang.String quotaUser) { + return (AddHealthCheck) super.setQuotaUser(quotaUser); } @Override - public SetSslPolicy setUploadType(java.lang.String uploadType) { - return (SetSslPolicy) super.setUploadType(uploadType); + public AddHealthCheck setUploadType(java.lang.String uploadType) { + return (AddHealthCheck) super.setUploadType(uploadType); } @Override - public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); + public AddHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { + return (AddHealthCheck) super.setUploadProtocol(uploadProtocol); } @Override - public SetSslPolicy setUserIp(java.lang.String userIp) { - return (SetSslPolicy) super.setUserIp(userIp); + public AddHealthCheck setUserIp(java.lang.String userIp) { + return (AddHealthCheck) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212809,7 +227889,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSslPolicy setProject(java.lang.String project) { + 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 " + @@ -212819,26 +227899,45 @@ public SetSslPolicy setProject(java.lang.String 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String region; - /** Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - characters long, and comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getRegion() { + return region; } - /** - * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The name must be 1-63 - * characters long, and comply with RFC1035. + /** 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 SetSslPolicy setTargetHttpsProxy(java.lang.String targetHttpsProxy) { - this.targetHttpsProxy = targetHttpsProxy; + 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; } @@ -212886,64 +227985,67 @@ public java.lang.String getRequestId() { * 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) { + public AddHealthCheck setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSslPolicy set(String parameterName, Object value) { - return (SetSslPolicy) super.set(parameterName, value); + public AddHealthCheck set(String parameterName, Object value) { + return (AddHealthCheck) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpsProxy. + * Adds an instance to a target pool. * - * Create a request for the method "targetHttpsProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation. + * parameters, call the {@link AddInstance#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} + * @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 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); + 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 SetUrlMap extends ComputeRequest { + public class AddInstance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 the URL map for TargetHttpsProxy. + * Adds an instance to a target pool. * - * Create a request for the method "targetHttpsProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation.

    + * parameters, call the {@link AddInstance#execute()} method to invoke the remote operation.

    * {@link - * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 targetHttpsProxy Name of the TargetHttpsProxy resource whose URL map is - to be set. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @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 SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) { + 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()) { @@ -212951,72 +228053,78 @@ protected SetUrlMap(java.lang.String project, java.lang.String targetHttpsProxy, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); + public AddInstance set$Xgafv(java.lang.String $Xgafv) { + return (AddInstance) super.set$Xgafv($Xgafv); } @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); + public AddInstance setAccessToken(java.lang.String accessToken) { + return (AddInstance) super.setAccessToken(accessToken); } @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); + public AddInstance setAlt(java.lang.String alt) { + return (AddInstance) super.setAlt(alt); } @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); + public AddInstance setCallback(java.lang.String callback) { + return (AddInstance) super.setCallback(callback); } @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); + public AddInstance setFields(java.lang.String fields) { + return (AddInstance) super.setFields(fields); } @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); + public AddInstance setKey(java.lang.String key) { + return (AddInstance) super.setKey(key); } @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); + public AddInstance setOauthToken(java.lang.String oauthToken) { + return (AddInstance) super.setOauthToken(oauthToken); } @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); + public AddInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddInstance) super.setPrettyPrint(prettyPrint); } @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); + public AddInstance setQuotaUser(java.lang.String quotaUser) { + return (AddInstance) super.setQuotaUser(quotaUser); } @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); + public AddInstance setUploadType(java.lang.String uploadType) { + return (AddInstance) super.setUploadType(uploadType); } @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + public AddInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (AddInstance) super.setUploadProtocol(uploadProtocol); } @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) super.setUserIp(userIp); + public AddInstance setUserIp(java.lang.String userIp) { + return (AddInstance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213030,7 +228138,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUrlMap setProject(java.lang.String project) { + 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 " + @@ -213040,28 +228148,45 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** - * Name of the TargetHttpsProxy resource whose URL map is to be set. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String region; - /** Name of the TargetHttpsProxy resource whose URL map is to be set. + /** Name of the region scoping this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getRegion() { + return region; } - /** - * Name of the TargetHttpsProxy resource whose URL map is to be set. + /** 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 SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + 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_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.targetHttpsProxy = targetHttpsProxy; + this.targetPool = targetPool; return this; } @@ -213109,46 +228234,23 @@ public java.lang.String getRequestId() { * 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) { + public AddInstance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); + public AddInstance set(String parameterName, Object value) { + return (AddInstance) 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. + * 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 "targetInstances.aggregatedList". + * 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. @@ -213162,20 +228264,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetInstances"; + private static final String REST_PATH = "projects/{project}/aggregated/targetPools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "targetInstances.aggregatedList". + * 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. @@ -213187,7 +228289,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_INSTANCE_PATTERN = + 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 TargetInstance resource. + * Deletes the specified target pool. * - * Create a request for the method "targetInstances.delete". + * 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 @@ -213656,11 +228758,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 zone, java.lang.String targetInstance) { + 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()) { @@ -213668,16 +228770,16 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + 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}"); } } @@ -213763,45 +228865,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public Delete setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the TargetInstance resource to delete. */ + /** Name of the TargetPool resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetInstance; + private java.lang.String targetPool; - /** Name of the TargetInstance resource to delete. + /** Name of the TargetPool resource to delete. */ - public java.lang.String getTargetInstance() { - return targetInstance; + public java.lang.String getTargetPool() { + return targetPool; } - /** Name of the TargetInstance resource to delete. */ - public Delete setTargetInstance(java.lang.String targetInstance) { + /** Name of the TargetPool resource to delete. */ + public Delete setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + 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.targetInstance = targetInstance; + this.targetPool = targetPool; return this; } @@ -213860,41 +228962,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetInstance resource. + * Returns the specified target pool. * - * Create a request for the method "targetInstances.get". + * 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 zone Name of the zone scoping this request. - * @param targetInstance Name of the TargetInstance resource to return. + * @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 zone, java.lang.String targetInstance) throws java.io.IOException { - Get result = new Get(project, zone, targetInstance); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_INSTANCE_PATTERN = + 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 TargetInstance resource. + * Returns the specified target pool. * - * Create a request for the method "targetInstances.get". + * 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 @@ -213902,28 +229004,28 @@ public class Get extends ComputeRequest * * @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. + * @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 zone, java.lang.String targetInstance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetInstance.class); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + 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}"); } } @@ -214019,45 +229121,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the TargetInstance resource to return. */ + /** Name of the TargetPool resource to return. */ @com.google.api.client.util.Key - private java.lang.String targetInstance; + private java.lang.String targetPool; - /** Name of the TargetInstance resource to return. + /** Name of the TargetPool resource to return. */ - public java.lang.String getTargetInstance() { - return targetInstance; + public java.lang.String getTargetPool() { + return targetPool; } - /** Name of the TargetInstance resource to return. */ - public Get setTargetInstance(java.lang.String targetInstance) { + /** Name of the TargetPool resource to return. */ + public Get setTargetPool(java.lang.String targetPool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_INSTANCE_PATTERN.matcher(targetInstance).matches(), - "Parameter targetInstance must conform to the pattern " + + 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.targetInstance = targetInstance; + this.targetPool = targetPool; return this; } @@ -214067,349 +229169,137 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetInstance resource in the specified project and zone using the data included in - * the request. + * 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 "targetInstances.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetInstance} + * @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 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); + 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 Insert extends ComputeRequest { + public class GetHealth extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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}"); + /** - * Creates a TargetInstance resource in the specified project and zone using the data included in - * the request. + * 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 "targetInstances.insert". + * 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 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.

    + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetInstance} + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public 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) { + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetHealth setUserIp(java.lang.String userIp) { + return (GetHealth) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214423,7 +229313,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -214433,350 +229323,99 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public List setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public GetHealth setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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; + this.region = region; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the TargetPool resource to which the queried instance belongs. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String targetPool; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the TargetPool resource to which the queried instance belongs. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getTargetPool() { + return targetPool; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified target instance. For more - * information, seeGoogle Cloud Armor Overview + * Creates a target pool in the specified project and region using the data included in the request. * - * Create a request for the method "targetInstances.setSecurityPolicy". + * 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 SetSecurityPolicy#execute()} method to invoke the remote operation. + * 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 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetPool} * @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); + 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 SetSecurityPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + 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 instance. For more - * information, seeGoogle Cloud Armor Overview + * Creates a target pool in the specified project and region using the data included in the + * request. * - * Create a request for the method "targetInstances.setSecurityPolicy". + * 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 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.

    + * 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 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetPool} * @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) { + 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()) { @@ -214784,73 +229423,72 @@ protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, jav "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); } @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214864,7 +229502,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSecurityPolicy setProject(java.lang.String project) { + 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 " + @@ -214874,47 +229512,24 @@ public SetSecurityPolicy setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone scoping this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone scoping this request. */ - public SetSecurityPolicy setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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; + this.region = region; return this; } @@ -214962,146 +229577,142 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves a list of target pools available to the specified project and region. * - * Create a request for the method "targetInstances.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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. + * Retrieves a list of target pools available to the specified project and region. * - * Create a request for the method "targetInstances.testIamPermissions". + * 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 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.

    + * 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. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + 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 TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215115,7 +229726,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -215125,99 +229736,319 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - } - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + } - /** - * 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(); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** - * The "targetPools" collection of methods. - */ - public class TargetPools { + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Adds health check URLs to a target pool. + * Removes health check URL from a target pool. * - * Create a request for the method "targetPools.addHealthCheck". + * 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 AddHealthCheck#execute()} method to invoke the remote operation. + * 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 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} + * @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 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); + 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 AddHealthCheck extends ComputeRequest { + public class RemoveHealthCheck extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -215229,23 +230060,23 @@ public class AddHealthCheck extends ComputeRequest {@link AddHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the + * 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 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} + * @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 AddHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddHealthCheckRequest content) { + 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()) { @@ -215268,63 +230099,63 @@ protected AddHealthCheck(java.lang.String project, java.lang.String region, java } @Override - public AddHealthCheck set$Xgafv(java.lang.String $Xgafv) { - return (AddHealthCheck) super.set$Xgafv($Xgafv); + public RemoveHealthCheck set$Xgafv(java.lang.String $Xgafv) { + return (RemoveHealthCheck) super.set$Xgafv($Xgafv); } @Override - public AddHealthCheck setAccessToken(java.lang.String accessToken) { - return (AddHealthCheck) super.setAccessToken(accessToken); + public RemoveHealthCheck setAccessToken(java.lang.String accessToken) { + return (RemoveHealthCheck) super.setAccessToken(accessToken); } @Override - public AddHealthCheck setAlt(java.lang.String alt) { - return (AddHealthCheck) super.setAlt(alt); + public RemoveHealthCheck setAlt(java.lang.String alt) { + return (RemoveHealthCheck) super.setAlt(alt); } @Override - public AddHealthCheck setCallback(java.lang.String callback) { - return (AddHealthCheck) super.setCallback(callback); + public RemoveHealthCheck setCallback(java.lang.String callback) { + return (RemoveHealthCheck) super.setCallback(callback); } @Override - public AddHealthCheck setFields(java.lang.String fields) { - return (AddHealthCheck) super.setFields(fields); + public RemoveHealthCheck setFields(java.lang.String fields) { + return (RemoveHealthCheck) super.setFields(fields); } @Override - public AddHealthCheck setKey(java.lang.String key) { - return (AddHealthCheck) super.setKey(key); + public RemoveHealthCheck setKey(java.lang.String key) { + return (RemoveHealthCheck) super.setKey(key); } @Override - public AddHealthCheck setOauthToken(java.lang.String oauthToken) { - return (AddHealthCheck) super.setOauthToken(oauthToken); + public RemoveHealthCheck setOauthToken(java.lang.String oauthToken) { + return (RemoveHealthCheck) super.setOauthToken(oauthToken); } @Override - public AddHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddHealthCheck) super.setPrettyPrint(prettyPrint); + public RemoveHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveHealthCheck) super.setPrettyPrint(prettyPrint); } @Override - public AddHealthCheck setQuotaUser(java.lang.String quotaUser) { - return (AddHealthCheck) super.setQuotaUser(quotaUser); + public RemoveHealthCheck setQuotaUser(java.lang.String quotaUser) { + return (RemoveHealthCheck) super.setQuotaUser(quotaUser); } @Override - public AddHealthCheck setUploadType(java.lang.String uploadType) { - return (AddHealthCheck) super.setUploadType(uploadType); + public RemoveHealthCheck setUploadType(java.lang.String uploadType) { + return (RemoveHealthCheck) super.setUploadType(uploadType); } @Override - public AddHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { - return (AddHealthCheck) super.setUploadProtocol(uploadProtocol); + public RemoveHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveHealthCheck) super.setUploadProtocol(uploadProtocol); } @Override - public AddHealthCheck setUserIp(java.lang.String userIp) { - return (AddHealthCheck) super.setUserIp(userIp); + public RemoveHealthCheck setUserIp(java.lang.String userIp) { + return (RemoveHealthCheck) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215338,7 +230169,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddHealthCheck setProject(java.lang.String project) { + 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 " + @@ -215348,18 +230179,18 @@ public AddHealthCheck setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public AddHealthCheck setRegion(java.lang.String 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 " + @@ -215369,18 +230200,18 @@ public AddHealthCheck setRegion(java.lang.String region) { return this; } - /** Name of the target pool to add a health check to. */ + /** 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 add a health check to. + /** Name of the target pool to remove health checks from. */ 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) { + /** 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 " + @@ -215434,39 +230265,39 @@ public java.lang.String getRequestId() { * 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) { + public RemoveHealthCheck setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddHealthCheck set(String parameterName, Object value) { - return (AddHealthCheck) super.set(parameterName, value); + public RemoveHealthCheck set(String parameterName, Object value) { + return (RemoveHealthCheck) super.set(parameterName, value); } } /** - * Adds an instance to a target pool. + * Removes instance URL from a target pool. * - * Create a request for the method "targetPools.addInstance". + * 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 AddInstance#execute()} method to invoke the remote operation. + * 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 add instances to. - * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} + * @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 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); + 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 AddInstance extends ComputeRequest { + public class RemoveInstance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -215478,23 +230309,23 @@ public class AddInstance extends ComputeRequest - * {@link - * AddInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 add instances to. - * @param content the {@link com.google.api.services.compute.model.TargetPoolsAddInstanceRequest} + * @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 AddInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsAddInstanceRequest content) { + 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()) { @@ -215517,63 +230348,63 @@ protected AddInstance(java.lang.String project, java.lang.String region, java.la } @Override - public AddInstance set$Xgafv(java.lang.String $Xgafv) { - return (AddInstance) super.set$Xgafv($Xgafv); + public RemoveInstance set$Xgafv(java.lang.String $Xgafv) { + return (RemoveInstance) super.set$Xgafv($Xgafv); } @Override - public AddInstance setAccessToken(java.lang.String accessToken) { - return (AddInstance) super.setAccessToken(accessToken); + public RemoveInstance setAccessToken(java.lang.String accessToken) { + return (RemoveInstance) super.setAccessToken(accessToken); } @Override - public AddInstance setAlt(java.lang.String alt) { - return (AddInstance) super.setAlt(alt); + public RemoveInstance setAlt(java.lang.String alt) { + return (RemoveInstance) super.setAlt(alt); } @Override - public AddInstance setCallback(java.lang.String callback) { - return (AddInstance) super.setCallback(callback); + public RemoveInstance setCallback(java.lang.String callback) { + return (RemoveInstance) super.setCallback(callback); } @Override - public AddInstance setFields(java.lang.String fields) { - return (AddInstance) super.setFields(fields); + public RemoveInstance setFields(java.lang.String fields) { + return (RemoveInstance) super.setFields(fields); } @Override - public AddInstance setKey(java.lang.String key) { - return (AddInstance) super.setKey(key); + public RemoveInstance setKey(java.lang.String key) { + return (RemoveInstance) super.setKey(key); } @Override - public AddInstance setOauthToken(java.lang.String oauthToken) { - return (AddInstance) super.setOauthToken(oauthToken); + public RemoveInstance setOauthToken(java.lang.String oauthToken) { + return (RemoveInstance) super.setOauthToken(oauthToken); } @Override - public AddInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddInstance) super.setPrettyPrint(prettyPrint); + public RemoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveInstance) super.setPrettyPrint(prettyPrint); } @Override - public AddInstance setQuotaUser(java.lang.String quotaUser) { - return (AddInstance) super.setQuotaUser(quotaUser); + public RemoveInstance setQuotaUser(java.lang.String quotaUser) { + return (RemoveInstance) super.setQuotaUser(quotaUser); } @Override - public AddInstance setUploadType(java.lang.String uploadType) { - return (AddInstance) super.setUploadType(uploadType); + public RemoveInstance setUploadType(java.lang.String uploadType) { + return (RemoveInstance) super.setUploadType(uploadType); } @Override - public AddInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (AddInstance) super.setUploadProtocol(uploadProtocol); + public RemoveInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveInstance) super.setUploadProtocol(uploadProtocol); } @Override - public AddInstance setUserIp(java.lang.String userIp) { - return (AddInstance) super.setUserIp(userIp); + public RemoveInstance setUserIp(java.lang.String userIp) { + return (RemoveInstance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215587,7 +230418,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddInstance setProject(java.lang.String project) { + 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 " + @@ -215608,7 +230439,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public AddInstance setRegion(java.lang.String region) { + 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 " + @@ -215618,18 +230449,18 @@ public AddInstance setRegion(java.lang.String region) { return this; } - /** Name of the TargetPool resource to add instances to. */ + /** 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 add instances to. + /** Name of the TargetPool resource to remove instances from. */ public java.lang.String getTargetPool() { return targetPool; } - /** Name of the TargetPool resource to add instances to. */ - public AddInstance setTargetPool(java.lang.String 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 " + @@ -215683,138 +230514,146 @@ public java.lang.String getRequestId() { * 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) { + public RemoveInstance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddInstance set(String parameterName, Object value) { - return (AddInstance) super.set(parameterName, value); + public RemoveInstance set(String parameterName, Object value) { + return (RemoveInstance) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of target pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Changes a backup target pool's configurations. * - * Create a request for the method "targetPools.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class SetBackup extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetPools"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Retrieves an aggregated list of target pools. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Changes a backup target pool's configurations. * - * Create a request for the method "targetPools.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetPoolAggregatedList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetBackup set$Xgafv(java.lang.String $Xgafv) { + return (SetBackup) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public SetBackup setAccessToken(java.lang.String accessToken) { + return (SetBackup) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public SetBackup setAlt(java.lang.String alt) { + return (SetBackup) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public SetBackup setCallback(java.lang.String callback) { + return (SetBackup) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public SetBackup setFields(java.lang.String fields) { + return (SetBackup) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public SetBackup setKey(java.lang.String key) { + return (SetBackup) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public SetBackup setOauthToken(java.lang.String oauthToken) { + return (SetBackup) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public SetBackup setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetBackup) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public SetBackup setQuotaUser(java.lang.String quotaUser) { + return (SetBackup) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public SetBackup setUploadType(java.lang.String uploadType) { + return (SetBackup) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public SetBackup setUploadProtocol(java.lang.String uploadProtocol) { + return (SetBackup) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public SetBackup setUserIp(java.lang.String userIp) { + return (SetBackup) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215828,7 +230667,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -215838,354 +230677,144 @@ public AggregatedList setProject(java.lang.String 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String region; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the region scoping this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRegion() { + return region; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + /** 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; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ + /** Name of the TargetPool resource to set a backup pool for. */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String targetPool; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. + /** Name of the TargetPool resource to set a backup pool for. */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getTargetPool() { + return targetPool; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + /** 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; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** New failoverRatio value for the target pool. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Float failoverRatio; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** New failoverRatio value for the target pool. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Float getFailoverRatio() { + return failoverRatio; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** New failoverRatio value for the target pool. */ + public SetBackup setFailoverRatio(java.lang.Float failoverRatio) { + this.failoverRatio = failoverRatio; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public SetBackup setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public SetBackup set(String parameterName, Object value) { + return (SetBackup) super.set(parameterName, value); } } /** - * Deletes the specified target pool. + * 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.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216193,26 +230822,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 delete. + * @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 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); + 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(), @@ -216226,71 +230857,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "[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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216304,7 +230930,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -216325,7 +230951,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -216335,23 +230961,25 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the TargetPool resource to delete. */ + /** + * 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 delete. + /** 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 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}"); - } + /** + * 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; } @@ -216400,38 +231028,39 @@ public java.lang.String getRequestId() { * 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) { + public SetSecurityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); } } /** - * Returns the specified target pool. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "targetPools.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216439,26 +231068,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param targetPool Name of the TargetPool resource to return. + * @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 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); + 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(), @@ -216471,82 +231102,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216560,7 +231181,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -216570,18 +231191,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -216591,164 +231212,171 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the TargetPool resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String resource; - /** Name of the TargetPool resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getResource() { + return resource; } - /** Name of the TargetPool resource to return. */ - public Get setTargetPool(java.lang.String targetPool) { + /** 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(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetPool = targetPool; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + 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 { + /** - * Gets the most recent health check results for each IP for the instance that is referenced by the - * given target pool. + * Deletes the specified TargetSslProxy resource. * - * Create a request for the method "targetPools.getHealth". + * 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 GetHealth#execute()} method to invoke the remote operation. + * 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 which the queried instance belongs. - * @param content the {@link com.google.api.services.compute.model.InstanceReference} + * @param targetSslProxy Name of the TargetSslProxy resource to delete. * @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); + 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 GetHealth extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Gets the most recent health check results for each IP for the instance that is referenced by - * the given target pool. + * Deletes the specified TargetSslProxy resource. * - * Create a request for the method "targetPools.getHealth". + * 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 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.

    + * 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 which the queried instance belongs. - * @param content the {@link com.google.api.services.compute.model.InstanceReference} + * @param targetSslProxy Name of the TargetSslProxy resource to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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}"); } } @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216762,7 +231390,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetHealth setProject(java.lang.String project) { + 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 " + @@ -216772,87 +231400,287 @@ public GetHealth setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the TargetSslProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String targetSslProxy; - /** Name of the region scoping this request. + /** Name of the TargetSslProxy resource to delete. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the region scoping this request. */ - public GetHealth setRegion(java.lang.String region) { + /** Name of the TargetSslProxy resource to delete. */ + public Delete setTargetSslProxy(java.lang.String targetSslProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.targetSslProxy = targetSslProxy; return this; } - /** Name of the TargetPool resource to which the queried instance belongs. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String requestId; - /** Name of the TargetPool resource to which the queried instance belongs. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the TargetPool resource to which the queried instance belongs. */ - public GetHealth setTargetPool(java.lang.String targetPool) { + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); } - this.targetPool = targetPool; + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a target pool in the specified project and region using the data included in the request. + * Creates a TargetSslProxy resource in the specified project using the data included in the + * request. * - * Create a request for the method "targetPools.insert". + * 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 region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetPool} + * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} * @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); + 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}/regions/{region}/targetPools"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 + * Creates a TargetSslProxy resource in the specified project using the data included in the * request. * - * Create a request for the method "targetPools.insert". + * 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 @@ -216860,11 +231688,10 @@ public class Insert extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetPool content) { + 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()) { @@ -216872,12 +231699,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -216961,27 +231782,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -217037,37 +231837,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of target pools available to the specified project and region. + * Retrieves the list of TargetSslProxy resources available to the specified project. * - * Create a request for the method "targetPools.list". + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of TargetSslProxy resources available to the specified project. * - * Create a request for the method "targetPools.list". + * 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 @@ -217075,23 +231871,16 @@ public class List extends ComputeRequest * * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -217185,27 +231974,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -217476,56 +232244,53 @@ public List set(String parameterName, Object value) { } } /** - * Removes health check URL from a target pool. + * Changes the BackendService for TargetSslProxy. * - * Create a request for the method "targetPools.removeHealthCheck". + * 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 RemoveHealthCheck#execute()} method to invoke the remote operation. + * parameters, call the {@link SetBackendService#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} + * @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 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); + 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 RemoveHealthCheck extends ComputeRequest { + public class SetBackendService extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Removes health check URL from a target pool. + * Changes the BackendService for TargetSslProxy. * - * Create a request for the method "targetPools.removeHealthCheck". + * 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 RemoveHealthCheck#execute()} method to invoke the remote operation. - *

    {@link RemoveHealthCheck#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * 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 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} + * @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 RemoveHealthCheck(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveHealthCheckRequest content) { + 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()) { @@ -217533,78 +232298,289 @@ protected RemoveHealthCheck(java.lang.String project, java.lang.String region, j "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.targetPool = com.google.api.client.util.Preconditions.checkNotNull(targetPool, "Required parameter targetPool must be specified."); + } + + @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(TARGET_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); } @Override - public RemoveHealthCheck set$Xgafv(java.lang.String $Xgafv) { - return (RemoveHealthCheck) super.set$Xgafv($Xgafv); + public SetCertificateMap set$Xgafv(java.lang.String $Xgafv) { + return (SetCertificateMap) super.set$Xgafv($Xgafv); } @Override - public RemoveHealthCheck setAccessToken(java.lang.String accessToken) { - return (RemoveHealthCheck) super.setAccessToken(accessToken); + public SetCertificateMap setAccessToken(java.lang.String accessToken) { + return (SetCertificateMap) super.setAccessToken(accessToken); } @Override - public RemoveHealthCheck setAlt(java.lang.String alt) { - return (RemoveHealthCheck) super.setAlt(alt); + public SetCertificateMap setAlt(java.lang.String alt) { + return (SetCertificateMap) super.setAlt(alt); } @Override - public RemoveHealthCheck setCallback(java.lang.String callback) { - return (RemoveHealthCheck) super.setCallback(callback); + public SetCertificateMap setCallback(java.lang.String callback) { + return (SetCertificateMap) super.setCallback(callback); } @Override - public RemoveHealthCheck setFields(java.lang.String fields) { - return (RemoveHealthCheck) super.setFields(fields); + public SetCertificateMap setFields(java.lang.String fields) { + return (SetCertificateMap) super.setFields(fields); } @Override - public RemoveHealthCheck setKey(java.lang.String key) { - return (RemoveHealthCheck) super.setKey(key); + public SetCertificateMap setKey(java.lang.String key) { + return (SetCertificateMap) super.setKey(key); } @Override - public RemoveHealthCheck setOauthToken(java.lang.String oauthToken) { - return (RemoveHealthCheck) super.setOauthToken(oauthToken); + public SetCertificateMap setOauthToken(java.lang.String oauthToken) { + return (SetCertificateMap) super.setOauthToken(oauthToken); } @Override - public RemoveHealthCheck setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveHealthCheck) super.setPrettyPrint(prettyPrint); + public SetCertificateMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCertificateMap) super.setPrettyPrint(prettyPrint); } @Override - public RemoveHealthCheck setQuotaUser(java.lang.String quotaUser) { - return (RemoveHealthCheck) super.setQuotaUser(quotaUser); + public SetCertificateMap setQuotaUser(java.lang.String quotaUser) { + return (SetCertificateMap) super.setQuotaUser(quotaUser); } @Override - public RemoveHealthCheck setUploadType(java.lang.String uploadType) { - return (RemoveHealthCheck) super.setUploadType(uploadType); + public SetCertificateMap setUploadType(java.lang.String uploadType) { + return (SetCertificateMap) super.setUploadType(uploadType); } @Override - public RemoveHealthCheck setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveHealthCheck) super.setUploadProtocol(uploadProtocol); + public SetCertificateMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCertificateMap) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveHealthCheck setUserIp(java.lang.String userIp) { - return (RemoveHealthCheck) super.setUserIp(userIp); + public SetCertificateMap setUserIp(java.lang.String userIp) { + return (SetCertificateMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217618,7 +232594,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveHealthCheck setProject(java.lang.String project) { + 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 " + @@ -217628,45 +232604,26 @@ public RemoveHealthCheck setProject(java.lang.String 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. + /** + * 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 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; + private java.lang.String targetSslProxy; - /** Name of the target pool to remove health checks from. + /** 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 getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** 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; + /** + * 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; } @@ -217714,67 +232671,62 @@ public java.lang.String getRequestId() { * 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) { + public SetCertificateMap setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveHealthCheck set(String parameterName, Object value) { - return (RemoveHealthCheck) super.set(parameterName, value); + public SetCertificateMap set(String parameterName, Object value) { + return (SetCertificateMap) super.set(parameterName, value); } } /** - * Removes instance URL from a target pool. + * Changes the ProxyHeaderType for TargetSslProxy. * - * Create a request for the method "targetPools.removeInstance". + * 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 RemoveInstance#execute()} method to invoke the remote operation. + * parameters, call the {@link SetProxyHeader#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} + * @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 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); + 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 RemoveInstance extends ComputeRequest { + public class SetProxyHeader extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Removes instance URL from a target pool. + * Changes the ProxyHeaderType for TargetSslProxy. * - * Create a request for the method "targetPools.removeInstance". + * 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 RemoveInstance#execute()} method to invoke the remote operation. - *

    {@link RemoveInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * 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 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} + * @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 RemoveInstance(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetPoolsRemoveInstanceRequest content) { + 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()) { @@ -217782,78 +232734,72 @@ protected RemoveInstance(java.lang.String project, java.lang.String region, java "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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}"); } } @Override - public RemoveInstance set$Xgafv(java.lang.String $Xgafv) { - return (RemoveInstance) super.set$Xgafv($Xgafv); + public SetProxyHeader set$Xgafv(java.lang.String $Xgafv) { + return (SetProxyHeader) super.set$Xgafv($Xgafv); } @Override - public RemoveInstance setAccessToken(java.lang.String accessToken) { - return (RemoveInstance) super.setAccessToken(accessToken); + public SetProxyHeader setAccessToken(java.lang.String accessToken) { + return (SetProxyHeader) super.setAccessToken(accessToken); } @Override - public RemoveInstance setAlt(java.lang.String alt) { - return (RemoveInstance) super.setAlt(alt); + public SetProxyHeader setAlt(java.lang.String alt) { + return (SetProxyHeader) super.setAlt(alt); } @Override - public RemoveInstance setCallback(java.lang.String callback) { - return (RemoveInstance) super.setCallback(callback); + public SetProxyHeader setCallback(java.lang.String callback) { + return (SetProxyHeader) super.setCallback(callback); } @Override - public RemoveInstance setFields(java.lang.String fields) { - return (RemoveInstance) super.setFields(fields); + public SetProxyHeader setFields(java.lang.String fields) { + return (SetProxyHeader) super.setFields(fields); } @Override - public RemoveInstance setKey(java.lang.String key) { - return (RemoveInstance) super.setKey(key); + public SetProxyHeader setKey(java.lang.String key) { + return (SetProxyHeader) super.setKey(key); } @Override - public RemoveInstance setOauthToken(java.lang.String oauthToken) { - return (RemoveInstance) super.setOauthToken(oauthToken); + public SetProxyHeader setOauthToken(java.lang.String oauthToken) { + return (SetProxyHeader) super.setOauthToken(oauthToken); } @Override - public RemoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveInstance) super.setPrettyPrint(prettyPrint); + public SetProxyHeader setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetProxyHeader) super.setPrettyPrint(prettyPrint); } @Override - public RemoveInstance setQuotaUser(java.lang.String quotaUser) { - return (RemoveInstance) super.setQuotaUser(quotaUser); + public SetProxyHeader setQuotaUser(java.lang.String quotaUser) { + return (SetProxyHeader) super.setQuotaUser(quotaUser); } @Override - public RemoveInstance setUploadType(java.lang.String uploadType) { - return (RemoveInstance) super.setUploadType(uploadType); + public SetProxyHeader setUploadType(java.lang.String uploadType) { + return (SetProxyHeader) super.setUploadType(uploadType); } @Override - public RemoveInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveInstance) super.setUploadProtocol(uploadProtocol); + public SetProxyHeader setUploadProtocol(java.lang.String uploadProtocol) { + return (SetProxyHeader) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveInstance setUserIp(java.lang.String userIp) { - return (RemoveInstance) super.setUserIp(userIp); + public SetProxyHeader setUserIp(java.lang.String userIp) { + return (SetProxyHeader) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217867,7 +232813,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveInstance setProject(java.lang.String project) { + 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 " + @@ -217877,45 +232823,24 @@ public RemoveInstance setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ @com.google.api.client.util.Key - private java.lang.String targetPool; + private java.lang.String targetSslProxy; - /** Name of the TargetPool resource to remove instances from. + /** Name of the TargetSslProxy resource whose ProxyHeader is to be set. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the TargetPool resource to remove instances from. */ - public RemoveInstance setTargetPool(java.lang.String targetPool) { + /** 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_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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.targetPool = targetPool; + this.targetSslProxy = targetSslProxy; return this; } @@ -217963,67 +232888,64 @@ public java.lang.String getRequestId() { * 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) { + public SetProxyHeader setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveInstance set(String parameterName, Object value) { - return (RemoveInstance) super.set(parameterName, value); + public SetProxyHeader set(String parameterName, Object value) { + return (SetProxyHeader) super.set(parameterName, value); } } /** - * Changes a backup target pool's configurations. + * Changes SslCertificates for TargetSslProxy. * - * Create a request for the method "targetPools.setBackup". + * 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 SetBackup#execute()} method to invoke the remote operation. + * 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 targetPool Name of the TargetPool resource to set a backup pool for. - * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @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 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); + 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 SetBackup extends ComputeRequest { + public class SetSslCertificates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 a backup target pool's configurations. + * Changes SslCertificates for TargetSslProxy. * - * Create a request for the method "targetPools.setBackup". + * 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 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.

    + * 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 targetPool Name of the TargetPool resource to set a backup pool for. - * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @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 SetBackup(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.TargetReference content) { + 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()) { @@ -218031,78 +232953,72 @@ protected SetBackup(java.lang.String project, java.lang.String region, java.lang "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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}"); } } @Override - public SetBackup set$Xgafv(java.lang.String $Xgafv) { - return (SetBackup) super.set$Xgafv($Xgafv); + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); } @Override - public SetBackup setAccessToken(java.lang.String accessToken) { - return (SetBackup) super.setAccessToken(accessToken); + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); } @Override - public SetBackup setAlt(java.lang.String alt) { - return (SetBackup) super.setAlt(alt); + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); } @Override - public SetBackup setCallback(java.lang.String callback) { - return (SetBackup) super.setCallback(callback); + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); } @Override - public SetBackup setFields(java.lang.String fields) { - return (SetBackup) super.setFields(fields); + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); } @Override - public SetBackup setKey(java.lang.String key) { - return (SetBackup) super.setKey(key); + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); } @Override - public SetBackup setOauthToken(java.lang.String oauthToken) { - return (SetBackup) super.setOauthToken(oauthToken); + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); } @Override - public SetBackup setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackup) super.setPrettyPrint(prettyPrint); + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); } @Override - public SetBackup setQuotaUser(java.lang.String quotaUser) { - return (SetBackup) super.setQuotaUser(quotaUser); + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); } @Override - public SetBackup setUploadType(java.lang.String uploadType) { - return (SetBackup) super.setUploadType(uploadType); + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); } @Override - public SetBackup setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackup) super.setUploadProtocol(uploadProtocol); + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); } @Override - public SetBackup setUserIp(java.lang.String userIp) { - return (SetBackup) super.setUserIp(userIp); + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218116,7 +233032,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetBackup setProject(java.lang.String project) { + 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 " + @@ -218126,61 +233042,28 @@ public SetBackup setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. */ - 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; + private java.lang.String targetSslProxy; - /** Name of the TargetPool resource to set a backup pool for. + /** Name of the TargetSslProxy resource whose SslCertificate resource is to be set. */ - public java.lang.String getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } - /** Name of the TargetPool resource to set a backup pool for. */ - public SetBackup setTargetPool(java.lang.String targetPool) { + /** + * 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_POOL_PATTERN.matcher(targetPool).matches(), - "Parameter targetPool must conform to the pattern " + + 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.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; + this.targetSslProxy = targetSslProxy; return this; } @@ -218228,70 +233111,67 @@ public java.lang.String getRequestId() { * 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) { + public SetSslCertificates setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetBackup set(String parameterName, Object value) { - return (SetBackup) super.set(parameterName, value); + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified target pool. For more information, - * seeGoogle Cloud Armor Overview + * 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 "targetPools.setSecurityPolicy". + * 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 SetSecurityPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSslPolicy#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} + * @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 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); + 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 SetSecurityPolicy extends ComputeRequest { + public class SetSslPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 + * 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 "targetPools.setSecurityPolicy". + * 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 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.

    + * 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 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} + * @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 SetSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String targetPool, com.google.api.services.compute.model.SecurityPolicyReference content) { + 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()) { @@ -218299,73 +233179,67 @@ protected SetSecurityPolicy(java.lang.String project, java.lang.String region, j "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); } @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public SetSslPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSslPolicy) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public SetSslPolicy setAccessToken(java.lang.String accessToken) { + return (SetSslPolicy) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public SetSslPolicy setAlt(java.lang.String alt) { + return (SetSslPolicy) super.setAlt(alt); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public SetSslPolicy setCallback(java.lang.String callback) { + return (SetSslPolicy) super.setCallback(callback); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public SetSslPolicy setFields(java.lang.String fields) { + return (SetSslPolicy) super.setFields(fields); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public SetSslPolicy setKey(java.lang.String key) { + return (SetSslPolicy) super.setKey(key); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public SetSslPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSslPolicy) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public SetSslPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public SetSslPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSslPolicy) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public SetSslPolicy setUploadType(java.lang.String uploadType) { + return (SetSslPolicy) super.setUploadType(uploadType); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public SetSslPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + public SetSslPolicy setUserIp(java.lang.String userIp) { + return (SetSslPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218379,7 +233253,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSecurityPolicy setProject(java.lang.String project) { + 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 " + @@ -218389,47 +233263,26 @@ public SetSecurityPolicy setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. + * 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 targetPool; + private java.lang.String targetSslProxy; - /** Name of the TargetPool resource to which the security policy should be set. The name should conform - to RFC1035. + /** 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 getTargetPool() { - return targetPool; + public java.lang.String getTargetSslProxy() { + return targetSslProxy; } /** - * Name of the TargetPool resource to which the security policy should be set. The name should - * conform to RFC1035. + * 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 SetSecurityPolicy setTargetPool(java.lang.String targetPool) { - this.targetPool = targetPool; + public SetSslPolicy setTargetSslProxy(java.lang.String targetSslProxy) { + this.targetSslProxy = targetSslProxy; return this; } @@ -218477,53 +233330,49 @@ public java.lang.String getRequestId() { * 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) { + public SetSslPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); + 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 "targetPools.testIamPermissions". + * 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 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); + 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}/regions/{region}/targetPools/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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". + * 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 @@ -218532,12 +233381,11 @@ public class TestIamPermissions extends ComputeRequest * * @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) { + 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()) { @@ -218545,17 +233393,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -218619,129 +233461,581 @@ public TestIamPermissions setUserIp(java.lang.String userIp) { return (TestIamPermissions) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Project ID for this request. */ + @com.google.api.client.util.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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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 name of the region for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.Boolean returnPartialSuccess; - /** The name of the region for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRegion() { - return region; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** Name or id of the resource for this request. */ + /** + * 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.String resource; + private java.lang.Long serviceProjectNumber; - /** Name or id of the resource for this request. + /** 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.String getResource() { - return resource; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } - /** 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; + /** + * 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified TargetTcpProxy resource. * - * Create a request for the method "targetSslProxies.delete". + * 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 targetSslProxy Name of the TargetSslProxy resource to delete. + * @param targetTcpProxy Name of the TargetTcpProxy 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); + 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/targetSslProxies/{targetSslProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetSslProxy resource. + * Deletes the specified TargetTcpProxy resource. * - * Create a request for the method "targetSslProxies.delete". + * 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 @@ -218749,10 +234043,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource to delete. + * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String targetSslProxy) { + 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()) { @@ -218760,10 +234054,10 @@ protected Delete(java.lang.String project, java.lang.String targetSslProxy) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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}"); } } @@ -218849,24 +234143,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetSslProxy resource to delete. */ + /** Name of the TargetTcpProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource to delete. + /** Name of the TargetTcpProxy resource to delete. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** Name of the TargetSslProxy resource to delete. */ - public Delete setTargetSslProxy(java.lang.String targetSslProxy) { + /** Name of the TargetTcpProxy resource to delete. */ + public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -218925,37 +234219,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetSslProxy resource. + * Returns the specified TargetTcpProxy resource. * - * Create a request for the method "targetSslProxies.get". + * 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 targetSslProxy Name of the TargetSslProxy resource to return. + * @param targetTcpProxy Name of the TargetTcpProxy 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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetSslProxy resource. + * Returns the specified TargetTcpProxy resource. * - * Create a request for the method "targetSslProxies.get". + * 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 @@ -218963,21 +234257,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource to return. + * @param targetTcpProxy Name of the TargetTcpProxy 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); + 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.targetSslProxy = com.google.api.client.util.Preconditions.checkNotNull(targetSslProxy, "Required parameter targetSslProxy must be specified."); + 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_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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}"); } } @@ -219073,24 +234367,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetSslProxy resource to return. */ + /** Name of the TargetTcpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource to return. + /** Name of the TargetTcpProxy resource to return. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** Name of the TargetSslProxy resource to return. */ - public Get setTargetSslProxy(java.lang.String targetSslProxy) { + /** Name of the TargetTcpProxy resource to return. */ + public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -219100,19 +234394,19 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetSslProxy resource in the specified project using the data included in the + * Creates a TargetTcpProxy resource in the specified project using the data included in the * request. * - * Create a request for the method "targetSslProxies.insert". + * 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.TargetSslProxy} + * @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.TargetSslProxy content) throws java.io.IOException { + 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; @@ -219120,16 +234414,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 + * Creates a TargetTcpProxy resource in the specified project using the data included in the * request. * - * Create a request for the method "targetSslProxies.insert". + * 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 @@ -219137,10 +234431,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxy} + * @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.TargetSslProxy content) { + 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()) { @@ -219286,9 +234580,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetSslProxy resources available to the specified project. + * Retrieves the list of TargetTcpProxy resources available to the specified project. * - * Create a request for the method "targetSslProxies.list". + * 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. @@ -219302,17 +234596,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of TargetTcpProxy resources available to the specified project. * - * Create a request for the method "targetSslProxies.list". + * 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 @@ -219323,7 +234617,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetSslProxy. + * Changes the BackendService for TargetTcpProxy. * - * Create a request for the method "targetSslProxies.setBackendService". + * 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. @@ -219734,12 +235028,12 @@ public class SetBackendService extends ComputeRequest * * @param project Project ID for this request. - * @param targetSslProxy Name of the TargetSslProxy resource whose BackendService resource + * @param targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest} + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} * @since 1.13 */ - protected SetBackendService(java.lang.String project, java.lang.String targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetBackendServiceRequest content) { + 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()) { @@ -219747,10 +235041,10 @@ protected SetBackendService(java.lang.String project, java.lang.String targetSsl "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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}"); } } @@ -219837,27 +235131,27 @@ public SetBackendService setProject(java.lang.String project) { } /** - * Name of the TargetSslProxy resource whose BackendService resource is to be set. + * Name of the TargetTcpProxy resource whose BackendService resource is to be set. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource whose BackendService resource is to be set. + /** Name of the TargetTcpProxy resource whose BackendService resource is to be set. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } /** - * Name of the TargetSslProxy resource whose BackendService resource is to be set. + * Name of the TargetTcpProxy resource whose BackendService resource is to be set. */ - public SetBackendService setTargetSslProxy(java.lang.String targetSslProxy) { + public SetBackendService setTargetTcpProxy(java.lang.String targetTcpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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.targetSslProxy = targetSslProxy; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -219916,253 +235210,38 @@ public SetBackendService set(String parameterName, Object 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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. + * Changes the ProxyHeaderType for TargetTcpProxy. * - * Create a request for the method "targetSslProxies.setProxyHeader". + * 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 targetSslProxy Name of the TargetSslProxy resource whose ProxyHeader is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest} + * @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 targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest content) throws java.io.IOException { - SetProxyHeader result = new SetProxyHeader(project, targetSslProxy, content); + 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/targetSslProxies/{targetSslProxy}/setProxyHeader"; + private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 TargetSslProxy. + * Changes the ProxyHeaderType for TargetTcpProxy. * - * Create a request for the method "targetSslProxies.setProxyHeader". + * 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. @@ -220171,11 +235250,11 @@ public class SetProxyHeader extends ComputeRequest * * @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} + * @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 targetSslProxy, com.google.api.services.compute.model.TargetSslProxiesSetProxyHeaderRequest content) { + 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()) { @@ -220183,10 +235262,10 @@ protected SetProxyHeader(java.lang.String project, java.lang.String targetSslPro "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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}"); } } @@ -220272,466 +235351,24 @@ public SetProxyHeader setProject(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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. - */ + /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ @com.google.api.client.util.Key - private java.lang.String targetSslProxy; + private java.lang.String targetTcpProxy; - /** Name of the TargetSslProxy resource whose SslCertificate resource is to be set. + /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ - public java.lang.String getTargetSslProxy() { - return targetSslProxy; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** - * Name of the TargetSslProxy resource whose SslCertificate resource is to be set. - */ - public SetSslCertificates setTargetSslProxy(java.lang.String targetSslProxy) { + /** 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_SSL_PROXY_PATTERN.matcher(targetSslProxy).matches(), - "Parameter targetSslProxy must conform to the pattern " + + 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.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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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; + this.targetTcpProxy = targetTcpProxy; return this; } @@ -220779,52 +235416,219 @@ public java.lang.String getRequestId() { * 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) { + public SetProxyHeader setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSslPolicy set(String parameterName, Object value) { - return (SetSslPolicy) super.set(parameterName, value); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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. + * An accessor for creating requests from the TargetVpnGateways collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.TargetTcpProxies.List request = compute.targetTcpProxies().list(parameters ...)}
    +   *   {@code Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)}
        * 
    * * @return the resource collection */ - public TargetTcpProxies targetTcpProxies() { - return new TargetTcpProxies(); + public TargetVpnGateways targetVpnGateways() { + return new TargetVpnGateways(); } /** - * The "targetTcpProxies" collection of methods. + * The "targetVpnGateways" collection of methods. */ - public class TargetTcpProxies { + public class TargetVpnGateways { /** - * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the - * specified project. + * 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 "targetTcpProxies.aggregatedList". + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -220833,21 +235637,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/aggregated/targetVpnGateways"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "targetTcpProxies.aggregatedList". + * 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. @@ -220855,11 +235658,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @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.TargetTcpProxyAggregatedList.class); + 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(), @@ -220938,17 +235741,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** 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(), @@ -221286,37 +236089,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified TargetTcpProxy resource. + * Deletes the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.delete". + * 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 targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @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 targetTcpProxy) throws java.io.IOException { - Delete result = new Delete(project, targetTcpProxy); + 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}/global/targetTcpProxies/{targetTcpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 TargetTcpProxy resource. + * Deletes the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.delete". + * 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 @@ -221324,10 +236131,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @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 targetTcpProxy) { + 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()) { @@ -221335,10 +236143,16 @@ protected Delete(java.lang.String project, java.lang.String targetTcpProxy) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -221424,24 +236238,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the TargetTcpProxy resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; + private java.lang.String region; - /** Name of the TargetTcpProxy resource to delete. + /** Name of the region for this request. */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getRegion() { + return region; } - /** Name of the TargetTcpProxy resource to delete. */ - public Delete setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.targetTcpProxy = targetTcpProxy; + this.targetVpnGateway = targetVpnGateway; return this; } @@ -221500,37 +236335,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetTcpProxy resource. + * Returns the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.get". + * 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 targetTcpProxy Name of the TargetTcpProxy resource to return. + * @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 targetTcpProxy) throws java.io.IOException { - Get result = new Get(project, targetTcpProxy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 TargetTcpProxy resource. + * Returns the specified target VPN gateway. * - * Create a request for the method "targetTcpProxies.get". + * 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 @@ -221538,21 +236377,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to return. + * @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 targetTcpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxy.class); + 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.targetTcpProxy = com.google.api.client.util.Preconditions.checkNotNull(targetTcpProxy, "Required parameter targetTcpProxy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -221648,24 +236494,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the TargetTcpProxy resource to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; + private java.lang.String region; - /** Name of the TargetTcpProxy resource to return. + /** Name of the region for this request. */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getRegion() { + return region; } - /** Name of the TargetTcpProxy resource to return. */ - public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.targetTcpProxy = targetTcpProxy; + this.targetVpnGateway = targetVpnGateway; return this; } @@ -221675,36 +236542,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetTcpProxy resource in the specified project using the data included in the + * Creates a target VPN gateway in the specified project and region using the data included in the * request. * - * Create a request for the method "targetTcpProxies.insert". + * 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 content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @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, com.google.api.services.compute.model.TargetTcpProxy content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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}/global/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 using the data included in the + * Creates a target VPN gateway in the specified project and region using the data included in the * request. * - * Create a request for the method "targetTcpProxies.insert". + * 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 @@ -221712,10 +236583,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @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, com.google.api.services.compute.model.TargetTcpProxy content) { + 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()) { @@ -221723,6 +236595,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -221806,6 +236684,27 @@ public Insert setProject(java.lang.String 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 @@ -221861,33 +236760,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetTcpProxy resources available to the specified project. + * Retrieves a list of target VPN gateways available to the specified project and region. * - * Create a request for the method "targetTcpProxies.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 TargetTcpProxy resources available to the specified project. + * Retrieves a list of target VPN gateways available to the specified project and region. * - * Create a request for the method "targetTcpProxies.list". + * 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 @@ -221895,16 +236798,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyList.class); + 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])?"); + } } @Override @@ -221998,6 +236908,27 @@ public List setProject(java.lang.String 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 @@ -222268,53 +237199,58 @@ public List set(String parameterName, Object value) { } } /** - * Changes the BackendService for TargetTcpProxy. + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "targetTcpProxies.setBackendService". + * 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 SetBackendService#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 SetBackendService extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * Changes the BackendService for TargetTcpProxy. + * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "targetTcpProxies.setBackendService". + * 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 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.

    + * 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 targetTcpProxy Name of the TargetTcpProxy resource whose BackendService resource - is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest} + * @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 SetBackendService(java.lang.String project, java.lang.String targetTcpProxy, com.google.api.services.compute.model.TargetTcpProxiesSetBackendServiceRequest content) { + 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()) { @@ -222322,72 +237258,78 @@ protected SetBackendService(java.lang.String project, java.lang.String targetTcp "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public SetBackendService set$Xgafv(java.lang.String $Xgafv) { - return (SetBackendService) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetBackendService setAccessToken(java.lang.String accessToken) { - return (SetBackendService) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetBackendService setAlt(java.lang.String alt) { - return (SetBackendService) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetBackendService setCallback(java.lang.String callback) { - return (SetBackendService) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetBackendService setFields(java.lang.String fields) { - return (SetBackendService) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetBackendService setKey(java.lang.String key) { - return (SetBackendService) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetBackendService setOauthToken(java.lang.String oauthToken) { - return (SetBackendService) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetBackendService setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetBackendService) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetBackendService setQuotaUser(java.lang.String quotaUser) { - return (SetBackendService) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetBackendService setUploadType(java.lang.String uploadType) { - return (SetBackendService) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetBackendService setUploadProtocol(java.lang.String uploadProtocol) { - return (SetBackendService) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetBackendService setUserIp(java.lang.String userIp) { - return (SetBackendService) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -222401,7 +237343,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetBackendService setProject(java.lang.String project) { + 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 " + @@ -222411,245 +237353,45 @@ public SetBackendService setProject(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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. */ + /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String region; - /** Project ID for this request. + /** The region for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRegion() { + return region; } - /** Project ID for this request. */ - public SetProxyHeader setProject(java.lang.String project) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.project = project; + this.region = region; return this; } - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetTcpProxy; + private java.lang.String resource; - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getResource() { + return resource; } - /** Name of the TargetTcpProxy resource whose ProxyHeader is to be set. */ - public SetProxyHeader setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** 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(TARGET_TCP_PROXY_PATTERN.matcher(targetTcpProxy).matches(), - "Parameter targetTcpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetTcpProxy = targetTcpProxy; + this.resource = resource; return this; } @@ -222697,51 +237439,52 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetProxyHeader set(String parameterName, Object value) { - return (SetProxyHeader) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the TargetVpnGateways collection. + * An accessor for creating requests from the UrlMaps collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.TargetVpnGateways.List request = compute.targetVpnGateways().list(parameters ...)}
    +   *   {@code Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)}
        * 
    * * @return the resource collection */ - public TargetVpnGateways targetVpnGateways() { - return new TargetVpnGateways(); + public UrlMaps urlMaps() { + return new UrlMaps(); } /** - * The "targetVpnGateways" collection of methods. + * The "urlMaps" collection of methods. */ - public class TargetVpnGateways { + public class UrlMaps { /** - * Retrieves an aggregated list of target VPN gateways. + * 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 "targetVpnGateways.aggregatedList". + * 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 Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -222750,20 +237493,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/targetVpnGateways"; + private static final String REST_PATH = "projects/{project}/aggregated/urlMaps"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "targetVpnGateways.aggregatedList". + * 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. @@ -222771,11 +237515,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Project ID for this request. + * @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.TargetVpnGatewayAggregatedList.class); + 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(), @@ -222854,17 +237598,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** 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(), @@ -223202,41 +237946,37 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified target VPN gateway. + * Deletes the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.delete". + * 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 region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to delete. + * @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 targetVpnGateway) throws java.io.IOException { - Delete result = new Delete(project, region, targetVpnGateway); + 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}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 target VPN gateway. + * Deletes the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.delete". + * 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 @@ -223244,11 +237984,10 @@ public class Delete extends ComputeRequest * * @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. + * @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 targetVpnGateway) { + 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()) { @@ -223256,16 +237995,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + + 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}"); } } @@ -223351,45 +238084,24 @@ public Delete setProject(java.lang.String 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. */ + /** Name of the UrlMap resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; + private java.lang.String urlMap; - /** Name of the target VPN gateway to delete. + /** Name of the UrlMap resource to delete. */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name of the target VPN gateway to delete. */ - public Delete setTargetVpnGateway(java.lang.String targetVpnGateway) { + /** Name of the UrlMap resource to delete. */ + public Delete setUrlMap(java.lang.String urlMap) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + + 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.targetVpnGateway = targetVpnGateway; + this.urlMap = urlMap; return this; } @@ -223448,41 +238160,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified target VPN gateway. + * Returns the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.get". + * 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 region Name of the region for this request. - * @param targetVpnGateway Name of the target VPN gateway to return. + * @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 targetVpnGateway) throws java.io.IOException { - Get result = new Get(project, region, targetVpnGateway); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 target VPN gateway. + * Returns the specified UrlMap resource. * - * Create a request for the method "targetVpnGateways.get". + * 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 @@ -223490,28 +238198,21 @@ public class Get extends ComputeRequest * * @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. + * @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 targetVpnGateway) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetVpnGateway.class); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(TARGET_VPN_GATEWAY_PATTERN.matcher(targetVpnGateway).matches(), - "Parameter targetVpnGateway must conform to the pattern " + + 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}"); } } @@ -223527,63 +238228,219 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223597,7 +238454,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -223607,100 +238464,112 @@ public Get setProject(java.lang.String 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRegion() { - return region; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name of the target VPN gateway to return. */ - @com.google.api.client.util.Key - private java.lang.String targetVpnGateway; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name of the target VPN gateway to return. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getTargetVpnGateway() { - return targetVpnGateway; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. * - * Create a request for the method "targetVpnGateways.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link InvalidateCache#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} + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} * @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); + 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 Insert extends ComputeRequest { + public class InvalidateCache extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); /** - * Creates a target VPN gateway in the specified project and region using the data included in the - * request. + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. * - * Create a request for the method "targetVpnGateways.insert". + * 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 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.

    + * 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 region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.TargetVpnGateway} + * @param urlMap Name of the UrlMap scoping this request. + * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetVpnGateway content) { + 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()) { @@ -223708,72 +238577,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { + return (InvalidateCache) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public InvalidateCache setAccessToken(java.lang.String accessToken) { + return (InvalidateCache) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public InvalidateCache setAlt(java.lang.String alt) { + return (InvalidateCache) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public InvalidateCache setCallback(java.lang.String callback) { + return (InvalidateCache) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public InvalidateCache setFields(java.lang.String fields) { + return (InvalidateCache) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public InvalidateCache setKey(java.lang.String key) { + return (InvalidateCache) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public InvalidateCache setOauthToken(java.lang.String oauthToken) { + return (InvalidateCache) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvalidateCache) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public InvalidateCache setQuotaUser(java.lang.String quotaUser) { + return (InvalidateCache) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public InvalidateCache setUploadType(java.lang.String uploadType) { + return (InvalidateCache) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { + return (InvalidateCache) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public InvalidateCache setUserIp(java.lang.String userIp) { + return (InvalidateCache) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223787,7 +238656,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -223797,24 +238666,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the UrlMap scoping this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String urlMap; - /** Name of the region for this request. + /** Name of the UrlMap scoping this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the UrlMap scoping this request. */ + public InvalidateCache setUrlMap(java.lang.String urlMap) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.urlMap = urlMap; return this; } @@ -223862,48 +238731,44 @@ public java.lang.String getRequestId() { * 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) { + public InvalidateCache setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public InvalidateCache set(String parameterName, Object value) { + return (InvalidateCache) super.set(parameterName, value); } } /** - * Retrieves a list of target VPN gateways available to the specified project and region. + * Retrieves the list of UrlMap resources available to the specified project. * - * Create a request for the method "targetVpnGateways.list". + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways"; + private static final String REST_PATH = "projects/{project}/global/urlMaps"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of UrlMap resources available to the specified project. * - * Create a request for the method "targetVpnGateways.list". + * 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 @@ -223911,23 +238776,16 @@ public class List extends ComputeRequest * * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -224021,27 +238879,6 @@ public List setProject(java.lang.String 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 @@ -224312,137 +239149,125 @@ public List set(String parameterName, Object value) { } } /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources - * documentation. + * 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 "targetVpnGateways.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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} + * @param urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} * @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); + 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 SetLabels extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources - * documentation. + * 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 "targetVpnGateways.setLabels". + * 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 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.

    + * 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 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} + * @param urlMap Name of the UrlMap resource to patch. + * @param content the {@link com.google.api.services.compute.model.UrlMap} * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -224456,7 +239281,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -224466,24 +239291,220 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the UrlMap resource to patch. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String urlMap; - /** The region for this request. + /** Name of the UrlMap resource to patch. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getUrlMap() { + return urlMap; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { + /** Name of the UrlMap resource to patch. */ + public Patch setUrlMap(java.lang.String urlMap) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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; } @@ -224498,16 +239519,183 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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}"); + "[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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 @@ -224552,52 +239740,221 @@ public java.lang.String getRequestId() { * 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) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 UrlMaps collection. + * An accessor for creating requests from the VpnGateways collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.UrlMaps.List request = compute.urlMaps().list(parameters ...)}
    +   *   {@code Compute.VpnGateways.List request = compute.vpnGateways().list(parameters ...)}
        * 
    * * @return the resource collection */ - public UrlMaps urlMaps() { - return new UrlMaps(); + public VpnGateways vpnGateways() { + return new VpnGateways(); } /** - * The "urlMaps" collection of methods. + * The "vpnGateways" collection of methods. */ - public class UrlMaps { + public class VpnGateways { /** - * Retrieves the list of all UrlMap resources, regional and global, available to the specified - * project. + * 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 "urlMaps.aggregatedList". + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -224606,21 +239963,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/urlMaps"; + private static final String REST_PATH = "projects/{project}/aggregated/vpnGateways"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "urlMaps.aggregatedList". + * 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. @@ -224628,11 +239984,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @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.UrlMapsAggregatedList.class); + 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(), @@ -224711,17 +240067,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** 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(), @@ -225059,37 +240415,41 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified UrlMap resource. + * Deletes the specified VPN gateway. * - * Create a request for the method "urlMaps.delete". + * 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 urlMap Name of the UrlMap resource to delete. + * @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 urlMap) throws java.io.IOException { - Delete result = new Delete(project, urlMap); + 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}/global/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 UrlMap resource. + * Deletes the specified VPN gateway. * - * Create a request for the method "urlMaps.delete". + * 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 @@ -225097,10 +240457,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to delete. + * @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 urlMap) { + 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()) { @@ -225108,10 +240469,16 @@ protected Delete(java.lang.String project, java.lang.String urlMap) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -225197,24 +240564,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap resource to delete. + /** Name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap resource to delete. */ - public Delete setUrlMap(java.lang.String urlMap) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.urlMap = urlMap; + this.vpnGateway = vpnGateway; return this; } @@ -225273,37 +240661,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified UrlMap resource. + * Returns the specified VPN gateway. * - * Create a request for the method "urlMaps.get". + * 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 urlMap Name of the UrlMap resource to return. + * @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 urlMap) throws java.io.IOException { - Get result = new Get(project, urlMap); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 UrlMap resource. + * Returns the specified VPN gateway. * - * Create a request for the method "urlMaps.get". + * 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 @@ -225311,21 +240703,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param urlMap Name of the UrlMap resource to return. + * @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 urlMap) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMap.class); + 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -225421,24 +240820,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap resource to return. + /** Name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap resource to return. */ - public Get setUrlMap(java.lang.String urlMap) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.urlMap = urlMap; + this.vpnGateway = vpnGateway; return this; } @@ -225448,112 +240868,143 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a UrlMap resource in the specified project using the data included in the request. + * Returns the status for the specified VPN gateway. * - * Create a request for the method "urlMaps.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetStatus#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} + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. * @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); + 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 Insert extends ComputeRequest { + public class GetStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Creates a UrlMap resource in the specified project using the data included in the request. + * Returns the status for the specified VPN gateway. * - * Create a request for the method "urlMaps.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.UrlMap} + * @param region Name of the region for this request. + * @param vpnGateway Name of the VPN gateway to return. * @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); + 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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetStatus) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetStatus setAccessToken(java.lang.String accessToken) { + return (GetStatus) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetStatus setAlt(java.lang.String alt) { + return (GetStatus) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetStatus setCallback(java.lang.String callback) { + return (GetStatus) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetStatus setFields(java.lang.String fields) { + return (GetStatus) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetStatus setKey(java.lang.String key) { + return (GetStatus) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetStatus setOauthToken(java.lang.String oauthToken) { + return (GetStatus) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetStatus) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetStatus setQuotaUser(java.lang.String quotaUser) { + return (GetStatus) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -225567,7 +241018,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -225577,112 +241028,99 @@ public Insert setProject(java.lang.String 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). - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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 getRequestId() { - return requestId; + public java.lang.String getVpnGateway() { + return vpnGateway; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetStatus set(String parameterName, Object value) { + return (GetStatus) 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). + * Creates a VPN gateway in the specified project and region using the data included in the request. * - * Create a request for the method "urlMaps.invalidateCache". + * 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 InvalidateCache#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnGateway} * @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); + 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 InvalidateCache extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/invalidateCache"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * 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). + * Creates a VPN gateway in the specified project and region using the data included in the + * request. * - * Create a request for the method "urlMaps.invalidateCache". + * 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 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.

    + * 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 urlMap Name of the UrlMap scoping this request. - * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.VpnGateway} * @since 1.13 */ - protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) { + 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()) { @@ -225690,72 +241128,72 @@ protected InvalidateCache(java.lang.String project, java.lang.String urlMap, com "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { - return (InvalidateCache) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public InvalidateCache setAccessToken(java.lang.String accessToken) { - return (InvalidateCache) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public InvalidateCache setAlt(java.lang.String alt) { - return (InvalidateCache) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public InvalidateCache setCallback(java.lang.String callback) { - return (InvalidateCache) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public InvalidateCache setFields(java.lang.String fields) { - return (InvalidateCache) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public InvalidateCache setKey(java.lang.String key) { - return (InvalidateCache) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public InvalidateCache setOauthToken(java.lang.String oauthToken) { - return (InvalidateCache) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvalidateCache) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public InvalidateCache setQuotaUser(java.lang.String quotaUser) { - return (InvalidateCache) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public InvalidateCache setUploadType(java.lang.String uploadType) { - return (InvalidateCache) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { - return (InvalidateCache) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public InvalidateCache setUserIp(java.lang.String userIp) { - return (InvalidateCache) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -225769,7 +241207,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public InvalidateCache setProject(java.lang.String project) { + 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 " + @@ -225779,24 +241217,24 @@ public InvalidateCache setProject(java.lang.String project) { return this; } - /** Name of the UrlMap scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap scoping this request. + /** Name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap scoping this request. */ - public InvalidateCache setUrlMap(java.lang.String urlMap) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.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 = urlMap; + this.region = region; return this; } @@ -225844,44 +241282,48 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public InvalidateCache set(String parameterName, Object value) { - return (InvalidateCache) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves the list of UrlMap resources available to the specified project. + * Retrieves a list of VPN gateways available to the specified project and region. * - * Create a request for the method "urlMaps.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves a list of VPN gateways available to the specified project and region. * - * Create a request for the method "urlMaps.list". + * 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 @@ -225889,16 +241331,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapList.class); + 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])?"); + } } @Override @@ -225992,6 +241441,27 @@ public List setProject(java.lang.String 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 @@ -226262,125 +241732,137 @@ public List set(String parameterName, Object 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. + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "urlMaps.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * 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. + * Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "urlMaps.patch". + * 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 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.

    + * 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 urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @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 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); + 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226394,7 +241876,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -226404,240 +241886,45 @@ public Patch setProject(java.lang.String 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); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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. */ + /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String region; - /** Project ID for this request. + /** The region for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRegion() { + return region; } - /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.project = project; + this.region = region; return this; } - /** Name of the UrlMap resource to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String resource; - /** Name of the UrlMap resource to update. + /** Name or id of the resource for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getResource() { + return resource; } - /** Name of the UrlMap resource to update. */ - public Update setUrlMap(java.lang.String urlMap) { + /** 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.urlMap = urlMap; + this.resource = resource; return this; } @@ -226685,137 +241972,146 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "urlMaps.validate". + * 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 Validate#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Validate extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/urlMaps/{urlMap}/validate"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "urlMaps.validate". + * 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 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.

    + * 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 urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.model.UrlMapsValidateRequest} + * @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 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); + 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.urlMap = com.google.api.client.util.Preconditions.checkNotNull(urlMap, "Required parameter urlMap must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Validate setUserIp(java.lang.String userIp) { - return (Validate) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226829,7 +242125,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Validate setProject(java.lang.String project) { + 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 " + @@ -226839,62 +242135,83 @@ public Validate setProject(java.lang.String project) { return this; } - /** Name of the UrlMap resource to be validated as. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String region; - /** Name of the UrlMap resource to be validated as. + /** The name of the region for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRegion() { + return region; } - /** Name of the UrlMap resource to be validated as. */ - public Validate setUrlMap(java.lang.String urlMap) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).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.urlMap = urlMap; + this.resource = resource; return this; } @Override - public Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the VpnGateways collection. + * An accessor for creating requests from the VpnTunnels collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.VpnGateways.List request = compute.vpnGateways().list(parameters ...)}
    +   *   {@code Compute.VpnTunnels.List request = compute.vpnTunnels().list(parameters ...)}
        * 
    * * @return the resource collection */ - public VpnGateways vpnGateways() { - return new VpnGateways(); + public VpnTunnels vpnTunnels() { + return new VpnTunnels(); } /** - * The "vpnGateways" collection of methods. + * The "vpnTunnels" collection of methods. */ - public class VpnGateways { + public class VpnTunnels { /** - * Retrieves an aggregated list of VPN gateways. + * 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 "vpnGateways.aggregatedList". + * 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. @@ -226908,20 +242225,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/vpnGateways"; + private static final String REST_PATH = "projects/{project}/aggregated/vpnTunnels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "vpnGateways.aggregatedList". + * 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. @@ -226933,7 +242250,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -227388,13 +242705,13 @@ public class Delete extends ComputeRequest {@link @@ -227403,10 +242720,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -227634,13 +242951,13 @@ public class Get extends ComputeRequest {@link @@ -227649,11 +242966,11 @@ public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. + * Creates a VpnTunnel resource in the specified project and region using the data included in the + * request. * - * Create a request for the method "vpnGateways.insert". + * 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.VpnGateway} + * @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.VpnGateway content) throws java.io.IOException { + 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; @@ -228041,7 +243151,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -228050,10 +243160,10 @@ public class Insert extends ComputeRequest {@link @@ -228062,10 +243172,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -228266,9 +243376,9 @@ public class List extends ComputeRequest {@link @@ -228280,7 +243390,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -228711,10 +243821,10 @@ public class SetLabels extends ComputeRequest @@ -228927,736 +244037,59 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * An accessor for creating requests from the WireGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.VpnTunnels.List request = compute.vpnTunnels().list(parameters ...)}
    +   *   {@code Compute.WireGroups.List request = compute.wireGroups().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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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; - } + * @return the resource collection + */ + public WireGroups wireGroups() { + return new WireGroups(); + } + + /** + * The "wireGroups" collection of methods. + */ + public class WireGroups { - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } /** - * Deletes the specified VpnTunnel resource. + * Deletes the specified wire group in the given scope. * - * Create a request for the method "vpnTunnels.delete". + * 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 region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to delete. + * @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 region, java.lang.String vpnTunnel) throws java.io.IOException { - Delete result = new Delete(project, region, vpnTunnel); + 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}/regions/{region}/vpnTunnels/{vpnTunnel}"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Deletes the specified wire group in the given scope. * - * Create a request for the method "vpnTunnels.delete". + * 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 @@ -229664,11 +244097,11 @@ public class Delete extends ComputeRequest * * @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. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String vpnTunnel) { + 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()) { @@ -229676,18 +244109,8 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override @@ -229771,45 +244194,34 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public Delete setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } - /** Name of the VpnTunnel resource to delete. */ + /** Name of the wire group resource to delete. */ @com.google.api.client.util.Key - private java.lang.String vpnTunnel; + private java.lang.String wireGroup; - /** Name of the VpnTunnel resource to delete. + /** Name of the wire group resource to delete. */ - public java.lang.String getVpnTunnel() { - return vpnTunnel; + public java.lang.String getWireGroup() { + return wireGroup; } - /** 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; + /** Name of the wire group resource to delete. */ + public Delete setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; return this; } @@ -229824,7 +244236,7 @@ public Delete setVpnTunnel(java.lang.String vpnTunnel) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -229838,7 +244250,7 @@ public Delete setVpnTunnel(java.lang.String vpnTunnel) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -229855,7 +244267,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -229868,41 +244280,35 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified VpnTunnel resource. + * Gets the specified wire group resource in the given scope. * - * Create a request for the method "vpnTunnels.get". + * 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 region Name of the region for this request. - * @param vpnTunnel Name of the VpnTunnel resource to return. + * @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 region, java.lang.String vpnTunnel) throws java.io.IOException { - Get result = new Get(project, region, vpnTunnel); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Gets the specified wire group resource in the given scope. * - * Create a request for the method "vpnTunnels.get". + * 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 @@ -229910,30 +244316,20 @@ public class Get extends ComputeRequest * * @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. + * @param crossSiteNetwork + * @param wireGroup Name of the wire group 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override @@ -230027,45 +244423,34 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public Get setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } - /** Name of the VpnTunnel resource to return. */ + /** Name of the wire group resource to return. */ @com.google.api.client.util.Key - private java.lang.String vpnTunnel; + private java.lang.String wireGroup; - /** Name of the VpnTunnel resource to return. + /** Name of the wire group resource to return. */ - public java.lang.String getVpnTunnel() { - return vpnTunnel; + public java.lang.String getWireGroup() { + return wireGroup; } - /** 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; + /** Name of the wire group resource to return. */ + public Get setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; return this; } @@ -230075,40 +244460,37 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a VpnTunnel resource in the specified project and region using the data included in the - * request. + * 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 "vpnTunnels.insert". + * 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 region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.VpnTunnel} + * @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 region, com.google.api.services.compute.model.VpnTunnel content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + 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}/regions/{region}/vpnTunnels"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "vpnTunnels.insert". + * 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 @@ -230116,11 +244498,11 @@ public class Insert extends ComputeRequest * * @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} + * @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 region, com.google.api.services.compute.model.VpnTunnel content) { + 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()) { @@ -230128,12 +244510,7 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); } @Override @@ -230217,24 +244594,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public Insert setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } @@ -230249,7 +244620,7 @@ public Insert setRegion(java.lang.String region) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -230263,7 +244634,7 @@ public Insert setRegion(java.lang.String region) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -230280,50 +244651,65 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (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); } } /** - * Retrieves a list of VpnTunnel resources contained in the specified project and region. + * Lists the wire groups for a project in the given scope. * - * Create a request for the method "vpnTunnels.list". + * 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 region Name of the region for this request. + * @param crossSiteNetwork * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists the wire groups for a project in the given scope. * - * Create a request for the method "vpnTunnels.list". + * 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 @@ -230331,23 +244717,18 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param crossSiteNetwork * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); } @Override @@ -230441,24 +244822,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** Name of the region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public List setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } @@ -230732,137 +245107,120 @@ public List set(String parameterName, Object value) { } } /** - * Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources - * documentation. + * 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 "vpnTunnels.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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} + * @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 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); + 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 SetLabels extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "vpnTunnels.setLabels". + * 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 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.

    + * 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 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} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -230876,7 +245234,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -230886,45 +245244,34 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String crossSiteNetwork; + + /** - /** The region for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getCrossSiteNetwork() { + return crossSiteNetwork; } - /** 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; + public Patch setCrossSiteNetwork(java.lang.String crossSiteNetwork) { + this.crossSiteNetwork = crossSiteNetwork; return this; } - /** Name or id of the resource for this request. */ + /** Name of the WireGroups resource to patch. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String wireGroup; - /** Name or id of the resource for this request. + /** Name of the WireGroups resource to patch. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getWireGroup() { + return wireGroup; } - /** 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; + /** Name of the WireGroups resource to patch. */ + public Patch setWireGroup(java.lang.String wireGroup) { + this.wireGroup = wireGroup; return this; } @@ -230939,7 +245286,7 @@ public SetLabels setResource(java.lang.String resource) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -230953,7 +245300,7 @@ public SetLabels setResource(java.lang.String resource) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -230970,71 +245317,112 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public SetLabels setRequestId(java.lang.String requestId) { + 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 SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the WireGroups collection. + * An accessor for creating requests from the ZoneOperations collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.WireGroups.List request = compute.wireGroups().list(parameters ...)}
    +   *   {@code Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)}
        * 
    * * @return the resource collection */ - public WireGroups wireGroups() { - return new WireGroups(); + public ZoneOperations zoneOperations() { + return new ZoneOperations(); } /** - * The "wireGroups" collection of methods. + * The "zoneOperations" collection of methods. */ - public class WireGroups { + public class ZoneOperations { /** - * Deletes the specified wire group in the given scope. + * Deletes the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.delete". + * 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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to delete. + * @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 crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { - Delete result = new Delete(project, crossSiteNetwork, wireGroup); + 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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 wire group in the given scope. + * Deletes the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.delete". + * 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 @@ -231042,20 +245430,31 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the wire group resource to delete. + * @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 crossSiteNetwork, java.lang.String wireGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -231139,83 +245538,49 @@ public Delete setProject(java.lang.String project) { return this; } + /** Name of the zone for this request. */ @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; + private java.lang.String zone; - /** Name of the wire group resource to delete. + /** Name of the zone for this request. */ - public java.lang.String getWireGroup() { - return wireGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the wire group resource to delete. */ - public Delete setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; + /** 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 + * Name of the Operations resource to delete, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - 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 + /** Name of the Operations resource to delete, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 + * Name of the Operations resource to delete, or its unique numeric identifier. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; } @@ -231225,35 +245590,42 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets the specified wire group resource in the given scope. + * Retrieves the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.get". + * 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 crossSiteNetwork - * @param wireGroup Name of the wire group resource to return. + * @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 crossSiteNetwork, java.lang.String wireGroup) throws java.io.IOException { - Get result = new Get(project, crossSiteNetwork, wireGroup); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Gets the specified wire group resource in the given scope. + * Retrieves the specified zone-specific Operations resource. * - * Create a request for the method "wireGroups.get". + * 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 @@ -231261,20 +245633,31 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param crossSiteNetwork - * @param wireGroup Name of the wire group resource to return. + * @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 crossSiteNetwork, java.lang.String wireGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.WireGroup.class); + 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.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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -231368,293 +245751,89 @@ public Get setProject(java.lang.String project) { return this; } + /** Name of the zone for this request. */ @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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; + private java.lang.String zone; - /** Project ID for this request. + /** Name of the zone for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getZone() { + return zone; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-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; + 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). end_interface: MixerMutationRequestBuilder + * Name of the Operations resource to return, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - 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 + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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. - [ - + * Name of the Operations resource to return, or its unique numeric identifier. */ - 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; + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists the wire groups for a project in the given scope. + * Retrieves a list of Operation resources contained within the specified zone. * - * Create a request for the method "wireGroups.list". + * 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 crossSiteNetwork + * @param zone Name of the zone for request. * @return the request */ - public List list(java.lang.String project, java.lang.String crossSiteNetwork) throws java.io.IOException { - List result = new List(project, crossSiteNetwork); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 the wire groups for a project in the given scope. + * Retrieves a list of Operation resources contained within the specified zone. * - * Create a request for the method "wireGroups.list". + * 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 @@ -231662,18 +245841,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param crossSiteNetwork + * @param zone Name of the zone for request. * @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); + 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.crossSiteNetwork = com.google.api.client.util.Preconditions.checkNotNull(crossSiteNetwork, "Required parameter crossSiteNetwork must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -231767,18 +245951,24 @@ public List setProject(java.lang.String project) { return this; } + /** Name of the zone for request. */ @com.google.api.client.util.Key - private java.lang.String crossSiteNetwork; - - /** + private java.lang.String zone; + /** Name of the zone for request. */ - public java.lang.String getCrossSiteNetwork() { - return crossSiteNetwork; + public java.lang.String getZone() { + return zone; } - public List setCrossSiteNetwork(java.lang.String crossSiteNetwork) { - this.crossSiteNetwork = crossSiteNetwork; + /** 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; } @@ -232052,120 +246242,152 @@ public List set(String parameterName, Object 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. + * 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. * - * Create a request for the method "wireGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class Wait extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}/wait"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * 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. + * 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. * - * Create a request for the method "wireGroups.patch". + * 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 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.

    + * 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 crossSiteNetwork - * @param wireGroup Name of the WireGroups resource to patch. - * @param content the {@link com.google.api.services.compute.model.WireGroup} + * @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 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); + 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.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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Wait setUserIp(java.lang.String userIp) { + return (Wait) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -232179,7 +246401,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -232189,171 +246411,102 @@ public Patch setProject(java.lang.String project) { return this; } + /** Name of the zone for this request. */ @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; + private java.lang.String zone; - /** Name of the WireGroups resource to patch. + /** Name of the zone for this request. */ - public java.lang.String getWireGroup() { - return wireGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the WireGroups resource to patch. */ - public Patch setWireGroup(java.lang.String wireGroup) { - this.wireGroup = wireGroup; + /** 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 + * Name of the Operations resource to return, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - 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 + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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. - [ - + * Name of the Operations resource to return, or its unique numeric identifier. */ - 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; + 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the ZoneOperations collection. + * An accessor for creating requests from the ZoneVmExtensionPolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ZoneOperations.List request = compute.zoneOperations().list(parameters ...)}
    +   *   {@code Compute.ZoneVmExtensionPolicies.List request = compute.zoneVmExtensionPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ZoneOperations zoneOperations() { - return new ZoneOperations(); + public ZoneVmExtensionPolicies zoneVmExtensionPolicies() { + return new ZoneVmExtensionPolicies(); } /** - * The "zoneOperations" collection of methods. + * The "zoneVmExtensionPolicies" collection of methods. */ - public class ZoneOperations { + public class ZoneVmExtensionPolicies { /** - * Deletes the specified zone-specific Operations resource. + * Deletes a specified zone VM extension policy. * - * Create a request for the method "zoneOperations.delete". + * 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 operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @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 operation) throws java.io.IOException { - Delete result = new Delete(project, zone, operation); + 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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -232361,13 +246514,10 @@ public class Delete extends ComputeRequest { 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. + * Deletes a specified zone VM extension policy. * - * Create a request for the method "zoneOperations.delete". + * 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 @@ -232376,12 +246526,11 @@ public class Delete extends ComputeRequest { * * @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. + * @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 operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.class); + 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(), @@ -232394,12 +246543,7 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "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}"); - } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); } @Override @@ -232504,28 +246648,68 @@ public Delete setZone(java.lang.String 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; + } + /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String requestId; - /** Name of the Operations resource to delete, or its unique numeric identifier. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 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; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @@ -232535,28 +246719,27 @@ public Delete set(String parameterName, Object value) { } } /** - * Retrieves the specified zone-specific Operations resource. + * Retrieves details of a specific zone VM extension policy. * - * Create a request for the method "zoneOperations.get". + * 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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @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 operation) throws java.io.IOException { - Get result = new Get(project, zone, operation); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -232564,13 +246747,13 @@ public class Get extends ComputeRequest {@link @@ -232579,12 +246762,11 @@ public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 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 { @@ -232765,9 +247159,9 @@ public List list(java.lang.String project, java.lang.String zone) throws java.io return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -232776,9 +247170,9 @@ public class List extends ComputeRequest {@link @@ -232786,11 +247180,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone for 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.OperationList.class); + 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(), @@ -232896,17 +247290,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the zone for request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** Name of the zone for request. + /** Name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Name of the zone for request. */ + /** 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(), @@ -233187,37 +247581,28 @@ public List set(String parameterName, Object 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. + * Modifies an existing zone VM extension policy. * - * 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". + * 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 Wait#execute()} method to invoke the remote operation. + * 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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @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 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); + 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 Wait extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/operations/{operation}/wait"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -233225,36 +247610,24 @@ public class Wait extends ComputeRequest {@link - * Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @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 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); + 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(), @@ -233267,72 +247640,67 @@ protected Wait(java.lang.String project, java.lang.String zone, java.lang.String "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}"); - } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -233346,7 +247714,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Wait setProject(java.lang.String project) { + 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 " + @@ -233367,7 +247735,7 @@ public java.lang.String getZone() { } /** Name of the zone for this request. */ - public Wait setZone(java.lang.String zone) { + 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 " + @@ -233377,34 +247745,74 @@ public Wait setZone(java.lang.String 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; + } + /** - * Name of the Operations resource to return, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String requestId; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } @@ -234047,8 +248455,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java index ca908adabeb..bb97180b273 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -62,7 +62,8 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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 @@ -83,7 +84,7 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,7 +168,8 @@ public AcceleratorType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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() { @@ -175,7 +177,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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) { @@ -218,7 +221,7 @@ public AcceleratorType setName(java.lang.String name) { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -226,7 +229,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java index 01a36ed3d8c..8ef1a82145b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated - * lists of accelerator types. + * 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 @@ -62,14 +62,14 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AcceleratorTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AcceleratorTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java index d6ce17db7a8..8573d2e33b6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -50,8 +50,8 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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 @@ -68,7 +68,7 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public AcceleratorTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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) { @@ -158,7 +158,7 @@ public AcceleratorTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java index de46a322098..41d68db5279 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -49,7 +49,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.Integer externalIpv6PrefixLength; /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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 @@ -168,7 +168,7 @@ public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6Pr } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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() { @@ -176,7 +176,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java index 0b32e7be57c..b4942471b19 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java @@ -53,7 +53,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String addressType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,12 +67,27 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for + * BYOIP. The PDP must support enhanced IPv4 allocations. + * + * Use one of the following formats to specify a PDP when reserving an external IPv4 address using + * BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/proj + * ectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in + * - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/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 address. Valid options areIPV4 or IPV6. * The value may be {@code null}. @@ -89,7 +104,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String ipv6EndpointType; /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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 @@ -175,9 +190,9 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String purpose; /** - * [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.* + * 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 @@ -191,10 +206,10 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [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. + * 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 @@ -253,7 +268,7 @@ public Address setAddressType(java.lang.String addressType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -261,7 +276,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Address setCreationTimestamp(java.lang.String creationTimestamp) { @@ -287,7 +302,8 @@ public Address setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -295,7 +311,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -303,6 +320,37 @@ public Address setId(java.math.BigInteger id) { return this; } + /** + * Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for + * BYOIP. The PDP must support enhanced IPv4 allocations. + * + * Use one of the following formats to specify a PDP when reserving an external IPv4 address using + * BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/proj + * ectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in + * - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * @return value or {@code null} for none + */ + public java.lang.String getIpCollection() { + return ipCollection; + } + + /** + * Reference to the source of external IPv4 addresses, like a PublicDelegatedPrefix (PDP) for + * BYOIP. The PDP must support enhanced IPv4 allocations. + * + * Use one of the following formats to specify a PDP when reserving an external IPv4 address using + * BYOIP. - Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/proj + * ectId/regions/region/publicDelegatedPrefixes/pdp-name - Partial URL, as in + * - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - + * regions/region/publicDelegatedPrefixes/pdp-name + * @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 @@ -340,7 +388,7 @@ public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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() { @@ -348,7 +396,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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) { @@ -576,9 +624,9 @@ public Address setPurpose(java.lang.String purpose) { } /** - * [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.* + * 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() { @@ -586,9 +634,9 @@ public java.lang.String getRegion() { } /** - * [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.* + * 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) { @@ -614,10 +662,10 @@ public Address setSelfLink(java.lang.String selfLink) { } /** - * [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. + * 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() { @@ -625,10 +673,10 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java index ce17cb61122..981d91082fb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -44,8 +44,8 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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 @@ -62,14 +62,14 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AddressAggregatedList setItems(java.util.Map } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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) { @@ -159,7 +159,7 @@ public AddressAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +176,7 @@ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AddressAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java index 68e6eb54491..62ab8af2ff8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -50,7 +50,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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 @@ -67,7 +67,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public AddressList setItems(java.util.List
      items) { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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) { @@ -155,7 +155,7 @@ public AddressList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java index e907d5d5764..caf9d9f3bae 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -32,7 +32,7 @@ public final class AllocationAggregateReservation extends com.google.api.client.json.GenericJson { /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,7 +60,7 @@ public final class AllocationAggregateReservation extends com.google.api.client. private java.lang.String workloadType; /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * @return value or {@code null} for none */ public java.util.List getInUseResources() { @@ -68,7 +68,7 @@ public java.util.List getInU } /** - * [Output only] List of resources currently in use. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java index 0803ac39c58..259f3403934 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -17,7 +17,7 @@ package com.google.api.services.compute.model; /** - * Properties of the SKU instances being reserved. Next ID: 9 + * 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: diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java index d928aa8151f..de9079076b2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -30,7 +30,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates how many instances are actually usable currently. + * 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 @@ -44,7 +44,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.Long count; /** - * [Output Only] Indicates how many instances are in use. + * 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 @@ -72,7 +72,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.String sourceInstanceTemplate; /** - * [Output Only] Indicates how many instances are actually usable currently. + * Output only. [Output Only] Indicates how many instances are actually usable currently. * @return value or {@code null} for none */ public java.lang.Long getAssuredCount() { @@ -80,7 +80,7 @@ public java.lang.Long getAssuredCount() { } /** - * [Output Only] Indicates how many instances are actually usable currently. + * 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) { @@ -106,7 +106,7 @@ public AllocationSpecificSKUReservation setCount(java.lang.Long count) { } /** - * [Output Only] Indicates how many instances are in use. + * Output only. [Output Only] Indicates how many instances are in use. * @return value or {@code null} for none */ public java.lang.Long getInUseCount() { @@ -114,7 +114,7 @@ public java.lang.Long getInUseCount() { } /** - * [Output Only] Indicates how many instances are in use. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java index f1f04e90ea5..d5949cb674e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -30,7 +30,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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 @@ -116,8 +117,9 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [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. + * 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 @@ -145,14 +147,14 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,16 +169,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String mode; /** - * 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. + * 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] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -206,7 +208,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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() { @@ -214,7 +217,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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) { @@ -402,8 +406,9 @@ public AttachedDisk setGuestOsFeatures(java.util.List guestOsFea } /** - * [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. + * 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() { @@ -411,8 +416,9 @@ public java.lang.Integer getIndex() { } /** - * [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. + * 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) { @@ -469,7 +475,7 @@ public AttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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() { @@ -477,7 +483,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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) { @@ -486,7 +492,7 @@ public AttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -494,7 +500,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible 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) { @@ -522,9 +528,9 @@ public AttachedDisk setMode(java.lang.String mode) { } /** - * 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. + * 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() { @@ -532,9 +538,9 @@ public java.lang.String getSavedState() { } /** - * 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. + * 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) { @@ -543,7 +549,7 @@ public AttachedDisk setSavedState(java.lang.String savedState) { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @return value or {@code null} for none */ public InitialStateConfig getShieldedInstanceInitialState() { @@ -551,7 +557,7 @@ public InitialStateConfig getShieldedInstanceInitialState() { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none */ public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index de8d155316a..527ca739be4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -145,9 +145,11 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js private java.util.List replicaZones; /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 @@ -489,9 +491,11 @@ public AttachedDiskInitializeParams setReplicaZones(java.util.List getResourceManagerTags() { @@ -499,9 +503,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java index c2037360ae4..a15b4e5d32a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -53,7 +53,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private AutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,15 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#autoscaler for autoscalers. + * 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 @@ -92,25 +93,25 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [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. + * 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] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -155,8 +156,8 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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 @@ -188,7 +189,7 @@ public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -196,7 +197,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { @@ -222,7 +223,8 @@ public Autoscaler setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -230,7 +232,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -239,7 +242,7 @@ public Autoscaler setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * 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() { @@ -247,7 +250,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * 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) { @@ -281,10 +284,10 @@ public Autoscaler setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -292,10 +295,10 @@ public java.lang.Integer getRecommendedSize() { } /** - * [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. + * 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) { @@ -304,8 +307,8 @@ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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() { @@ -313,8 +316,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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) { @@ -323,7 +326,7 @@ public Autoscaler setRegion(java.lang.String region) { } /** - * [Output Only] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * @return value or {@code null} for none */ public java.util.Map getScalingScheduleStatus() { @@ -331,7 +334,7 @@ public java.util.Map getScalingScheduleStatus() { } /** - * [Output Only] Status information of existing scaling schedules. + * 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) { @@ -428,8 +431,8 @@ public Autoscaler setTarget(java.lang.String target) { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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() { @@ -437,8 +440,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java index 579ee9e1a4a..0b34b95a635 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -44,8 +44,8 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of - * autoscalers. + * 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 @@ -62,14 +62,15 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,8 @@ public AutoscalerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java index a53c5719b71..3fe3fa8efb5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -50,7 +50,8 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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 @@ -67,7 +68,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public AutoscalerList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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) { @@ -155,7 +158,7 @@ public AutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java index 2136351b4ba..ea21a03b0aa 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Backend.java @@ -165,6 +165,13 @@ public final class Backend extends com.google.api.client.json.GenericJson { @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 @@ -488,6 +495,23 @@ public Backend setMaxUtilization(java.lang.Float 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java index c97ae845d6e..3cefb82d3e5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -99,7 +99,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Type of the resource. + * Output only. Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -308,7 +308,7 @@ public BackendBucket setId(java.math.BigInteger id) { } /** - * Type of the resource. + * Output only. Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -316,7 +316,7 @@ public java.lang.String getKind() { } /** - * Type of the resource. + * Output only. Type of the resource. * @param kind kind or {@code null} for none */ public BackendBucket setKind(java.lang.String kind) { @@ -409,7 +409,7 @@ public BackendBucket setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -417,7 +417,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing that backend bucket. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java index bbae1324bd2..eeaa03daf08 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketList.java @@ -50,7 +50,7 @@ public final class BackendBucketList extends com.google.api.client.json.GenericJ } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class BackendBucketList extends com.google.api.client.json.GenericJ private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public BackendBucketList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public BackendBucketList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java index da75c481ccb..e7045e0c2e3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java @@ -30,14 +30,14 @@ public final class BackendBucketUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * 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] Server-defined URL for UrlMaps referencing that BackendBucket. + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -45,7 +45,7 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java index 05bc6020d7d..e5725453eb2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -127,7 +127,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private ConsistentHashLoadBalancerSettings consistentHash; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -322,7 +322,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String ipAddressSelectionPolicy; /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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 @@ -442,6 +443,22 @@ public final class BackendService extends com.google.api.client.json.GenericJson @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 @@ -516,9 +533,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String protocol; /** - * [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. + * 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 @@ -621,7 +638,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private BackendServiceTlsSettings tlsSettings; /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -808,7 +825,7 @@ public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consi } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -816,7 +833,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1284,7 +1301,8 @@ public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSele } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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() { @@ -1292,7 +1310,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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) { @@ -1552,6 +1571,44 @@ public BackendService setNetwork(java.lang.String 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 @@ -1714,9 +1771,9 @@ public BackendService setProtocol(java.lang.String protocol) { } /** - * [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. + * 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() { @@ -1724,9 +1781,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1957,7 +2014,7 @@ public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { } /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -1965,7 +2022,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing given backend service. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java index e0afada0240..313198d23b6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public BackendServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public BackendServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java index efdb6b23e77..6d41f11341d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -38,7 +38,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * The value may be {@code null}. @@ -73,7 +73,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.js private java.lang.Float failoverRatio; /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * @return value or {@code null} for none @@ -83,7 +83,7 @@ public java.lang.Boolean getDisableConnectionDrainOnFailover() { } /** - * This can be set to true only if the protocol isTCP. + * 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java index bc3239368af..2df9c4eb5fe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -45,8 +45,8 @@ public final class BackendServiceGroupHealth extends com.google.api.client.json. private java.util.List healthStatus; /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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 @@ -89,8 +89,8 @@ public BackendServiceGroupHealth setHealthStatus(java.util.List he } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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() { @@ -98,8 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java index 04c9a74f9e2..dd4899bf142 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -55,7 +55,7 @@ public final class BackendServiceIAP extends com.google.api.client.json.GenericJ private java.lang.String oauth2ClientSecret; /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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 @@ -121,7 +121,7 @@ public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecr } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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() { @@ -129,7 +129,7 @@ public java.lang.String getOauth2ClientSecretSha256() { } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java index 55bacc0e85b..a9fbe1babdc 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -50,7 +50,8 @@ public final class BackendServiceList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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 @@ -67,7 +68,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public BackendServiceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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) { @@ -155,7 +158,7 @@ public BackendServiceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java index 68b53b5decb..eeee3073ad5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -50,8 +50,8 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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 @@ -68,7 +68,7 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public BackendServiceListUsable setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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) { @@ -158,7 +158,7 @@ public BackendServiceListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java index cebbcab9361..d1f47ab4d6d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java @@ -30,16 +30,16 @@ public final class BackendServiceUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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() { @@ -47,8 +47,8 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java index 9c057f2e6c6..f4e2917b118 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -30,42 +30,42 @@ public final class BgpRoute extends com.google.api.client.json.GenericJson { /** - * [Output only] AS-PATH for the route + * 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] BGP communities in human-readable A:B format. + * 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] Destination IP range for the route, in human-readable CIDR format + * 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] BGP multi-exit discriminator + * 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] BGP origin (EGP, IGP or INCOMPLETE) + * 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] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -73,7 +73,7 @@ public java.util.List getAsPaths() { } /** - * [Output only] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @param asPaths asPaths or {@code null} for none */ public BgpRoute setAsPaths(java.util.List asPaths) { @@ -82,7 +82,7 @@ public BgpRoute setAsPaths(java.util.List asPaths) { } /** - * [Output only] BGP communities in human-readable A:B format. + * Output only. [Output only] BGP communities in human-readable A:B format. * @return value or {@code null} for none */ public java.util.List getCommunities() { @@ -90,7 +90,7 @@ public java.util.List getCommunities() { } /** - * [Output only] BGP communities in human-readable A:B format. + * 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) { @@ -99,7 +99,7 @@ public BgpRoute setCommunities(java.util.List communities) { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * 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() { @@ -107,7 +107,7 @@ public BgpRouteNetworkLayerReachabilityInformation getDestination() { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * 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) { @@ -116,7 +116,7 @@ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation desti } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @return value or {@code null} for none */ public java.lang.Long getMed() { @@ -124,7 +124,7 @@ public java.lang.Long getMed() { } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @param med med or {@code null} for none */ public BgpRoute setMed(java.lang.Long med) { @@ -133,7 +133,7 @@ public BgpRoute setMed(java.lang.Long med) { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @return value or {@code null} for none */ public java.lang.String getOrigin() { @@ -141,7 +141,7 @@ public java.lang.String getOrigin() { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java index da0ffd82c86..34de456cbc3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -30,30 +30,30 @@ public final class BgpRouteAsPath extends com.google.api.client.json.GenericJson { /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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] 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. + * 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] Type of AS-PATH segment (SEQUENCE or SET) + * 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] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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() { @@ -61,7 +61,7 @@ public java.util.List getAsns() { } /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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) { @@ -70,9 +70,9 @@ public BgpRouteAsPath setAsns(java.util.List asns) { } /** - * [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. + * 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() { @@ -80,9 +80,9 @@ public java.util.List getAsns32() { } /** - * [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. + * 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) { @@ -91,7 +91,7 @@ public BgpRouteAsPath setAsns32(java.util.List asns32) { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @return value or {@code null} for none */ public java.lang.String getType() { @@ -99,7 +99,7 @@ public java.lang.String getType() { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java index 85b65abd943..00fb6aa915d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java @@ -37,6 +37,13 @@ public final class BulkInsertInstanceResource extends com.google.api.client.json @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. @@ -117,6 +124,23 @@ public BulkInsertInstanceResource setCount(java.lang.Long 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. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java index aca17118fa4..e8d1e697aa7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -38,7 +38,7 @@ public final class BulkInsertInstanceResourcePerInstanceProperties extends com.g private java.lang.String hostname; /** - * This field is only temporary. It will be removed. Do not use it. + * 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 @@ -64,7 +64,7 @@ public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.Str } /** - * This field is only temporary. It will be removed. Do not use it. + * 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() { @@ -72,7 +72,7 @@ public java.lang.String getName() { } /** - * This field is only temporary. It will be removed. Do not use it. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BundledLocalSsds.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceRequest.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/CalendarModeAdviceResponse.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/CalendarModeRecommendation.java b/clients/google-api-services-compute/v1/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/v1/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/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 b8cecc3fbc9..5d94997191e 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 @@ -58,7 +58,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String category; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,14 +95,15 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List existingReservations; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#commitment for commitments. + * 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 @@ -146,7 +147,8 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String plan; /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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 @@ -166,7 +168,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List reservations; /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -181,7 +183,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List resources; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,23 +198,23 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String splitSourceCommitment; /** - * [Output Only] Commitment start time inRFC3339 text format. + * 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] 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. + * 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] An optional, human-readable explanation of the 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 @@ -228,10 +230,11 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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 @@ -290,7 +293,7 @@ public Commitment setCategory(java.lang.String category) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -298,7 +301,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -347,7 +350,7 @@ public Commitment setDescription(java.lang.String description) { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getEndTimestamp() { @@ -355,7 +358,7 @@ public java.lang.String getEndTimestamp() { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * 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) { @@ -379,7 +382,8 @@ public Commitment setExistingReservations(java.util.List exist } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -387,7 +391,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -396,7 +401,7 @@ public Commitment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * 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() { @@ -404,7 +409,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * 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) { @@ -499,7 +504,8 @@ public Commitment setPlan(java.lang.String plan) { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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() { @@ -507,7 +513,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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) { @@ -545,7 +552,7 @@ public Commitment setReservations(java.util.List reservations) { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @return value or {@code null} for none */ public CommitmentResourceStatus getResourceStatus() { @@ -553,7 +560,7 @@ public CommitmentResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { @@ -581,7 +588,7 @@ public Commitment setResources(java.util.List resources) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -589,7 +596,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -617,7 +624,7 @@ public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitmen } /** - * [Output Only] Commitment start time inRFC3339 text format. + * Output only. [Output Only] Commitment start time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getStartTimestamp() { @@ -625,7 +632,7 @@ public java.lang.String getStartTimestamp() { } /** - * [Output Only] Commitment start time inRFC3339 text format. + * 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) { @@ -634,9 +641,9 @@ public Commitment setStartTimestamp(java.lang.String startTimestamp) { } /** - * [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. + * 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() { @@ -644,9 +651,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -655,7 +662,7 @@ public Commitment setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -663,7 +670,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { @@ -681,10 +688,11 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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() { @@ -701,10 +709,11 @@ public java.lang.String getType() { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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/CommitmentAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java index ebea0717115..f2e7e93ec6f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -44,8 +44,8 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of - * commitments. + * 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 @@ -62,14 +62,14 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public CommitmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CommitmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java index 888c1afdb74..1b42ceec78e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -50,7 +50,8 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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 @@ -67,7 +68,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public CommitmentList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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) { @@ -155,7 +158,7 @@ public CommitmentList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java index f044c949ee2..f2ef349ba88 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -30,18 +30,18 @@ public final class CommitmentResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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() { @@ -49,9 +49,9 @@ public java.lang.String getCustomTermEligibilityEndTimestamp() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java new file mode 100644 index 00000000000..88a96d851a4 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java new file mode 100644 index 00000000000..d0904ef3566 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksScopedList.java new file mode 100644 index 00000000000..a565eeba4d2 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java index 46323370db3..02b1ed22200 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -33,7 +33,7 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +47,16 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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 @@ -73,14 +74,14 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -88,7 +89,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -114,8 +115,8 @@ public CrossSiteNetwork setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -123,8 +124,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -133,7 +134,8 @@ public CrossSiteNetwork setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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() { @@ -141,7 +143,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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) { @@ -175,7 +178,7 @@ public CrossSiteNetwork setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -183,7 +186,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java index 110bd4bdc2d..24e29d0450f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -56,7 +56,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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 @@ -80,7 +81,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public CrossSiteNetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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) { @@ -200,7 +204,8 @@ public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public CrossSiteNetworkList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java index bd7dd2119f6..43ef748e5ec 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Disk.java @@ -72,14 +72,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private DiskAsyncReplication asyncPrimaryDisk; /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -133,14 +133,15 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#disk for disks. + * 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 @@ -167,14 +168,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * 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] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -256,9 +257,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long provisionedThroughput; /** - * [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. + * 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 @@ -280,7 +281,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -294,14 +295,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -320,16 +321,16 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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 @@ -349,10 +350,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceDisk; /** - * [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. + * 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 @@ -394,10 +395,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [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. + * 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 @@ -415,8 +416,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstantSnapshot; /** - * [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 + * 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. @@ -444,10 +445,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [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. + * 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 @@ -465,9 +466,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceStorageObject; /** - * [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. + * 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 @@ -494,7 +495,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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}. */ @@ -502,8 +503,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List users; /** - * [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. + * 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 @@ -573,7 +574,7 @@ public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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() { @@ -581,7 +582,7 @@ public java.util.Map getAsyncSecondaryDisks() } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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) { @@ -590,7 +591,7 @@ public Disk setAsyncSecondaryDisks(java.util.Map guestOsFeatures) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -721,7 +723,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -730,7 +733,7 @@ public Disk setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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() { @@ -738,7 +741,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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) { @@ -833,7 +836,7 @@ public Disk setLabels(java.util.Map labels) { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastAttachTimestamp() { @@ -841,7 +844,7 @@ public java.lang.String getLastAttachTimestamp() { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * 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) { @@ -850,7 +853,7 @@ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastDetachTimestamp() { @@ -858,7 +861,7 @@ public java.lang.String getLastDetachTimestamp() { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * 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) { @@ -1044,9 +1047,9 @@ public Disk setProvisionedThroughput(java.lang.Long provisionedThroughput) { } /** - * [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. + * 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() { @@ -1054,9 +1057,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1101,7 +1104,7 @@ public Disk setResourcePolicies(java.util.List resourcePolicie } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @return value or {@code null} for none */ public DiskResourceStatus getResourceStatus() { @@ -1109,7 +1112,7 @@ public DiskResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Disk setResourceStatus(DiskResourceStatus resourceStatus) { @@ -1135,7 +1138,7 @@ public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1143,7 +1146,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1152,7 +1155,7 @@ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1160,7 +1163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -1196,8 +1199,8 @@ public Disk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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() { @@ -1205,8 +1208,8 @@ public java.lang.String getSourceConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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) { @@ -1215,8 +1218,8 @@ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGr } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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() { @@ -1224,8 +1227,8 @@ public java.lang.String getSourceConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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) { @@ -1263,10 +1266,10 @@ public Disk setSourceDisk(java.lang.String sourceDisk) { } /** - * [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. + * 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() { @@ -1274,10 +1277,10 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1362,10 +1365,10 @@ public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncrypt } /** - * [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. + * 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() { @@ -1373,10 +1376,10 @@ public java.lang.String getSourceImageId() { } /** - * [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. + * 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) { @@ -1410,8 +1413,8 @@ public Disk setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { } /** - * [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 + * 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. @@ -1422,8 +1425,8 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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 + * 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. @@ -1477,10 +1480,10 @@ public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotE } /** - * [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. + * 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() { @@ -1488,10 +1491,10 @@ public java.lang.String getSourceSnapshotId() { } /** - * [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. + * 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) { @@ -1525,9 +1528,9 @@ public Disk setSourceStorageObject(java.lang.String sourceStorageObject) { } /** - * [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. + * 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() { @@ -1535,9 +1538,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1592,7 +1595,7 @@ public Disk setType(java.lang.String type) { } /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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 */ @@ -1601,7 +1604,7 @@ public java.util.List getUsers() { } /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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 */ @@ -1611,8 +1614,8 @@ public Disk setUsers(java.util.List users) { } /** - * [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. + * 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() { @@ -1620,8 +1623,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java index b61dce2084d..a396284404a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -44,8 +44,8 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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 @@ -62,14 +62,14 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public DiskAggregatedList setItems(java.util.Map items) } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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) { @@ -159,7 +159,7 @@ public DiskAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +176,7 @@ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java index c8fb4fbcba9..e31cddc0dd0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -30,16 +30,16 @@ public final class DiskAsyncReplication extends com.google.api.client.json.GenericJson { /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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 @@ -56,19 +56,19 @@ public final class DiskAsyncReplication extends com.google.api.client.json.Gener private java.lang.String disk; /** - * [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. + * 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] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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) { @@ -86,8 +86,8 @@ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consisten } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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) { @@ -128,11 +128,11 @@ public DiskAsyncReplication setDisk(java.lang.String disk) { } /** - * [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. + * 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() { @@ -140,11 +140,11 @@ public java.lang.String getDiskId() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java index 340802d6056..af6eab69258 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -50,7 +50,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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 @@ -67,7 +67,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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) { @@ -155,7 +155,7 @@ public DiskList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java index 1ffac25638f..ca12f2eb573 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -30,18 +30,22 @@ public final class DiskParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java index 5e4e104b541..68f00cf8b7e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -79,7 +79,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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 @@ -209,7 +209,7 @@ public DiskType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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() { @@ -217,7 +217,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java index c1ded43bc49..cf1cb69068d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public DiskTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java index 514356f0f16..c14af4a2a50 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -50,7 +50,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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 @@ -67,7 +67,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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) { @@ -155,7 +155,7 @@ public DiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java index b9ce02ac6f5..5559090d792 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -38,7 +38,11 @@ public final class DistributionPolicy extends com.google.api.client.json.Generic private java.lang.String targetShape; /** - * Zones where the regional managed instance group will create and manage its instances. + * 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 @@ -64,7 +68,11 @@ public DistributionPolicy setTargetShape(java.lang.String targetShape) { } /** - * Zones where the regional managed instance group will create and manage its instances. + * 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() { @@ -72,7 +80,11 @@ public java.util.List getZones() { } /** - * Zones where the regional managed instance group will create and manage its instances. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java index b29773cfbb2..5e63c8f113a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -50,8 +50,8 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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 @@ -68,7 +68,7 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public ExchangedPeeringRoutesList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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) { @@ -158,7 +158,7 @@ public ExchangedPeeringRoutesList setNextPageToken(java.lang.String nextPageToke } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java index 8e6b9b4a0b1..268e207e284 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -40,7 +40,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +54,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -72,7 +73,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.util.List interfaces; /** - * [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,6 +112,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic @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}. @@ -118,14 +128,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String redundancyType; /** - * [Output Only] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -133,7 +143,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -159,7 +169,8 @@ public ExternalVpnGateway setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -167,7 +178,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -201,7 +213,8 @@ public ExternalVpnGateway setInterfaces(java.util.List items) } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @return value or {@code null} for none */ @@ -146,7 +146,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @param kind kind or {@code null} for none */ @@ -179,7 +179,7 @@ public ExternalVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -187,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java index a183f6c8ef6..790c4fd6faa 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -47,7 +47,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -101,14 +101,15 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.Boolean disabled; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#firewall for firewall rules. + * 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 @@ -256,7 +257,7 @@ public Firewall setAllowed(java.util.List allowed) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -264,7 +265,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { @@ -370,7 +371,8 @@ public Firewall setDisabled(java.lang.Boolean disabled) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -378,7 +380,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -387,7 +390,7 @@ public Firewall setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * 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() { @@ -395,7 +398,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java index 96b60b0b731..c80b819385c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -50,7 +50,8 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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 @@ -67,7 +68,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public FirewallList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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) { @@ -155,7 +158,7 @@ public FirewallList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java index 609dcacbde5..3f0fd7877bd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class FirewallPoliciesListAssociationsResponse extends com.google.a private java.util.List associations; /** - * [Output Only] Type of firewallPolicy associations. + * Output only. [Output Only] Type of firewallPolicy associations. * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. * The value may be {@code null}. */ @@ -62,7 +62,7 @@ public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,8 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,8 +108,8 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.util.List packetMirroringRules; /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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 @@ -124,17 +125,17 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String policyType; /** - * [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. + * 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] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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 @@ -157,7 +158,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -194,7 +195,7 @@ public FirewallPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -202,7 +203,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -345,7 +346,8 @@ public FirewallPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -353,7 +355,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * 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) { @@ -398,8 +401,8 @@ public FirewallPolicy setPacketMirroringRules(java.util.List } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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() { @@ -407,8 +410,8 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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) { @@ -438,9 +441,9 @@ public FirewallPolicy setPolicyType(java.lang.String policyType) { } /** - * [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. + * 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() { @@ -448,9 +451,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -459,8 +462,8 @@ public FirewallPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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() { @@ -468,8 +471,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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) { @@ -516,7 +519,7 @@ public FirewallPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -524,7 +527,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index e9de8434872..5c30821cd4c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -45,7 +45,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String displayName; /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,7 +59,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * [Output Only] The short name of the firewall policy of the association. + * 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 @@ -102,7 +102,7 @@ public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { } /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicyId() { @@ -110,7 +110,7 @@ public java.lang.String getFirewallPolicyId() { } /** - * [Output Only] The firewall policy ID of the association. + * 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) { @@ -136,7 +136,7 @@ public FirewallPolicyAssociation setName(java.lang.String name) { } /** - * [Output Only] The short name of the firewall policy of the association. + * 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() { @@ -144,7 +144,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy of the association. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java index 5f6cb2a7687..5ced755c298 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -50,7 +50,8 @@ public final class FirewallPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public FirewallPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java index 718335aa939..eb6a7bc4f56 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -72,8 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.Boolean enableLogging; /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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 @@ -104,7 +104,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.String ruleName; /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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 @@ -255,8 +255,8 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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() { @@ -264,8 +264,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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) { @@ -331,7 +331,7 @@ public FirewallPolicyRule setRuleName(java.lang.String ruleName) { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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() { @@ -339,7 +339,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java index 7a0a47beb2c..2a23b7aa765 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -53,6 +53,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @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 @@ -108,6 +116,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @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 @@ -204,6 +220,25 @@ public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java index b8b606b7f46..3aa52411ce1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -37,8 +37,8 @@ public final class FirewallPolicyRuleSecureTag extends com.google.api.client.jso private java.lang.String name; /** - * [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. + * 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 @@ -62,8 +62,8 @@ public FirewallPolicyRuleSecureTag setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java index 96e626ed323..d244d6d7f04 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -30,7 +30,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson { /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * @@ -58,7 +59,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson private java.lang.Integer percent; /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * @@ -72,7 +74,8 @@ public java.lang.Integer getCalculated() { } /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index b7e75baef48..bbf36ebfdf8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -133,17 +133,17 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String backendService; /** - * [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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -240,7 +240,8 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean isMirroringCollector; /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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 @@ -413,9 +414,9 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String pscConnectionStatus; /** - * [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. + * 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 @@ -429,7 +430,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -712,10 +713,10 @@ public ForwardingRule setBackendService(java.lang.String backendService) { } /** - * [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. + * 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() { @@ -723,10 +724,10 @@ public java.lang.String getBaseForwardingRule() { } /** - * [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. + * 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) { @@ -735,7 +736,7 @@ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -743,7 +744,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { @@ -994,7 +995,8 @@ public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringColle } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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() { @@ -1002,7 +1004,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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) { @@ -1419,9 +1422,9 @@ public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatu } /** - * [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. + * 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() { @@ -1429,9 +1432,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1457,7 +1460,7 @@ public ForwardingRule setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1465,7 +1468,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java index b3edbe7c261..01fcda7261e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -44,8 +44,8 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of - * forwarding rules. + * 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 @@ -62,14 +62,14 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ForwardingRuleAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ForwardingRuleAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java index f54e7f24f8a..eadbc548ba5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -50,7 +50,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ForwardingRuleList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ForwardingRuleList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ForwardingRuleList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java index a13aca77872..133e19e501d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -73,7 +73,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationCommitmentInfo commitmentInfo; /** - * [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 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 @@ -102,15 +109,16 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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 @@ -168,14 +176,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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 @@ -205,7 +213,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationSpecificSKUProperties specificSkuProperties; /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,7 +227,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationTimeWindow timeWindow; /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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 @@ -327,7 +335,23 @@ public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commi } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * @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() { @@ -335,7 +359,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * 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) { @@ -397,8 +422,8 @@ public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEm } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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() { @@ -406,8 +431,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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) { @@ -416,7 +441,8 @@ public FutureReservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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() { @@ -424,7 +450,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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) { @@ -553,7 +580,7 @@ public FutureReservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -561,7 +588,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -570,7 +597,7 @@ public FutureReservation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -578,7 +605,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -642,7 +669,7 @@ public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUPr } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @return value or {@code null} for none */ public FutureReservationStatus getStatus() { @@ -650,7 +677,7 @@ public FutureReservationStatus getStatus() { } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @param status status or {@code null} for none */ public FutureReservation setStatus(FutureReservationStatus status) { @@ -676,7 +703,7 @@ public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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() { @@ -684,7 +711,7 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java index 59fbc1a6f59..2595b4830d2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -30,38 +30,39 @@ public final class FutureReservationStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The current status of the requested amendment. + * 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; /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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] Represents the existing matching usage for the future reservation. + * 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; /** - * 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. + * 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] 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 + * 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}. */ @@ -69,17 +70,17 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusLastKnownGoodState lastKnownGoodState; /** - * 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. + * 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; /** - * Current state of this Future Reservation + * Output only. Current state of this Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +93,7 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusSpecificSKUProperties specificSkuProperties; /** - * [Output Only] The current status of the requested amendment. + * Output only. [Output Only] The current status of the requested amendment. * @return value or {@code null} for none */ public java.lang.String getAmendmentStatus() { @@ -100,7 +101,7 @@ public java.lang.String getAmendmentStatus() { } /** - * [Output Only] The current status of the requested amendment. + * 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) { @@ -109,7 +110,7 @@ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStat } /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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() { @@ -117,7 +118,7 @@ public java.util.List getAutoCreatedReservations() { } /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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) { @@ -126,7 +127,7 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#futureReservationsAggregatedListResponse for - * future resevation aggregated list response. + * 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 @@ -68,14 +69,14 @@ public final class FutureReservationsAggregatedListResponse extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public FutureReservationsAggregatedListResponse setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java index 967fa4b6712..26c435a877b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -56,8 +56,8 @@ public final class FutureReservationsListResponse extends com.google.api.client. } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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 @@ -74,14 +74,14 @@ public final class FutureReservationsListResponse extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,8 +144,8 @@ public FutureReservationsListResponse setItems(java.util.List } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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() { @@ -153,8 +153,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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) { @@ -186,7 +186,7 @@ public FutureReservationsListResponse setNextPageToken(java.lang.String nextPage } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +203,7 @@ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendation.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesRecommendationOtherLocation.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpec.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecAggregateResources.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocalSsdPartition.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecLocationPolicyLocation.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecSpecificSKUResources.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/FutureResourcesSpecTargetResources.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java new file mode 100644 index 00000000000..1e457d9c5ac --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.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 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 { + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map currentComponentVersions; + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map targetComponentVersions; + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @return value or {@code null} for none + */ + public java.util.Map getCurrentComponentVersions() { + return currentComponentVersions; + } + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @param currentComponentVersions currentComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { + this.currentComponentVersions = currentComponentVersions; + return this; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @return value or {@code null} for none + */ + public java.util.Map getTargetComponentVersions() { + return targetComponentVersions; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @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/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java index d17716bd84f..03028ade01e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -30,7 +30,8 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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 @@ -45,14 +46,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String queryPath; /** - * [Output Only] The value of the requested queried path. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +67,15 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String variableKey; /** - * [Output Only] The value found for the requested key. + * 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] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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() { @@ -81,7 +83,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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) { @@ -109,7 +112,7 @@ public GuestAttributes setQueryPath(java.lang.String queryPath) { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @return value or {@code null} for none */ public GuestAttributesValue getQueryValue() { @@ -117,7 +120,7 @@ public GuestAttributesValue getQueryValue() { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @param queryValue queryValue or {@code null} for none */ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { @@ -126,7 +129,7 @@ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -160,7 +163,7 @@ public GuestAttributes setVariableKey(java.lang.String variableKey) { } /** - * [Output Only] The value found for the requested key. + * Output only. [Output Only] The value found for the requested key. * @return value or {@code null} for none */ public java.lang.String getVariableValue() { @@ -168,7 +171,7 @@ public java.lang.String getVariableValue() { } /** - * [Output Only] The value found for the requested key. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPoliciesScopedList.java new file mode 100644 index 00000000000..b4b12626881 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java new file mode 100644 index 00000000000..ef8315f5b60 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java new file mode 100644 index 00000000000..bf5d73570e9 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java index 3a080056583..755b85ebb68 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java @@ -58,7 +58,7 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.lang.Integer checkIntervalSec; /** - * [Output Only] Creation timestamp in3339 text format. + * Output only. [Output Only] Creation timestamp in3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,7 +117,7 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Type of the resource. + * Output only. Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,8 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Region where the health check resides. Not applicable to global health checks. + * 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 @@ -224,7 +225,7 @@ public HealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec) { } /** - * [Output Only] Creation timestamp in3339 text format. + * Output only. [Output Only] Creation timestamp in3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -232,7 +233,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp in3339 text format. + * Output only. [Output Only] Creation timestamp in3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { @@ -369,7 +370,7 @@ public HealthCheck setId(java.math.BigInteger id) { } /** - * Type of the resource. + * Output only. Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -377,7 +378,7 @@ public java.lang.String getKind() { } /** - * Type of the resource. + * Output only. Type of the resource. * @param kind kind or {@code null} for none */ public HealthCheck setKind(java.lang.String kind) { @@ -430,7 +431,8 @@ public HealthCheck setName(java.lang.String name) { } /** - * [Output Only] Region where the health check resides. Not applicable to global health checks. + * 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() { @@ -438,7 +440,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] Region where the health check resides. Not applicable to global health checks. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java index 8be0abe71e8..e09a8de7428 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckList.java @@ -50,7 +50,7 @@ public final class HealthCheckList extends com.google.api.client.json.GenericJso } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HealthCheckList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HealthCheckList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java index 17877c67819..dabf1fea8ee 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -30,7 +30,7 @@ public final class HealthCheckService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -84,14 +84,16 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.lang.String healthStatusAggregationPolicy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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 @@ -128,23 +130,23 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.util.List notificationEndpoints; /** - * [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. + * 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] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -152,7 +154,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -303,7 +305,8 @@ public HealthCheckService setHealthStatusAggregationPolicy(java.lang.String heal } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -311,7 +314,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -320,7 +324,8 @@ public HealthCheckService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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() { @@ -328,7 +333,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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) { @@ -406,9 +412,9 @@ public HealthCheckService setNotificationEndpoints(java.util.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 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/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java index e77f8500ff9..e80bc5dfb36 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -30,14 +30,14 @@ public final class HealthCheckServicesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,25 +50,25 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -99,7 +99,7 @@ public HealthCheckServicesList setId(java.lang.String id) { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -107,7 +107,7 @@ public java.util.List getItems() { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @param items items or {@code null} for none */ public HealthCheckServicesList setItems(java.util.List items) { @@ -116,8 +116,8 @@ public HealthCheckServicesList setItems(java.util.List items } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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) { @@ -135,10 +135,10 @@ public HealthCheckServicesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java new file mode 100644 index 00000000000..84c685f8110 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java index 18d8d8076ef..65b6d6c9236 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthChecksAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthChecksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java new file mode 100644 index 00000000000..1ec07ab4b13 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourceList.java new file mode 100644 index 00000000000..6bb05406796 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthSourcesScopedList.java new file mode 100644 index 00000000000..dc16ce8e3a5 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java index cb4c89b509a..f7f6e7a324b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -117,7 +117,7 @@ public final class HttpHeaderMatch extends com.google.api.client.json.GenericJso * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -316,7 +316,7 @@ public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -334,7 +334,7 @@ public java.lang.String getRegexMatch() { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java index 8b653628100..438550bb2f3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -80,7 +80,8 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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 @@ -242,7 +243,8 @@ public HttpHealthCheck setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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() { @@ -250,7 +252,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java index 1df376c1629..42f2fddf7a6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -50,7 +50,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HttpHealthCheckList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java index 5d4f2e2caf8..3393e1b57b1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -64,7 +64,7 @@ public final class HttpQueryParameterMatch extends com.google.api.client.json.Ge * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -156,7 +156,7 @@ public java.lang.String getRegexMatch() { * 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 orINTERNAL_MANAGED. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java index 27d237f9ccf..cd8eebf2f5c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -96,14 +96,18 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic private java.util.List metadataFilters; /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * 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: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - 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 @@ -115,8 +119,10 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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 @@ -146,7 +152,7 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -283,14 +289,18 @@ public HttpRouteRuleMatch setMetadataFilters(java.util.List meta } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * 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: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - 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() { @@ -298,14 +308,18 @@ public java.lang.String getPathTemplateMatch() { } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * 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: * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * - 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 ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * 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) { @@ -319,8 +333,10 @@ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatc * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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() { @@ -333,8 +349,10 @@ public java.lang.String getPrefixMatch() { * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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) { @@ -373,7 +391,7 @@ public HttpRouteRuleMatch setQueryParameterMatches(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpsHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpsHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java index 1ecb4152746..638e7c38e35 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Image.java @@ -46,14 +46,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long archiveSizeBytes; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +74,8 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long diskSizeGb; /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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 @@ -110,7 +110,8 @@ public final class Image extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -133,7 +134,7 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey imageEncryptionKey; /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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 @@ -207,14 +208,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -249,9 +250,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceDiskEncryptionKey; /** - * [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. + * 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 @@ -279,9 +280,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [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. + * 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 @@ -309,9 +310,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [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. + * 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 @@ -325,9 +326,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.String sourceType; /** - * [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. + * 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 @@ -375,7 +376,7 @@ public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -383,7 +384,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Image setCreationTimestamp(java.lang.String creationTimestamp) { @@ -392,7 +393,7 @@ public Image setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -400,7 +401,7 @@ public DeprecationStatus getDeprecated() { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @param deprecated deprecated or {@code null} for none */ public Image setDeprecated(DeprecationStatus deprecated) { @@ -443,8 +444,8 @@ public Image setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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() { @@ -452,8 +453,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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) { @@ -512,7 +513,8 @@ public Image setGuestOsFeatures(java.util.List guestOsFeatures) } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -520,7 +522,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -564,7 +567,7 @@ public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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() { @@ -572,7 +575,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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) { @@ -779,7 +782,7 @@ public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -787,7 +790,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -796,7 +799,7 @@ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -804,7 +807,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -878,9 +881,9 @@ public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncrypti } /** - * [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. + * 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() { @@ -888,9 +891,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -947,9 +950,9 @@ public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryp } /** - * [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. + * 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() { @@ -957,9 +960,9 @@ public java.lang.String getSourceImageId() { } /** - * [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. + * 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) { @@ -1016,9 +1019,9 @@ public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshot } /** - * [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. + * 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() { @@ -1026,9 +1029,9 @@ public java.lang.String getSourceSnapshotId() { } /** - * [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. + * 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) { @@ -1054,9 +1057,9 @@ public Image setSourceType(java.lang.String sourceType) { } /** - * [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. + * 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() { @@ -1064,9 +1067,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1124,10 +1127,13 @@ public static final class RawDisk extends com.google.api.client.json.GenericJson private java.lang.String sha1Checksum; /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 @@ -1178,10 +1184,13 @@ public RawDisk setSha1Checksum(java.lang.String sha1Checksum) { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 @@ -1193,10 +1202,13 @@ public java.lang.String getSource() { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java index a61438b1d5b..5dadcb0dd06 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -50,7 +50,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ImageList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ImageList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java index 8d4975d6e7a..e15c382b178 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -30,18 +30,22 @@ public final class ImageParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java index 3ecd0ee7e4b..b71eefab2a6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Instance.java @@ -55,14 +55,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ConfidentialInstanceConfig confidentialInstanceConfig; /** - * [Output Only] The CPU platform used by this instance. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,7 +138,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String hostname; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -167,7 +168,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String keyRevocationActionType; /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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 @@ -193,21 +194,21 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last start timestamp inRFC3339 text format. + * 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] Last stop timestamp inRFC3339 text format. + * 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] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -285,6 +286,13 @@ public final class Instance extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private InstanceParams params; + /** + * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map partnerMetadata; + /** * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK * as default. @@ -308,22 +316,22 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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] Reserved for future use. + * 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] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -337,7 +345,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Scheduling scheduling; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -381,24 +389,24 @@ public final class Instance extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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] 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. + * 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] An optional, human-readable explanation of the 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 @@ -415,8 +423,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Tags tags; /** - * [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 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 @@ -476,7 +490,7 @@ public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confide } /** - * [Output Only] The CPU platform used by this instance. + * Output only. [Output Only] The CPU platform used by this instance. * @return value or {@code null} for none */ public java.lang.String getCpuPlatform() { @@ -484,7 +498,7 @@ public java.lang.String getCpuPlatform() { } /** - * [Output Only] The CPU platform used by this instance. + * 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) { @@ -493,7 +507,7 @@ public Instance setCpuPlatform(java.lang.String cpuPlatform) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -501,7 +515,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Instance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -683,7 +697,8 @@ public Instance setHostname(java.lang.String hostname) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -691,7 +706,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -750,7 +766,7 @@ public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionT } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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() { @@ -758,7 +774,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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) { @@ -849,7 +865,7 @@ public Instance setLabels(java.util.Map labels) { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * Output only. [Output Only] Last start timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStartTimestamp() { @@ -857,7 +873,7 @@ public java.lang.String getLastStartTimestamp() { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * 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) { @@ -866,7 +882,7 @@ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStopTimestamp() { @@ -874,7 +890,7 @@ public java.lang.String getLastStopTimestamp() { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * 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) { @@ -883,7 +899,7 @@ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastSuspendedTimestamp() { @@ -891,7 +907,7 @@ public java.lang.String getLastSuspendedTimestamp() { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * 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) { @@ -1064,6 +1080,23 @@ public Instance setParams(InstanceParams params) { return this; } + /** + * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + * @return value or {@code null} for none + */ + public java.util.Map getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Partner Metadata assigned to the instance. A map from a subdomain (namespace) to entries map. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public Instance setPartnerMetadata(java.util.Map partnerMetadata) { + this.partnerMetadata = partnerMetadata; + return this; + } + /** * The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK * as default. @@ -1118,8 +1151,8 @@ public Instance setResourcePolicies(java.util.List resourcePol } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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() { @@ -1127,8 +1160,8 @@ public ResourceStatus getResourceStatus() { } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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) { @@ -1137,7 +1170,7 @@ public Instance setResourceStatus(ResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -1145,7 +1178,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -1154,7 +1187,7 @@ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1162,7 +1195,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1188,7 +1221,7 @@ public Instance setScheduling(Scheduling scheduling) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1196,7 +1229,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -1294,8 +1327,8 @@ public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceM } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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() { @@ -1303,8 +1336,8 @@ public java.lang.Boolean getStartRestricted() { } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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) { @@ -1313,9 +1346,9 @@ public Instance setStartRestricted(java.lang.Boolean startRestricted) { } /** - * [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. + * 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() { @@ -1323,9 +1356,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1334,7 +1367,7 @@ public Instance setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -1342,7 +1375,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { @@ -1374,8 +1407,23 @@ public Instance setTags(Tags tags) { } /** - * [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 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() { @@ -1383,8 +1431,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java index 8ace3b07ae4..e9839b02983 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -44,8 +44,8 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for aggregated lists of - * Instance resources. + * 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 @@ -62,14 +62,14 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java index a460f6a71e8..0802df8ace4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -30,21 +30,21 @@ public final class InstanceConsumptionData extends com.google.api.client.json.GenericJson { /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceConsumptionInfo consumptionInfo; /** - * Server-defined URL for the instance. + * 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; /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumptionInfo() { @@ -52,7 +52,7 @@ public InstanceConsumptionInfo getConsumptionInfo() { } /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @param consumptionInfo consumptionInfo or {@code null} for none */ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { @@ -61,7 +61,7 @@ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consum } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -69,7 +69,7 @@ public java.lang.String getInstance() { } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @param instance instance or {@code null} for none */ public InstanceConsumptionData setInstance(java.lang.String instance) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java index 9964f0ec7b8..045c36fe60e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -30,35 +30,35 @@ public final class InstanceConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * The number of virtual CPUs that are available to the instance. + * 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; /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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; /** - * The amount of physical memory available to the instance, defined in MiB. + * 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; /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * 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; /** - * The number of virtual CPUs that are available to the instance. + * 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() { @@ -66,7 +66,7 @@ public java.lang.Integer getGuestCpus() { } /** - * The number of virtual CPUs that are available to the instance. + * 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) { @@ -75,7 +75,7 @@ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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() { @@ -83,7 +83,7 @@ public java.lang.Integer getLocalSsdGb() { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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) { @@ -92,7 +92,7 @@ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * The amount of physical memory available to the instance, defined in MiB. + * 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() { @@ -100,7 +100,7 @@ public java.lang.Integer getMemoryMb() { } /** - * The amount of physical memory available to the instance, defined in MiB. + * 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) { @@ -109,7 +109,7 @@ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. * @return value or {@code null} for none */ public java.lang.Integer getMinNodeCpus() { @@ -117,7 +117,7 @@ public java.lang.Integer getMinNodeCpus() { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..11f9142150d --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,134 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code 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; + + /** + * 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; + } + + /** + * 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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java index b4c883b718f..1347250c1d6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -43,7 +43,8 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * 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 @@ -57,22 +58,24 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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] A unique identifier for this instance group, generated by the server. + * 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] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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 @@ -108,45 +111,47 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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] The URL for this instance group. The server generates this URL. + * 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] The total number of instances in the instance group. + * 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] 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). + * 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] The URL of thezone where the instance group is located (for zonal resources). + * 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] The creation timestamp for this instance group inRFC3339 text format. + * 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() { @@ -154,7 +159,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * 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) { @@ -180,8 +186,8 @@ public InstanceGroup setDescription(java.lang.String description) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 */ @@ -190,8 +196,8 @@ public java.lang.String getFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 * @@ -202,8 +208,8 @@ public byte[] decodeFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 */ @@ -213,8 +219,8 @@ public InstanceGroup setFingerprint(java.lang.String fingerprint) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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() * *

      @@ -229,7 +235,8 @@ public InstanceGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * 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() { @@ -237,7 +244,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * 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) { @@ -246,7 +254,8 @@ public InstanceGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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() { @@ -254,7 +263,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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) { @@ -330,8 +340,8 @@ public InstanceGroup setNetwork(java.lang.String network) { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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() { @@ -339,8 +349,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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) { @@ -349,7 +359,7 @@ public InstanceGroup setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * 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() { @@ -357,7 +367,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * 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) { @@ -366,7 +376,7 @@ public InstanceGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The total number of instances in the instance group. + * 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() { @@ -374,7 +384,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of instances in the instance group. + * 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) { @@ -383,9 +393,9 @@ public InstanceGroup setSize(java.lang.Integer size) { } /** - * [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). + * 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() { @@ -393,9 +403,9 @@ public java.lang.String getSubnetwork() { } /** - * [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). + * 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) { @@ -404,7 +414,8 @@ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * 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() { @@ -412,7 +423,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java index 5d0836701f5..e5e5e311a40 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -30,7 +30,7 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -44,46 +44,46 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupAggregatedList for - * aggregated lists of instance groups. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [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. + * 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() { @@ -91,7 +91,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -117,8 +117,8 @@ public InstanceGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +193,7 @@ public InstanceGroupAggregatedList setUnreachables(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * 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) { @@ -135,10 +135,10 @@ public InstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -175,7 +175,7 @@ public InstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index deba7a5314c..7872e5f3712 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -66,15 +66,16 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String baseInstanceName; /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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. + * Output only. [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 @@ -107,7 +108,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String fingerprint; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 @@ -122,7 +124,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,8 +148,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String instanceTemplate; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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 @@ -177,8 +179,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List namedPorts; /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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 @@ -192,21 +194,22 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerResourcePolicies resourcePolicies; /** - * [Output Only] Reserved for future use. + * 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] Reserved for future use. + * 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] The URL for this managed instance group. The server defines this URL. + * Output only. [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 @@ -227,7 +230,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private StatefulPolicy statefulPolicy; /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -250,6 +253,13 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener @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 @@ -291,8 +301,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List versions; /** - * [Output Only] The URL of azone where the managed instance group is located (for zonal - * resources). + * Output only. [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 @@ -366,7 +376,8 @@ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceNam } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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() { @@ -374,7 +385,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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) { @@ -383,8 +395,8 @@ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimest } /** - * [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. + * Output only. [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() { @@ -392,8 +404,8 @@ public InstanceGroupManagerActionsSummary getCurrentActions() { } /** - * [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. + * Output only. [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) { @@ -499,7 +511,8 @@ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -507,7 +520,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 InstanceGroupManager setId(java.math.BigInteger id) { @@ -535,7 +549,7 @@ public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerIns } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { @@ -543,7 +557,7 @@ public java.lang.String getInstanceGroup() { } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { @@ -592,8 +606,8 @@ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplat } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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() { @@ -601,8 +615,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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) { @@ -666,8 +680,8 @@ public InstanceGroupManager setNamedPorts(java.util.List namedPorts) } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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() { @@ -675,8 +689,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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) { @@ -702,7 +716,7 @@ public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePoli } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -710,7 +724,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -719,7 +733,7 @@ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -727,7 +741,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -736,7 +750,8 @@ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [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() { @@ -744,7 +759,8 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [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) { @@ -787,7 +803,7 @@ public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerStatus getStatus() { @@ -795,7 +811,7 @@ public InstanceGroupManagerStatus getStatus() { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @param status status or {@code null} for none */ public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { @@ -843,6 +859,23 @@ public InstanceGroupManager setTargetSize(java.lang.Integer 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 @@ -936,8 +969,8 @@ public InstanceGroupManager setVersions(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. + * Output only. [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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [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. + * 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() { @@ -91,7 +92,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -117,8 +118,9 @@ public InstanceGroupManagerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +196,7 @@ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List it } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [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) { @@ -135,10 +135,10 @@ public InstanceGroupManagerList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupManagerList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupManagerList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java index cf3ba87f674..074f45e07fe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -33,7 +33,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +48,16 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String description; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,6 +70,14 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. [Output Only] The URL of aregion 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. @@ -85,43 +95,44 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer resizeBy; /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [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. + * 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] Current state of the request. + * Output only. [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. + * Output only. [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 azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone 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. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +140,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [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) { @@ -155,7 +167,8 @@ public InstanceGroupManagerResizeRequest setDescription(java.lang.String descrip } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -163,7 +176,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { @@ -172,8 +186,8 @@ public InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -181,8 +195,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [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) { @@ -207,6 +221,25 @@ public InstanceGroupManagerResizeRequest setName(java.lang.String name) { return this; } + /** + * Output only. [Output Only] The URL of aregion 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. [Output Only] The URL of aregion 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. @@ -246,7 +279,7 @@ public InstanceGroupManagerResizeRequest setResizeBy(java.lang.Integer resizeBy) } /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [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() { @@ -254,7 +287,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [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) { @@ -263,7 +296,7 @@ public InstanceGroupManagerResizeRequest setSelfLink(java.lang.String selfLink) } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -271,7 +304,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [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) { @@ -280,7 +313,7 @@ public InstanceGroupManagerResizeRequest setSelfLinkWithId(java.lang.String self } /** - * [Output only] Current state of the request. + * Output only. [Output only] Current state of the request. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -288,7 +321,7 @@ public java.lang.String getState() { } /** - * [Output only] Current state of the request. + * Output only. [Output only] Current state of the request. * @param state state or {@code null} for none */ public InstanceGroupManagerResizeRequest setState(java.lang.String state) { @@ -297,7 +330,7 @@ public InstanceGroupManagerResizeRequest setState(java.lang.String state) { } /** - * [Output only] Status of the request. + * Output only. [Output only] Status of the request. * @return value or {@code null} for none */ public InstanceGroupManagerResizeRequestStatus getStatus() { @@ -305,7 +338,7 @@ public InstanceGroupManagerResizeRequestStatus getStatus() { } /** - * [Output only] Status of the request. + * Output only. [Output only] Status of the request. * @param status status or {@code null} for none */ public InstanceGroupManagerResizeRequest setStatus(InstanceGroupManagerResizeRequestStatus status) { @@ -314,8 +347,8 @@ public InstanceGroupManagerResizeRequest setStatus(InstanceGroupManagerResizeReq } /** - * [Output Only] The URL of azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone where the resize request is located. Populated only + * for zonal resize requests. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -323,8 +356,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java index 230151816f0..6d400827cdf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatus.java @@ -30,32 +30,32 @@ 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. + * Output only. [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 storred in the "error" field only. + * Output only. [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 storred 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. + * Output only. [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() { @@ -63,10 +63,10 @@ public Error getError() { } /** - * [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. + * Output only. [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) { @@ -75,12 +75,12 @@ public InstanceGroupManagerResizeRequestStatus setError(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 storred in the "error" field only. + * Output only. [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 storred in the "error" field only. * @return value or {@code null} for none */ public InstanceGroupManagerResizeRequestStatusLastAttempt getLastAttempt() { @@ -88,12 +88,12 @@ public InstanceGroupManagerResizeRequestStatusLastAttempt getLastAttempt() { } /** - * [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 storred in the "error" field only. + * Output only. [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 storred in the "error" field only. * @param lastAttempt lastAttempt or {@code null} for none */ public InstanceGroupManagerResizeRequestStatus setLastAttempt(InstanceGroupManagerResizeRequestStatusLastAttempt lastAttempt) { @@ -112,8 +112,8 @@ public InstanceGroupManagerResizeRequestStatus 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 + * Output only. [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. */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java index 74a21cc4e71..24cc8fa6425 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestStatusLastAttempt.java @@ -30,14 +30,14 @@ public final class InstanceGroupManagerResizeRequestStatusLastAttempt extends com.google.api.client.json.GenericJson { /** - * Errors that prevented the ResizeRequest to be fulfilled. + * 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; /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. * @return value or {@code null} for none */ public Error getError() { @@ -45,7 +45,7 @@ public Error getError() { } /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. * @param error error or {@code null} for none */ public InstanceGroupManagerResizeRequestStatusLastAttempt setError(Error error) { @@ -64,7 +64,7 @@ public InstanceGroupManagerResizeRequestStatusLastAttempt clone() { } /** - * Errors that prevented the ResizeRequest to be fulfilled. + * Output only. Errors that prevented the ResizeRequest to be fulfilled. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java index 8aa630d2907..b43e47ffb08 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequestsListResponse.java @@ -30,7 +30,7 @@ public final class InstanceGroupManagerResizeRequestsListResponse extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class InstanceGroupManagerResizeRequestsListResponse extends com.go } /** - * [Output Only] Type of the resource. Alwayscompute#instanceGroupManagerResizeRequestList for a - * list of resize requests. + * Output only. [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 thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -116,8 +116,8 @@ public InstanceGroupManagerResizeRequestsListResponse setItems(java.util.List appliedAcceleratorTopologies; + + /** + * Output only. [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] 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. + * Output only. [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. [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. [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. + * Output only. [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. + * Output only. [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. + * Output only. [Output only] Status of all-instances configuration on the group. * @return value or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { @@ -78,7 +101,7 @@ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { } /** - * [Output only] Status of all-instances configuration on the group. + * Output only. [Output only] Status of all-instances configuration on the group. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { @@ -87,7 +110,26 @@ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStat } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [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. [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. [Output Only] The URL of theAutoscaler that targets this instance group manager. * @return value or {@code null} for none */ public java.lang.String getAutoscaler() { @@ -95,7 +137,7 @@ public java.lang.String getAutoscaler() { } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [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) { @@ -104,11 +146,47 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * [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. + * Output only. [Output Only] The status of bulk instance operation. + * @return value or {@code null} for none + */ + public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { + return bulkInstanceOperation; + } + + /** + * Output only. [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. [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. [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. [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() { @@ -116,11 +194,11 @@ public java.lang.Boolean getIsStable() { } /** - * [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. + * Output only. [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) { @@ -129,7 +207,7 @@ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStateful getStateful() { @@ -137,7 +215,7 @@ public InstanceGroupManagerStatusStateful getStateful() { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @param stateful stateful or {@code null} for none */ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { @@ -146,8 +224,8 @@ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [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() { @@ -155,8 +233,8 @@ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java new file mode 100644 index 00000000000..26fa1838eb2 --- /dev/null +++ b/clients/google-api-services-compute/v1/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. [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. [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. [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. [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. [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. [Output Only] The state of the accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [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. [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. [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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java new file mode 100644 index 00000000000..4846161c97c --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java @@ -0,0 +1,370 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by 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. [Output Only] Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. [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. [Output Only] Encountered errors. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. [Output Only] Encountered errors. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. [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. [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. [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(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors. + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * ErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java index e0e76dce377..3d76a225843 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -30,24 +30,24 @@ 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. + * Output only. [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. + * Output only. [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. + * Output only. [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() { @@ -55,8 +55,8 @@ public java.lang.String getCurrentRevision() { } /** - * [Output Only] Current all-instances configuration revision. This value is in RFC3339 text - * format. + * Output only. [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) { @@ -65,8 +65,8 @@ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [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() { @@ -74,8 +74,8 @@ public java.lang.Boolean getEffective() { } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java new file mode 100644 index 00000000000..365ad1b4b88 --- /dev/null +++ b/clients/google-api-services-compute/v1/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. [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. [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. [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. [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. [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. [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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java new file mode 100644 index 00000000000..a807d179547 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -0,0 +1,368 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by 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. [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. [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. [Output Only] Errors encountered during bulk instance operation. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. [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. [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. [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. [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(); + } + + /** + * Model definition for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors. + */ + 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(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java new file mode 100644 index 00000000000..b83decbf8bf --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.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; + +/** + * 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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java index 999eaf3584b..65c9d24eff9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -30,29 +30,29 @@ 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. + * Output only. [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. + * Output only. [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. + * Output only. [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() { @@ -60,11 +60,11 @@ public java.lang.Boolean getHasStatefulConfig() { } /** - * [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. + * Output only. [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) { @@ -73,7 +73,7 @@ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { @@ -81,7 +81,7 @@ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfig } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @param perInstanceConfigs perInstanceConfigs or {@code null} for none */ public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java index cd4fcc7b0cd..0a11f261bbd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -30,16 +30,18 @@ public final class InstanceGroupManagerStatusStatefulPerInstanceConfigs extends com.google.api.client.json.GenericJson { /** - * 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. + * 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; /** - * 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. + * 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() { @@ -47,8 +49,9 @@ public java.lang.Boolean getAllEffective() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java index daa48f86a9a..47ab8a1d668 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -30,18 +30,18 @@ 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. + * Output only. [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. + * Output only. [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() { @@ -49,9 +49,9 @@ public java.lang.Boolean getIsReached() { } /** - * [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. + * Output only. [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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerTargetSizePolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java index 350007eb424..f00dea2d9f0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [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 thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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. + * Output only. [Output Only] The list of errors of the managed instance group. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -55,7 +55,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListErrorsResponse setItems(java.util.List managedInstances; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 instances in the managed instance group. + * 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() { @@ -55,7 +55,7 @@ public java.util.List getManagedInstances() { } /** - * [Output Only] The list of instances in the managed instance group. + * 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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(jav } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -75,10 +75,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java index 6e5441c60d9..39f9310f8a1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -30,31 +30,31 @@ public final class InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of PerInstanceConfig. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -62,7 +62,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { @@ -71,10 +71,10 @@ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List

      getInstanceGroupManagers() { @@ -61,8 +61,8 @@ public java.util.List getInstanceGroupManagers() { } /** - * [Output Only] The list of managed instance groups that are contained in the specified project - * and zone. + * Output only. [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) { @@ -71,8 +71,8 @@ public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupsListInstances for the - * list of instances in the specified instance group. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -84,7 +85,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -110,8 +111,9 @@ public InstanceGroupsListInstances setItems(java.util.List getInstanceGroups() { @@ -59,7 +59,7 @@ public java.util.List getInstanceGroups() { } /** - * [Output Only] The list ofinstance groups that are contained in this scope. + * 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) { @@ -68,8 +68,8 @@ public InstanceGroupsScopedList setInstanceGroups(java.util.List } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * 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() { @@ -77,8 +77,8 @@ public Warning getWarning() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * 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) { @@ -97,8 +97,8 @@ public InstanceGroupsScopedList clone() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list is - * empty. + * 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 { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java index e04d46dd714..52708ff7c7d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -50,7 +50,8 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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 @@ -67,7 +68,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InstanceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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) { @@ -155,7 +158,7 @@ public InstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java index 77d1bf083d9..0a26dcf6469 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -44,8 +44,8 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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 @@ -62,7 +62,7 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,8 +110,8 @@ public InstanceListReferrers setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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() { @@ -119,8 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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) { @@ -152,7 +152,7 @@ public InstanceListReferrers setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -160,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index ffd6e4dfa37..7d14a73c218 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,29 +30,30 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Contents of the error. + * Output only. [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. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -60,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * [Output Only] Contents of the error. + * Output only. [Output Only] Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -69,8 +70,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * [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. + * Output only. [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() { @@ -78,8 +79,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * [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. + * Output only. [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) { @@ -88,7 +89,8 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [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() { @@ -96,7 +98,8 @@ public java.lang.String getTimestamp() { } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index c0704e627c8..f92d0a732ed 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ 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: + * Output only. [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. + * Output only. [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. + * Output only. [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: + * Output only. [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() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * [Output Only] Action that managed instance group was executing on the instance when the error - * occurred. Possible values: + * Output only. [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) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [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() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [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) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * [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. + * Output only. [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() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * [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. + * Output only. [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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 73b93956f78..3006dd39ef3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Error code. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * [Output Only] Error code. + * Output only. [Output Only] Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java index 95781dfac53..63c2e3a2f6b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -37,9 +37,11 @@ public final class InstanceParams extends com.google.api.client.json.GenericJson private Duration requestValidForDuration; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 @@ -63,9 +65,11 @@ public InstanceParams setRequestValidForDuration(Duration requestValidForDuratio } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -73,9 +77,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java index 78375d5ce60..f470c4e17ce 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -149,6 +149,14 @@ public final class InstanceProperties extends com.google.api.client.json.Generic @com.google.api.client.util.Key private NetworkPerformanceConfig networkPerformanceConfig; + /** + * Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to + * entries map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map partnerMetadata; + /** * 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. @@ -166,9 +174,10 @@ public final class InstanceProperties extends com.google.api.client.json.Generic private ReservationAffinity reservationAffinity; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -214,6 +223,12 @@ public final class InstanceProperties extends com.google.api.client.json.Generic @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. @@ -469,6 +484,25 @@ public InstanceProperties setNetworkPerformanceConfig(NetworkPerformanceConfig n return this; } + /** + * Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to + * entries map. + * @return value or {@code null} for none + */ + public java.util.Map getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to + * entries map. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public InstanceProperties setPartnerMetadata(java.util.Map partnerMetadata) { + this.partnerMetadata = partnerMetadata; + 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. @@ -508,9 +542,10 @@ public InstanceProperties setReservationAffinity(ReservationAffinity reservation } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -518,9 +553,10 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { @@ -623,6 +659,21 @@ public InstanceProperties setTags(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); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java index 3fe5bc7a0bf..c8fde84cc91 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -45,7 +45,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private java.lang.String fingerprint; /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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 @@ -59,8 +60,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private InstanceSettingsMetadata metadata; /** - * [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. + * 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 @@ -136,7 +137,8 @@ public InstanceSettings encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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) { @@ -170,8 +173,8 @@ public InstanceSettings setMetadata(InstanceSettingsMetadata metadata) { } /** - * [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. + * 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() { @@ -179,8 +182,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java index 41d708caacc..560dee51139 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -37,7 +37,7 @@ public final class InstanceSettingsMetadata extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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 @@ -61,7 +61,7 @@ public InstanceSettingsMetadata setItems(java.util.Map } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java index dec45d10e8b..52a70c08037 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -44,7 +44,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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 @@ -58,16 +59,16 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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 @@ -92,15 +93,15 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private InstanceProperties properties; /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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] The URL for this instance template. The server defines this URL. + * 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 @@ -124,7 +125,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private SourceInstanceParams sourceInstanceParams; /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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() { @@ -132,7 +134,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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) { @@ -158,8 +161,8 @@ public InstanceTemplate setDescription(java.lang.String description) { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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() { @@ -167,8 +170,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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) { @@ -177,8 +180,8 @@ public InstanceTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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() { @@ -186,8 +189,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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) { @@ -238,8 +241,8 @@ public InstanceTemplate setProperties(InstanceProperties properties) { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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() { @@ -247,8 +250,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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) { @@ -257,7 +260,7 @@ public InstanceTemplate setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * 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() { @@ -265,7 +268,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java index a493fec52ef..df3fbf15617 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -44,7 +44,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public InstanceTemplateAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * 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) { @@ -158,7 +158,7 @@ public InstanceTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java index c697b45db10..0337c8ee34c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -30,28 +30,28 @@ public final class InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { /** - * [Output Only] The URL of the instance. + * 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] The named ports that belong to this instance group. + * 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] The status of the instance. + * 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] The URL of the instance. + * Output only. [Output Only] The URL of the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -59,7 +59,7 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the 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) { @@ -68,7 +68,7 @@ public InstanceWithNamedPorts setInstance(java.lang.String instance) { } /** - * [Output Only] The named ports that belong to this instance group. + * 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() { @@ -76,7 +76,7 @@ public java.util.List getNamedPorts() { } /** - * [Output Only] The named ports that belong to this instance group. + * 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) { @@ -85,7 +85,7 @@ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -93,7 +93,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @param status status or {@code null} for none */ public InstanceWithNamedPorts setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index d82f3df25a9..4ef7f976b66 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the instance. + * 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 @@ -58,7 +58,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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 @@ -80,14 +81,14 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * 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] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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}. */ @@ -95,8 +96,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy private java.lang.String type; /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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() { @@ -104,8 +105,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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) { @@ -114,7 +115,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayN } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -122,7 +123,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -131,7 +132,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(jav } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * 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() { @@ -139,7 +140,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * 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) { @@ -148,7 +149,8 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMi } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -156,7 +158,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -186,7 +189,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(ja } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -194,7 +197,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * 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) { @@ -203,7 +206,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortNam } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ @@ -212,7 +215,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java index b126103d93c..fb571230d4e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -32,14 +32,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,22 +54,23 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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 @@ -107,15 +109,24 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [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. + * 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] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,21 +140,21 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -164,32 +175,33 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String sourceDisk; /** - * [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. + * 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] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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] 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. + * 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] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -197,7 +209,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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) { @@ -206,7 +219,7 @@ public InstantSnapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -214,7 +227,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -240,7 +253,7 @@ public InstantSnapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -248,7 +261,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * 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) { @@ -257,7 +270,8 @@ public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -265,7 +279,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -274,8 +289,8 @@ public InstantSnapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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() { @@ -283,8 +298,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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) { @@ -406,8 +421,28 @@ public InstantSnapshot setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -415,8 +450,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -425,7 +461,7 @@ public InstantSnapshot setRegion(java.lang.String region) { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @return value or {@code null} for none */ public InstantSnapshotResourceStatus getResourceStatus() { @@ -433,7 +469,7 @@ public InstantSnapshotResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @param resourceStatus resourceStatus or {@code null} for none */ public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { @@ -459,7 +495,7 @@ public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -467,7 +503,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -476,7 +512,7 @@ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -484,7 +520,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -493,7 +529,7 @@ public InstantSnapshot setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -501,7 +537,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -541,9 +577,9 @@ public InstantSnapshot setSourceDisk(java.lang.String sourceDisk) { } /** - * [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. + * 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() { @@ -551,9 +587,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -562,8 +598,8 @@ public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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() { @@ -571,8 +607,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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) { @@ -581,8 +617,8 @@ public InstantSnapshot setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -590,8 +626,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java index 142111e4ee5..a2dec556c4a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -44,8 +44,8 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated - * lists of instantSnapshots. + * 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 @@ -62,14 +62,14 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstantSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstantSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java index da8ce7d29fa..455da93a46a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -50,7 +50,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public InstantSnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public InstantSnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public InstantSnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java index d7674b9f529..62e37b49163 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -70,14 +70,15 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.util.List availableFeatures; /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,46 +100,47 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] A list of outages expected for this Interconnect. + * 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] IP address configured on the Google side of the Interconnect link. This can be - * used only for ping tests. + * 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] Google reference ID to be used when raising support tickets with Google or - * otherwise to debug backend connectivity issues. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * 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] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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 @@ -156,7 +158,7 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String interconnectType; /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,9 +245,9 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String nocContactEmail; /** - * [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. + * 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 @@ -264,16 +266,16 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private InterconnectParams params; /** - * [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. + * 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] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -308,42 +310,41 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.Integer requestedLinkCount; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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 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. + * 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; /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String subzone; /** - * [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. + * 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 @@ -436,7 +437,8 @@ public Interconnect setAvailableFeatures(java.util.List availa } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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() { @@ -444,7 +446,8 @@ public java.util.List getCircuitInfos() { } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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) { @@ -453,7 +456,7 @@ public Interconnect setCircuitInfos(java.util.List circ } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -461,7 +464,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { @@ -506,7 +509,7 @@ public Interconnect setDescription(java.lang.String description) { } /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [Output Only] A list of outages expected for this Interconnect. * @return value or {@code null} for none */ public java.util.List getExpectedOutages() { @@ -514,7 +517,7 @@ public java.util.List getExpectedOutages() { } /** - * [Output Only] A list of outages expected for this Interconnect. + * 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) { @@ -523,8 +526,8 @@ public Interconnect setExpectedOutages(java.util.List getInterconnectAttachments() { @@ -587,8 +592,8 @@ public java.util.List getInterconnectAttachments() { } /** - * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * 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) { @@ -597,8 +602,8 @@ public Interconnect setInterconnectAttachments(java.util.List } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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() { @@ -606,8 +611,8 @@ public java.util.List getInterconnectGroups() { } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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) { @@ -641,7 +646,7 @@ public Interconnect setInterconnectType(java.lang.String interconnectType) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -649,7 +654,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * 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) { @@ -882,9 +887,9 @@ public Interconnect setNocContactEmail(java.lang.String nocContactEmail) { } /** - * [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. + * 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 @@ -896,9 +901,9 @@ public java.lang.String getOperationalStatus() { } /** - * [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. + * 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 @@ -930,9 +935,9 @@ public Interconnect setParams(InterconnectParams params) { } /** - * [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. + * 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() { @@ -940,9 +945,9 @@ public java.lang.String getPeerIpAddress() { } /** - * [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. + * 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) { @@ -951,7 +956,7 @@ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * @return value or {@code null} for none */ public java.lang.Integer getProvisionedLinkCount() { @@ -959,7 +964,7 @@ public java.lang.Integer getProvisionedLinkCount() { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * 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) { @@ -1033,7 +1038,7 @@ public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1041,7 +1046,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1050,7 +1055,7 @@ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1058,7 +1063,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -1067,12 +1072,12 @@ public Interconnect setSelfLink(java.lang.String selfLink) { } /** - * [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. + * 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() { @@ -1080,12 +1085,12 @@ public java.lang.String getState() { } /** - * [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. + * 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) { @@ -1094,8 +1099,7 @@ public Interconnect setState(java.lang.String state) { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @return value or {@code null} for none */ public java.lang.String getSubzone() { @@ -1103,8 +1107,7 @@ public java.lang.String getSubzone() { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @param subzone subzone or {@code null} for none */ public Interconnect setSubzone(java.lang.String subzone) { @@ -1113,8 +1116,8 @@ public Interconnect setSubzone(java.lang.String subzone) { } /** - * [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. + * 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() { @@ -1122,8 +1125,8 @@ public java.util.List getWireGroups() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 38d6d6a026e..049a541c269 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -41,7 +41,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.Boolean adminEnabled; /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,12 +55,50 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen * 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 + * 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}. @@ -81,16 +119,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List candidateSubnets; /** - * [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * 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] IPv6 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * 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 @@ -104,31 +142,31 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String cloudRouterIpv6InterfaceId; /** - * [Output Only] Constraints for this attachment, if any. The attachment does not work if these - * constraints are not met. + * 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] Creation timestamp inRFC3339 text format. + * 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] IPv4 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * 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] IPv6 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * 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 @@ -142,9 +180,9 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String customerRouterIpv6InterfaceId; /** - * [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. + * 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 @@ -186,15 +224,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String encryption; /** - * [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. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -224,8 +263,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List ipsecInternalAddresses; /** - * [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect - * attachments. + * 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 @@ -284,10 +323,10 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String name; /** - * [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. + * 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 @@ -328,25 +367,25 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private InterconnectAttachmentPartnerMetadata partnerMetadata; /** - * [Output Only] Information specific to an InterconnectAttachment. This property is populated if - * the interconnect that this is attached to is of type DEDICATED. + * 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] 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. + * 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] If the attachment is on a Cross-Cloud Interconnect connection, this field - * contains the interconnect's remote location service provider. Example values: "Amazon Web + * 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 @@ -366,14 +405,14 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String router; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -391,19 +430,19 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String stackType; /** - * [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. + * 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 @@ -462,7 +501,7 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * @return value or {@code null} for none */ public java.lang.String getAttachmentGroup() { @@ -470,7 +509,7 @@ public java.lang.String getAttachmentGroup() { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * 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) { @@ -486,7 +525,7 @@ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGrou * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -501,7 +540,7 @@ public java.lang.String getBandwidth() { * 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 + * 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) { @@ -509,6 +548,94 @@ public InterconnectAttachment setBandwidth(java.lang.String 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 @@ -554,8 +681,8 @@ public InterconnectAttachment setCandidateSubnets(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList for - * aggregated lists of interconnect attachments. + * 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 @@ -62,14 +62,14 @@ public final class InterconnectAttachmentAggregatedList extends com.google.api.c private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InterconnectAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java index e646f684b49..1988be83c63 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -30,8 +30,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.google.api.client.json.GenericJson { /** - * [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, + * 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 @@ -45,9 +45,10 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.lang.String bgpMd5; /** - * [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. + * 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. @@ -57,8 +58,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.util.List bgpPeerAsnRanges; /** - * [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, + * 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 @@ -73,8 +74,8 @@ public java.lang.String getBgpMd5() { } /** - * [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, + * 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 @@ -90,9 +91,10 @@ public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String } /** - * [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. + * 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. @@ -103,9 +105,10 @@ public java.util.List metros; /** - * [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. + * 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] 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. + * 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] URLs of any particular Attachments to explain this blocker in more detail. + * 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() { @@ -94,7 +97,8 @@ public java.util.List getAttachments() { } /** - * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * 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) { @@ -118,8 +122,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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() { @@ -127,8 +131,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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) { @@ -137,8 +141,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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() { @@ -146,8 +150,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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) { @@ -156,8 +160,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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 + * 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 */ @@ -166,8 +170,8 @@ public java.util.List getMetros() { } /** - * [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 + * 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 */ @@ -177,9 +181,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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. + * 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() { @@ -187,9 +191,9 @@ public java.util.List getRegions() { } /** - * [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. + * 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) { @@ -198,8 +202,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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. + * 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() { @@ -207,8 +212,9 @@ public java.util.List getZones() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java index f267df5464a..ac31099ab68 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -36,7 +36,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegion extends com private java.util.List metros; /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,7 @@ public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.Lis } /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -66,7 +66,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of a region, like "us-central1". + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java index bba3ca5148d..45ba8bbc924 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -36,8 +36,8 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetro extend private java.util.List facilities; /** - * [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. + * 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 @@ -59,8 +59,8 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java } /** - * [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. + * 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() { @@ -68,8 +68,8 @@ public java.lang.String getMetro() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java index 41cf84fc4f2..c0d019c94e5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -30,7 +30,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilit private java.util.List zones; /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -51,7 +51,7 @@ public java.lang.String getFacility() { } /** - * [Output Only] The name of a facility, like "iad-1234". + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java index aa732b0c6b9..51dea9c5bf9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -31,23 +31,23 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] The name of a zone, either "zone1" or "zone2". + * 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] 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. + * 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() { @@ -55,8 +55,8 @@ public java.util.List getAttachments() { } /** - * [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. + * 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) { @@ -65,7 +65,7 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAtt } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * 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() { @@ -73,7 +73,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java index 79f57e9c00f..887526bd499 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectAttachmentGroupsListResponse extends com.google.a private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String sel } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java index f1ab8505df3..5789be05d78 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -42,7 +42,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupConfigured configured; /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupIntent intent; /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +92,7 @@ public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectA } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -100,7 +100,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -124,7 +124,7 @@ public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttac } /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * @return value or {@code null} for none */ public InterconnectAttachmentGroupConfigured getOperational() { @@ -132,7 +132,7 @@ public InterconnectAttachmentGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Attachments. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java index 6bf525bd03e..3122c881cc7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -30,39 +30,39 @@ public final class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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; /** - * The URL of the Attachment being described. + * 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; /** - * 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. + * 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; /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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; /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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) { @@ -80,7 +80,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEna } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @return value or {@code null} for none */ public java.lang.String getAttachment() { @@ -88,7 +88,7 @@ public java.lang.String getAttachment() { } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @param attachment attachment or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { @@ -97,9 +97,9 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachme } /** - * 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. + * 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() { @@ -107,9 +107,9 @@ public java.lang.String getIsActive() { } /** - * 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. + * 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) { @@ -118,7 +118,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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() { @@ -126,7 +126,7 @@ public java.lang.String getStatus() { } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java index 136a013f418..d2a89e3a68e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -50,8 +50,8 @@ public final class InterconnectAttachmentList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of - * interconnect attachments. + * 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 @@ -68,7 +68,7 @@ public final class InterconnectAttachmentList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectAttachmentList setItems(java.util.List interconnects; /** - * [Output Only] Type of the resource. Always compute#InterconnectGroup + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class InterconnectGroup extends com.google.api.client.json.GenericJ private InterconnectGroupPhysicalStructure physicalStructure; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -188,8 +188,8 @@ public InterconnectGroup setEtag(java.lang.String etag) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -197,8 +197,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -245,7 +245,7 @@ public InterconnectGroup setInterconnects(java.util.Map facilities; /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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] 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. + * 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] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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 @@ -100,8 +100,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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() { @@ -109,8 +109,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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) { @@ -119,8 +119,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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() { @@ -128,8 +128,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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) { @@ -138,7 +138,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * 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 */ @@ -147,7 +147,7 @@ public java.util.List getFacilities() { } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * 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 */ @@ -157,7 +157,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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() { @@ -165,7 +165,7 @@ public java.util.List getInterconnects() { } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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) { @@ -174,9 +174,9 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [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. + * 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() { @@ -184,9 +184,9 @@ public java.util.List getMetros() { } /** - * [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. + * 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) { @@ -195,8 +195,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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() { @@ -204,8 +204,8 @@ public java.util.List getZones() { } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java index 1c4b44ca7c0..39179adb193 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -36,8 +36,8 @@ public final class InterconnectGroupPhysicalStructureMetros extends com.google.a private java.util.List facilities; /** - * [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. + * 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 @@ -59,8 +59,8 @@ public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List zones; /** - * [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. + * 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() { @@ -53,8 +53,8 @@ public java.lang.String getFacility() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java index df961f862ac..a71726bdb33 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -30,24 +30,24 @@ public final class InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * 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] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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] URLs of Interconnects in this redundancy group in the given metro, facility, and - * 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() { @@ -55,8 +55,8 @@ public java.util.List getInterconnects() { } /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * 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) { @@ -65,8 +65,8 @@ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects( } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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() { @@ -74,8 +74,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java index 076722dc0ce..bf7e43b98dc 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectGroupsListResponse extends com.google.api.client. private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java index 80d27d471e5..f042bf10e06 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -30,21 +30,21 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectGroupConfigured configured; /** - * Summarizes the status of the group. + * 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 intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,14 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.cl private java.util.List interconnectStatuses; /** - * The operational state of the group, including only active Interconnects. + * 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; /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupConfigured getConfigured() { @@ -72,7 +72,7 @@ public InterconnectGroupConfigured getConfigured() { } /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @param configured configured or {@code null} for none */ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { @@ -81,7 +81,7 @@ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfig } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -89,7 +89,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -98,7 +98,7 @@ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String group } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupIntent getIntent() { @@ -106,7 +106,7 @@ public InterconnectGroupIntent getIntent() { } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @param intent intent or {@code null} for none */ public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { @@ -130,7 +130,7 @@ public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.Lis } /** - * The operational state of the group, including only active Interconnects. + * Output only. The operational state of the group, including only active Interconnects. * @return value or {@code null} for none */ public InterconnectGroupConfigured getOperational() { @@ -138,7 +138,7 @@ public InterconnectGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Interconnects. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java index 49fd3a7746a..4dc45ceabc1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -30,35 +30,36 @@ public final class InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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; /** - * The URL of the Interconnect being described. + * 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; /** - * Whether this interconnect is participating in the redundant configuration. + * 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; /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -66,7 +67,7 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -75,7 +76,8 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(jav } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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() { @@ -83,7 +85,8 @@ public InterconnectDiagnostics getDiagnostics() { } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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) { @@ -92,7 +95,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(Inte } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @return value or {@code null} for none */ public java.lang.String getInterconnect() { @@ -100,7 +103,7 @@ public java.lang.String getInterconnect() { } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @param interconnect interconnect or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { @@ -109,7 +112,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(jav } /** - * Whether this interconnect is participating in the redundant configuration. + * Output only. Whether this interconnect is participating in the redundant configuration. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -117,7 +120,7 @@ public java.lang.String getIsActive() { } /** - * Whether this interconnect is participating in the redundant configuration. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java index a1b7c05ded9..1e714fff188 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -50,7 +50,8 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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 @@ -67,7 +68,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InterconnectList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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) { @@ -155,7 +158,7 @@ public InterconnectList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java index 0beb6df3604..879497c0276 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -33,8 +33,8 @@ public final class InterconnectLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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 @@ -83,7 +83,7 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String continent; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,75 +99,78 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.util.List crossSiteInterconnectInfos; /** - * [Output Only] An optional description of the resource. + * 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] The name of the provider for this facility (e.g., EQUINIX). + * 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] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#interconnectLocation for interconnect - * locations. + * 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] Name of the resource. + * 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] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * 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] Server-defined URL for the resource. + * 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] 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. + * 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 @@ -184,15 +187,15 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String status; /** - * [Output Only] Reserved for future use. + * 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] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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() { @@ -200,8 +203,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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) { @@ -309,7 +312,7 @@ public InterconnectLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -317,7 +320,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -347,7 +350,7 @@ public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List getRegionInfos() { @@ -479,8 +487,9 @@ public java.util.List getRegionInfos() { } /** - * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * 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) { @@ -489,7 +498,7 @@ public InterconnectLocation setRegionInfos(java.util.List getSingleRegionProductionCriticalPeerLocations() { @@ -516,9 +525,9 @@ public java.util.List getSingleRegionProductionCriticalPeerLoc } /** - * [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. + * 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) { @@ -550,7 +559,7 @@ public InterconnectLocation setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -558,7 +567,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index d7e887fbb8a..c323d785c69 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -31,16 +31,18 @@ public final class InterconnectLocationCrossSiteInterconnectInfo extends com.google.api.client.json.GenericJson { /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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; /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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() { @@ -48,8 +50,9 @@ public java.lang.String getCity() { } /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java index c708d024142..051f5900f98 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -50,8 +50,8 @@ public final class InterconnectLocationList extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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 @@ -68,7 +68,7 @@ public final class InterconnectLocationList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectLocationList setItems(java.util.List it } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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) { @@ -158,7 +158,7 @@ public InterconnectLocationList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 76fa0dedf9f..1e35db8faf6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -31,38 +31,38 @@ public final class InterconnectLocationRegionInfo extends com.google.api.client.json.GenericJson { /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * 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; /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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; /** - * Identifies the network presence of this location. + * 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; /** - * URL for the region of this location. + * 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; /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * 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() { @@ -70,8 +70,8 @@ public java.lang.Long getExpectedRttMs() { } /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * 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) { @@ -80,8 +80,8 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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() { @@ -89,8 +89,8 @@ public java.lang.Boolean getL2ForwardingEnabled() { } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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) { @@ -99,7 +99,7 @@ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @return value or {@code null} for none */ public java.lang.String getLocationPresence() { @@ -107,7 +107,7 @@ public java.lang.String getLocationPresence() { } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @param locationPresence locationPresence or {@code null} for none */ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { @@ -116,7 +116,7 @@ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locat } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -124,7 +124,7 @@ public java.lang.String getRegion() { } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @param region region or {@code null} for none */ public InterconnectLocationRegionInfo setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java index cb4c1b771a8..b39fa5417ea 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -33,161 +33,163 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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] Creation timestamp inRFC3339 text format. + * 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] An optional description of the resource. + * 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] The name of the provider for this facility (e.g., EQUINIX). + * 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] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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] 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. + * 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] 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. + * 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] 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. + * 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] Name of the resource. + * 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] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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] Permitted connections. + * 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] Indicates the service provider present at the remote location. Example values: - * "Amazon Web Services", "Microsoft Azure". + * 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] Server-defined URL for the resource. + * 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 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 + * 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}. */ @@ -195,8 +197,8 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json private java.lang.String status; /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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() { @@ -204,8 +206,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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) { @@ -214,8 +216,8 @@ public InterconnectRemoteLocation setAddress(java.lang.String address) { } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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() { @@ -223,8 +225,8 @@ public InterconnectAttachmentConfigurationConstraints getAttachmentConfiguration } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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) { @@ -233,8 +235,8 @@ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(Intercon } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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() { @@ -242,8 +244,8 @@ public java.lang.String getCity() { } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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) { @@ -252,8 +254,8 @@ public InterconnectRemoteLocation setCity(java.lang.String city) { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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() { @@ -261,8 +263,8 @@ public InterconnectRemoteLocationConstraints getConstraints() { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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) { @@ -271,8 +273,8 @@ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConst } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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() { @@ -280,8 +282,8 @@ public java.lang.String getContinent() { } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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) { @@ -290,7 +292,7 @@ public InterconnectRemoteLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -298,7 +300,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -307,7 +309,7 @@ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creation } /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -315,7 +317,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of the resource. + * 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) { @@ -324,7 +326,7 @@ public InterconnectRemoteLocation setDescription(java.lang.String description) { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * 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() { @@ -332,7 +334,7 @@ public java.lang.String getFacilityProvider() { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * 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) { @@ -341,7 +343,8 @@ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityP } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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() { @@ -349,7 +352,8 @@ public java.lang.String getFacilityProviderFacilityId() { } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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) { @@ -358,7 +362,8 @@ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -366,7 +371,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -375,8 +381,8 @@ public InterconnectRemoteLocation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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() { @@ -384,8 +390,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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) { @@ -394,8 +400,8 @@ public InterconnectRemoteLocation setKind(java.lang.String kind) { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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() { @@ -403,8 +409,8 @@ public java.lang.String getLacp() { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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) { @@ -413,8 +419,8 @@ public InterconnectRemoteLocation setLacp(java.lang.String lacp) { } /** - * [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. + * 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() { @@ -422,8 +428,8 @@ public java.lang.Integer getMaxLagSize100Gbps() { } /** - * [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. + * 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) { @@ -432,8 +438,8 @@ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagS } /** - * [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. + * 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() { @@ -441,8 +447,8 @@ public java.lang.Integer getMaxLagSize10Gbps() { } /** - * [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. + * 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) { @@ -451,8 +457,8 @@ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSi } /** - * [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. + * 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() { @@ -460,8 +466,8 @@ public java.lang.Integer getMaxLagSize400Gbps() { } /** - * [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. + * 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) { @@ -470,7 +476,7 @@ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagS } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -478,7 +484,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public InterconnectRemoteLocation setName(java.lang.String name) { @@ -487,8 +493,8 @@ public InterconnectRemoteLocation setName(java.lang.String name) { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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() { @@ -496,8 +502,8 @@ public java.lang.String getPeeringdbFacilityId() { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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) { @@ -506,7 +512,7 @@ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peerin } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @return value or {@code null} for none */ public java.util.List getPermittedConnections() { @@ -514,7 +520,7 @@ public java.util.List getPermitt } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @param permittedConnections permittedConnections or {@code null} for none */ public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { @@ -523,8 +529,8 @@ public InterconnectRemoteLocation setPermittedConnections(java.util.List incompatibleLicenses; /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,6 +129,14 @@ public final class License extends com.google.api.client.json.GenericJson { @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. @@ -154,14 +162,14 @@ public final class License extends com.google.api.client.json.GenericJson { private LicenseResourceRequirements resourceRequirements; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -183,7 +191,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean transferable; /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,7 +251,7 @@ public License setChargesUseFee(java.lang.Boolean chargesUseFee) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -251,7 +259,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public License setCreationTimestamp(java.lang.String creationTimestamp) { @@ -315,7 +323,7 @@ public License setIncompatibleLicenses(java.util.List incompat } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -323,7 +331,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * 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) { @@ -420,6 +428,25 @@ public License setOsLicense(java.lang.Boolean 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. @@ -478,7 +505,7 @@ public License setResourceRequirements(LicenseResourceRequirements resourceRequi } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -486,7 +513,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -495,7 +522,7 @@ public License setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -503,7 +530,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -548,7 +575,7 @@ public License setTransferable(java.lang.Boolean transferable) { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getUpdateTimestamp() { @@ -556,7 +583,7 @@ public java.lang.String getUpdateTimestamp() { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java index 08b70f3341d..2464bb39832 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -33,28 +33,29 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] Description of this License Code. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,37 +69,37 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List licenseAlias; /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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; /** - * [Output Only] Server-defined URL for the resource. + * 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] Current state of this License Code. + * 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] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { @@ -115,7 +116,7 @@ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -123,7 +124,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCode setDescription(java.lang.String description) { @@ -132,7 +133,8 @@ public LicenseCode setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -140,7 +142,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -149,7 +152,7 @@ public LicenseCode setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -157,7 +160,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * 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) { @@ -183,8 +186,8 @@ public LicenseCode setLicenseAlias(java.util.List licen } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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() { @@ -192,8 +195,8 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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) { @@ -202,7 +205,7 @@ public LicenseCode setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -210,7 +213,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -219,7 +222,7 @@ public LicenseCode setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Current state of this License Code. + * Output only. [Output Only] Current state of this License Code. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -227,7 +230,7 @@ public java.lang.String getState() { } /** - * [Output Only] Current state of this License Code. + * 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) { @@ -236,8 +239,8 @@ public LicenseCode setState(java.lang.String state) { } /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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() { @@ -245,8 +248,8 @@ public java.lang.Boolean getTransferable() { } /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java index 96398e3c26d..cfe3ccb4c83 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java @@ -30,21 +30,21 @@ public final class LicenseCodeLicenseAlias extends com.google.api.client.json.GenericJson { /** - * [Output Only] Description of this License Code. + * 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] URL of license corresponding to this License Code. + * 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] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -52,7 +52,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { @@ -61,7 +61,7 @@ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { } /** - * [Output Only] URL of license corresponding to this License Code. + * Output only. [Output Only] URL of license corresponding to this License Code. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -69,7 +69,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] URL of license corresponding to this License Code. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicenseParams.java new file mode 100644 index 00000000000..cfa3866f110 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/456` 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/456` 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/456` 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/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java index cee8ece927f..1c5fc4d949c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -60,7 +60,7 @@ public final class LicensesListResponse extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public LicensesListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -139,7 +139,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java index afd21b38b7c..7c437efa39b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -32,7 +32,12 @@ 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. + * 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 @@ -45,9 +50,22 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson @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. + * 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() { @@ -56,7 +74,12 @@ public java.util.Map getLocations() { /** * 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. + * 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) { @@ -81,6 +104,25 @@ public LocationPolicy setTargetShape(java.lang.String 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); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java index dfce27ca41c..8b4e7fd0cd4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -34,7 +34,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * 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 @@ -56,7 +56,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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 @@ -70,7 +71,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private InstanceProperties instanceProperties; /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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 @@ -123,6 +125,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { @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}. @@ -131,21 +141,22 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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; /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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] The URL for this machine image. The server defines this URL. + * 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 @@ -170,16 +181,16 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstance; /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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 @@ -193,14 +204,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] Total size of the storage used by the machine image. + * 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] The creation timestamp for this machine image inRFC3339 text format. + * 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() { @@ -208,7 +219,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * 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) { @@ -253,7 +264,8 @@ public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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() { @@ -261,7 +273,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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) { @@ -287,7 +300,8 @@ public MachineImage setInstanceProperties(InstanceProperties instanceProperties) } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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() { @@ -295,7 +309,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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) { @@ -447,6 +462,25 @@ public MachineImage setName(java.lang.String 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 @@ -465,7 +499,7 @@ public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -473,7 +507,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -482,7 +516,8 @@ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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() { @@ -490,7 +525,8 @@ public java.util.List getSavedDisks() { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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) { @@ -499,7 +535,7 @@ public MachineImage setSavedDisks(java.util.List savedDisks) { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * 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() { @@ -507,7 +543,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * 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) { @@ -558,8 +594,8 @@ public MachineImage setSourceInstance(java.lang.String sourceInstance) { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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() { @@ -567,8 +603,8 @@ public SourceInstanceProperties getSourceInstanceProperties() { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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) { @@ -577,8 +613,8 @@ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceI } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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() { @@ -586,8 +622,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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) { @@ -613,7 +649,7 @@ public MachineImage setStorageLocations(java.util.List storage } /** - * [Output Only] Total size of the storage used by the machine image. + * 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() { @@ -621,7 +657,7 @@ public java.lang.Long getTotalStorageBytes() { } /** - * [Output Only] Total size of the storage used by the machine image. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java index 68648fbbe07..2447569de0b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -50,8 +50,8 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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 @@ -68,7 +68,7 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public MachineImageList setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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) { @@ -158,7 +158,7 @@ public MachineImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineImageParams.java new file mode 100644 index 00000000000..1a76348a584 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java index 55e870822c7..2644394df67 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -52,6 +52,13 @@ public final class MachineType extends com.google.api.client.json.GenericJson { @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}. @@ -104,7 +111,8 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.Boolean isSharedCpu; /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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 @@ -186,6 +194,23 @@ public MachineType setArchitecture(java.lang.String 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 @@ -310,7 +335,8 @@ public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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() { @@ -318,7 +344,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java index 35ac3fa24d1..8ca50f855de 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for aggregated lists of - * machine types. + * 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 @@ -62,14 +62,14 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public MachineTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public MachineTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java index 1292b1205e6..a94434edc45 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -50,7 +50,8 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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 @@ -67,7 +68,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public MachineTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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) { @@ -155,7 +158,7 @@ public MachineTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 7be10a0a84d..f7ba1cf77f6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -30,87 +30,90 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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] Health state of the instance per health-check. + * 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] The status of the instance. This field is empty when the instance does not exist. + * 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] Information about the last attempt to create or delete the instance. + * 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] The name of the instance. The name always exists even if the instance has not yet - * been created. + * 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] Preserved state applied from per-instance config for this instance. + * 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] Preserved state generated based on stateful policy for this instance. + * 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] Instance properties selected for this instance resulting from + * Output only. [Output Only] Instance properties selected for this instance resulting from * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @@ -118,28 +121,29 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; /** - * [Output Only] Intended version of this instance. + * 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] 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. + * 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() { @@ -147,21 +151,22 @@ public java.lang.String getCurrentAction() { } /** - * [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. + * 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) { @@ -170,8 +175,8 @@ public ManagedInstance setCurrentAction(java.lang.String currentAction) { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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() { @@ -179,8 +184,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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) { @@ -189,8 +194,8 @@ public ManagedInstance setId(java.math.BigInteger id) { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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() { @@ -198,8 +203,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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) { @@ -208,7 +213,7 @@ public ManagedInstance setInstance(java.lang.String instance) { } /** - * [Output Only] Health state of the instance per health-check. + * Output only. [Output Only] Health state of the instance per health-check. * @return value or {@code null} for none */ public java.util.List getInstanceHealth() { @@ -216,7 +221,7 @@ public java.util.List getInstanceHealth() { } /** - * [Output Only] Health state of the instance per health-check. + * 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) { @@ -225,7 +230,8 @@ public ManagedInstance setInstanceHealth(java.util.List items) { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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() { @@ -157,7 +157,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java index b880a69e7e6..ad71f5d0e5a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -30,21 +30,21 @@ public final class NatIpInfo extends com.google.api.client.json.GenericJson { /** - * A list of all NAT IPs assigned to this NAT config. + * 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; /** - * Name of the NAT config which the NAT IP belongs to. + * 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; /** - * A list of all NAT IPs assigned to this NAT config. + * 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() { @@ -52,7 +52,7 @@ public java.util.List getNatIpInfoMappings() { } /** - * A list of all NAT IPs assigned to this NAT config. + * 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) { @@ -61,7 +61,7 @@ public NatIpInfo setNatIpInfoMappings(java.util.List } /** - * Name of the NAT config which the NAT IP belongs to. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getNatName() { } /** - * Name of the NAT config which the NAT IP belongs to. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java index 223a66411ab..9ca1eff4dd7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -30,28 +30,28 @@ public final class NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { /** - * Specifies whether NAT IP is auto or manual. + * 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; /** - * NAT IP address. For example: 203.0.113.11. + * 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; /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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; /** - * Specifies whether NAT IP is auto or manual. + * Output only. Specifies whether NAT IP is auto or manual. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -59,7 +59,7 @@ public java.lang.String getMode() { } /** - * Specifies whether NAT IP is auto or manual. + * 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) { @@ -68,7 +68,7 @@ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { } /** - * NAT IP address. For example: 203.0.113.11. + * Output only. NAT IP address. For example: 203.0.113.11. * @return value or {@code null} for none */ public java.lang.String getNatIp() { @@ -76,7 +76,7 @@ public java.lang.String getNatIp() { } /** - * NAT IP address. For example: 203.0.113.11. + * 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) { @@ -85,7 +85,7 @@ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getUsage() { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java index fd5195b4cd3..b381067197e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Network.java @@ -57,7 +57,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean autoCreateSubnetworks; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +79,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableUlaInternalIpv6; /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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 @@ -94,7 +94,8 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIPv4; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -112,7 +113,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String internalIpv6Range; /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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 @@ -165,7 +166,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private NetworkParams params; /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -187,7 +188,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -255,7 +256,7 @@ public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -263,7 +264,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Network setCreationTimestamp(java.lang.String creationTimestamp) { @@ -308,7 +309,7 @@ public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) } /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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() { @@ -316,7 +317,7 @@ public java.lang.String getFirewallPolicy() { } /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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) { @@ -344,7 +345,8 @@ public Network setGatewayIPv4(java.lang.String gatewayIPv4) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -352,7 +354,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -386,7 +389,7 @@ public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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() { @@ -394,7 +397,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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) { @@ -510,7 +513,7 @@ public Network setParams(NetworkParams params) { } /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * @return value or {@code null} for none */ public java.util.List getPeerings() { @@ -518,7 +521,7 @@ public java.util.List getPeerings() { } /** - * [Output Only] A list of network peerings for the resource. + * 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) { @@ -563,7 +566,7 @@ public Network setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -571,7 +574,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java index eecbab8e189..5320d7e3f2c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -30,8 +30,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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 @@ -44,7 +44,7 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String connectionPreference; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,15 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. + * Output only. [Output Only] Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,10 +92,10 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String name; /** - * [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. + * 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 @@ -118,23 +118,23 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List producerRejectLists; /** - * [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. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -149,8 +149,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List subnetworks; /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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() { @@ -158,8 +158,8 @@ public java.util.List getConnectionEndpoints } /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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) { @@ -183,7 +183,7 @@ public NetworkAttachment setConnectionPreference(java.lang.String connectionPref } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,8 +266,8 @@ public NetworkAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -275,8 +275,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -285,7 +285,7 @@ public NetworkAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -293,7 +293,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @param kind kind or {@code null} for none */ public NetworkAttachment setKind(java.lang.String kind) { @@ -327,10 +327,10 @@ public NetworkAttachment setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -338,10 +338,10 @@ public java.lang.String getNetwork() { } /** - * [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. + * 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) { @@ -388,9 +388,9 @@ public NetworkAttachment setProducerRejectLists(java.util.List } /** - * [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. + * 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() { @@ -398,9 +398,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -409,7 +409,7 @@ public NetworkAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -417,7 +417,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -426,7 +426,7 @@ public NetworkAttachment setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -434,7 +434,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java index 817d984f250..6fb5a85ddbf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -75,7 +75,8 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli private java.lang.String subnetwork; /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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 @@ -190,7 +191,8 @@ public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetw } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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() { @@ -198,7 +200,8 @@ public java.lang.String getSubnetworkCidrRange() { } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java index 719c606976c..013691466fe 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -30,7 +30,7 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,14 +56,15 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * The value may be {@code null}. */ @@ -82,8 +83,8 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String name; /** - * [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. + * 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 @@ -98,21 +99,21 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String securityPolicy; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -120,7 +121,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -211,7 +212,8 @@ public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -219,7 +221,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -228,7 +231,7 @@ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @return value or {@code null} for none */ @@ -237,7 +240,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @param kind kind or {@code null} for none */ @@ -272,8 +275,8 @@ public NetworkEdgeSecurityService setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -281,8 +284,8 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -310,7 +313,7 @@ public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPol } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -318,7 +321,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -327,7 +330,7 @@ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -335,7 +338,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java index 1fa727e85f7..2817e613104 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -50,8 +50,9 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#networkEdgeSecurityServiceAggregatedList for - * lists of Network Edge Security Services. + * 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 @@ -68,14 +69,14 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEdgeSecurityServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java index 8f5518ca15c..b2aae12353c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -23,6 +23,12 @@ * 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 @@ -65,7 +71,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupCloudRun cloudRun; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,15 +95,16 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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 @@ -149,21 +156,21 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String pscTargetService; /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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] Server-defined URL for the resource. + * 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] Number of network endpoints in the network endpoint group. + * 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 @@ -177,7 +184,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String subnetwork; /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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 @@ -258,7 +265,7 @@ public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -266,7 +273,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -315,7 +322,8 @@ public NetworkEndpointGroup setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -323,7 +331,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -332,8 +341,8 @@ public NetworkEndpointGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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() { @@ -341,8 +350,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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) { @@ -456,7 +465,7 @@ public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetServic } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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() { @@ -464,7 +473,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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) { @@ -473,7 +482,7 @@ public NetworkEndpointGroup setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -481,7 +490,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -490,7 +499,7 @@ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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() { @@ -498,7 +507,7 @@ public java.lang.Integer getSize() { } /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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) { @@ -524,7 +533,7 @@ public NetworkEndpointGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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() { @@ -532,7 +541,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java index d257a2c16a2..a2c8acc31ba 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -44,8 +44,9 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupAggregatedList for - * aggregated lists of network endpoint groups. + * 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 @@ -62,14 +63,14 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public NetworkEndpointGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEndpointGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java index a9e2537c619..8d6eaa31913 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -50,8 +50,8 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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 @@ -68,7 +68,7 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NetworkEndpointGroupList setItems(java.util.List it } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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) { @@ -158,7 +158,7 @@ public NetworkEndpointGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java index 88ee04444bb..294c37e562a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -31,8 +31,8 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.json.GenericJson { /** - * [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. + * 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 @@ -47,22 +47,22 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.jso private java.lang.Integer producerPort; /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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] The connection status of the PSC Forwarding Rule. + * 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] 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.String getConsumerPscAddress() { } /** - * [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. + * 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) { @@ -99,7 +99,7 @@ public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPor } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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() { @@ -107,7 +107,7 @@ public java.math.BigInteger getPscConnectionId() { } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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) { @@ -116,7 +116,7 @@ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscCo } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. * @return value or {@code null} for none */ public java.lang.String getPscConnectionStatus() { @@ -124,7 +124,7 @@ public java.lang.String getPscConnectionStatus() { } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java index cd49337f505..b1a4a35294e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -44,7 +44,7 @@ public final class NetworkEndpointGroupsListNetworkEndpoints extends com.google. private java.util.List items; /** - * [Output Only] The resource type, which is + * 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}. @@ -104,7 +104,7 @@ public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List getNetworkEndpointGroups() { @@ -59,7 +59,7 @@ public java.util.List getNetworkEndpointGroups() { } /** - * [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * 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) { @@ -68,8 +68,8 @@ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List getHealths() { } /** - * [Output only] The health status of network endpoint. + * 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 @@ -73,7 +73,7 @@ public NetworkEndpointWithHealthStatus setHealths(java.util.List getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkFirewallPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index 3349ccf440f..3ee1cfd716e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -58,6 +58,14 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs 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 @@ -99,8 +107,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs } /** - * [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. + * 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}. @@ -118,7 +126,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs private java.lang.String ipv6Address; /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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 @@ -258,6 +267,25 @@ public NetworkInterface setAliasIpRanges(java.util.List aliasIpRan 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 @@ -373,8 +401,8 @@ public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6Ac } /** - * [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. + * 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 @@ -384,8 +412,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [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. + * 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 @@ -417,7 +445,8 @@ public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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() { @@ -425,7 +454,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java index 161aace29df..e4981ce773e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -50,7 +50,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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 @@ -67,7 +67,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public NetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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) { @@ -155,7 +155,7 @@ public NetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index 5619d58fdca..084c972666c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -42,7 +42,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.Boolean autoCreateRoutes; /** - * [Output Only] The effective state of the peering connection as a whole. + * 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 @@ -110,7 +110,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] Maximum Transmission Unit in bytes of the peer 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 @@ -125,15 +125,14 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String stackType; /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * 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] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -171,7 +170,7 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { } /** - * [Output Only] The effective state of the peering connection as a whole. + * Output only. [Output Only] The effective state of the peering connection as a whole. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatus getConnectionStatus() { @@ -179,7 +178,7 @@ public NetworkPeeringConnectionStatus getConnectionStatus() { } /** - * [Output Only] The effective state of the peering connection as a whole. + * 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) { @@ -331,7 +330,7 @@ public NetworkPeering setNetwork(java.lang.String network) { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * 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() { @@ -339,7 +338,7 @@ public java.lang.Integer getPeerMtu() { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * 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) { @@ -367,8 +366,7 @@ public NetworkPeering setStackType(java.lang.String stackType) { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -376,8 +374,7 @@ public java.lang.String getState() { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @param state state or {@code null} for none */ public NetworkPeering setState(java.lang.String state) { @@ -386,7 +383,7 @@ public NetworkPeering setState(java.lang.String state) { } /** - * [Output Only] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * @return value or {@code null} for none */ public java.lang.String getStateDetails() { @@ -394,7 +391,7 @@ public java.lang.String getStateDetails() { } /** - * [Output Only] Details about the current state of the peering. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java index 1eaec17410c..0e3cfd5fd64 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -30,77 +30,79 @@ public final class NetworkProfile extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] An optional description of this resource. + * 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] Features supported by the network. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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] Location to which the network is restricted. + * 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] Name of the resource. + * 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] Type of the network profile. + * 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] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -108,7 +110,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { @@ -117,7 +119,7 @@ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] An optional description of this resource. + * Output only. [Output Only] An optional description of this resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -125,7 +127,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of this resource. + * 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) { @@ -134,7 +136,7 @@ public NetworkProfile setDescription(java.lang.String description) { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @return value or {@code null} for none */ public NetworkProfileNetworkFeatures getFeatures() { @@ -142,7 +144,7 @@ public NetworkProfileNetworkFeatures getFeatures() { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @param features features or {@code null} for none */ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { @@ -151,7 +153,8 @@ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -159,7 +162,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -168,7 +172,8 @@ public NetworkProfile setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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() { @@ -176,7 +181,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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) { @@ -185,7 +191,7 @@ public NetworkProfile setKind(java.lang.String kind) { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @return value or {@code null} for none */ public NetworkProfileLocation getLocation() { @@ -193,7 +199,7 @@ public NetworkProfileLocation getLocation() { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @param location location or {@code null} for none */ public NetworkProfile setLocation(NetworkProfileLocation location) { @@ -202,7 +208,7 @@ public NetworkProfile setLocation(NetworkProfileLocation location) { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -210,7 +216,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public NetworkProfile setName(java.lang.String name) { @@ -219,7 +225,7 @@ public NetworkProfile setName(java.lang.String name) { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @return value or {@code null} for none */ public NetworkProfileProfileType getProfileType() { @@ -227,7 +233,7 @@ public NetworkProfileProfileType getProfileType() { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @param profileType profileType or {@code null} for none */ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { @@ -236,7 +242,7 @@ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -244,7 +250,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -253,7 +259,7 @@ public NetworkProfile setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -261,7 +267,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java index 647785b46c6..243b31e663f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -36,6 +36,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -86,6 +93,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -114,6 +128,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -177,6 +198,20 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -191,6 +226,12 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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. @@ -206,6 +247,20 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -221,14 +276,14 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j private java.util.List subnetStackTypes; /** - * Specifies which subnetwork purposes are supported. + * 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; /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -258,6 +313,23 @@ public NetworkProfileNetworkFeatures setAddressPurposes(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. @@ -670,6 +825,40 @@ public NetworkProfileNetworkFeatures setMulticast(java.lang.String 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 @@ -705,7 +894,7 @@ public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List getSubnetworkPurposes() { @@ -713,7 +902,7 @@ public java.util.List getSubnetworkPurposes() { } /** - * Specifies which subnetwork purposes are supported. + * Output only. Specifies which subnetwork purposes are supported. * @param subnetworkPurposes subnetworkPurposes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { @@ -722,7 +911,7 @@ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List getSubnetworkStackTypes() { @@ -730,7 +919,7 @@ public java.util.List getSubnetworkStackTypes() { } /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java index b045ed464b2..d126fc2f0bb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -56,7 +56,8 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +74,15 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public NetworkProfilesListResponse setItems(java.util.List items } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * 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) { @@ -183,7 +187,7 @@ public NetworkProfilesListResponse setNextPageToken(java.lang.String nextPageTok } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +204,8 @@ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public NetworkProfilesListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java index 390f610176d..195b392152e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -56,14 +56,14 @@ public final class NetworkRoutingConfig extends com.google.api.client.json.Gener private java.lang.String bgpInterRegionCost; /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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] Effective value of the bgp_inter_region_cost field. + * 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 @@ -137,7 +137,7 @@ public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegio } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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() { @@ -145,7 +145,7 @@ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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) { @@ -154,7 +154,7 @@ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean ef } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * 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() { @@ -162,7 +162,7 @@ public java.lang.String getEffectiveBgpInterRegionCost() { } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 87552222ac0..57b26100431 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the network. + * 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 @@ -58,7 +58,8 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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 @@ -78,22 +79,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * 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] The type of the firewall policy. + * 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] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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() { @@ -101,8 +102,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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) { @@ -111,7 +112,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayNa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -119,7 +120,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -128,7 +129,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java } /** - * [Output Only] The packet mirroring rules that apply to the network. + * 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() { @@ -136,7 +137,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the network. + * 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) { @@ -145,7 +146,8 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMir } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -153,7 +155,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -179,7 +182,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(jav } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -187,7 +190,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * 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) { @@ -196,7 +199,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName } /** - * [Output Only] The type of the firewall policy. + * Output only. [Output Only] The type of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -204,7 +207,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java index 88694064268..7b34e2e9405 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -42,7 +42,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private NodeGroupAutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,15 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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 @@ -126,7 +127,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String nodeTemplate; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -140,7 +141,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private ShareSettings shareSettings; /** - * [Output Only] The total number of nodes in the node group. + * 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 @@ -153,7 +154,8 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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 @@ -177,7 +179,7 @@ public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPoli } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -185,7 +187,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -254,7 +256,8 @@ public NodeGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -262,7 +265,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -271,7 +275,7 @@ public NodeGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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() { @@ -279,7 +283,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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) { @@ -406,7 +410,7 @@ public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -414,7 +418,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -440,7 +444,7 @@ public NodeGroup setShareSettings(ShareSettings shareSettings) { } /** - * [Output Only] The total number of nodes in the node group. + * 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() { @@ -448,7 +452,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of nodes in the node group. + * 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) { @@ -472,7 +476,8 @@ public NodeGroup setStatus(java.lang.String status) { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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() { @@ -480,7 +485,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java index 8cd8b43da57..edaad394eeb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for aggregated lists of - * node groups. + * 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 @@ -62,14 +62,14 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java index b9a428b708a..238b1f18114 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -50,7 +50,8 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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 @@ -67,7 +68,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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) { @@ -155,7 +158,7 @@ public NodeGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java index 9abff4da59c..e316a46ff52 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -31,8 +31,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json.GenericJson { /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 @@ -47,8 +47,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json private java.lang.String startTime; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -56,8 +56,8 @@ public Duration getMaintenanceDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java index 93ab16ab3e6..b1af48a0a34 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -43,7 +43,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String nodeType; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +131,14 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String status; /** - * Total amount of available resources on the node. + * 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] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +162,7 @@ public NodeGroupNode setAccelerators(java.util.List accelerat } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumedResources() { @@ -170,7 +170,7 @@ public InstanceConsumptionInfo getConsumedResources() { } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @param consumedResources consumedResources or {@code null} for none */ public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { @@ -213,7 +213,7 @@ public NodeGroupNode setDisks(java.util.List disks) { } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * @return value or {@code null} for none */ public java.util.List getInstanceConsumptionData() { @@ -221,7 +221,7 @@ public java.util.List getInstanceConsumptionData() { } /** - * Instance data that shows consumed resources on the node. + * 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) { @@ -281,7 +281,7 @@ public NodeGroupNode setNodeType(java.lang.String nodeType) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -289,7 +289,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -347,7 +347,7 @@ public NodeGroupNode setStatus(java.lang.String status) { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @return value or {@code null} for none */ public InstanceConsumptionInfo getTotalResources() { @@ -355,7 +355,7 @@ public InstanceConsumptionInfo getTotalResources() { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @param totalResources totalResources or {@code null} for none */ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { @@ -364,7 +364,7 @@ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -372,7 +372,7 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java index b983f28193d..699a60fca23 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -30,7 +30,7 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.Generi } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -116,8 +116,8 @@ public NodeGroupsListNodes setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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) { @@ -135,10 +135,10 @@ public NodeGroupsListNodes setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -175,7 +175,7 @@ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public NodeGroupsListNodes setWarning(Warning warning) { @@ -202,7 +202,7 @@ public NodeGroupsListNodes clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java index 390be988f05..49172d7c01c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -52,7 +52,7 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private java.lang.String cpuOvercommitType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,14 +78,16 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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 @@ -124,14 +126,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,15 +152,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private ServerBinding serverBinding; /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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] An optional, human-readable explanation of the 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 @@ -196,7 +199,7 @@ public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -204,7 +207,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -245,7 +248,8 @@ public NodeTemplate setDisks(java.util.List disks) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -253,7 +257,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -262,7 +267,8 @@ public NodeTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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() { @@ -270,7 +276,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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) { @@ -355,7 +362,8 @@ public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeT } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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() { @@ -363,7 +371,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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) { @@ -372,7 +381,7 @@ public NodeTemplate setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -380,7 +389,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -414,8 +423,8 @@ public NodeTemplate setServerBinding(ServerBinding serverBinding) { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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() { @@ -423,8 +432,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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) { @@ -433,7 +442,7 @@ public NodeTemplate setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -441,7 +450,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java index 99eb552c0f4..8108caade4f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for aggregated lists of - * node templates. + * 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 @@ -62,14 +62,14 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTemplateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTemplateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java index 4dec3311cd1..975a9ec6bb3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -50,7 +50,8 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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 @@ -67,7 +68,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTemplateList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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) { @@ -155,7 +158,7 @@ public NodeTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java index 0908c6c1e0a..f9f15a051ae 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -77,7 +77,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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 @@ -91,7 +91,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.Integer localSsdGb; /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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 @@ -112,14 +112,15 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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 name of the zone where the node type resides, such as us-central1-a. + * 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 @@ -228,7 +229,7 @@ public NodeType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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() { @@ -236,7 +237,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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) { @@ -262,7 +263,7 @@ public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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() { @@ -270,7 +271,7 @@ public java.lang.Integer getMaxVms() { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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) { @@ -313,7 +314,7 @@ public NodeType setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -321,7 +322,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -330,7 +331,8 @@ public NodeType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * 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() { @@ -338,7 +340,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java index 2985c263e70..b5f8aa4ddf8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated lists of - * node types. + * 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 @@ -62,14 +62,14 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java index 499df967122..87afc1e14e8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -50,7 +50,8 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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 @@ -67,7 +68,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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) { @@ -155,7 +158,7 @@ public NodeTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java index df4ed94b238..29423ff6380 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -35,7 +35,7 @@ public final class NotificationEndpoint extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,15 +56,16 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private NotificationEndpointGrpcSettings grpcSettings; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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 @@ -82,23 +83,23 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { @@ -149,7 +150,8 @@ public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grp } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -157,7 +159,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -166,8 +169,8 @@ public NotificationEndpoint setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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() { @@ -175,8 +178,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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) { @@ -210,9 +213,9 @@ public NotificationEndpoint setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -220,9 +223,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -231,7 +234,7 @@ public NotificationEndpoint setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -239,7 +242,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java new file mode 100644 index 00000000000..8a8ca6062f3 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java index 092c5f23afb..1c0a447d4f3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -50,8 +50,8 @@ public final class NotificationEndpointList extends com.google.api.client.json.G } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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 @@ -116,8 +116,8 @@ public NotificationEndpointList setItems(java.util.List it } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java new file mode 100644 index 00000000000..ee811630738 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java index d075d560ae9..2424082e44c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,6 +84,12 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; + /** + * 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`. @@ -122,7 +128,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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 @@ -136,8 +143,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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 @@ -176,8 +183,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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 @@ -343,6 +350,21 @@ public Operation setError(Error error) { 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`. @@ -433,7 +455,8 @@ public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOper } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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() { @@ -441,7 +464,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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) { @@ -467,8 +491,8 @@ public Operation setName(java.lang.String name) { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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() { @@ -476,8 +500,8 @@ public java.lang.String getOperationGroupId() { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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) { @@ -562,8 +586,8 @@ public Operation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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() { @@ -571,8 +595,8 @@ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOp } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java index 923f1b730d8..0a42c170556 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -44,8 +44,8 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always `compute#operationAggregatedList` for aggregated lists - * of operations. + * 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 @@ -69,7 +69,7 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public OperationAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public OperationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java index c7c27b93315..b993539d1db 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -50,7 +50,8 @@ public final class OperationList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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 @@ -115,7 +116,8 @@ public OperationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java index 92f1e45bacd..5608b2e6ea6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class OrganizationSecurityPoliciesListAssociationsResponse extends private java.util.List associations; /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * The value may be {@code null}. @@ -63,7 +63,7 @@ public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @return value or {@code null} for none @@ -73,7 +73,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @param kind kind or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java index 9482b4dce0d..b3eb96bcda6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -43,7 +43,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringForwardingRuleInfo collectorIlb; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,16 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringFilter filter; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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 @@ -134,7 +136,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +162,7 @@ public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collect } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -168,7 +170,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { @@ -234,7 +236,8 @@ public PacketMirroring setFilter(PacketMirroringFilter filter) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -242,7 +245,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -251,7 +255,8 @@ public PacketMirroring setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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() { @@ -259,7 +264,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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) { @@ -375,7 +381,7 @@ public PacketMirroring setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -383,7 +389,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java index 595728e2281..1037f9cab3d 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -44,7 +44,7 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public PacketMirroringAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PacketMirroringAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java index ec03ec70a94..94108ee8069 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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 @@ -45,7 +45,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.clie private java.lang.String url; /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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() { @@ -53,7 +53,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java index c7915c3357f..3d7fba4d7f1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -50,7 +50,8 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public PacketMirroringList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * 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) { @@ -155,7 +158,7 @@ public PacketMirroringList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java index 6cb0e091a11..17b0f288da5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.g private java.lang.String url; /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java index 4001f06eabd..afcc0dfdf19 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.goo private java.lang.String url; /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java index 254d520c669..aba6b27e954 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json private java.lang.String url; /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java new file mode 100644 index 00000000000..e9ac1339da5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PartnerMetadata.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition of partner_metadata field. To be used in dedicated Partner Metadata methods and + * to be inlined in the Instance and InstanceTemplate 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 PartnerMetadata extends com.google.api.client.json.GenericJson { + + /** + * Instance-level hash to be used for optimistic locking. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fingerprint; + + /** + * Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain + * name must be compliant withRFC1035 definition. The total size of all keys and values must be + * less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + * metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map partnerMetadata; + + /** + * Instance-level hash to be used for optimistic locking. + * @see #decodeFingerprint() + * @return value or {@code null} for none + */ + public java.lang.String getFingerprint() { + return fingerprint; + } + + /** + * Instance-level hash to be used for optimistic locking. + * @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); + } + + /** + * Instance-level hash to be used for optimistic locking. + * @see #encodeFingerprint() + * @param fingerprint fingerprint or {@code null} for none + */ + public PartnerMetadata setFingerprint(java.lang.String fingerprint) { + this.fingerprint = fingerprint; + return this; + } + + /** + * Instance-level hash to be used for optimistic locking. + * @see #setFingerprint() + * + *

      + * The value is encoded Base64 or {@code null} for none. + *

      + * + * @since 1.14 + */ + public PartnerMetadata encodeFingerprint(byte[] fingerprint) { + this.fingerprint = com.google.api.client.util.Base64.encodeBase64URLSafeString(fingerprint); + return this; + } + + /** + * Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain + * name must be compliant withRFC1035 definition. The total size of all keys and values must be + * less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + * metadata. + * @return value or {@code null} for none + */ + public java.util.Map getPartnerMetadata() { + return partnerMetadata; + } + + /** + * Partner Metadata assigned to the instance. A map from a subdomain to entries map. Subdomain + * name must be compliant withRFC1035 definition. The total size of all keys and values must be + * less than 2MB. Subdomain 'metadata.compute.googleapis.com' is reserverd for instance's + * metadata. + * @param partnerMetadata partnerMetadata or {@code null} for none + */ + public PartnerMetadata setPartnerMetadata(java.util.Map partnerMetadata) { + this.partnerMetadata = partnerMetadata; + return this; + } + + @Override + public PartnerMetadata set(String fieldName, Object value) { + return (PartnerMetadata) super.set(fieldName, value); + } + + @Override + public PartnerMetadata clone() { + return (PartnerMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java index 9f3e11621fe..862d369b8cb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -146,8 +146,11 @@ public final class PathMatcher extends com.google.api.client.json.GenericJson { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. @@ -426,8 +429,11 @@ public PathMatcher setName(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. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. @@ -441,8 +447,11 @@ public java.util.List getPathRules() { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java index 65df1d11db3..67589c68ecf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -37,28 +37,30 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private java.lang.String activationStatus; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] Description of the feature. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the feature. Always "compute#previewFeature" for preview features. + * 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 @@ -79,14 +81,14 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private PreviewFeatureRolloutOperation rolloutOperation; /** - * [Output Only] Server-defined URL for the resource. + * 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] Status of the feature. + * Output only. [Output only] Status of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +112,7 @@ public PreviewFeature setActivationStatus(java.lang.String activationStatus) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -118,7 +120,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { @@ -127,7 +129,7 @@ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -135,7 +137,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @param description description or {@code null} for none */ public PreviewFeature setDescription(java.lang.String description) { @@ -144,7 +146,8 @@ public PreviewFeature setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -152,7 +155,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -161,7 +165,8 @@ public PreviewFeature setId(java.math.BigInteger id) { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * 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() { @@ -169,7 +174,8 @@ public java.lang.String getKind() { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * 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) { @@ -212,7 +218,7 @@ public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rollout } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -220,7 +226,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -229,7 +235,7 @@ public PreviewFeature setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @return value or {@code null} for none */ public PreviewFeatureStatus getStatus() { @@ -237,7 +243,7 @@ public PreviewFeatureStatus getStatus() { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @param status status or {@code null} for none */ public PreviewFeature setStatus(PreviewFeatureStatus status) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java index 7db8ee1c6d8..f099ab2a800 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -66,14 +66,15 @@ public final class PreviewFeatureList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public PreviewFeatureList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java index af6b1bbc4e8..6b0cd6054f8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -30,14 +30,14 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The description of the feature. + * 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] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,7 +50,7 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.Gener private PreviewFeatureStatusReleaseStatus releaseStatus; /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -58,7 +58,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @param description description or {@code null} for none */ public PreviewFeatureStatus setDescription(java.lang.String description) { @@ -67,7 +67,7 @@ public PreviewFeatureStatus setDescription(java.lang.String description) { } /** - * [Output Only] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * @return value or {@code null} for none */ public java.lang.String getHelpLink() { @@ -75,7 +75,7 @@ public java.lang.String getHelpLink() { } /** - * [Output Only] Link to the public documentation for the feature. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java index f26a5843a8a..bbefbcc3470 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -30,7 +30,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.clie private Date updateDate; /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @return value or {@code null} for none */ public java.lang.String getStage() { @@ -52,7 +52,7 @@ public java.lang.String getStage() { } /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @param stage stage or {@code null} for none */ public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java index e8c3e10c499..a4a293de97f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Project.java @@ -33,8 +33,8 @@ public final class Project extends com.google.api.client.json.GenericJson { /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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}. @@ -97,7 +97,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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 @@ -134,7 +134,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private UsageExportLocation usageExportLocation; /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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 @@ -149,8 +149,8 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.lang.String xpnProjectStatus; /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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 @@ -160,8 +160,8 @@ public java.lang.String getCloudArmorTier() { } /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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 @@ -301,7 +301,7 @@ public Project setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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() { @@ -309,7 +309,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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) { @@ -390,7 +390,7 @@ public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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() { @@ -398,7 +398,7 @@ public java.lang.String getVmDnsSetting() { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java index b7574ceac6c..cd70d815772 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -30,18 +30,18 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -55,8 +55,8 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.Ge private java.util.List resources; /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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() { @@ -64,8 +64,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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) { @@ -74,10 +74,10 @@ public ProjectsGetXpnResources setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -85,10 +85,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java index 47997ccbda3..dffdfa4c908 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -32,14 +32,14 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { /** - * [Output Only] The version of BYOIP API. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,8 +72,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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 @@ -94,8 +94,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String ipv6AccessType; /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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 @@ -125,15 +125,15 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String pdpScope; /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +159,7 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String status; /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -167,7 +167,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -176,7 +176,7 @@ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -184,7 +184,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -292,8 +292,8 @@ public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -301,8 +301,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -345,8 +345,8 @@ public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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() { @@ -354,8 +354,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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) { @@ -416,8 +416,8 @@ public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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() { @@ -425,8 +425,8 @@ public java.util.List getPublicDele } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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) { @@ -435,7 +435,7 @@ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List publicDelegatedSubPrefixs; /** - * [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. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -194,7 +202,7 @@ public PublicDelegatedPrefix setAllocatablePrefixLength(java.lang.Integer alloca } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -202,7 +210,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -211,7 +219,7 @@ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -219,7 +227,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicDelegatedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -244,6 +252,25 @@ public PublicDelegatedPrefix setDescription(java.lang.String 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. @@ -310,8 +337,8 @@ public PublicDelegatedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -319,8 +346,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -346,8 +373,8 @@ public PublicDelegatedPrefix setIpCidrRange(java.lang.String ipCidrRange) { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Prefixes. Inherited from - * parent prefix. + * 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() { @@ -355,8 +382,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Prefixes. Inherited from - * parent prefix. + * 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) { @@ -382,8 +409,8 @@ public PublicDelegatedPrefix setIsLiveMigration(java.lang.Boolean isLiveMigratio } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated - * prefixes. + * 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() { @@ -391,8 +418,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated - * prefixes. + * 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) { @@ -477,9 +504,9 @@ public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List items; /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixAggregatedList for - * aggregated lists of public delegated prefixes. + * 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 @@ -69,7 +70,7 @@ public final class PublicDelegatedPrefixAggregatedList extends com.google.api.cl private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public PublicDelegatedPrefixAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PublicDelegatedPrefixAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java index 661e1a7fb4a..c6896a733e8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -50,8 +50,8 @@ public final class PublicDelegatedPrefixList extends com.google.api.client.json. } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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 @@ -116,8 +116,8 @@ public PublicDelegatedPrefixList setItems(java.util.List } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java index 838df79a95e..db255ac525a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -50,6 +50,14 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo @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}. @@ -58,8 +66,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String ipCidrRange; /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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 @@ -87,15 +95,15 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String name; /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,6 +160,25 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.St 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 @@ -170,8 +197,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.St } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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() { @@ -179,8 +206,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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) { @@ -240,8 +267,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String na } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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() { @@ -249,8 +276,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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) { @@ -259,7 +286,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String } /** - * [Output Only] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -267,7 +294,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the sub public delegated prefix. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java index 924e8061310..db743f6ac38 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reference.java @@ -30,7 +30,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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 @@ -59,7 +59,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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() { @@ -67,7 +67,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java index bccee9a8880..c244dcb05e6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Region.java @@ -61,7 +61,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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 @@ -75,8 +75,8 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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 @@ -110,7 +110,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,7 +192,7 @@ public Region setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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() { @@ -200,7 +200,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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) { @@ -226,8 +226,8 @@ public Region setName(java.lang.String name) { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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() { @@ -235,8 +235,8 @@ public QuotaStatusWarning getQuotaStatusWarning() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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) { @@ -296,7 +296,7 @@ public Region setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -304,7 +304,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Region setSupportsPzs(java.lang.Boolean supportsPzs) { @@ -340,8 +340,8 @@ public Region clone() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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 { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java index 2e556ab7d08..551ddfd2ac0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -50,7 +50,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RegionAutoscalerList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RegionAutoscalerList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionAutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java index 75127baf46f..872032b6f03 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -50,7 +50,8 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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 @@ -67,7 +68,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public RegionDiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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) { @@ -155,7 +158,7 @@ public RegionDiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java index 05b7ebc0b41..85740a56c46 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,38 +50,38 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.Ge } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupList setItems(java.util.List items) { } /** - * The resource type. + * Output only. The resource type. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * The resource type. + * Output only. The resource type. * @param kind kind or {@code null} for none */ public RegionInstanceGroupList setKind(java.lang.String kind) { @@ -132,10 +132,10 @@ public RegionInstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -143,10 +143,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -155,7 +155,7 @@ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -172,7 +172,7 @@ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -180,7 +180,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupList setWarning(Warning warning) { @@ -199,7 +199,7 @@ public RegionInstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java index 92bdbe38b6c..5a070239603 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client. } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. + * Output only. [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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -116,8 +116,8 @@ public RegionInstanceGroupManagerList setItems(java.util.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 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. [Output Only] Unique identifier for the resource; 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. [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. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their own nextPageToken to 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 RegionInstanceGroupManagerResizeRequestsListResponse 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 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. [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. [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. [Output Only] This token allows you to get the next page of results for list + * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value + * for the query parameter pageToken in the next list request. Subsequent list requests will have + * their 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 RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse 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 RegionInstanceGroupManagerResizeRequestsListResponse 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 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. [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + 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/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java index c5415e1b6a4..1743aba53b2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListErrorsResponse extends com.goo } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List getItems() { @@ -68,7 +68,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { @@ -77,10 +77,10 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.Lis } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -88,10 +88,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -100,7 +100,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java. } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -108,7 +108,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { @@ -127,7 +127,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java index acfc0c7acca..be961b62fc1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListInstancesResponse extends com. } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -81,10 +81,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java index dac1f439e48..aefcae26d51 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,38 +50,38 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.clie } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupsListInstances setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * 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) { @@ -155,7 +155,7 @@ public RegionList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java index ee278d6de38..f55221c5cee 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -30,9 +30,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { /** - * [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. + * 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 @@ -52,9 +52,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ex } /** - * [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. + * 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() { @@ -62,9 +62,9 @@ public java.util.List firewallPolicys) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index c87245ab60e..8ee047a1277 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -31,21 +31,21 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] The display name of the firewall policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the network. + * 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 @@ -58,14 +58,15 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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. + * Output only. [Output only] The rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,7 +79,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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}. */ @@ -86,7 +87,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff private java.lang.String type; /** - * [Output Only] The display name of the firewall policy. + * Output only. [Output Only] The display name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -94,7 +95,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the firewall policy. + * 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) { @@ -103,7 +104,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -111,7 +112,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -120,7 +121,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The packet mirroring rules that apply to the network. + * 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() { @@ -128,7 +129,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output only] The packet mirroring rules that apply to the network. + * 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) { @@ -137,7 +138,8 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -145,7 +147,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -154,7 +157,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The rules that apply to the network. + * Output only. [Output only] The rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getRules() { @@ -162,7 +165,7 @@ public java.util.List getRules() { } /** - * [Output only] The rules that apply to the network. + * 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) { @@ -171,7 +174,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ @@ -180,7 +183,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java index a759f084f75..a3204d535ea 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -46,15 +46,21 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private AllocationAggregateReservation aggregateReservation; /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * 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; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 @@ -90,6 +96,15 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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. @@ -99,22 +114,23 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#reservations for reservations. + * 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] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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 @@ -131,6 +147,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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). @@ -156,14 +180,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.util.Map resourcePolicies; /** - * [Output Only] Status information for Reservation resource. + * 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] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -177,7 +201,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,10 +233,10 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean specificReservationRequired; /** - * [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. + * 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 @@ -261,8 +285,8 @@ public Reservation setAggregateReservation(AllocationAggregateReservation aggreg } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * 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() { @@ -270,8 +294,8 @@ public java.lang.String getCommitment() { } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a 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) { @@ -280,7 +304,22 @@ public Reservation setCommitment(java.lang.String commitment) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * @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() { @@ -288,7 +327,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -368,6 +407,27 @@ public Reservation setDescription(java.lang.String 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. @@ -388,7 +448,8 @@ public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergent } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -396,7 +457,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -405,7 +467,7 @@ public Reservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -413,7 +475,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * 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) { @@ -422,8 +484,8 @@ public Reservation setKind(java.lang.String kind) { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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() { @@ -431,8 +493,8 @@ public java.util.List getLinkedCommitments() { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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) { @@ -465,6 +527,25 @@ public Reservation setName(java.lang.String 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). @@ -523,7 +604,7 @@ public Reservation setResourcePolicies(java.util.Map r } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @return value or {@code null} for none */ public AllocationResourceStatus getResourceStatus() { @@ -531,7 +612,7 @@ public AllocationResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { @@ -540,7 +621,7 @@ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -548,7 +629,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -574,7 +655,7 @@ public Reservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -582,7 +663,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -650,10 +731,10 @@ public Reservation setSpecificReservationRequired(java.lang.Boolean specificRese } /** - * [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. + * 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() { @@ -661,10 +742,10 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java index b89fe21e167..481d5487015 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -44,7 +44,7 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ReservationAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ReservationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index c17a33b71d3..3cc78bd8634 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,50 +30,62 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] The number of resources that are allocated in this reservation block. + * 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] Creation timestamp inRFC3339 text format. + * 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] Health information for the reservation block. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The number of instances that are currently in use on this reservation block. + * 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] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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] The name of this reservation block generated by Google Compute Engine. The name - * must be 1-63 characters long, and comply with RFC1035 @pattern + * 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}. */ @@ -81,64 +93,66 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] The physical topology of the reservation block. + * 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] Maintenance information for this reservation block. + * 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] The number of reservation subBlocks associated with this reservation block. + * 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] 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. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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] Status of the reservation block. + * 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] Zone in which the reservation block resides. + * 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] The number of resources that are allocated in this reservation block. + * 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() { @@ -146,7 +160,8 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of resources that are allocated in this reservation block. + * 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) { @@ -155,7 +170,7 @@ public ReservationBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -163,7 +178,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -172,7 +187,7 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @return value or {@code null} for none */ public ReservationBlockHealthInfo getHealthInfo() { @@ -180,7 +195,7 @@ public ReservationBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @param healthInfo healthInfo or {@code null} for none */ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { @@ -189,7 +204,8 @@ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -197,7 +213,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -206,7 +223,8 @@ public ReservationBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * 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() { @@ -214,7 +232,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * 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) { @@ -223,7 +242,27 @@ public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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() { @@ -231,7 +270,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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) { @@ -240,8 +280,8 @@ public ReservationBlock setKind(java.lang.String kind) { } /** - * [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 + * 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 */ @@ -250,8 +290,8 @@ public java.lang.String getName() { } /** - * [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 + * 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 */ @@ -261,7 +301,7 @@ public ReservationBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopology getPhysicalTopology() { @@ -269,7 +309,7 @@ public ReservationBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { @@ -278,7 +318,7 @@ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology phy } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationMaintenance() { @@ -286,7 +326,7 @@ public GroupMaintenanceInfo getReservationMaintenance() { } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @param reservationMaintenance reservationMaintenance or {@code null} for none */ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { @@ -295,7 +335,8 @@ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservati } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * 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() { @@ -303,7 +344,8 @@ public java.lang.Integer getReservationSubBlockCount() { } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * 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) { @@ -312,8 +354,8 @@ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservatio } /** - * [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. + * 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() { @@ -321,8 +363,8 @@ public java.lang.Integer getReservationSubBlockInUseCount() { } /** - * [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. + * 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) { @@ -331,7 +373,7 @@ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reser } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -339,7 +381,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -348,7 +390,7 @@ public ReservationBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -356,7 +398,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -365,7 +407,7 @@ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -373,7 +415,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @param status status or {@code null} for none */ public ReservationBlock setStatus(java.lang.String status) { @@ -382,7 +424,7 @@ public ReservationBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation block resides. + * Output only. [Output Only] Zone in which the reservation block resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -390,7 +432,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation block resides. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java index 53e85cffd67..b51a80d1123 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -44,7 +44,7 @@ public final class ReservationBlockPhysicalTopology extends com.google.api.clien private java.lang.String cluster; /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,7 @@ public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { } /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * @return value or {@code null} for none */ public java.util.List getInstances() { @@ -93,7 +93,7 @@ public java.util.List getInstances() { } /** - * The detailed instances information for a given Block + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java index bca68a5e4f5..74bbbacca30 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -37,7 +37,7 @@ public final class ReservationBlockPhysicalTopologyInstance extends com.google.a private java.math.BigInteger instanceId; /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteg } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { @@ -76,7 +76,7 @@ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalH } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java index b036cd71a72..0bad0666237 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -50,7 +50,8 @@ public final class ReservationList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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 @@ -67,7 +68,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public ReservationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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) { @@ -155,7 +158,7 @@ public ReservationList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java new file mode 100644 index 00000000000..9a5b6a712ab --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 098b775ca4f..7e39ffbcc94 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -30,58 +30,68 @@ public final class ReservationSubBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] Slice info for the reservation subBlock. + * 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] The number of hosts that are allocated in this reservation subBlock. + * 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] Creation timestamp inRFC3339 text format. + * 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] Health information for the reservation subBlock. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The number of instances that are currently in use on this reservation subBlock. + * 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] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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] The name of this reservation subBlock generated by Google Compute Engine. The - * name must be 1-63 characters long, and comply with RFC1035 @pattern + * 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}. */ @@ -89,49 +99,49 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi private java.lang.String name; /** - * [Output Only] The physical topology of the reservation subBlock. + * 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; /** - * Maintenance information for this reservation subBlock. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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] Status of the reservation subBlock. + * 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] Zone in which the reservation subBlock resides. + * 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] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @return value or {@code null} for none */ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { @@ -139,7 +149,7 @@ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { } /** - * [Output Only] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none */ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { @@ -148,7 +158,7 @@ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInf } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * 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() { @@ -156,7 +166,7 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * 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) { @@ -165,7 +175,7 @@ public ReservationSubBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -173,7 +183,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -182,7 +192,7 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockHealthInfo getHealthInfo() { @@ -190,7 +200,7 @@ public ReservationSubBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @param healthInfo healthInfo or {@code null} for none */ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { @@ -199,7 +209,8 @@ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInf } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -207,7 +218,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -216,7 +228,8 @@ public ReservationSubBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * 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() { @@ -224,7 +237,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * 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) { @@ -233,8 +247,27 @@ public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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() { @@ -242,8 +275,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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) { @@ -252,8 +285,8 @@ public ReservationSubBlock setKind(java.lang.String kind) { } /** - * [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 + * 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 */ @@ -262,8 +295,8 @@ public java.lang.String getName() { } /** - * [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 + * 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 */ @@ -273,7 +306,7 @@ public ReservationSubBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { @@ -281,7 +314,7 @@ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { @@ -290,7 +323,7 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { @@ -298,7 +331,7 @@ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none */ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { @@ -307,7 +340,7 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -315,7 +348,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -324,7 +357,7 @@ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -332,7 +365,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -341,7 +374,7 @@ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -349,7 +382,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @param status status or {@code null} for none */ public ReservationSubBlock setStatus(java.lang.String status) { @@ -358,7 +391,7 @@ public ReservationSubBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * Output only. [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -366,7 +399,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java index 1a8c9dc1642..6bc0c38c573 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -31,7 +31,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -72,7 +73,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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 @@ -96,14 +98,14 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private java.lang.String region; /** - * [Output Only] The system status of the resource policy. + * 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] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,7 +119,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +133,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyWorkloadPolicy workloadPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -197,7 +199,8 @@ public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -205,7 +208,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -231,7 +235,8 @@ public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePo } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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() { @@ -239,7 +244,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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) { @@ -288,7 +294,7 @@ public ResourcePolicy setRegion(java.lang.String region) { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @return value or {@code null} for none */ public ResourcePolicyResourceStatus getResourceStatus() { @@ -296,7 +302,7 @@ public ResourcePolicyResourceStatus getResourceStatus() { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @param resourceStatus resourceStatus or {@code null} for none */ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { @@ -305,7 +311,7 @@ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceSta } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -313,7 +319,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -339,7 +345,7 @@ public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePo } /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -347,7 +353,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of resource policy creation. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java index 62d0b0d5449..50b94076f75 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -56,7 +56,7 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,14 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,7 @@ public ResourcePolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ResourcePolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java index 3bdee011222..a23209854dd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -38,8 +38,8 @@ public final class ResourcePolicyDailyCycle extends com.google.api.client.json.G private java.lang.Integer daysInCycle; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 @@ -73,8 +73,8 @@ public ResourcePolicyDailyCycle setDaysInCycle(java.lang.Integer daysInCycle) { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -82,8 +82,8 @@ public java.lang.String getDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java index 969219ee92b..7ef83defd1c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyGroupPlacementPolicy.java @@ -30,6 +30,14 @@ @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. @@ -61,6 +69,25 @@ public final class ResourcePolicyGroupPlacementPolicy extends com.google.api.cli @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. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java index 344c0e6dd69..7bc231a7392 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -30,8 +30,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json.GenericJson { /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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 @@ -54,8 +54,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json. private java.lang.String startTime; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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() { @@ -63,8 +63,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java index 0e74d741445..495e033dbc4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -56,7 +56,8 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +74,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +137,8 @@ public ResourcePolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * 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) { @@ -176,7 +179,7 @@ public ResourcePolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -184,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java index 0d0dcd61a5e..530e452effd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -32,16 +32,18 @@ public final class ResourcePolicyResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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() { @@ -49,8 +51,9 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSched } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java index ee231f26daa..4a6a22e20dd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -30,22 +30,24 @@ public final class ResourcePolicyResourceStatusInstanceSchedulePolicyStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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() { @@ -53,7 +55,8 @@ public java.lang.String getLastRunStartTime() { } /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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) { @@ -62,8 +65,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartT } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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() { @@ -71,8 +74,8 @@ public java.lang.String getNextRunStartTime() { } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java index c95509acb7f..620437c3886 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -39,8 +39,8 @@ public final class ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.cli private java.lang.String day; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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 @@ -76,8 +76,8 @@ public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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() { @@ -85,8 +85,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java index 19854040132..9396fb1f20f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourcePolicyWorkloadPolicy.java @@ -36,6 +36,14 @@ public final class ResourcePolicyWorkloadPolicy extends com.google.api.client.js @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}. @@ -67,6 +75,25 @@ public ResourcePolicyWorkloadPolicy setAcceleratorTopology(java.lang.String acce 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index 23faee8ae98..88ed315aa42 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -31,32 +31,34 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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] 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. + * 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] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,9 +77,9 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private UpcomingMaintenance upcomingMaintenance; /** - * [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. + * 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() { @@ -85,9 +87,9 @@ public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { } /** - * [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. + * 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) { @@ -96,8 +98,9 @@ public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstan } /** - * [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. + * 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() { @@ -105,8 +108,9 @@ public java.lang.String getPhysicalHost() { } /** - * [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. + * 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) { @@ -115,8 +119,9 @@ public ResourceStatus setPhysicalHost(java.lang.String physicalHost) { } /** - * [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. + * 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() { @@ -124,8 +129,9 @@ public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { } /** - * [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. + * 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) { @@ -134,7 +140,7 @@ public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology } /** - * [Output Only] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * @return value or {@code null} for none */ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() { @@ -142,7 +148,7 @@ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() } /** - * [Output Only] Reservation information that the instance is consuming from. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java index a4fb3dc3ba9..4ab03361f12 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java @@ -64,6 +64,13 @@ public final class ResourceStatusEffectiveInstanceMetadata extends com.google.ap @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}. @@ -170,6 +177,23 @@ public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(jav 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java index 33bdf54ed61..7753f710612 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -30,14 +30,16 @@ public final class ResourceStatusReservationConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * 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] The full resource name of the reservation that this instance is consuming from. + * 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() { @@ -45,7 +47,8 @@ public java.lang.String getConsumedReservation() { } /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java index f8dd254158c..e4a8f6741cb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Route.java @@ -34,14 +34,14 @@ public final class Route extends com.google.api.client.json.GenericJson { /** - * [Output Only] AS path. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,14 +64,15 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String destRange; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of this resource. Always compute#routes for Route resources. + * 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 @@ -105,8 +106,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopGateway; /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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 @@ -139,13 +140,23 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopInstance; /** - * [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. + * 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. @@ -158,8 +169,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopIp; /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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 @@ -173,16 +184,16 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopNetwork; /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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 @@ -214,18 +225,18 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.Long priority; /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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] 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 + * 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 @@ -246,8 +257,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.util.List tags; /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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 @@ -260,7 +271,7 @@ public final class Route extends com.google.api.client.json.GenericJson { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -268,7 +279,7 @@ public java.util.List getAsPaths() { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @param asPaths asPaths or {@code null} for none */ public Route setAsPaths(java.util.List asPaths) { @@ -277,7 +288,7 @@ public Route setAsPaths(java.util.List asPaths) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -285,7 +296,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Route setCreationTimestamp(java.lang.String creationTimestamp) { @@ -332,7 +343,8 @@ public Route setDestRange(java.lang.String destRange) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -340,7 +352,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -349,7 +362,7 @@ public Route setId(java.math.BigInteger id) { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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() { @@ -357,7 +370,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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) { @@ -429,8 +442,8 @@ public Route setNextHopGateway(java.lang.String nextHopGateway) { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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() { @@ -438,8 +451,8 @@ public java.lang.String getNextHopHub() { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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) { @@ -506,8 +519,9 @@ public Route setNextHopInstance(java.lang.String nextHopInstance) { } /** - * [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. + * 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() { @@ -515,8 +529,9 @@ public java.lang.Long getNextHopInterRegionCost() { } /** - * [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. + * 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) { @@ -524,6 +539,27 @@ public Route setNextHopInterRegionCost(java.lang.Long 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. @@ -550,8 +586,8 @@ public Route setNextHopIp(java.lang.String nextHopIp) { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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() { @@ -559,8 +595,8 @@ public java.lang.Long getNextHopMed() { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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) { @@ -586,8 +622,8 @@ public Route setNextHopNetwork(java.lang.String nextHopNetwork) { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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() { @@ -595,8 +631,8 @@ public java.lang.String getNextHopOrigin() { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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) { @@ -605,8 +641,8 @@ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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() { @@ -614,8 +650,8 @@ public java.lang.String getNextHopPeering() { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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) { @@ -683,8 +719,8 @@ public Route setPriority(java.lang.Long priority) { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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() { @@ -692,8 +728,8 @@ public java.lang.String getRouteStatus() { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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) { @@ -702,10 +738,10 @@ public Route setRouteStatus(java.lang.String routeStatus) { } /** - * [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 + * 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() { @@ -713,10 +749,10 @@ public java.lang.String getRouteType() { } /** - * [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 + * 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) { @@ -759,8 +795,8 @@ public Route setTags(java.util.List tags) { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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() { @@ -768,8 +804,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java index 9052a3d434e..cd5b56ea9e0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -50,7 +50,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouteList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouteList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouteList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java index 1d58f31cf31..9ab67113af9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Router.java @@ -48,7 +48,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List bgpPeers; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List interfaces; /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -189,7 +189,7 @@ public Router setBgpPeers(java.util.List bgpPeers) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -197,7 +197,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Router setCreationTimestamp(java.lang.String creationTimestamp) { @@ -286,7 +286,7 @@ public Router setInterfaces(java.util.List interfaces) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -294,7 +294,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java index 307e0afc33c..db21c3e9216 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -44,7 +44,7 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public RouterAggregatedList setItems(java.util.Map it } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouterAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public RouterAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RouterAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java index f4f262041a8..b133d765ef9 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -166,12 +166,12 @@ public final class RouterBgpPeer extends com.google.api.client.json.GenericJson private java.lang.String ipv6NexthopAddress; /** - * [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. + * 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 @@ -543,12 +543,12 @@ public RouterBgpPeer setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) } /** - * [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. + * 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() { @@ -556,12 +556,12 @@ public java.lang.String getManagementType() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java index 93e8c4c2c42..779d4921d86 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -69,12 +69,12 @@ public final class RouterInterface extends com.google.api.client.json.GenericJso private java.lang.String linkedVpnTunnel; /** - * [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. + * 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 @@ -214,12 +214,12 @@ public RouterInterface setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { } /** - * [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. + * 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() { @@ -227,12 +227,12 @@ public java.lang.String getManagementType() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java index 6f5d8bad44d..95df0e9398e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -50,7 +50,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouterList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * 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) { @@ -155,7 +155,7 @@ public RouterList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java index 52c5d87fe82..71bdb7c3925 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -49,42 +49,44 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private BfdStatus bfdStatus; /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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; /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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; /** - * IP address of the local BGP interface. + * 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; /** - * IPv4 address of the local BGP interface. + * 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; /** - * IPv6 address of the local BGP interface. + * 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; /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,59 +100,59 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.Boolean md5AuthEnabled; /** - * Name of this BGP peer. Unique within the Routers resource. + * 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; /** - * Number of routes learned from the remote BGP Peer. + * 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; /** - * IP address of the remote BGP interface. + * 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; /** - * IPv4 address of the remote BGP interface. + * 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; /** - * IPv6 address of the remote BGP interface. + * 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] 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. + * 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; /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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; /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,15 +166,15 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.String statusReason; /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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; /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -211,7 +213,8 @@ public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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() { @@ -219,7 +222,8 @@ public java.lang.Boolean getEnableIpv4() { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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) { @@ -228,7 +232,8 @@ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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() { @@ -236,7 +241,8 @@ public java.lang.Boolean getEnableIpv6() { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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) { @@ -245,7 +251,7 @@ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -253,7 +259,7 @@ public java.lang.String getIpAddress() { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @param ipAddress ipAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { @@ -262,7 +268,7 @@ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv4NexthopAddress() { @@ -270,7 +276,7 @@ public java.lang.String getIpv4NexthopAddress() { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { @@ -279,7 +285,7 @@ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4Next } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv6NexthopAddress() { @@ -287,7 +293,7 @@ public java.lang.String getIpv6NexthopAddress() { } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { @@ -296,7 +302,7 @@ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6Next } /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * @return value or {@code null} for none */ public java.lang.String getLinkedVpnTunnel() { @@ -304,7 +310,7 @@ public java.lang.String getLinkedVpnTunnel() { } /** - * URL of the VPN tunnel that this BGP peer controls. + * 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) { @@ -330,7 +336,7 @@ public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnab } /** - * Name of this BGP peer. Unique within the Routers resource. + * Output only. Name of this BGP peer. Unique within the Routers resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -338,7 +344,7 @@ public java.lang.String getName() { } /** - * Name of this BGP peer. Unique within the Routers resource. + * 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) { @@ -347,7 +353,7 @@ public RouterStatusBgpPeerStatus setName(java.lang.String name) { } /** - * Number of routes learned from the remote BGP Peer. + * Output only. Number of routes learned from the remote BGP Peer. * @return value or {@code null} for none */ public java.lang.Long getNumLearnedRoutes() { @@ -355,7 +361,7 @@ public java.lang.Long getNumLearnedRoutes() { } /** - * Number of routes learned from the remote BGP Peer. + * 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) { @@ -364,7 +370,7 @@ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRo } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -372,7 +378,7 @@ public java.lang.String getPeerIpAddress() { } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { @@ -381,7 +387,7 @@ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv4NexthopAddress() { @@ -389,7 +395,7 @@ public java.lang.String getPeerIpv4NexthopAddress() { } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { @@ -398,7 +404,7 @@ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peer } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv6NexthopAddress() { @@ -406,7 +412,7 @@ public java.lang.String getPeerIpv6NexthopAddress() { } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { @@ -415,9 +421,9 @@ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peer } /** - * [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. + * 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() { @@ -425,9 +431,9 @@ public java.lang.String getRouterApplianceInstance() { } /** - * [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. + * 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) { @@ -436,8 +442,8 @@ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String rou } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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() { @@ -445,8 +451,8 @@ public java.lang.String getState() { } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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) { @@ -455,7 +461,7 @@ public RouterStatusBgpPeerStatus setState(java.lang.String state) { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -463,7 +469,7 @@ public java.lang.String getStatus() { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @param status status or {@code null} for none */ public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { @@ -489,8 +495,8 @@ public RouterStatusBgpPeerStatus setStatusReason(java.lang.String statusReason) } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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() { @@ -498,8 +504,8 @@ public java.lang.String getUptime() { } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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) { @@ -508,7 +514,7 @@ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { } /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * @return value or {@code null} for none */ public java.lang.String getUptimeSeconds() { @@ -516,7 +522,7 @@ public java.lang.String getUptimeSeconds() { } /** - * Time this session has been up, in seconds. Format: 145 + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java index 7444eae4ae0..ef71891d9b5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -30,14 +30,14 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.GenericJson { /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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}. */ @@ -45,7 +45,7 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainAutoAllocatedNatIps; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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}. */ @@ -53,23 +53,23 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainUserAllocatedNatIps; /** - * 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. + * 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; /** - * Unique name of this NAT. + * Output only. Unique name of this NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * Number of VM endpoints (i.e., Nics) that can use NAT. + * 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 @@ -83,21 +83,22 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List ruleStatus; /** - * A list of fully qualified URLs of reserved IP address resources. + * 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; /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * 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; /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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() { @@ -105,7 +106,7 @@ public java.util.List getAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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) { @@ -114,7 +115,7 @@ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List getDrainAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -133,7 +134,7 @@ public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List getDrainUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -152,9 +153,9 @@ public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List getUserAllocatedNatIpResources() { @@ -232,7 +233,7 @@ public java.util.List getUserAllocatedNatIpResources() { } /** - * A list of fully qualified URLs of reserved IP address resources. + * 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) { @@ -241,7 +242,8 @@ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List getUserAllocatedNatIps() { @@ -249,7 +251,8 @@ public java.util.List getUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java index db7f3b5c89d..cbbdfb39f77 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -30,43 +30,44 @@ public final class RouterStatusNatStatusNatRuleStatus extends com.google.api.client.json.GenericJson { /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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; /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * 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; /** - * 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. + * 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; /** - * Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * 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; /** - * Rule number of the rule. + * Output only. Rule number of the rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer ruleNumber; /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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() { @@ -74,7 +75,7 @@ public java.util.List getActiveNatIps() { } /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -83,7 +84,8 @@ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List getDrainNatIps() { @@ -91,7 +93,8 @@ public java.util.List getDrainNatIps() { } /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -100,8 +103,8 @@ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +203,7 @@ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListBgpRoutes setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java index b527ad775a6..1a62c00b46b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -43,8 +43,8 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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 @@ -74,14 +74,14 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +127,8 @@ public RoutersListRoutePolicies setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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() { @@ -136,8 +136,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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) { @@ -186,7 +186,7 @@ public RoutersListRoutePolicies setResult(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +203,7 @@ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListRoutePolicies setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java index bf7e29946a2..200770cde8a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -67,7 +67,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.Long diskSizeGb; /** - * [Output Only] URL of the disk type resource. For + * 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}. */ @@ -89,7 +89,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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 @@ -103,14 +103,14 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,17 +131,18 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String source; /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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] 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. + * 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 @@ -244,7 +245,7 @@ public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] URL of the disk type resource. For + * 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 */ @@ -253,7 +254,7 @@ public java.lang.String getDiskType() { } /** - * [Output Only] URL of the disk type resource. For + * 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 */ @@ -282,7 +283,7 @@ public SavedAttachedDisk setGuestOsFeatures(java.util.List guest } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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() { @@ -290,7 +291,7 @@ public java.lang.Integer getIndex() { } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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) { @@ -316,7 +317,7 @@ public SavedAttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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() { @@ -324,7 +325,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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) { @@ -333,7 +334,7 @@ public SavedAttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -341,7 +342,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible 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) { @@ -384,7 +385,8 @@ public SavedAttachedDisk setSource(java.lang.String source) { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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() { @@ -392,7 +394,8 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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) { @@ -401,10 +404,10 @@ public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -412,10 +415,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java index a9935b2bb70..aaed00e16f7 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -30,45 +30,45 @@ public final class SavedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. + * 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] Type of the resource. Always compute#savedDisk for attached disks. + * 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; /** - * Specifies a URL of the disk attached to the source instance. + * 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] Size of the individual disk snapshot used by this machine image. + * 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] 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. + * 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] The architecture of the attached disk. + * Output only. [Output Only] The architecture of the attached disk. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -76,7 +76,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. + * 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) { @@ -85,7 +85,7 @@ public SavedDisk setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * 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) { @@ -102,7 +102,7 @@ public SavedDisk setKind(java.lang.String kind) { } /** - * Specifies a URL of the disk attached to the source instance. + * 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() { @@ -110,7 +110,7 @@ public java.lang.String getSourceDisk() { } /** - * Specifies a URL of the disk attached to the source instance. + * 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) { @@ -119,7 +119,7 @@ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * 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() { @@ -127,7 +127,7 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * 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) { @@ -136,10 +136,10 @@ public SavedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -147,10 +147,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java index 4eed043ce0c..3aabd23a6e1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -37,7 +37,7 @@ public final class Screenshot extends com.google.api.client.json.GenericJson { private java.lang.String contents; /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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 @@ -61,7 +61,7 @@ public Screenshot setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java index b6a54a3106a..a84058c3cc4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -50,8 +50,8 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of - * Security Policies. + * 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 @@ -68,14 +68,14 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SecurityPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java index 2d6c3711010..492dc78b076 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -52,7 +52,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,14 +85,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -130,7 +132,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,8 +145,8 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig; /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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 @@ -162,7 +164,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List rules; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -267,7 +269,7 @@ public SecurityPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -275,7 +277,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -385,7 +387,8 @@ public SecurityPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -393,7 +396,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -402,7 +406,8 @@ public SecurityPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -410,7 +415,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * 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) { @@ -528,7 +534,7 @@ public SecurityPolicy setName(java.lang.String name) { } /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -536,7 +542,7 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the security policy. + * 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) { @@ -560,8 +566,8 @@ public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsCo } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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() { @@ -569,8 +575,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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) { @@ -604,7 +610,7 @@ public SecurityPolicy setRules(java.util.List rules) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -612,7 +618,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java index 1ea02743134..a555297c576 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAdvancedOptionsConfig.java @@ -49,6 +49,14 @@ public final class SecurityPolicyAdvancedOptionsConfig extends com.google.api.cl @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. @@ -106,6 +114,25 @@ public SecurityPolicyAdvancedOptionsConfig setLogLevel(java.lang.String 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. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java index 57ec4989820..9476b243de5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -37,7 +37,7 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String attachmentId; /** - * [Output Only] The display name of the security policy of the association. + * 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 @@ -65,14 +65,14 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * [Output Only] The security policy ID of the association. + * 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] The short name of the security policy of the association. + * 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 @@ -96,7 +96,7 @@ public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) } /** - * [Output Only] The display name of the security policy of the association. + * 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() { @@ -104,7 +104,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the security policy of the association. + * 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) { @@ -164,7 +164,7 @@ public SecurityPolicyAssociation setName(java.lang.String name) { } /** - * [Output Only] The security policy ID of the association. + * Output only. [Output Only] The security policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getSecurityPolicyId() { @@ -172,7 +172,7 @@ public java.lang.String getSecurityPolicyId() { } /** - * [Output Only] The security policy ID of the association. + * 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) { @@ -181,7 +181,7 @@ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPo } /** - * [Output Only] The short name of the security policy of the association. + * 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() { @@ -189,7 +189,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the security policy of the association. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java index 19d4c9ad5d2..5fd6edbb9dd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -50,7 +50,8 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public SecurityPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java index 1c494884b6e..56673681fcd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -66,7 +66,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private SecurityPolicyRuleHttpHeaderAction headerAction; /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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 @@ -235,7 +236,8 @@ public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction hea } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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() { @@ -243,7 +245,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java index bbb282182db..55658088fdb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -37,7 +37,8 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.String contents; /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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 @@ -53,7 +54,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.Long next; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +89,8 @@ public SerialPortOutput setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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() { @@ -96,7 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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) { @@ -126,7 +129,7 @@ public SerialPortOutput setNext(java.lang.Long next) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java index bfeb0ef5bde..5e43c5b2d63 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -34,8 +34,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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 @@ -73,7 +73,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.util.List consumerRejectLists; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,15 +115,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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 @@ -181,7 +182,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Long propagatedConnectionLimit; /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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 @@ -202,16 +203,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Boolean reconcileConnections; /** - * [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. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -225,8 +226,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String targetService; /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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() { @@ -234,8 +235,8 @@ public java.util.List getConnectedEndpoints( } /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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) { @@ -315,7 +316,7 @@ public ServiceAttachment setConsumerRejectLists(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -323,7 +324,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -450,8 +451,8 @@ public ServiceAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -459,8 +460,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -469,7 +470,8 @@ public ServiceAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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() { @@ -477,7 +479,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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) { @@ -603,7 +606,7 @@ public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedC } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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() { @@ -611,7 +614,7 @@ public Uint128 getPscServiceAttachmentId() { } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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) { @@ -651,9 +654,9 @@ public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConn } /** - * [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. + * 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() { @@ -661,9 +664,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -672,7 +675,7 @@ public ServiceAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -680,7 +683,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java index c059c93940b..4e76e05905c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -44,7 +44,7 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ServiceAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ServiceAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java index 3c23aa660aa..b99a4029437 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConnectedEndpoint.java @@ -43,6 +43,13 @@ public final class ServiceAttachmentConnectedEndpoint extends com.google.api.cli @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}. @@ -106,6 +113,23 @@ public ServiceAttachmentConnectedEndpoint setEndpoint(java.lang.String 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java index 9547d004bb8..cac9b0c5638 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentConsumerProjectLimit.java @@ -36,6 +36,13 @@ public final class ServiceAttachmentConsumerProjectLimit extends com.google.api. @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}. @@ -67,6 +74,23 @@ public ServiceAttachmentConsumerProjectLimit setConnectionLimit(java.lang.Long c 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java index da01d8aa8a6..ae7bbed5851 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -50,7 +50,8 @@ public final class ServiceAttachmentList extends com.google.api.client.json.Gene } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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 @@ -115,7 +116,8 @@ public ServiceAttachmentList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java index 6aead1f593f..4381a64c967 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -51,8 +51,8 @@ public final class ShieldedInstanceIdentity extends com.google.api.client.json.G private ShieldedInstanceIdentityEntry encryptionKey; /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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 @@ -117,8 +117,8 @@ public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry e } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java index 69366b399a8..33ddc884b9e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -33,15 +33,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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 @@ -59,14 +59,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String chainName; /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,22 +80,22 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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] Number of bytes downloaded to restore a snapshot to a disk. + * 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; /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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 @@ -110,9 +110,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [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. + * 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 @@ -125,14 +125,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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 @@ -160,15 +162,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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] 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). + * 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 @@ -209,14 +212,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -269,9 +272,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String sourceDiskForRecoveryCheckpoint; /** - * [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. + * 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 @@ -296,51 +299,51 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; /** - * [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. + * 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] URL of the resource policy which created this scheduled snapshot. + * 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] ID of the resource policy which created this scheduled snapshot. + * 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] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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] A size of the storage used by the snapshot. As snapshots share storage, this - * number is expected to change with snapshot creation/deletion. + * 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] 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. + * 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 @@ -354,7 +357,7 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -362,7 +365,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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) { @@ -371,8 +374,8 @@ public Snapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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() { @@ -380,8 +383,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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) { @@ -415,7 +418,7 @@ public Snapshot setChainName(java.lang.String chainName) { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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() { @@ -423,7 +426,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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) { @@ -432,7 +435,7 @@ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -440,7 +443,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -466,7 +469,7 @@ public Snapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -474,7 +477,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * 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) { @@ -483,7 +486,7 @@ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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() { @@ -491,7 +494,7 @@ public java.lang.Long getDownloadBytes() { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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) { @@ -500,8 +503,8 @@ public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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() { @@ -509,8 +512,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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) { @@ -538,9 +541,9 @@ public Snapshot setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [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. + * 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() { @@ -548,9 +551,9 @@ public java.util.List getGuestOsFeatures() { } /** - * [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. + * 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) { @@ -559,7 +562,8 @@ public Snapshot setGuestOsFeatures(java.util.List guestOsFeature } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -567,7 +571,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -576,7 +581,8 @@ public Snapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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() { @@ -584,7 +590,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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) { @@ -681,7 +688,8 @@ public Snapshot setLabels(java.util.Map labels) { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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() { @@ -689,7 +697,8 @@ public java.util.List getLicenseCodes() { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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) { @@ -698,8 +707,8 @@ public Snapshot setLicenseCodes(java.util.List licenseCodes) { } /** - * [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). + * 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() { @@ -707,8 +716,8 @@ public java.util.List getLicenses() { } /** - * [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). + * 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) { @@ -797,7 +806,7 @@ public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -805,7 +814,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -814,7 +823,7 @@ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -822,7 +831,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -938,9 +947,9 @@ public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskFo } /** - * [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. + * 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() { @@ -948,9 +957,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1001,11 +1010,11 @@ public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sour } /** - * [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. + * 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() { @@ -1013,11 +1022,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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. + * 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) { @@ -1026,7 +1035,7 @@ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapsho } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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() { @@ -1034,7 +1043,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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) { @@ -1043,7 +1052,7 @@ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotS } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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() { @@ -1051,7 +1060,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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) { @@ -1060,8 +1069,8 @@ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapsho } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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() { @@ -1069,8 +1078,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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) { @@ -1079,8 +1088,8 @@ public Snapshot setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -1088,8 +1097,8 @@ public java.lang.Long getStorageBytes() { } /** - * [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. + * 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) { @@ -1098,10 +1107,10 @@ public Snapshot setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -1109,10 +1118,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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 Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java index 39950d997d4..04f8790fe65 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -50,7 +50,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java index 0f1afad1dce..1191efded34 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -30,18 +30,22 @@ public final class SnapshotParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java index 7316a382e12..91de2bc023e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SourceInstanceProperties.java @@ -137,6 +137,13 @@ public final class SourceInstanceProperties extends com.google.api.client.json.G 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}. @@ -379,6 +386,23 @@ public SourceInstanceProperties setNetworkInterfaces(java.util.List getSubjectAlternativeNames() { @@ -383,7 +388,8 @@ public java.util.List getSubjectAlternativeNames() { } /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java index afee0f9e13d..d806133ed5f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -44,8 +44,8 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL - * Certificates. + * 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 @@ -62,14 +62,14 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SslCertificateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslCertificateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java index 688db9167d9..27110fd9466 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -50,7 +50,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SslCertificateList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SslCertificateList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SslCertificateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java index 2521f524e73..8897726891a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -30,7 +30,8 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.client.json.GenericJson { /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * 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 @@ -46,14 +47,15 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.cl private java.util.List domains; /** - * [Output only] Status of the managed certificate resource. + * 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] Detailed statuses of the domains specified for managed certificate resource. + * 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() { @@ -61,7 +63,8 @@ public java.util.Map getDomainStatus() { } /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * 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) { @@ -91,7 +94,7 @@ public SslCertificateManagedSslCertificate setDomains(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL - * Policies. + * 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 @@ -68,14 +68,14 @@ public final class SslPoliciesAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SslPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java index 775a4adcdbe..c8c7092cb3a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -30,38 +30,39 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 SslPolicy resources. + * 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] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +76,7 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJso private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -83,7 +84,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -92,7 +93,7 @@ public SslPoliciesList setId(java.lang.String id) { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -100,7 +101,7 @@ public java.util.List getItems() { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @param items items or {@code null} for none */ public SslPoliciesList setItems(java.util.List items) { @@ -109,7 +110,8 @@ public SslPoliciesList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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() { @@ -117,7 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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) { @@ -126,10 +129,10 @@ public SslPoliciesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -137,10 +140,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -149,7 +152,7 @@ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -157,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java index f4598ad8b00..396f7637c52 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -34,7 +34,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,7 +57,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The list of features enabled in the SSL policy. + * 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 @@ -76,14 +76,15 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,31 +112,32 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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] Server-defined URL for the resource. + * 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] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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 @@ -148,7 +150,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -156,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +205,7 @@ public SslPolicy setDescription(java.lang.String description) { } /** - * [Output Only] The list of features enabled in the SSL policy. + * 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() { @@ -211,7 +213,7 @@ public java.util.List getEnabledFeatures() { } /** - * [Output Only] The list of features enabled in the SSL policy. + * 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) { @@ -285,7 +287,8 @@ public SslPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -293,7 +296,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -302,7 +306,7 @@ public SslPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -310,7 +314,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * 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) { @@ -366,8 +370,9 @@ public SslPolicy setName(java.lang.String name) { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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() { @@ -376,8 +381,9 @@ public java.lang.String getProfile() { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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) { @@ -386,8 +392,8 @@ public SslPolicy setProfile(java.lang.String profile) { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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() { @@ -395,8 +401,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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) { @@ -405,7 +411,7 @@ public SslPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -413,7 +419,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -422,8 +428,8 @@ public SslPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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() { @@ -431,8 +437,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java index 3f2774ef34e..13a2e7a534a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -37,7 +37,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String capacityProvisioningType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,14 +51,22 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] 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] Type of the resource. Always compute#storagePool for storage pools. + * 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 @@ -95,6 +103,14 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @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. @@ -128,37 +144,37 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long poolProvisionedThroughput; /** - * [Output Only] Status information for the storage pool resource. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 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. + * 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] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -172,8 +188,8 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String storagePoolType; /** - * [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. + * 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 @@ -197,7 +213,7 @@ public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -205,7 +221,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -231,7 +247,25 @@ public StoragePool setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * @return value or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { + return exapoolProvisionedCapacityGb; + } + + /** + * Output only. [Output Only] 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() { @@ -239,7 +273,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -248,7 +283,7 @@ public StoragePool setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * 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() { @@ -256,7 +291,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * 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) { @@ -375,6 +410,25 @@ public StoragePool setName(java.lang.String 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. @@ -452,7 +506,7 @@ public StoragePool setPoolProvisionedThroughput(java.lang.Long poolProvisionedTh } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getResourceStatus() { @@ -460,7 +514,7 @@ public StoragePoolResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param resourceStatus resourceStatus or {@code null} for none */ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { @@ -469,7 +523,7 @@ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -477,7 +531,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -486,7 +540,7 @@ public StoragePool setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -494,7 +548,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -503,9 +557,9 @@ public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [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. + * 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() { @@ -513,9 +567,9 @@ public java.lang.String getState() { } /** - * [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. + * 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) { @@ -524,7 +578,7 @@ public StoragePool setState(java.lang.String state) { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getStatus() { @@ -532,7 +586,7 @@ public StoragePoolResourceStatus getStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param status status or {@code null} for none */ public StoragePool setStatus(StoragePoolResourceStatus status) { @@ -558,8 +612,8 @@ public StoragePool setStoragePoolType(java.lang.String storagePoolType) { } /** - * [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. + * 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() { @@ -567,8 +621,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java index 186794e02ce..a6e2968a57e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -50,8 +50,8 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for aggregated lists of - * storage pools. + * 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 @@ -68,14 +68,14 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public StoragePoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public StoragePoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java index 336f05138ed..f4aedbc4874 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -30,84 +30,84 @@ public final class StoragePoolDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] Instances this disk is attached to. + * 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] Creation timestamp inRFC3339 text format. + * 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 URL of the disk. + * 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] The name of the 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] The number of IOPS provisioned for the disk. + * 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] The throughput provisioned for the disk. + * 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] Resource policies applied to disk for automatic snapshot creations. + * 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] The disk size, in GB. + * 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] The disk status. + * 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] The disk type. + * 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] Amount of disk space used. + * 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] Instances this disk is attached to. + * Output only. [Output Only] Instances this disk is attached to. * @return value or {@code null} for none */ public java.util.List getAttachedInstances() { @@ -115,7 +115,7 @@ public java.util.List getAttachedInstances() { } /** - * [Output Only] Instances this disk is attached to. + * 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) { @@ -124,7 +124,7 @@ public StoragePoolDisk setAttachedInstances(java.util.List att } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -141,7 +141,7 @@ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] The URL of the disk. + * Output only. [Output Only] The URL of the disk. * @return value or {@code null} for none */ public java.lang.String getDisk() { @@ -149,7 +149,7 @@ public java.lang.String getDisk() { } /** - * [Output Only] The URL of the 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) { @@ -158,7 +158,7 @@ public StoragePoolDisk setDisk(java.lang.String disk) { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -166,7 +166,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @param name name or {@code null} for none */ public StoragePoolDisk setName(java.lang.String name) { @@ -175,7 +175,7 @@ public StoragePoolDisk setName(java.lang.String name) { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * Output only. [Output Only] The number of IOPS provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedIops() { @@ -183,7 +183,7 @@ public java.lang.Long getProvisionedIops() { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * 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) { @@ -192,7 +192,7 @@ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { } /** - * [Output Only] The throughput provisioned for the disk. + * Output only. [Output Only] The throughput provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedThroughput() { @@ -200,7 +200,7 @@ public java.lang.Long getProvisionedThroughput() { } /** - * [Output Only] The throughput provisioned for the disk. + * 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) { @@ -209,7 +209,7 @@ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroug } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * 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() { @@ -217,7 +217,7 @@ public java.util.List getResourcePolicies() { } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * 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) { @@ -226,7 +226,7 @@ public StoragePoolDisk setResourcePolicies(java.util.List reso } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @return value or {@code null} for none */ public java.lang.Long getSizeGb() { @@ -234,7 +234,7 @@ public java.lang.Long getSizeGb() { } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @param sizeGb sizeGb or {@code null} for none */ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { @@ -243,7 +243,7 @@ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -251,7 +251,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @param status status or {@code null} for none */ public StoragePoolDisk setStatus(java.lang.String status) { @@ -260,7 +260,7 @@ public StoragePoolDisk setStatus(java.lang.String status) { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -268,7 +268,7 @@ public java.lang.String getType() { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @param type type or {@code null} for none */ public StoragePoolDisk setType(java.lang.String type) { @@ -277,7 +277,7 @@ public StoragePoolDisk setType(java.lang.String type) { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @return value or {@code null} for none */ public java.lang.Long getUsedBytes() { @@ -285,7 +285,7 @@ public java.lang.Long getUsedBytes() { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @param usedBytes usedBytes or {@code null} for none */ public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java index 2d0728fe318..34edec41ca8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -56,7 +56,8 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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 @@ -73,14 +74,15 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public StoragePoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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) { @@ -183,7 +187,7 @@ public StoragePoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +204,8 @@ public StoragePoolList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java index bb3ca251ff1..31b6d2f7ece 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -36,7 +36,7 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener private java.lang.String etag; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -56,39 +56,40 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * 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. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +111,7 @@ public StoragePoolListDisks setEtag(java.lang.String etag) { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -118,7 +119,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -144,8 +145,8 @@ public StoragePoolListDisks setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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() { @@ -153,8 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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) { @@ -163,10 +164,10 @@ public StoragePoolListDisks setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -174,10 +175,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -186,7 +187,7 @@ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +204,8 @@ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolListDisks setUnreachables(java.util.List unreachables) { @@ -220,7 +223,7 @@ public StoragePoolListDisks setUnreachables(java.util.List unr } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -228,7 +231,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public StoragePoolListDisks setWarning(Warning warning) { @@ -247,7 +250,7 @@ public StoragePoolListDisks clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java new file mode 100644 index 00000000000..f7f367511c0 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/456` 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/456` 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/456` 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/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java index e7e5e4ebc7f..f0abcce09ab 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -37,7 +37,35 @@ public final class StoragePoolResourceStatus extends com.google.api.client.json. private java.lang.Long diskCount; /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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 @@ -123,7 +151,75 @@ public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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() { @@ -131,7 +227,7 @@ public java.lang.String getLastResizeTimestamp() { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java index 48b85c05c96..2abe154233a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -58,7 +58,8 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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 @@ -128,7 +129,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -218,7 +219,8 @@ public StoragePoolType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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() { @@ -226,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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) { @@ -388,7 +391,7 @@ public StoragePoolType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -396,7 +399,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java index c3fc6a05a48..1831cd7a360 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public StoragePoolTypeAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * 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) { @@ -155,7 +158,7 @@ public StoragePoolTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.java new file mode 100644 index 00000000000..27a7d679b59 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StructuredEntries.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 StructuredEntries. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StructuredEntries extends com.google.api.client.json.GenericJson { + + /** + * Map of a partner metadata that belong to the same subdomain. It accepts any value including + * google.protobuf.Struct. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map entries; + + /** + * Map of a partner metadata that belong to the same subdomain. It accepts any value including + * google.protobuf.Struct. + * @return value or {@code null} for none + */ + public java.util.Map getEntries() { + return entries; + } + + /** + * Map of a partner metadata that belong to the same subdomain. It accepts any value including + * google.protobuf.Struct. + * @param entries entries or {@code null} for none + */ + public StructuredEntries setEntries(java.util.Map entries) { + this.entries = entries; + return this; + } + + @Override + public StructuredEntries set(String fieldName, Object value) { + return (StructuredEntries) super.set(fieldName, value); + } + + @Override + public StructuredEntries clone() { + return (StructuredEntries) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 47d0167b0e1..ee23e5ea82b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -34,7 +34,29 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 @@ -52,7 +74,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * 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 @@ -78,15 +101,16 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -134,27 +158,28 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String ipv6AccessType; /** - * [Output Only] This field is for internal use. + * 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] 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. + * 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] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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 @@ -234,6 +259,13 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { @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 @@ -249,7 +281,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * apatch request. Supports both IPv4 and IPv6 ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -274,11 +306,11 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String stackType; /** - * [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 + * 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 @@ -309,7 +341,54 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private SubnetworkUtilizationDetails utilizationDetails; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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() { @@ -317,7 +396,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -348,7 +427,8 @@ public Subnetwork setDescription(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. + * 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() { @@ -359,7 +439,8 @@ public java.lang.Boolean getEnableFlowLogs() { * 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. + * 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) { @@ -450,8 +531,8 @@ public Subnetwork encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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() { @@ -459,8 +540,8 @@ public java.lang.String getGatewayAddress() { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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) { @@ -469,7 +550,8 @@ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -477,7 +559,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -580,7 +663,7 @@ public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { } /** - * [Output Only] This field is for internal use. + * Output only. [Output Only] This field is for internal use. * @return value or {@code null} for none */ public java.lang.String getIpv6CidrRange() { @@ -588,7 +671,7 @@ public java.lang.String getIpv6CidrRange() { } /** - * [Output Only] This field is for internal use. + * 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) { @@ -597,13 +680,13 @@ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { } /** - * [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. + * 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() { @@ -611,13 +694,13 @@ public java.lang.String getIpv6GceEndpoint() { } /** - * [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. + * 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) { @@ -626,7 +709,8 @@ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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() { @@ -634,7 +718,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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) { @@ -817,6 +902,23 @@ public Subnetwork setReservedInternalRange(java.lang.String reservedInternalRang 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 @@ -846,7 +948,7 @@ public Subnetwork setRole(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. + * apatch request. Supports both IPv4 and IPv6 ranges. * @return value or {@code null} for none */ public java.util.List getSecondaryIpRanges() { @@ -857,7 +959,7 @@ public java.util.List getSecondaryIpRanges() { * 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. + * apatch request. Supports both IPv4 and IPv6 ranges. * @param secondaryIpRanges secondaryIpRanges or {@code null} for none */ public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { @@ -908,11 +1010,11 @@ public Subnetwork setStackType(java.lang.String stackType) { } /** - * [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 + * 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() { @@ -920,11 +1022,11 @@ public java.lang.String getState() { } /** - * [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 + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java index 3ce236d4f61..92577af696e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -44,8 +44,8 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of - * subnetworks. + * 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 @@ -62,14 +62,14 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SubnetworkAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SubnetworkAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java index bfed8d09195..f8578cc2a42 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -50,7 +50,8 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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 @@ -67,7 +68,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public SubnetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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) { @@ -155,7 +158,7 @@ public SubnetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java index e2a3ca20f2c..d027af60f2c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -32,24 +32,31 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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; /** - * 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 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. + * The URL of the reserved internal range. Only IPv4 is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +65,15 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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() { @@ -69,8 +83,15 @@ public java.lang.String getIpCidrRange() { /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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) { @@ -79,9 +100,9 @@ public SubnetworkSecondaryRange setIpCidrRange(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 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() { @@ -89,9 +110,9 @@ public java.lang.String getRangeName() { } /** - * 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 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) { @@ -100,7 +121,7 @@ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { } /** - * The URL of the reserved internal range. + * The URL of the reserved internal range. Only IPv4 is supported. * @return value or {@code null} for none */ public java.lang.String getReservedInternalRange() { @@ -108,7 +129,7 @@ public java.lang.String getReservedInternalRange() { } /** - * The URL of the reserved internal range. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java index 8e52f4284e0..e5b790d1254 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -35,7 +35,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,15 +60,16 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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 @@ -86,14 +87,14 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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 with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +122,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean validateForProxyless; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +130,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -216,8 +217,8 @@ public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -225,8 +226,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -235,7 +236,8 @@ public TargetGrpcProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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() { @@ -243,7 +245,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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) { @@ -277,7 +280,7 @@ public TargetGrpcProxy setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -285,7 +288,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -294,7 +297,7 @@ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -302,7 +305,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java index 92580b50781..4e795941c63 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -50,7 +50,8 @@ public final class TargetGrpcProxyList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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 @@ -115,7 +116,8 @@ public TargetGrpcProxyList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java index 94c6d6be61b..d848ca9df49 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -45,7 +45,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,7 +91,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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 @@ -125,8 +126,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean proxyBind; /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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 @@ -147,7 +148,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String urlMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -155,7 +156,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -290,7 +291,8 @@ public TargetHttpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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() { @@ -298,7 +300,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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) { @@ -367,8 +370,8 @@ public TargetHttpProxy setProxyBind(java.lang.Boolean proxyBind) { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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() { @@ -376,8 +379,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java index b7233ee3ae8..501e6223943 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for lists of Target - * HTTP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public TargetHttpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -183,7 +183,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java index 5e34d1a9076..437aef687bf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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 @@ -67,7 +68,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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) { @@ -155,7 +158,7 @@ public TargetHttpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java index f59205ba0d2..d83defd4376 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -75,7 +75,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +121,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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 @@ -167,8 +168,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String quicOverride; /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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 @@ -331,7 +332,7 @@ public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -339,7 +340,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -474,7 +475,8 @@ public TargetHttpsProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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() { @@ -482,7 +484,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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) { @@ -578,8 +581,8 @@ public TargetHttpsProxy setQuicOverride(java.lang.String quicOverride) { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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() { @@ -587,8 +590,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java index c5e35673c5f..e3b6c0c7bde 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for lists of - * Target HTTP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpsProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpsProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java index 2f5c614d3de..30dd6b631cf 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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 @@ -67,7 +68,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpsProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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) { @@ -155,7 +158,7 @@ public TargetHttpsProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java index d8dc46444ae..be7ee592ef0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -34,7 +34,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,7 +66,8 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String instance; /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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 @@ -114,15 +115,15 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -130,7 +131,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -198,7 +199,8 @@ public TargetInstance setInstance(java.lang.String instance) { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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() { @@ -206,7 +208,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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) { @@ -312,8 +315,8 @@ public TargetInstance setSelfLink(java.lang.String selfLink) { } /** - * [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. + * 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() { @@ -321,8 +324,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java index 2b3a07f23b9..01d803ffaf3 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -44,7 +44,7 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public TargetInstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetInstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java index 4ad42444a27..9ed13afb4c8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -50,7 +50,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetInstanceList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetInstanceList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetInstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java index 51f47eeb5ab..107a42242a0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -51,7 +51,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String backupPool; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +107,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.util.List instances; /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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 @@ -125,7 +125,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] URL of the region where the target pool resides. + * 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 @@ -194,7 +194,7 @@ public TargetPool setBackupPool(java.lang.String backupPool) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -202,7 +202,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -324,7 +324,7 @@ public TargetPool setInstances(java.util.List instances) { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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() { @@ -332,7 +332,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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) { @@ -366,7 +366,7 @@ public TargetPool setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the target pool resides. + * 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() { @@ -374,7 +374,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the target pool resides. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java index 965213fa705..a4eaf801e32 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -44,8 +44,8 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for aggregated lists of - * target pools. + * 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 @@ -62,14 +62,14 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public TargetPoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetPoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java index 0a8f1b2844c..e1930f67b71 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -42,8 +42,8 @@ public final class TargetPoolInstanceHealth extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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 @@ -65,8 +65,8 @@ public TargetPoolInstanceHealth setHealthStatus(java.util.List hea } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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() { @@ -74,8 +74,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java index 66c2c97ec52..313eb178dbd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -50,7 +50,8 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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 @@ -67,7 +68,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetPoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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) { @@ -155,7 +158,7 @@ public TargetPoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java index b63eac66aae..0f34d06b101 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -46,7 +46,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,8 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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 @@ -152,7 +153,7 @@ public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -160,7 +161,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +204,8 @@ public TargetSslProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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() { @@ -211,7 +213,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java index e8d1f6506b7..a63574c696b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -50,7 +50,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetSslProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetSslProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetSslProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java index 9abb70a4721..101de85f7d2 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -34,7 +34,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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 @@ -97,8 +98,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String proxyHeader; /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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 @@ -119,7 +120,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String service; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -127,7 +128,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -170,7 +171,8 @@ public TargetTcpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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() { @@ -178,7 +180,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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) { @@ -266,8 +269,8 @@ public TargetTcpProxy setProxyHeader(java.lang.String proxyHeader) { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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() { @@ -275,8 +278,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java index e6a659795d2..af685bb148e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js } /** - * [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for lists of Target - * TCP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetTcpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetTcpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java index f2aae16d2ea..51094df31db 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -50,7 +50,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetTcpProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetTcpProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetTcpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java index 0b20beb9ea8..5447e2d91e4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -33,7 +33,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,8 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -108,6 +109,14 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs @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. @@ -140,7 +149,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.util.List tunnels; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -148,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -210,7 +219,8 @@ public TargetVpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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() { @@ -218,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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) { @@ -358,6 +369,25 @@ public TargetVpnGateway setNetwork(java.lang.String 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. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java index a428470d62c..fcee0487cb5 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -44,7 +44,8 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -61,14 +62,14 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +117,8 @@ public TargetVpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetVpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java index d691fa57cbe..6eaf8c73a84 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -50,7 +50,8 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -67,7 +68,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetVpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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) { @@ -155,7 +158,7 @@ public TargetVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java index 8da719aadc4..513196be314 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -56,7 +56,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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 @@ -227,9 +227,9 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { } /** - * [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. + * 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 @@ -254,7 +254,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.util.List tests; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -262,7 +262,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { @@ -590,7 +590,7 @@ public UrlMap setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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() { @@ -598,7 +598,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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) { @@ -649,9 +649,9 @@ public UrlMap setPathMatchers(java.util.List pathMatchers) { } /** - * [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. + * 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() { @@ -659,9 +659,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java index 47969709c14..717e1bf36c0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -50,7 +50,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public UrlMapList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public UrlMapList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java index 4ef0ac8e10f..97dc4836b3e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -44,7 +44,7 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public UrlMapsAggregatedList setItems(java.util.Map i } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapsAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public UrlMapsAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UrlMapsAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java index 20241b48f30..05fe83d9ac0 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -30,14 +30,14 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * 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] The internal IPv6 address range that is assigned to this subnetwork. + * 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 @@ -108,7 +108,7 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJs private java.lang.String subnetwork; /** - * [Output Only] The external IPv6 address range that is assigned to this 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() { @@ -116,7 +116,7 @@ public java.lang.String getExternalIpv6Prefix() { } /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * 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) { @@ -125,7 +125,7 @@ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefi } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * 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() { @@ -133,7 +133,7 @@ public java.lang.String getInternalIpv6Prefix() { } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java index 1ddaab1abe0..44ad036dfd4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -30,7 +30,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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 @@ -46,7 +47,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client. private java.lang.String rangeName; /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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() { @@ -54,7 +56,8 @@ public java.lang.String getIpCidrRange() { } /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 842a539118c..534fc9e95cd 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -50,8 +50,8 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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 @@ -69,7 +69,7 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +82,14 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +137,8 @@ public UsableSubnetworksAggregatedList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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() { @@ -146,8 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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) { @@ -181,7 +181,7 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * @return value or {@code null} for none */ public java.util.List getScopedWarnings() { @@ -189,7 +189,7 @@ public java.util.List getScopedWarnings() { } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * 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) { @@ -198,7 +198,7 @@ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List getUnreachables() { @@ -223,7 +223,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java index b745011ac7e..dba5c153b73 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -30,7 +30,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.GenericJson { /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.Gene private java.util.List interfaceNatMappings; /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * @return value or {@code null} for none */ public java.lang.String getInstanceName() { @@ -51,7 +51,7 @@ public java.lang.String getInstanceName() { } /** - * Name of the VM instance which the endpoint belongs to + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java index 09332672258..69ee2a0bc82 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -30,8 +30,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google.api.client.json.GenericJson { /** - * 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: + * 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}. */ @@ -39,8 +39,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List drainNatIpPortRanges; /** - * 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: + * 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}. */ @@ -48,46 +48,46 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List natIpPortRanges; /** - * 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. + * 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; /** - * 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. + * 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; /** - * Information about mappings provided by rules in this NAT. + * 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; /** - * 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". + * 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; /** - * Primary IP of the VM for this NIC. + * 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; /** - * 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: + * 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 */ @@ -96,8 +96,8 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -107,8 +107,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.ut } /** - * 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: + * 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 */ @@ -117,8 +117,8 @@ public java.util.List getNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -128,8 +128,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.Li } /** - * 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. + * 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() { @@ -137,8 +137,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -147,8 +147,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.l } /** - * 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. + * 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() { @@ -156,8 +156,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -166,7 +166,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.I } /** - * Information about mappings provided by rules in this NAT. + * Output only. Information about mappings provided by rules in this NAT. * @return value or {@code null} for none */ public java.util.List getRuleMappings() { @@ -174,7 +174,7 @@ public java.util.List } /** - * Information about mappings provided by rules in this NAT. + * 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) { @@ -183,8 +183,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List< } /** - * 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". + * 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() { @@ -192,8 +192,8 @@ public java.lang.String getSourceAliasIpRange() { } /** - * 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". + * 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) { @@ -202,7 +202,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang } /** - * Primary IP of the VM for this NIC. + * Output only. Primary IP of the VM for this NIC. * @return value or {@code null} for none */ public java.lang.String getSourceVirtualIp() { @@ -210,7 +210,7 @@ public java.lang.String getSourceVirtualIp() { } /** - * Primary IP of the VM for this NIC. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java index a29036c0838..1b6a728406e 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -30,50 +30,50 @@ public final class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends com.google.api.client.json.GenericJson { /** - * 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"]. + * 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; /** - * 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"]. + * 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; /** - * 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. + * 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; /** - * 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. + * 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; /** - * Rule number of the NAT Rule. + * 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; /** - * 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"]. + * 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() { @@ -81,9 +81,9 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -92,9 +92,9 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPor } /** - * 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"]. + * 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() { @@ -102,9 +102,9 @@ public java.util.List getNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -113,8 +113,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRang } /** - * 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. + * 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() { @@ -122,8 +122,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -132,8 +132,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrain } /** - * 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. + * 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() { @@ -141,8 +141,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -151,7 +151,7 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPo } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleNumber() { @@ -159,7 +159,7 @@ public java.lang.Integer getRuleNumber() { } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @param ruleNumber ruleNumber or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java index 286f93e7107..5fb6f39d7d1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -37,8 +37,8 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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 @@ -68,7 +68,7 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,8 +99,8 @@ public VmEndpointNatMappingsList setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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() { @@ -108,8 +108,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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) { @@ -158,7 +158,7 @@ public VmEndpointNatMappingsList setResult(java.util.List } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstanceSelector.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyLabelSelector.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java new file mode 100644 index 00000000000..2cc93446c09 --- /dev/null +++ b/clients/google-api-services-compute/v1/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/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java index 521afd329ea..d8149f69b9b 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -35,7 +35,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,15 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIpVersion; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -111,14 +112,22 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String network; /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,7 +150,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.util.List vpnInterfaces; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -149,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -194,7 +203,8 @@ public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -202,7 +212,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -211,7 +222,7 @@ public VpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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() { @@ -219,7 +230,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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) { @@ -360,7 +371,26 @@ public VpnGateway setNetwork(java.lang.String network) { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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() { @@ -368,7 +398,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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) { @@ -377,7 +407,7 @@ public VpnGateway setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -385,7 +415,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java index ad57f221ca9..125137b6dcb 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -61,14 +61,14 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java index 5d0c093170d..582e5d5df26 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -50,7 +50,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -67,7 +67,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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) { @@ -155,7 +155,7 @@ public VpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java index 7904e9eec5a..e70f0cef786 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java @@ -30,14 +30,14 @@ public final class VpnGatewayStatus extends com.google.api.client.json.GenericJson { /** - * List of VPN connection for this VpnGateway. + * 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; /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @return value or {@code null} for none */ public java.util.List getVpnConnections() { @@ -45,7 +45,7 @@ public java.util.List getVpnConnections() { } /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @param vpnConnections vpnConnections or {@code null} for none */ public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java index 67a40c89518..ff635e7b322 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -30,29 +30,29 @@ public final class VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { /** - * The VPN gateway interface this VPN tunnel is associated with. + * 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; /** - * 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. + * 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; /** - * URL reference to the VPN tunnel. + * 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; /** - * The VPN gateway interface this VPN tunnel is associated with. + * Output only. The VPN gateway interface this VPN tunnel is associated with. * @return value or {@code null} for none */ public java.lang.Long getLocalGatewayInterface() { @@ -60,7 +60,7 @@ public java.lang.Long getLocalGatewayInterface() { } /** - * The VPN gateway interface this VPN tunnel is associated with. + * 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) { @@ -69,8 +69,8 @@ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatew } /** - * 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. + * 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() { @@ -78,8 +78,8 @@ public java.lang.Long getPeerGatewayInterface() { } /** - * 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. + * 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) { @@ -88,7 +88,7 @@ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGateway } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @return value or {@code null} for none */ public java.lang.String getTunnelUrl() { @@ -96,7 +96,7 @@ public java.lang.String getTunnelUrl() { } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @param tunnelUrl tunnelUrl or {@code null} for none */ public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java index 1e97486d287..af1945dd5b6 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -31,16 +31,16 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.json.GenericJson { /** - * 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. + * 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; /** - * 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. + * 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 @@ -67,8 +67,8 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.j } /** - * 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. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getPeerExternalGateway() { } /** - * 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. + * 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) { @@ -86,8 +86,8 @@ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String pee } /** - * 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. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getPeerGcpGateway() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java index 244d89c5e97..a0c47f43cf1 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -30,7 +30,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.json.GenericJson { /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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 @@ -47,21 +48,22 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String interconnectAttachment; /** - * [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. + * 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] 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. + * 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}. */ @@ -69,7 +71,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String ipv6Address; /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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() { @@ -77,7 +80,8 @@ public java.lang.Long getId() { } /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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) { @@ -109,13 +113,14 @@ public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String } /** - * [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. + * 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() { @@ -123,13 +128,14 @@ public java.lang.String getIpAddress() { } /** - * [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. + * 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) { @@ -138,8 +144,8 @@ public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { } /** - * [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. + * 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 */ @@ -148,8 +154,8 @@ public java.lang.String getIpv6Address() { } /** - * [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. + * 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 */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java index 5febf7b3d74..03f6b807e23 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -39,7 +39,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private VpnTunnelCipherSuite cipherSuite; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +75,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private java.lang.Integer ikeVersion; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -123,6 +123,14 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { @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 @@ -272,7 +280,7 @@ public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -280,7 +288,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { @@ -359,7 +367,7 @@ public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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() { @@ -367,7 +375,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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) { @@ -511,6 +519,25 @@ public VpnTunnel setName(java.lang.String 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 diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java index 8defd580f15..803aead4170 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -61,14 +61,14 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnTunnelAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnTunnelAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java index 66f5b6260ef..467d94bfe67 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -50,7 +50,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -67,7 +67,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnTunnelList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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) { @@ -155,7 +155,7 @@ public VpnTunnelList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java b/clients/google-api-services-compute/v1/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/v1/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/v1/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java index a2ebc4201ae..d2d7f2d7532 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Wire.java @@ -30,25 +30,25 @@ public final class Wire extends com.google.api.client.json.GenericJson { /** - * [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. + * 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; /** - * Wire endpoints are specific Interconnect connections. + * 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] 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: + * 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. @@ -58,16 +58,16 @@ public final class Wire extends com.google.api.client.json.GenericJson { private java.lang.String label; /** - * [Output Only] Properties of the wire. + * 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] 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. + * 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() { @@ -75,9 +75,9 @@ public java.lang.Boolean getAdminEnabled() { } /** - * [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. + * 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) { @@ -86,7 +86,7 @@ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -94,7 +94,7 @@ public java.util.List getEndpoints() { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @param endpoints endpoints or {@code null} for none */ public Wire setEndpoints(java.util.List endpoints) { @@ -103,9 +103,9 @@ public Wire setEndpoints(java.util.List endpoints) { } /** - * [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: + * 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. @@ -116,9 +116,9 @@ public java.lang.String getLabel() { } /** - * [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: + * 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. @@ -130,7 +130,7 @@ public Wire setLabel(java.lang.String label) { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @return value or {@code null} for none */ public WireProperties getWireProperties() { @@ -138,7 +138,7 @@ public WireProperties getWireProperties() { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @param wireProperties wireProperties or {@code null} for none */ public Wire setWireProperties(WireProperties wireProperties) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java index cadcca1fedc..c894fd2ef5c 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -39,7 +39,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.Boolean adminEnabled; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,15 +61,15 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.util.Map endpoints; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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 @@ -87,21 +87,21 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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] Server-defined URL for the resource. + * 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; /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private WireProperties wireProperties; /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,7 +149,7 @@ public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -157,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -202,8 +202,8 @@ public WireGroup setEndpoints(java.util.Map endpoints } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -211,8 +211,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -221,7 +221,7 @@ public WireGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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() { @@ -229,7 +229,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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) { @@ -263,7 +263,7 @@ public WireGroup setName(java.lang.String name) { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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() { @@ -271,7 +271,7 @@ public java.lang.Boolean getReconciling() { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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) { @@ -280,7 +280,7 @@ public WireGroup setReconciling(java.lang.Boolean reconciling) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -288,7 +288,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -297,7 +297,7 @@ public WireGroup setSelfLink(java.lang.String selfLink) { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @return value or {@code null} for none */ public WireGroupTopology getTopology() { @@ -305,7 +305,7 @@ public WireGroupTopology getTopology() { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @param topology topology or {@code null} for none */ public WireGroup setTopology(WireGroupTopology topology) { @@ -331,7 +331,7 @@ public WireGroup setWireProperties(WireProperties wireProperties) { } /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * @return value or {@code null} for none */ public java.util.List getWires() { @@ -339,7 +339,7 @@ public java.util.List getWires() { } /** - * The single/redundant wire(s) managed by the wire group. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java index eae81afc621..b677fb9cd8a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -56,7 +56,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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 @@ -80,7 +80,8 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +144,7 @@ public WireGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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() { @@ -151,7 +152,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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) { @@ -200,7 +201,8 @@ public WireGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +210,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public WireGroupList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index bbe19b70c85..9af850296af 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -30,14 +30,14 @@ public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * Topology details for all endpoints in the wire group. + * 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; /** - * Topology details for all endpoints in the wire group. + * Output only. Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -45,7 +45,7 @@ public java.util.List getEndpoints() { } /** - * Topology details for all endpoints in the wire group. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index c871813ea31..78a82e14a9a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -30,23 +30,23 @@ public final class WireGroupTopologyEndpoint extends com.google.api.client.json.GenericJson { /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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; /** - * Endpoint label from the wire group. + * 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; /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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() { @@ -54,8 +54,8 @@ public java.lang.String getCity() { } /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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) { @@ -64,7 +64,7 @@ public WireGroupTopologyEndpoint setCity(java.lang.String city) { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @return value or {@code null} for none */ public java.lang.String getLabel() { @@ -72,7 +72,7 @@ public java.lang.String getLabel() { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @param label label or {@code null} for none */ public WireGroupTopologyEndpoint setLabel(java.lang.String label) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java new file mode 100644 index 00000000000..7332c3016cf --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.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 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/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java index fdb831631b4..1d968742891 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -50,7 +50,8 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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 @@ -67,7 +68,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public XpnHostList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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) { @@ -155,7 +158,7 @@ public XpnHostList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java index 0675cfe1818..156d6c6381a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Zone.java @@ -68,7 +68,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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 @@ -103,7 +103,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -195,7 +195,7 @@ public Zone setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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() { @@ -203,7 +203,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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) { @@ -280,7 +280,7 @@ public Zone setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -288,7 +288,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java index 5291d3e8c13..479ab946be8 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -50,7 +50,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ZoneList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ZoneList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ZoneList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { 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 a53c12aaf9b..57999743b27 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-rev20251110-2.0.0 - Compute Engine API v1-rev20251110-2.0.0 + v1-rev20260306-2.0.0 + Compute Engine API v1-rev20260306-2.0.0 jar 2011 From e96a19da35d5f32ad74af9bb175a1ad87b1959c3 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 16 Mar 2026 12:08:45 -0400 Subject: [PATCH 2/5] chore: regenerate compute alpha client --- .../alpha/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 6948 +++++++++++++++-- .../compute/model/AcceleratorType.java | 21 +- .../model/AcceleratorTypeAggregatedList.java | 24 +- .../compute/model/AcceleratorTypeList.java | 18 +- .../services/compute/model/AccessConfig.java | 12 +- .../api/services/compute/model/Address.java | 69 +- .../compute/model/AddressAggregatedList.java | 24 +- .../services/compute/model/AddressList.java | 12 +- .../model/AllocationAggregateReservation.java | 24 +- ...UAllocationReservedInstanceProperties.java | 2 +- .../AllocationSpecificSKUReservation.java | 12 +- .../services/compute/model/AttachedDisk.java | 120 +- .../model/AttachedDiskInitializeParams.java | 24 +- .../services/compute/model/Autoscaler.java | 81 +- .../model/AutoscalerAggregatedList.java | 27 +- .../compute/model/AutoscalerList.java | 15 +- .../api/services/compute/model/Backend.java | 57 + .../BackendBackendOrchestrationInfo.java | 66 + .../services/compute/model/BackendBucket.java | 36 +- .../model/BackendBucketAggregatedList.java | 12 +- .../compute/model/BackendBucketList.java | 12 +- .../model/BackendBucketListUsable.java | 18 +- .../compute/model/BackendBucketUsedBy.java | 6 +- .../compute/model/BackendService.java | 117 +- .../model/BackendServiceAggregatedList.java | 18 +- .../BackendServiceDynamicForwarding.java | 24 + ...dServiceDynamicForwardingForwardProxy.java | 90 + .../model/BackendServiceFailoverPolicy.java | 6 +- .../model/BackendServiceGroupHealth.java | 12 +- .../compute/model/BackendServiceIAP.java | 6 +- .../compute/model/BackendServiceList.java | 15 +- .../model/BackendServiceListUsable.java | 18 +- .../BackendServiceOrchestrationInfo.java | 66 + .../compute/model/BackendServiceUsedBy.java | 12 +- .../api/services/compute/model/BgpRoute.java | 30 +- .../compute/model/BgpRouteAsPath.java | 30 +- ...InstanceResourcePerInstanceProperties.java | 6 +- .../compute/model/CacheInvalidationRule.java | 93 + .../services/compute/model/CachePolicy.java | 405 + .../model/CachePolicyCacheKeyPolicy.java | 307 + .../CachePolicyNegativeCachingPolicy.java | 102 + ...pacityAdviceRequestDistributionPolicy.java | 6 +- ...pacityAdviceRequestInstanceProperties.java | 27 + ...ceRequestInstancePropertiesScheduling.java | 24 + ...ityAdviceResponseRecommendationScores.java | 54 + ...cityAdviceResponseRecommendationShard.java | 6 +- .../services/compute/model/Commitment.java | 138 +- .../model/CommitmentAggregatedList.java | 24 +- .../compute/model/CommitmentList.java | 15 +- .../compute/model/CommitmentParams.java | 78 + .../model/CommitmentResourceStatus.java | 24 +- ...ResourceStatusCancellationInformation.java | 39 +- .../compute/model/CompositeHealthCheck.java | 57 +- .../CompositeHealthCheckAggregatedList.java | 18 +- .../model/CompositeHealthCheckHealth.java | 117 + .../model/CompositeHealthCheckList.java | 12 +- ...ksGetHealthResponseHealthSourceHealth.java | 90 + .../compute/model/CrossSiteNetwork.java | 39 +- .../compute/model/CrossSiteNetworkList.java | 18 +- .../api/services/compute/model/DateTime.java | 290 + .../api/services/compute/model/Disk.java | 333 +- .../compute/model/DiskAggregatedList.java | 24 +- .../compute/model/DiskAsyncReplication.java | 54 +- .../compute/model/DiskConvertParams.java | 168 + .../api/services/compute/model/DiskList.java | 12 +- .../model/DiskPairReplicationState.java | 48 +- .../services/compute/model/DiskParams.java | 24 +- .../DiskSettingsResourcePolicyDetails.java | 18 +- .../api/services/compute/model/DiskType.java | 12 +- .../compute/model/DiskTypeAggregatedList.java | 18 +- .../services/compute/model/DiskTypeList.java | 12 +- .../model/DiskUpdateKmsKeyRequest.java | 84 + .../compute/model/DisksConvertRequest.java | 63 + .../compute/model/DistributionPolicy.java | 18 +- .../model/ExchangedPeeringRoutesList.java | 18 +- .../compute/model/ExternalVpnGateway.java | 30 +- .../compute/model/ExternalVpnGatewayList.java | 12 +- .../api/services/compute/model/Firewall.java | 27 +- .../services/compute/model/FirewallList.java | 15 +- ...ewallPoliciesListAssociationsResponse.java | 6 +- .../compute/model/FirewallPolicy.java | 117 +- .../model/FirewallPolicyAssociation.java | 12 +- .../compute/model/FirewallPolicyList.java | 9 +- .../model/FirewallPolicyRolloutOperation.java | 90 + ...allPolicyRolloutOperationRolloutInput.java | 117 + ...llPolicyRolloutOperationRolloutStatus.java | 114 + ...loutOperationRolloutStatusNextRollout.java | 96 + ...OperationRolloutStatusRolloutMetadata.java | 117 + .../compute/model/FirewallPolicyRule.java | 18 +- .../model/FirewallPolicyRuleSecureTag.java | 12 +- .../compute/model/FixedOrPercent.java | 9 +- .../compute/model/FlexibleTimeRange.java | 3 +- .../compute/model/ForwardingRule.java | 159 +- .../model/ForwardingRuleAggregatedList.java | 24 +- .../ForwardingRuleAttachedExtension.java | 66 + .../compute/model/ForwardingRuleList.java | 12 +- .../compute/model/FutureReservation.java | 129 +- .../model/FutureReservationParams.java | 78 + .../model/FutureReservationStatus.java | 81 +- ...vationStatusExistingMatchingUsageInfo.java | 12 +- ...reReservationStatusLastKnownGoodState.java | 45 +- ...tKnownGoodStateFutureReservationSpecs.java | 18 +- ...ureReservationsAggregatedListResponse.java | 27 +- .../model/FutureReservationsListResponse.java | 24 +- .../model/GetVersionOperationMetadata.java | 63 + .../GetVersionOperationMetadataSbomInfo.java | 96 + .../model/GlobalListVmExtensionsResponse.java | 443 ++ .../compute/model/GlobalVmExtension.java | 84 + .../model/GlobalVmExtensionPolicy.java | 51 +- .../model/GlobalVmExtensionPolicyList.java | 18 +- ...obalVmExtensionPolicyRolloutOperation.java | 6 +- ...ionPolicyRolloutOperationRolloutInput.java | 99 +- ...onPolicyRolloutOperationRolloutStatus.java | 24 +- ...OperationRolloutStatusRolloutMetadata.java | 48 +- ...sRolloutMetadataLocationRolloutStatus.java | 67 + .../compute/model/GuestAttributes.java | 27 +- .../services/compute/model/HaController.java | 96 +- .../compute/model/HaControllerStatus.java | 72 +- .../HaControllerStatusFailoverProgress.java | 36 +- ...usFailoverProgressLastFailoverAttempt.java | 14 +- .../model/HaControllerStatusZoneStatus.java | 18 +- ...HaControllerStatusZoneStatusLastError.java | 14 +- .../model/HaControllersAggregatedList.java | 24 +- .../compute/model/HaControllersList.java | 12 +- .../model/HealthAggregationPolicy.java | 57 +- ...HealthAggregationPolicyAggregatedList.java | 18 +- .../model/HealthAggregationPolicyList.java | 12 +- .../services/compute/model/HealthCheck.java | 27 +- .../compute/model/HealthCheckList.java | 12 +- .../compute/model/HealthCheckService.java | 54 +- .../HealthCheckServiceAggregatedList.java | 18 +- .../model/HealthCheckServicesList.java | 54 +- .../model/HealthChecksAggregatedList.java | 18 +- .../services/compute/model/HealthSource.java | 51 +- .../model/HealthSourceAggregatedList.java | 18 +- .../compute/model/HealthSourceHealth.java | 117 + .../compute/model/HealthSourceList.java | 6 +- ...lthSourcesGetHealthResponseSourceInfo.java | 120 + ...etHealthResponseSourceInfoBackendInfo.java | 117 + .../compute/model/HttpHeaderMatch.java | 6 +- .../compute/model/HttpHealthCheck.java | 15 +- .../compute/model/HttpHealthCheckList.java | 12 +- .../model/HttpQueryParameterMatch.java | 6 +- .../compute/model/HttpRouteAction.java | 57 + .../compute/model/HttpRouteRuleMatch.java | 72 +- .../compute/model/HttpsHealthCheck.java | 12 +- .../compute/model/HttpsHealthCheckList.java | 12 +- .../api/services/compute/model/Image.java | 192 +- .../api/services/compute/model/ImageList.java | 12 +- .../model/ImageOptimizationPolicy.java | 69 + .../services/compute/model/ImageParams.java | 24 +- .../api/services/compute/model/Instance.java | 159 +- .../compute/model/InstanceAggregatedList.java | 24 +- .../model/InstanceConsumptionData.java | 12 +- .../model/InstanceConsumptionInfo.java | 24 +- .../services/compute/model/InstanceGroup.java | 104 +- .../model/InstanceGroupAggregatedList.java | 62 +- .../compute/model/InstanceGroupList.java | 56 +- .../compute/model/InstanceGroupManager.java | 105 +- .../InstanceGroupManagerActionsSummary.java | 269 +- .../InstanceGroupManagerAggregatedList.java | 65 +- .../model/InstanceGroupManagerList.java | 56 +- .../model/InstanceGroupManagerParams.java | 21 +- .../InstanceGroupManagerResizeRequest.java | 78 +- ...stanceGroupManagerResizeRequestStatus.java | 79 +- ...ManagerResizeRequestStatusLastAttempt.java | 8 +- ...roupManagerResizeRequestsListResponse.java | 56 +- .../model/InstanceGroupManagerStatus.java | 120 +- ...GroupManagerStatusAcceleratorTopology.java | 117 + ...pologyAcceleratorTopologyStateDetails.java | 370 + ...eGroupManagerStatusAllInstancesConfig.java | 24 +- ...oupManagerStatusBulkInstanceOperation.java | 12 +- ...ulkInstanceOperationLastProgressCheck.java | 20 +- ...oupManagerStatusInstanceStatusSummary.java | 404 + .../InstanceGroupManagerStatusStateful.java | 66 +- ...nagerStatusStatefulPerInstanceConfigs.java | 15 +- ...stanceGroupManagerStatusVersionTarget.java | 18 +- .../InstanceGroupManagerUpdatePolicy.java | 24 + ...tanceGroupManagersApplyUpdatesRequest.java | 24 + ...ConfigureAcceleratorTopologiesRequest.java | 102 + ...questAcceleratorTopologyConfiguration.java | 99 + ...vailableAcceleratorTopologiesResponse.java | 24 + ...logiesResponseAcceleratorTopologyInfo.java | 69 + ...ogiesResponseAcceleratorTopologyState.java | 420 + ...stanceGroupManagersListErrorsResponse.java | 30 +- ...pManagersListManagedInstancesResponse.java | 30 +- ...oupManagersListPerInstanceConfigsResp.java | 38 +- ...nceGroupManagersResizeAdvancedRequest.java | 27 + .../InstanceGroupManagersScopedList.java | 28 +- .../model/InstanceGroupsListInstances.java | 59 +- .../model/InstanceGroupsScopedList.java | 22 +- .../services/compute/model/InstanceList.java | 15 +- .../compute/model/InstanceListReferrers.java | 18 +- .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../compute/model/InstanceParams.java | 24 +- .../compute/model/InstanceProperties.java | 21 +- .../compute/model/InstanceSettings.java | 21 +- .../model/InstanceSettingsMetadata.java | 6 +- .../compute/model/InstanceTemplate.java | 57 +- .../model/InstanceTemplateAggregatedList.java | 12 +- .../compute/model/InstanceTemplateList.java | 18 +- .../compute/model/InstanceWithNamedPorts.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 9 +- .../compute/model/InstantSnapshot.java | 186 +- .../model/InstantSnapshotAggregatedList.java | 24 +- .../compute/model/InstantSnapshotGroup.java | 75 +- .../InstantSnapshotGroupResourceStatus.java | 12 +- .../compute/model/InstantSnapshotList.java | 12 +- .../compute/model/InstantSnapshotParams.java | 78 + .../services/compute/model/Interconnect.java | 228 +- .../compute/model/InterconnectAttachment.java | 291 +- .../InterconnectAttachmentAggregatedList.java | 24 +- ...ectAttachmentConfigurationConstraints.java | 33 +- .../model/InterconnectAttachmentGroup.java | 30 +- ...redAvailabilitySLAIntendedSlaBlockers.java | 78 +- ...AttachmentGroupLogicalStructureRegion.java | 6 +- ...hmentGroupLogicalStructureRegionMetro.java | 12 +- ...upLogicalStructureRegionMetroFacility.java | 6 +- ...gicalStructureRegionMetroFacilityZone.java | 18 +- ...ateMembersInterconnectAttachmentInput.java | 6 +- ...erconnectAttachmentGroupsListResponse.java | 9 +- ...nectAttachmentGroupsOperationalStatus.java | 12 +- ...oupsOperationalStatusAttachmentStatus.java | 42 +- .../model/InterconnectAttachmentList.java | 18 +- .../compute/model/InterconnectGroup.java | 30 +- ...yCapabilityIntendedCapabilityBlockers.java | 66 +- ...erconnectGroupPhysicalStructureMetros.java | 12 +- ...roupPhysicalStructureMetrosFacilities.java | 12 +- ...hysicalStructureMetrosFacilitiesZones.java | 24 +- .../model/InterconnectGroupsListResponse.java | 9 +- .../InterconnectGroupsOperationalStatus.java | 24 +- ...psOperationalStatusInterconnectStatus.java | 27 +- .../compute/model/InterconnectList.java | 15 +- .../compute/model/InterconnectLocation.java | 129 +- ...nectLocationCrossSiteInterconnectInfo.java | 27 +- .../model/InterconnectLocationList.java | 18 +- .../model/InterconnectLocationRegionInfo.java | 36 +- .../model/InterconnectRemoteLocation.java | 222 +- ...InterconnectRemoteLocationConstraints.java | 30 +- .../model/InterconnectRemoteLocationList.java | 18 +- ...ectRemoteLocationPermittedConnections.java | 12 +- .../compute/model/IpAddressesList.java | 15 +- .../services/compute/model/IpOwnerList.java | 18 +- .../api/services/compute/model/License.java | 57 +- .../services/compute/model/LicenseCode.java | 69 +- .../model/LicenseCodeLicenseAlias.java | 12 +- .../services/compute/model/LicenseParams.java | 78 + .../compute/model/LicensesListResponse.java | 6 +- .../model/ListInstantSnapshotGroups.java | 21 +- .../compute/model/ListSnapshotGroups.java | 21 +- .../model/ListVmExtensionStatesResponse.java | 443 ++ .../model/ListVmExtensionsResponse.java | 443 ++ .../compute/model/LocationPolicy.java | 48 +- .../LocationPolicyZoneConfiguration.java | 69 + .../services/compute/model/MachineImage.java | 81 +- .../compute/model/MachineImageList.java | 18 +- .../compute/model/MachineImageParams.java | 36 + .../services/compute/model/MachineType.java | 15 +- .../model/MachineTypeAggregatedList.java | 24 +- .../compute/model/MachineTypeList.java | 15 +- .../compute/model/ManagedInstance.java | 246 +- .../ManagedInstanceAllInstancesConfig.java | 12 +- .../ManagedInstanceCurrentActionDetails.java | 81 +- .../model/ManagedInstanceInstanceHealth.java | 33 +- .../model/ManagedInstanceLastAttempt.java | 12 +- ...stancePropertiesFromFlexibilityPolicy.java | 12 +- .../model/ManagedInstanceScheduling.java | 12 +- .../compute/model/ManagedInstanceVersion.java | 18 +- .../api/services/compute/model/Metadata.java | 6 +- .../api/services/compute/model/MultiMig.java | 45 +- .../compute/model/MultiMigMember.java | 51 +- .../compute/model/MultiMigMemberList.java | 15 +- .../compute/model/MultiMigStatus.java | 18 +- .../MultiMigStatusAcceleratorTopology.java | 24 +- ...logyAcceleratorTopologyStateLastCheck.java | 20 +- .../services/compute/model/MultiMigsList.java | 12 +- .../api/services/compute/model/NatIpInfo.java | 12 +- .../model/NatIpInfoNatIpInfoMapping.java | 18 +- .../api/services/compute/model/Network.java | 57 +- .../compute/model/NetworkAttachment.java | 90 +- .../NetworkAttachmentConnectedEndpoint.java | 33 +- .../model/NetworkEdgeSecurityService.java | 45 +- ...workEdgeSecurityServiceAggregatedList.java | 27 +- .../compute/model/NetworkEndpointGroup.java | 63 +- .../NetworkEndpointGroupAggregatedList.java | 27 +- ...rkEndpointGroupLbNetworkEndpointGroup.java | 12 +- .../model/NetworkEndpointGroupList.java | 18 +- .../model/NetworkEndpointGroupPscData.java | 24 +- ...orkEndpointGroupsListNetworkEndpoints.java | 6 +- .../NetworkEndpointGroupsScopedList.java | 22 +- .../NetworkEndpointWithHealthStatus.java | 12 +- .../NetworkFirewallPolicyAggregatedList.java | 24 +- .../compute/model/NetworkInterface.java | 108 +- .../services/compute/model/NetworkList.java | 12 +- .../compute/model/NetworkPeering.java | 27 +- .../services/compute/model/NetworkPolicy.java | 66 +- .../model/NetworkPolicyAggregatedList.java | 24 +- .../compute/model/NetworkPolicyList.java | 9 +- ...etworkPolicyTrafficClassificationRule.java | 21 +- ...icyTrafficClassificationRuleSecureTag.java | 12 +- .../compute/model/NetworkProfile.java | 66 +- .../model/NetworkProfileNetworkFeatures.java | 12 +- .../model/NetworkProfilesListResponse.java | 24 +- .../compute/model/NetworkRoutingConfig.java | 12 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 12 +- .../api/services/compute/model/NodeGroup.java | 48 +- .../model/NodeGroupAggregatedList.java | 24 +- .../services/compute/model/NodeGroupList.java | 15 +- .../model/NodeGroupMaintenanceWindow.java | 24 +- .../services/compute/model/NodeGroupNode.java | 30 +- .../compute/model/NodeGroupsListNodes.java | 56 +- .../services/compute/model/NodeTemplate.java | 63 +- .../model/NodeTemplateAggregatedList.java | 24 +- .../compute/model/NodeTemplateList.java | 15 +- .../api/services/compute/model/NodeType.java | 33 +- .../compute/model/NodeTypeAggregatedList.java | 24 +- .../services/compute/model/NodeTypeList.java | 15 +- .../compute/model/NotificationEndpoint.java | 51 +- .../NotificationEndpointAggregatedList.java | 18 +- .../model/NotificationEndpointList.java | 12 +- .../api/services/compute/model/Operation.java | 60 +- .../model/OperationAggregatedList.java | 18 +- .../services/compute/model/OperationList.java | 9 +- ...urityPoliciesListAssociationsResponse.java | 6 +- .../compute/model/PacketMirroring.java | 36 +- .../model/PacketMirroringAggregatedList.java | 18 +- .../PacketMirroringForwardingRuleInfo.java | 6 +- .../compute/model/PacketMirroringList.java | 15 +- ...oringMirroredResourceInfoInstanceInfo.java | 6 +- ...rroringMirroredResourceInfoSubnetInfo.java | 6 +- .../model/PacketMirroringNetworkInfo.java | 6 +- .../services/compute/model/PathMatcher.java | 21 +- .../PeriodicPartialMaintenanceSchedule.java | 163 + .../compute/model/PreviewFeature.java | 42 +- .../compute/model/PreviewFeatureList.java | 15 +- .../compute/model/PreviewFeatureStatus.java | 12 +- .../PreviewFeatureStatusReleaseStatus.java | 6 +- .../api/services/compute/model/Project.java | 36 +- .../model/ProjectsGetXpnResources.java | 36 +- .../compute/model/PublicAdvertisedPrefix.java | 90 +- .../model/PublicAdvertisedPrefixList.java | 12 +- .../compute/model/PublicDelegatedPrefix.java | 120 +- .../PublicDelegatedPrefixAggregatedList.java | 21 +- .../model/PublicDelegatedPrefixList.java | 12 +- ...legatedPrefixPublicDelegatedSubPrefix.java | 51 +- .../compute/model/QueuedResource.java | 66 +- .../compute/model/QueuedResourceList.java | 18 +- .../compute/model/QueuedResourceStatus.java | 36 +- .../model/QueuedResourcesAggregatedList.java | 24 +- .../compute/model/RecoverableSnapshot.java | 93 +- .../RecoverableSnapshotAggregatedList.java | 27 +- .../model/RecoverableSnapshotList.java | 21 +- .../RecoverableSnapshotOriginalSnapshot.java | 252 +- .../api/services/compute/model/Reference.java | 6 +- .../api/services/compute/model/Region.java | 34 +- .../compute/model/RegionAutoscalerList.java | 12 +- .../compute/model/RegionDiskTypeList.java | 15 +- .../model/RegionDiskUpdateKmsKeyRequest.java | 84 + .../model/RegionInstanceGroupList.java | 50 +- .../model/RegionInstanceGroupManagerList.java | 56 +- ...roupManagerResizeRequestsListResponse.java | 65 +- ...nceGroupManagersAdoptInstancesRequest.java | 72 + ...tanceGroupManagersApplyUpdatesRequest.java | 24 + ...stanceGroupManagersListErrorsResponse.java | 24 +- ...eGroupManagersListInstanceConfigsResp.java | 38 +- ...nceGroupManagersListInstancesResponse.java | 24 +- ...nceGroupManagersResizeAdvancedRequest.java | 27 + .../RegionInstanceGroupsListInstances.java | 50 +- .../services/compute/model/RegionList.java | 12 +- ...PoliciesGetEffectiveFirewallsResponse.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 39 +- .../RegionSnapshotUpdateKmsKeyRequest.java | 78 + .../compute/model/ReliabilityRisk.java | 27 +- .../model/ReliabilityRisksListResponse.java | 15 +- .../compute/model/ReplicationDetails.java | 24 +- .../compute/model/ReplicationDiskPair.java | 12 +- .../services/compute/model/Reservation.java | 177 +- .../model/ReservationAggregatedList.java | 18 +- .../compute/model/ReservationBlock.java | 147 +- .../ReservationBlockPhysicalTopology.java | 6 +- ...ervationBlockPhysicalTopologyInstance.java | 6 +- .../compute/model/ReservationList.java | 15 +- .../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 | 114 +- ...ReservationSubBlocksGetVersionRequest.java | 66 + .../compute/model/ResourcePolicy.java | 48 +- .../model/ResourcePolicyAggregatedList.java | 18 +- .../model/ResourcePolicyDailyCycle.java | 12 +- .../model/ResourcePolicyHourlyCycle.java | 12 +- .../compute/model/ResourcePolicyList.java | 15 +- .../model/ResourcePolicyResourceStatus.java | 15 +- ...rceStatusInstanceSchedulePolicyStatus.java | 21 +- .../ResourcePolicyWeeklyCycleDayOfWeek.java | 12 +- .../compute/model/ResourceStatus.java | 111 +- ...sourceStatusEffectiveInstanceMetadata.java | 24 + ...ourceStatusReservationConsumptionInfo.java | 33 +- .../api/services/compute/model/Rollout.java | 86 +- .../services/compute/model/RolloutPlan.java | 39 +- .../model/RolloutPlansListResponse.java | 15 +- ...outWaveDetailsOrchestratedWaveDetails.java | 54 + ...OrchestratedWaveDetailsLocationStatus.java | 66 + .../compute/model/RolloutsListResponse.java | 15 +- .../api/services/compute/model/Route.java | 162 +- .../api/services/compute/model/RouteList.java | 12 +- .../api/services/compute/model/Router.java | 18 +- .../compute/model/RouterAggregatedList.java | 18 +- .../services/compute/model/RouterBgpPeer.java | 36 +- .../compute/model/RouterInterface.java | 36 +- .../services/compute/model/RouterList.java | 12 +- .../model/RouterStatusBgpPeerStatus.java | 132 +- .../compute/model/RouterStatusNatStatus.java | 63 +- .../RouterStatusNatStatusNatRuleStatus.java | 39 +- .../compute/model/RouterStatusResponse.java | 6 +- .../compute/model/RoutersListBgpRoutes.java | 21 +- .../compute/model/RoutersListNamedSets.java | 21 +- .../model/RoutersListRoutePolicies.java | 24 +- .../compute/model/SavedAttachedDisk.java | 57 +- .../api/services/compute/model/SavedDisk.java | 48 +- .../services/compute/model/Screenshot.java | 6 +- .../model/SecurityPoliciesAggregatedList.java | 24 +- .../compute/model/SecurityPolicy.java | 66 +- .../model/SecurityPolicyAssociation.java | 18 +- .../SecurityPolicyDdosProtectionConfig.java | 54 +- .../compute/model/SecurityPolicyList.java | 15 +- .../compute/model/SecurityPolicyRule.java | 30 +- ...cyRulePreconfiguredWafConfigExclusion.java | 27 + .../compute/model/SerialPortOutput.java | 15 +- .../compute/model/ServiceAttachment.java | 69 +- .../ServiceAttachmentAggregatedList.java | 18 +- .../compute/model/ServiceAttachmentList.java | 9 +- .../model/ShieldedInstanceIdentity.java | 12 +- .../compute/model/ShieldedVmIdentity.java | 12 +- .../api/services/compute/model/Snapshot.java | 294 +- .../compute/model/SnapshotAggregatedList.java | 24 +- .../services/compute/model/SnapshotGroup.java | 54 +- .../services/compute/model/SnapshotList.java | 12 +- .../compute/model/SnapshotParams.java | 24 +- .../model/SnapshotRecycleBinPolicy.java | 87 + .../model/SnapshotRecycleBinPolicyRule.java | 66 + ...napshotRecycleBinPolicyRuleRuleConfig.java | 69 + .../compute/model/SnapshotResourceStatus.java | 12 +- .../model/SnapshotUpdateKmsKeyRequest.java | 78 + ...otsGetEffectiveRecycleBinRuleResponse.java | 66 + .../compute/model/SslCertificate.java | 42 +- .../model/SslCertificateAggregatedList.java | 24 +- .../compute/model/SslCertificateList.java | 12 +- .../SslCertificateManagedSslCertificate.java | 15 +- .../model/SslPoliciesAggregatedList.java | 24 +- .../compute/model/SslPoliciesList.java | 51 +- .../api/services/compute/model/SslPolicy.java | 120 +- .../services/compute/model/StoragePool.java | 108 +- .../model/StoragePoolAggregatedList.java | 24 +- .../compute/model/StoragePoolDisk.java | 66 +- .../compute/model/StoragePoolList.java | 24 +- .../compute/model/StoragePoolListDisks.java | 65 +- .../compute/model/StoragePoolParams.java | 78 + .../model/StoragePoolResourceStatus.java | 30 +- .../compute/model/StoragePoolType.java | 15 +- .../model/StoragePoolTypeAggregatedList.java | 12 +- .../compute/model/StoragePoolTypeList.java | 15 +- .../services/compute/model/Subnetwork.java | 183 +- .../model/SubnetworkAggregatedList.java | 24 +- .../compute/model/SubnetworkList.java | 15 +- .../model/SubnetworkSecondaryRange.java | 114 +- .../compute/model/TargetGrpcProxy.java | 39 +- .../compute/model/TargetGrpcProxyList.java | 9 +- .../compute/model/TargetHttpProxy.java | 33 +- .../model/TargetHttpProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpProxyList.java | 15 +- .../compute/model/TargetHttpsProxy.java | 33 +- .../model/TargetHttpsProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpsProxyList.java | 15 +- .../compute/model/TargetInstance.java | 33 +- .../model/TargetInstanceAggregatedList.java | 18 +- .../compute/model/TargetInstanceList.java | 12 +- .../services/compute/model/TargetPool.java | 24 +- .../model/TargetPoolAggregatedList.java | 24 +- .../model/TargetPoolInstanceHealth.java | 12 +- .../compute/model/TargetPoolList.java | 15 +- .../compute/model/TargetSslProxy.java | 15 +- .../compute/model/TargetSslProxyList.java | 12 +- .../compute/model/TargetTcpProxy.java | 51 +- .../model/TargetTcpProxyAggregatedList.java | 24 +- .../compute/model/TargetTcpProxyList.java | 12 +- .../compute/model/TargetVpnGateway.java | 15 +- .../model/TargetVpnGatewayAggregatedList.java | 21 +- .../compute/model/TargetVpnGatewayList.java | 15 +- .../api/services/compute/model/TimeZone.java | 90 + .../compute/model/UpcomingMaintenance.java | 24 + .../api/services/compute/model/UrlMap.java | 30 +- .../services/compute/model/UrlMapList.java | 12 +- .../compute/model/UrlMapsAggregatedList.java | 18 +- .../compute/model/UsableSubnetwork.java | 12 +- .../model/UsableSubnetworkSecondaryRange.java | 9 +- .../UsableSubnetworksAggregatedList.java | 30 +- .../compute/model/VmEndpointNatMappings.java | 6 +- ...dpointNatMappingsInterfaceNatMappings.java | 72 +- ...gsInterfaceNatMappingsNatRuleMappings.java | 66 +- .../model/VmEndpointNatMappingsList.java | 18 +- .../services/compute/model/VmExtension.java | 90 + .../compute/model/VmExtensionPolicy.java | 72 +- ...ExtensionPolicyAggregatedListResponse.java | 24 +- .../compute/model/VmExtensionPolicyList.java | 74 +- .../compute/model/VmExtensionState.java | 213 + .../services/compute/model/VpnGateway.java | 33 +- .../model/VpnGatewayAggregatedList.java | 18 +- .../compute/model/VpnGatewayList.java | 12 +- .../compute/model/VpnGatewayStatus.java | 6 +- .../compute/model/VpnGatewayStatusTunnel.java | 24 +- .../model/VpnGatewayStatusVpnConnection.java | 24 +- .../model/VpnGatewayVpnGatewayInterface.java | 66 +- .../api/services/compute/model/VpnTunnel.java | 12 +- .../model/VpnTunnelAggregatedList.java | 18 +- .../services/compute/model/VpnTunnelList.java | 12 +- .../api/services/compute/model/Wire.java | 48 +- .../api/services/compute/model/WireGroup.java | 54 +- .../services/compute/model/WireGroupList.java | 15 +- .../compute/model/WireGroupServiceLevel.java | 15 +- .../compute/model/WireGroupTopology.java | 6 +- .../model/WireGroupTopologyEndpoint.java | 18 +- .../services/compute/model/XpnHostList.java | 15 +- .../api/services/compute/model/Zone.java | 33 +- .../api/services/compute/model/ZoneList.java | 12 +- .../compute/model/ZoneResourceStatus.java | 72 + .../alpha/2.0.0/pom.xml | 4 +- 536 files changed, 25353 insertions(+), 7970 deletions(-) create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DateTime.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlot.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TimeZone.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.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 8ef38116729..4ef1d0164e1 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-rev20251110-2.0.0 + alpha-rev20260306-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20251110-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260306-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java index 9f7414d43f7..eb77419ee14 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java @@ -103,7 +103,7 @@ public class Compute extends com.google.api.client.googleapis.services.json.Abst * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -17866,6 +17866,242 @@ public BulkSetLabels set(String parameterName, Object value) { return (BulkSetLabels) super.set(parameterName, value); } } + /** + * Converts a persistent disk to support Gen4+ VMs. + * + * Create a request for the method "disks.convert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Convert#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.DisksConvertRequest} + * @return the request + */ + public Convert convert(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksConvertRequest content) throws java.io.IOException { + Convert result = new Convert(project, zone, disk, content); + initialize(result); + return result; + } + + public class Convert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/convert"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Converts a persistent disk to support Gen4+ VMs. + * + * Create a request for the method "disks.convert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Convert#execute()} method to invoke the remote operation.

    + * {@link + * Convert#initialize(com.google.api.client.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.DisksConvertRequest} + * @since 1.13 + */ + protected Convert(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksConvertRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); + } + + @Override + public Convert set$Xgafv(java.lang.String $Xgafv) { + return (Convert) super.set$Xgafv($Xgafv); + } + + @Override + public Convert setAccessToken(java.lang.String accessToken) { + return (Convert) super.setAccessToken(accessToken); + } + + @Override + public Convert setAlt(java.lang.String alt) { + return (Convert) super.setAlt(alt); + } + + @Override + public Convert setCallback(java.lang.String callback) { + return (Convert) super.setCallback(callback); + } + + @Override + public Convert setFields(java.lang.String fields) { + return (Convert) super.setFields(fields); + } + + @Override + public Convert setKey(java.lang.String key) { + return (Convert) super.setKey(key); + } + + @Override + public Convert setOauthToken(java.lang.String oauthToken) { + return (Convert) super.setOauthToken(oauthToken); + } + + @Override + public Convert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Convert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Convert setQuotaUser(java.lang.String quotaUser) { + return (Convert) super.setQuotaUser(quotaUser); + } + + @Override + public Convert setUploadType(java.lang.String uploadType) { + return (Convert) super.setUploadType(uploadType); + } + + @Override + public Convert setUploadProtocol(java.lang.String uploadProtocol) { + return (Convert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Convert setUserIp(java.lang.String userIp) { + return (Convert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Convert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[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 Convert setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 Convert 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 Convert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Convert set(String parameterName, Object value) { + return (Convert) 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 @@ -21589,8 +21825,7 @@ public TestIamPermissions set(String parameterName, Object 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. Only the following fields can be modified: - * user_license. + * selected fields included as part of update-mask. * * Create a request for the method "disks.update". * @@ -21624,8 +21859,7 @@ public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensions/{extensionName}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 details of a specific VM extension. + * + * Create a request for the method "globalVmExtensionPolicies.getVmExtension". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. + *

    {@link GetVmExtension#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 extensionName + * @since 1.13 + */ + protected GetVmExtension(java.lang.String project, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtension.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); + } + + @Override + public GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) super.setAccessToken(accessToken); + } + + @Override + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) super.setAlt(alt); + } + + @Override + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); + } + + @Override + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); + } + + @Override + public GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); + } + + @Override + public GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); + } + + @Override + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); + } + + @Override + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); + } + + @Override + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetVmExtension setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 extensionName; + + /** + + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + public GetVmExtension setExtensionName(java.lang.String extensionName) { + this.extensionName = extensionName; + return this; + } + + @Override + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); + } + } /** * Creates a new project level GlobalVmExtensionPolicy. * @@ -44987,6 +45427,414 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Lists all VM extensions within a specific zone for a project. This is a read-only API. + * + * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @return the request + */ + public ListVmExtensions listVmExtensions(java.lang.String project) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(project); + initialize(result); + return result; + } + + public class ListVmExtensions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 VM extensions within a specific zone for a project. This is a read-only API. + * + * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. + *

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

    + * + * @param project Required. Project ID for this request. + * @since 1.13 + */ + protected ListVmExtensions(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalListVmExtensionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); + } + + @Override + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); + } + + @Override + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); + } + + @Override + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); + } + + @Override + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); + } + + @Override + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); + } + + @Override + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); + } + + @Override + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); + } + + @Override + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); + } + + @Override + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) 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 ListVmExtensions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 ListVmExtensions setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public ListVmExtensions setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public ListVmExtensions setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public ListVmExtensions setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) super.set(parameterName, value); + } + } /** * Updates a global VM extension policy. * @@ -57514,15 +58362,13 @@ public ApplyUpdatesToInstances set(String parameterName, Object 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. + * Updates the accelerator topologies configuration. * - * Create a request for the method "instanceGroupManagers.createInstances". + * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". * * 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. + * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. * @param zone The name of thezone @@ -57530,36 +58376,32 @@ public ApplyUpdatesToInstances set(String parameterName, Object value) { 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} + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} * @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); + public ConfigureAcceleratorTopologies configureAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest content) throws java.io.IOException { + ConfigureAcceleratorTopologies result = new ConfigureAcceleratorTopologies(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class CreateInstances extends ComputeRequest { + public class ConfigureAcceleratorTopologies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/configureAcceleratorTopologies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Updates the accelerator topologies configuration. * - * Create a request for the method "instanceGroupManagers.createInstances". + * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". * * 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.

    + * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the + * remote operation.

    {@link ConfigureAcceleratorTopologies#initialize(com.google.api.client.go + * ogleapis.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 @@ -57567,10 +58409,10 @@ public class CreateInstances extends ComputeRequest { + public class CreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.delete". + * 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 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.

    + * 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. - * @param instanceGroupManager The name of the managed instance group to delete. + * @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 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); + 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(), @@ -57818,63 +58670,63 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -57888,7 +58740,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -57899,37 +58751,43 @@ public Delete setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * 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. + /** 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. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ - public Delete setZone(java.lang.String zone) { + public CreateInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group to delete. */ + /** + * 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 to delete. + /** 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 to delete. */ - public Delete setInstanceGroupManager(java.lang.String 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; } @@ -57942,7 +58800,7 @@ public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -57955,8 +58813,7 @@ public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + 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). @@ -57973,91 +58830,70 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. * * 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) { + public CreateInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) 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. + * 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.deleteInstances". + * 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 DeleteInstances#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + * @param instanceGroupManager The name of the managed instance group to delete. * @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); + 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 DeleteInstances extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.deleteInstances". + * 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 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.

    + * 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. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + * @param instanceGroupManager The name of the managed instance group to delete. * @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); + 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(), @@ -58069,63 +58905,63 @@ protected DeleteInstances(java.lang.String project, java.lang.String zone, java. } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -58139,7 +58975,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String project) { + 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 " + @@ -58164,23 +59000,274 @@ public java.lang.String getZone() { /** * The name of thezone where the managed instance group is located. */ - public DeleteInstances setZone(java.lang.String zone) { + public Delete setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** 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. + /** The name of the managed instance group to delete. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** The name of the managed instance group to delete. */ + public Delete 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 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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; } @@ -74874,6 +75961,246 @@ public GetShieldedVmIdentity set(String parameterName, Object value) { return (GetShieldedVmIdentity) super.set(parameterName, value); } } + /** + * Retrieves details of a specific VM extension state. This is a read-only API. + * + * Create a request for the method "instances.getVmExtensionState". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVmExtensionState#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @param instance Name or id of the instance resource. + * @param extensionName The name of the extension to get the state for. + * @return the request + */ + public GetVmExtensionState getVmExtensionState(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String extensionName) throws java.io.IOException { + GetVmExtensionState result = new GetVmExtensionState(project, zone, instance, extensionName); + initialize(result); + return result; + } + + public class GetVmExtensionState extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 EXTENSION_NAME_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 VM extension state. This is a read-only API. + * + * Create a request for the method "instances.getVmExtensionState". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVmExtensionState#execute()} method to invoke the remote + * operation.

    {@link GetVmExtensionState#initialize(com.google.api.client.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 instance Name or id of the instance resource. + * @param extensionName The name of the extension to get the state for. + * @since 1.13 + */ + protected GetVmExtensionState(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionState.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), + "Parameter extensionName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetVmExtensionState set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtensionState) super.set$Xgafv($Xgafv); + } + + @Override + public GetVmExtensionState setAccessToken(java.lang.String accessToken) { + return (GetVmExtensionState) super.setAccessToken(accessToken); + } + + @Override + public GetVmExtensionState setAlt(java.lang.String alt) { + return (GetVmExtensionState) super.setAlt(alt); + } + + @Override + public GetVmExtensionState setCallback(java.lang.String callback) { + return (GetVmExtensionState) super.setCallback(callback); + } + + @Override + public GetVmExtensionState setFields(java.lang.String fields) { + return (GetVmExtensionState) super.setFields(fields); + } + + @Override + public GetVmExtensionState setKey(java.lang.String key) { + return (GetVmExtensionState) super.setKey(key); + } + + @Override + public GetVmExtensionState setOauthToken(java.lang.String oauthToken) { + return (GetVmExtensionState) super.setOauthToken(oauthToken); + } + + @Override + public GetVmExtensionState setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtensionState) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVmExtensionState setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtensionState) super.setQuotaUser(quotaUser); + } + + @Override + public GetVmExtensionState setUploadType(java.lang.String uploadType) { + return (GetVmExtensionState) super.setUploadType(uploadType); + } + + @Override + public GetVmExtensionState setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtensionState) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVmExtensionState setUserIp(java.lang.String userIp) { + return (GetVmExtensionState) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetVmExtensionState setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 GetVmExtensionState setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 resource. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name or id of the instance resource. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name or id of the instance resource. */ + public GetVmExtensionState 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 extension to get the state for. */ + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** The name of the extension to get the state for. + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + /** The name of the extension to get the state for. */ + public GetVmExtensionState setExtensionName(java.lang.String extensionName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), + "Parameter extensionName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.extensionName = extensionName; + return this; + } + + @Override + public GetVmExtensionState set(String parameterName, Object value) { + return (GetVmExtensionState) super.set(parameterName, value); + } + } /** * Creates an instance resource in the specified project using the data included in the request. * @@ -76113,6 +77440,479 @@ public ListReferrers set(String parameterName, Object value) { return (ListReferrers) super.set(parameterName, value); } } + /** + * Lists all VM extensions states for a specific instance. This is a read-only API. + * + * Create a request for the method "instances.listVmExtensionStates". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListVmExtensionStates#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone Required. Name of the zone for this request. + * @param instance Name of the target instance scoping this request. + * @return the request + */ + public ListVmExtensionStates listVmExtensionStates(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + ListVmExtensionStates result = new ListVmExtensionStates(project, zone, instance); + initialize(result); + return result; + } + + public class ListVmExtensionStates extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + + /** + * Lists all VM extensions states for a specific instance. This is a read-only API. + * + * Create a request for the method "instances.listVmExtensionStates". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListVmExtensionStates#execute()} method to invoke the remote + * operation.

    {@link ListVmExtensionStates#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 Required. Name of the zone for this request. + * @param instance Name of the target instance scoping this request. + * @since 1.13 + */ + protected ListVmExtensionStates(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.ListVmExtensionStatesResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListVmExtensionStates set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensionStates) super.set$Xgafv($Xgafv); + } + + @Override + public ListVmExtensionStates setAccessToken(java.lang.String accessToken) { + return (ListVmExtensionStates) super.setAccessToken(accessToken); + } + + @Override + public ListVmExtensionStates setAlt(java.lang.String alt) { + return (ListVmExtensionStates) super.setAlt(alt); + } + + @Override + public ListVmExtensionStates setCallback(java.lang.String callback) { + return (ListVmExtensionStates) super.setCallback(callback); + } + + @Override + public ListVmExtensionStates setFields(java.lang.String fields) { + return (ListVmExtensionStates) super.setFields(fields); + } + + @Override + public ListVmExtensionStates setKey(java.lang.String key) { + return (ListVmExtensionStates) super.setKey(key); + } + + @Override + public ListVmExtensionStates setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensionStates) super.setOauthToken(oauthToken); + } + + @Override + public ListVmExtensionStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensionStates) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListVmExtensionStates setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensionStates) super.setQuotaUser(quotaUser); + } + + @Override + public ListVmExtensionStates setUploadType(java.lang.String uploadType) { + return (ListVmExtensionStates) super.setUploadType(uploadType); + } + + @Override + public ListVmExtensionStates setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensionStates) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListVmExtensionStates setUserIp(java.lang.String userIp) { + return (ListVmExtensionStates) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public ListVmExtensionStates setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Required. Name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** Required. Name of the zone for this request. */ + public ListVmExtensionStates setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the target instance scoping this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the target instance scoping this request. */ + public ListVmExtensionStates 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 ListVmExtensionStates setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public ListVmExtensionStates setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public ListVmExtensionStates setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public ListVmExtensionStates setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListVmExtensionStates setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public ListVmExtensionStates set(String parameterName, Object value) { + return (ListVmExtensionStates) super.set(parameterName, value); + } + } /** * Patches partner metadata of the specified instance. * @@ -83389,6 +85189,26 @@ public Update setClearSecureTag(java.lang.Boolean clearSecureTag) { 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 @@ -110289,6 +112109,12 @@ public Get set(String parameterName, Object 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 @@ -110318,6 +112144,12 @@ public class Insert extends ComputeRequestThe typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.OrganizationSnapshotRecycleBinPolicy.List request = compute.organizationSnapshotRecycleBinPolicy().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public OrganizationSnapshotRecycleBinPolicy organizationSnapshotRecycleBinPolicy() { + return new OrganizationSnapshotRecycleBinPolicy(); + } + + /** + * The "organizationSnapshotRecycleBinPolicy" collection of methods. + */ + public class OrganizationSnapshotRecycleBinPolicy { + + /** + * Returns the specified SnapshotRecycleBinPolicy. + * + * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param organization Organization ID for this request. + * @return the request + */ + public Get get(java.lang.String organization) throws java.io.IOException { + Get result = new Get(organization); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Returns the specified SnapshotRecycleBinPolicy. + * + * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * + * @param organization Organization ID for this request. + * @since 1.13 + */ + protected Get(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotRecycleBinPolicy.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.organization = organization; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patches the SnapshotRecycleBinPolicy. + * + * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} + * @return the request + */ + public Patch patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) throws java.io.IOException { + Patch result = new Patch(organization, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Patches the SnapshotRecycleBinPolicy. + * + * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } + + @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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Patch setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.organization = organization; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 PacketMirrorings collection. * @@ -156110,6 +158308,214 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. @@ -162525,8 +164931,7 @@ public TestIamPermissions set(String parameterName, Object 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. Only the following fields can be modified: - * user_license. + * selected fields included as part of update-mask. * * Create a request for the method "regionDisks.update". * @@ -162560,8 +164965,7 @@ public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}/getHealth"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. @@ -172999,6 +175613,245 @@ public AbandonInstances set(String parameterName, Object value) { return (AbandonInstances) super.set(parameterName, value); } } + /** + * Flags the specified instances to be adopted to the managed instance group. Adopting an instance + * does not change the instance status, but it adds the instance to any target pools that are + * applied by the managed instance group. This method increases the targetSize of the managed + * instance group by the number of instances that you adopt. This operation is marked as DONE when + * the action is scheduled even if the instances have not been adopted to the group yet. You must + * separately verify the status of the adopting action with the listManagedInstances method. + * + * Create a request for the method "regionInstanceGroupManagers.adoptInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AdoptInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. It should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a + resource ID. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} + * @return the request + */ + public AdoptInstances adoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) throws java.io.IOException { + AdoptInstances result = new AdoptInstances(project, region, instanceGroupManager, content); + initialize(result); + return result; + } + + public class AdoptInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/adoptInstances"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 adopted to the managed instance group. Adopting an instance + * does not change the instance status, but it adds the instance to any target pools that are + * applied by the managed instance group. This method increases the targetSize of the managed + * instance group by the number of instances that you adopt. This operation is marked as DONE when + * the action is scheduled even if the instances have not been adopted to the group yet. You must + * separately verify the status of the adopting action with the listManagedInstances method. + * + * Create a request for the method "regionInstanceGroupManagers.adoptInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AdoptInstances#execute()} method to invoke the remote operation. + *

    {@link AdoptInstances#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. It should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a + resource ID. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} + * @since 1.13 + */ + protected AdoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + } + + @Override + public AdoptInstances set$Xgafv(java.lang.String $Xgafv) { + return (AdoptInstances) super.set$Xgafv($Xgafv); + } + + @Override + public AdoptInstances setAccessToken(java.lang.String accessToken) { + return (AdoptInstances) super.setAccessToken(accessToken); + } + + @Override + public AdoptInstances setAlt(java.lang.String alt) { + return (AdoptInstances) super.setAlt(alt); + } + + @Override + public AdoptInstances setCallback(java.lang.String callback) { + return (AdoptInstances) super.setCallback(callback); + } + + @Override + public AdoptInstances setFields(java.lang.String fields) { + return (AdoptInstances) super.setFields(fields); + } + + @Override + public AdoptInstances setKey(java.lang.String key) { + return (AdoptInstances) super.setKey(key); + } + + @Override + public AdoptInstances setOauthToken(java.lang.String oauthToken) { + return (AdoptInstances) super.setOauthToken(oauthToken); + } + + @Override + public AdoptInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AdoptInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public AdoptInstances setQuotaUser(java.lang.String quotaUser) { + return (AdoptInstances) super.setQuotaUser(quotaUser); + } + + @Override + public AdoptInstances setUploadType(java.lang.String uploadType) { + return (AdoptInstances) super.setUploadType(uploadType); + } + + @Override + public AdoptInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AdoptInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AdoptInstances setUserIp(java.lang.String userIp) { + return (AdoptInstances) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public AdoptInstances setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,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 should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. It should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. It should conform to RFC1035. */ + public AdoptInstances setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Name of the managed instance group. It 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. It should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * Name of the managed instance group. It should conform to RFC1035 or be a resource ID. + */ + public AdoptInstances 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 AdoptInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AdoptInstances set(String parameterName, Object value) { + return (AdoptInstances) super.set(parameterName, value); + } + } /** * Apply updates to selected instances the managed instance group. * @@ -189335,6 +192188,12 @@ public Get set(String parameterName, Object 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 @@ -189364,6 +192223,12 @@ public class Insert extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ReservationSubBlocks.List request = compute.reservationSubBlocks().list(parameters ...)}
    +   *   {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ReservationSubBlocks reservationSubBlocks() { - return new ReservationSubBlocks(); + public ReservationSlots reservationSlots() { + return new ReservationSlots(); } /** - * The "reservationSubBlocks" collection of methods. + * The "reservationSlots" collection of methods. */ - public class ReservationSubBlocks { + public class ReservationSlots { /** - * Retrieves information about the specified reservation subBlock. + * Retrieves information about the specified reservation slot. * - * Create a request for the method "reservationSubBlocks.get". + * 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 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 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 reservationSubBlock) throws java.io.IOException { - Get result = new Get(project, zone, parentName, reservationSubBlock); + 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 { + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}"; + 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 subBlock. + * Retrieves information about the specified reservation slot. * - * Create a request for the method "reservationSubBlocks.get". + * 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 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 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 reservationSubBlock) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSubBlocksGetResponse.class); + 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."); - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock 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."); } @Override @@ -221865,6 +224742,220 @@ 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); + } + } + /** + * 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 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."); + } + + @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; @@ -221876,7 +224967,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public GetVersion setProject(java.lang.String project) { this.project = project; return this; } @@ -221892,87 +224983,128 @@ public java.lang.String getZone() { } /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { + 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} + * 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_name}/reservationBlocks/{reservation_block_name} + /** 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/{reservation_name}/reservationBlocks/{reservation_block_name} + * 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 Get setParentName(java.lang.String parentName) { + 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 subBlock. Name should conform to RFC1035 or be a resource ID. + * 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 reservationSubBlock; + private java.lang.String reservationSlot; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getReservationSlot() { + return reservationSlot; } /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. */ - public Get setReservationSubBlock(java.lang.String reservationSubBlock) { - this.reservationSubBlock = reservationSubBlock; + public GetVersion setReservationSlot(java.lang.String reservationSlot) { + this.reservationSlot = reservationSlot; return this; } - /** View of the subBlock. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String requestId; - /** View of the subBlock. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getView() { - return view; + public java.lang.String getRequestId() { + return requestId; } - /** View of the subBlock. */ - public Get setView(java.lang.String view) { - this.view = view; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); } } /** - * Retrieves a list of reservation subBlocks under a single reservation. + * Retrieves a list of reservation slots under a single reservation. * - * Create a request for the method "reservationSubBlocks.list". + * 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 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 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 { @@ -221981,31 +225113,40 @@ public List list(java.lang.String project, java.lang.String zone, java.lang.Stri return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; + + 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 subBlocks under a single reservation. + * Retrieves a list of reservation slots under a single reservation. * - * Create a request for the method "reservationSubBlocks.list". + * 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 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 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.ReservationSubBlocksListResponse.class); + 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})"); + } } @Override @@ -222078,57 +225219,64 @@ public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** The 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. */ + /** The name of the zone for this request, formatted as 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. + /** The name of the zone for this request, formatted as RFC1035. */ public java.lang.String getZone() { return zone; } - /** Name of the zone for this request. Zone name should conform to RFC1035. */ + /** 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. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * 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. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** 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. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * 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; } @@ -222403,254 +225551,243 @@ public List set(String parameterName, Object value) { } } /** - * Allows customers to perform maintenance on a reservation subBlock + * Update a reservation slot in the specified sub-block. * - * Create a request for the method "reservationSubBlocks.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * 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. 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 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 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); + 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 PerformMaintenance extends ComputeRequest { + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + 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 perform maintenance on a reservation subBlock + * Update a reservation slot in the specified sub-block. * - * Create a request for the method "reservationSubBlocks.performMaintenance". + * 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 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.

    + * 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. 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 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 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); + 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."); - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock 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."); } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + /** The project ID for this request. */ + public Update setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the zone for this request. Zone name should conform to RFC1035. */ + /** The name of the zone for this request, formatted as 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. + /** The name of the zone for this request, formatted as 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) { + /** 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 parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ + /** The name of the sub-block resource. */ @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} + /** The name of the sub-block resource. */ 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) { + /** 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 reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ + /** The name of the slot resource. */ @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; + private java.lang.String reservationSlot; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** The name of the slot resource. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getReservationSlot() { + return reservationSlot; } - /** - * 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; + /** The name of the slot resource. */ + public Update 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). - */ + /** The fields to be updated as part of this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private String updateMask; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The fields to be updated as part of this request. */ - public java.lang.String getRequestId() { - return requestId; + public String getUpdateMask() { + return updateMask; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** The fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + 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 { + /** - * Allows customers to report a faulty subBlock. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "reservationSubBlocks.reportFaulty". + * 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 ReportFaulty#execute()} method to invoke the remote operation. + * 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. @@ -222658,29 +225795,30 @@ public PerformMaintenance set(String parameterName, Object value) { * 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); + 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 ReportFaulty extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; + + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** - * Allows customers to report a faulty subBlock. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "reservationSubBlocks.reportFaulty". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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. @@ -222688,75 +225826,89 @@ public class ReportFaulty extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; + + 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."); + } + + @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 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/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 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."); + } + + @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 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."); + } + + @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; } @@ -222810,6 +227152,11 @@ public java.lang.String getParentName() { * 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; } @@ -230445,6 +234792,480 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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); + } + } } @@ -245866,6 +250687,372 @@ public TestIamPermissions set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the SnapshotRecycleBinPolicy collection. + * + *

    The typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.SnapshotRecycleBinPolicy.List request = compute.snapshotRecycleBinPolicy().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public SnapshotRecycleBinPolicy snapshotRecycleBinPolicy() { + return new SnapshotRecycleBinPolicy(); + } + + /** + * The "snapshotRecycleBinPolicy" collection of methods. + */ + public class SnapshotRecycleBinPolicy { + + /** + * Returns the specified SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.get". + * + * This request holds the 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/snapshotRecycleBinPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote 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.SnapshotRecycleBinPolicy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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); + } + } + /** + * Patches the SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.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.SnapshotRecycleBinPolicy} + * @return the request + */ + public Patch patch(java.lang.String project, com.google.api.services.compute.model.SnapshotRecycleBinPolicy 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/snapshotRecycleBinPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 SnapshotRecycleBinPolicy. + * + * Create a request for the method "snapshotRecycleBinPolicy.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.SnapshotRecycleBinPolicy} + * @since 1.13 + */ + protected Patch(java.lang.String project, com.google.api.services.compute.model.SnapshotRecycleBinPolicy 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])?))"); + } + } + + @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 SnapshotSettings collection. * @@ -247124,6 +252311,185 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + /** + * Returns the effective recycle bin rule for a snapshot by merging org and project level rules. If + * no rules are defined at org and project level, the standard default rule is returned. + * + * Create a request for the method "snapshots.getEffectiveRecycleBinRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveRecycleBinRule#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param snapshot Name of the Snapshot resource to get the effective recycle bin rule for. + * @return the request + */ + public GetEffectiveRecycleBinRule getEffectiveRecycleBinRule(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { + GetEffectiveRecycleBinRule result = new GetEffectiveRecycleBinRule(project, snapshot); + initialize(result); + return result; + } + + public class GetEffectiveRecycleBinRule extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}/getEffectiveRecycleBinRule"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 effective recycle bin rule for a snapshot by merging org and project level rules. + * If no rules are defined at org and project level, the standard default rule is returned. + * + * Create a request for the method "snapshots.getEffectiveRecycleBinRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveRecycleBinRule#execute()} method to invoke the remote + * operation.

    {@link GetEffectiveRecycleBinRule#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 snapshot Name of the Snapshot resource to get the effective recycle bin rule for. + * @since 1.13 + */ + protected GetEffectiveRecycleBinRule(java.lang.String project, java.lang.String snapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotsGetEffectiveRecycleBinRuleResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetEffectiveRecycleBinRule set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveRecycleBinRule) super.set$Xgafv($Xgafv); + } + + @Override + public GetEffectiveRecycleBinRule setAccessToken(java.lang.String accessToken) { + return (GetEffectiveRecycleBinRule) super.setAccessToken(accessToken); + } + + @Override + public GetEffectiveRecycleBinRule setAlt(java.lang.String alt) { + return (GetEffectiveRecycleBinRule) super.setAlt(alt); + } + + @Override + public GetEffectiveRecycleBinRule setCallback(java.lang.String callback) { + return (GetEffectiveRecycleBinRule) super.setCallback(callback); + } + + @Override + public GetEffectiveRecycleBinRule setFields(java.lang.String fields) { + return (GetEffectiveRecycleBinRule) super.setFields(fields); + } + + @Override + public GetEffectiveRecycleBinRule setKey(java.lang.String key) { + return (GetEffectiveRecycleBinRule) super.setKey(key); + } + + @Override + public GetEffectiveRecycleBinRule setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveRecycleBinRule) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveRecycleBinRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveRecycleBinRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveRecycleBinRule setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveRecycleBinRule) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveRecycleBinRule setUploadType(java.lang.String uploadType) { + return (GetEffectiveRecycleBinRule) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveRecycleBinRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveRecycleBinRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveRecycleBinRule setUserIp(java.lang.String userIp) { + return (GetEffectiveRecycleBinRule) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetEffectiveRecycleBinRule setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 get the effective recycle bin rule for. */ + @com.google.api.client.util.Key + private java.lang.String snapshot; + + /** Name of the Snapshot resource to get the effective recycle bin rule for. + */ + public java.lang.String getSnapshot() { + return snapshot; + } + + /** Name of the Snapshot resource to get the effective recycle bin rule for. */ + public GetEffectiveRecycleBinRule 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 GetEffectiveRecycleBinRule set(String parameterName, Object value) { + return (GetEffectiveRecycleBinRule) super.set(parameterName, value); + } + } /** * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * @@ -248430,10 +253796,11 @@ public TestIamPermissions set(String parameterName, Object value) { * * @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) throws java.io.IOException { - UpdateKmsKey result = new UpdateKmsKey(project, snapshot); + 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; } @@ -248461,10 +253828,11 @@ public class UpdateKmsKey extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensions/{extensionName}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 EXTENSION_NAME_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 VM extension. + * + * Create a request for the method "zoneVmExtensionPolicies.getVmExtension". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. + *

    {@link GetVmExtension#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 Name of the zone for this request. + * @param extensionName + * @since 1.13 + */ + protected GetVmExtension(java.lang.String project, java.lang.String zone, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtension.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), + "Parameter extensionName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); + } + + @Override + public GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) super.setAccessToken(accessToken); + } + + @Override + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) super.setAlt(alt); + } + + @Override + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); + } + + @Override + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); + } + + @Override + public GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); + } + + @Override + public GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); + } + + @Override + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); + } + + @Override + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); + } + + @Override + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetVmExtension setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 GetVmExtension setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** + + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + public GetVmExtension setExtensionName(java.lang.String extensionName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), + "Parameter extensionName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.extensionName = extensionName; + return this; + } + + @Override + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); + } + } /** * Creates a new zone-level VM extension policy within a project. * @@ -292341,6 +297916,446 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Lists all VM extensions within a specific zone for a project. This is a read-only API. + * + * Create a request for the method "zoneVmExtensionPolicies.listVmExtensions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. + * + * @param project Required. Project ID for this request. + * @param zone Name of the zone for this request. + * @return the request + */ + public ListVmExtensions listVmExtensions(java.lang.String project, java.lang.String zone) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(project, zone); + initialize(result); + return result; + } + + public class ListVmExtensions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 extensions within a specific zone for a project. This is a read-only API. + * + * Create a request for the method "zoneVmExtensionPolicies.listVmExtensions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. + *

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

    + * + * @param project Required. Project ID for this request. + * @param zone Name of the zone for this request. + * @since 1.13 + */ + protected ListVmExtensions(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListVmExtensionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); + } + + @Override + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); + } + + @Override + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); + } + + @Override + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); + } + + @Override + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); + } + + @Override + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); + } + + @Override + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); + } + + @Override + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); + } + + @Override + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); + } + + @Override + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) 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 ListVmExtensions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 ListVmExtensions setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 ListVmExtensions setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public ListVmExtensions setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public ListVmExtensions setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public ListVmExtensions setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) super.set(parameterName, value); + } + } /** * Modifies an existing zone VM extension policy. * @@ -293216,8 +299231,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java index 08e2952935c..c6d65048c01 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -62,7 +62,8 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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 @@ -83,14 +84,14 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -174,7 +175,8 @@ public AcceleratorType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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() { @@ -182,7 +184,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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) { @@ -225,7 +228,7 @@ public AcceleratorType setName(java.lang.String name) { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -233,7 +236,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * 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) { @@ -242,7 +245,7 @@ public AcceleratorType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -250,7 +253,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public AcceleratorType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java index 01a36ed3d8c..8ef1a82145b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated - * lists of accelerator types. + * 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 @@ -62,14 +62,14 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AcceleratorTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AcceleratorTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java index d6ce17db7a8..8573d2e33b6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -50,8 +50,8 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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 @@ -68,7 +68,7 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public AcceleratorTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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) { @@ -158,7 +158,7 @@ public AcceleratorTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java index a580a435efb..c75f8b296d1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -49,7 +49,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.Integer externalIpv6PrefixLength; /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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 @@ -89,7 +89,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.String networkTier; /** - * [Output Only] The public DNS domain name for the instance. + * Output only. [Output Only] The public DNS domain name for the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,7 +183,7 @@ public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6Pr } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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() { @@ -191,7 +191,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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) { @@ -275,7 +275,7 @@ public AccessConfig setNetworkTier(java.lang.String networkTier) { } /** - * [Output Only] The public DNS domain name for the instance. + * Output only. [Output Only] The public DNS domain name for the instance. * @return value or {@code null} for none */ public java.lang.String getPublicDnsName() { @@ -283,7 +283,7 @@ public java.lang.String getPublicDnsName() { } /** - * [Output Only] The public DNS domain name for the instance. + * Output only. [Output Only] The public DNS domain name for the instance. * @param publicDnsName publicDnsName or {@code null} for none */ public AccessConfig setPublicDnsName(java.lang.String publicDnsName) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java index 1b937310746..f967635148e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java @@ -54,7 +54,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String addressType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,8 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -104,7 +105,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String ipv6EndpointType; /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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 @@ -190,9 +191,9 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String purpose; /** - * [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.* + * 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 @@ -206,17 +207,17 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 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. + * 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 @@ -275,7 +276,7 @@ public Address setAddressType(java.lang.String addressType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -283,7 +284,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Address setCreationTimestamp(java.lang.String creationTimestamp) { @@ -309,7 +310,8 @@ public Address setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -317,7 +319,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -393,7 +396,7 @@ public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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() { @@ -401,7 +404,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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) { @@ -629,9 +632,9 @@ public Address setPurpose(java.lang.String purpose) { } /** - * [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.* + * 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() { @@ -639,9 +642,9 @@ public java.lang.String getRegion() { } /** - * [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.* + * 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) { @@ -667,7 +670,7 @@ public Address setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -675,7 +678,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Address setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -684,10 +687,10 @@ public Address setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [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. + * 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() { @@ -695,10 +698,10 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java index ce17cb61122..981d91082fb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -44,8 +44,8 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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 @@ -62,14 +62,14 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AddressAggregatedList setItems(java.util.Map } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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) { @@ -159,7 +159,7 @@ public AddressAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +176,7 @@ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AddressAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java index 68e6eb54491..62ab8af2ff8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -50,7 +50,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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 @@ -67,7 +67,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public AddressList setItems(java.util.List
      items) { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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) { @@ -155,7 +155,7 @@ public AddressList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java index f35db35aee5..9684fa1e3a2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -40,22 +40,22 @@ public final class AllocationAggregateReservation extends com.google.api.client. private java.lang.Integer hostCount; /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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; /** - * Number of instances currently in use in this reservation. + * Output only. Number of instances currently in use in this reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer inUseInstanceCount; /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,8 +102,8 @@ public AllocationAggregateReservation setHostCount(java.lang.Integer hostCount) } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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() { @@ -111,8 +111,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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 AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseHostCount) { @@ -121,7 +121,7 @@ public AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseH } /** - * Number of instances currently in use in this reservation. + * Output only. Number of instances currently in use in this reservation. * @return value or {@code null} for none */ public java.lang.Integer getInUseInstanceCount() { @@ -129,7 +129,7 @@ public java.lang.Integer getInUseInstanceCount() { } /** - * Number of instances currently in use in this reservation. + * Output only. Number of instances currently in use in this reservation. * @param inUseInstanceCount inUseInstanceCount or {@code null} for none */ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer inUseInstanceCount) { @@ -138,7 +138,7 @@ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer in } /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * @return value or {@code null} for none */ public java.util.List getInUseResources() { @@ -146,7 +146,7 @@ public java.util.List getInU } /** - * [Output only] List of resources currently in use. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java index 54dce0f90d4..5a212f176c5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -17,7 +17,7 @@ package com.google.api.services.compute.model; /** - * Properties of the SKU instances being reserved. Next ID: 9 + * 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: diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java index d928aa8151f..de9079076b2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -30,7 +30,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates how many instances are actually usable currently. + * 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 @@ -44,7 +44,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.Long count; /** - * [Output Only] Indicates how many instances are in use. + * 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 @@ -72,7 +72,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.String sourceInstanceTemplate; /** - * [Output Only] Indicates how many instances are actually usable currently. + * Output only. [Output Only] Indicates how many instances are actually usable currently. * @return value or {@code null} for none */ public java.lang.Long getAssuredCount() { @@ -80,7 +80,7 @@ public java.lang.Long getAssuredCount() { } /** - * [Output Only] Indicates how many instances are actually usable currently. + * 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) { @@ -106,7 +106,7 @@ public AllocationSpecificSKUReservation setCount(java.lang.Long count) { } /** - * [Output Only] Indicates how many instances are in use. + * Output only. [Output Only] Indicates how many instances are in use. * @return value or {@code null} for none */ public java.lang.Long getInUseCount() { @@ -114,7 +114,7 @@ public java.lang.Long getInUseCount() { } /** - * [Output Only] Indicates how many instances are in use. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java index cbd43c65f04..35d4504dab6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -30,7 +30,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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 @@ -116,8 +117,9 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [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. + * 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 @@ -145,25 +147,25 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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] Any valid publicly visible licenses. + * 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; /** - * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed - * to be detached from the instance, or to be used as the source of the snapshot creation, and the - * image creation. The instance with at least one locked attached disk is not allow to be used as - * source of machine image creation, instant snapshot creation, and not allowed to be deleted with - * --keep-disk parameter set to true for locked disks. + * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is + * not allowed to be detached from the instance, or to be used as the source of the snapshot + * creation, and the image creation. The instance with at least one locked attached disk is not + * allow to be used as source of machine image creation, instant snapshot creation, and not + * allowed to be deleted with --keep-disk parameter set to true for locked disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -178,16 +180,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String mode; /** - * 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. + * 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] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -217,16 +219,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * [Output Only] A list of user provided licenses. It represents a list of URLs to the license - * resource. Unlike regular licenses, user provided licenses can be modified after the disk is - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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() { @@ -234,7 +228,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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) { @@ -422,8 +417,9 @@ public AttachedDisk setGuestOsFeatures(java.util.List guestOsFea } /** - * [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. + * 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() { @@ -431,8 +427,9 @@ public java.lang.Integer getIndex() { } /** - * [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. + * 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) { @@ -489,7 +486,7 @@ public AttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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() { @@ -497,7 +494,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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) { @@ -506,7 +503,7 @@ public AttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -514,7 +511,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible 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) { @@ -523,11 +520,11 @@ public AttachedDisk setLicenses(java.util.List licenses) { } /** - * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed - * to be detached from the instance, or to be used as the source of the snapshot creation, and the - * image creation. The instance with at least one locked attached disk is not allow to be used as - * source of machine image creation, instant snapshot creation, and not allowed to be deleted with - * --keep-disk parameter set to true for locked disks. + * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is + * not allowed to be detached from the instance, or to be used as the source of the snapshot + * creation, and the image creation. The instance with at least one locked attached disk is not + * allow to be used as source of machine image creation, instant snapshot creation, and not + * allowed to be deleted with --keep-disk parameter set to true for locked disks. * @return value or {@code null} for none */ public java.lang.Boolean getLocked() { @@ -535,11 +532,11 @@ public java.lang.Boolean getLocked() { } /** - * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed - * to be detached from the instance, or to be used as the source of the snapshot creation, and the - * image creation. The instance with at least one locked attached disk is not allow to be used as - * source of machine image creation, instant snapshot creation, and not allowed to be deleted with - * --keep-disk parameter set to true for locked disks. + * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is + * not allowed to be detached from the instance, or to be used as the source of the snapshot + * creation, and the image creation. The instance with at least one locked attached disk is not + * allow to be used as source of machine image creation, instant snapshot creation, and not + * allowed to be deleted with --keep-disk parameter set to true for locked disks. * @param locked locked or {@code null} for none */ public AttachedDisk setLocked(java.lang.Boolean locked) { @@ -567,9 +564,9 @@ public AttachedDisk setMode(java.lang.String mode) { } /** - * 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. + * 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() { @@ -577,9 +574,9 @@ public java.lang.String getSavedState() { } /** - * 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. + * 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) { @@ -588,7 +585,7 @@ public AttachedDisk setSavedState(java.lang.String savedState) { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @return value or {@code null} for none */ public InitialStateConfig getShieldedInstanceInitialState() { @@ -596,7 +593,7 @@ public InitialStateConfig getShieldedInstanceInitialState() { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none */ public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { @@ -656,27 +653,6 @@ public AttachedDisk setType(java.lang.String type) { return this; } - /** - * [Output Only] A list of user provided licenses. It represents a list of URLs to the license - * resource. Unlike regular licenses, user provided licenses can be modified after the disk is - * created. - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * [Output Only] A list of user provided licenses. It represents a list of URLs to the license - * resource. Unlike regular licenses, user provided licenses can be modified after the disk is - * created. - * @param userLicenses userLicenses or {@code null} for none - */ - public AttachedDisk setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public AttachedDisk set(String fieldName, Object value) { return (AttachedDisk) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index 9927defc051..d6970391ad7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -178,9 +178,11 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js private java.util.List replicaZones; /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 @@ -616,9 +618,11 @@ public AttachedDiskInitializeParams setReplicaZones(java.util.List getResourceManagerTags() { @@ -626,9 +630,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java index 0e71506aa31..8fb74a0a0b1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -53,7 +53,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private AutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,15 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#autoscaler for autoscalers. + * 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 @@ -92,25 +93,25 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [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. + * 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] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -124,7 +125,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -162,8 +163,8 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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 @@ -195,7 +196,7 @@ public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -203,7 +204,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { @@ -229,7 +230,8 @@ public Autoscaler setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -237,7 +239,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -246,7 +249,7 @@ public Autoscaler setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * 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() { @@ -254,7 +257,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * 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) { @@ -288,10 +291,10 @@ public Autoscaler setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -299,10 +302,10 @@ public java.lang.Integer getRecommendedSize() { } /** - * [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. + * 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) { @@ -311,8 +314,8 @@ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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() { @@ -320,8 +323,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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) { @@ -330,7 +333,7 @@ public Autoscaler setRegion(java.lang.String region) { } /** - * [Output Only] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * @return value or {@code null} for none */ public java.util.Map getScalingScheduleStatus() { @@ -338,7 +341,7 @@ public java.util.Map getScalingScheduleStatus() { } /** - * [Output Only] Status information of existing scaling schedules. + * 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) { @@ -364,7 +367,7 @@ public Autoscaler setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -372,7 +375,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Autoscaler setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -452,8 +455,8 @@ public Autoscaler setTarget(java.lang.String target) { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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() { @@ -461,8 +464,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java index 579ee9e1a4a..0b34b95a635 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -44,8 +44,8 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of - * autoscalers. + * 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 @@ -62,14 +62,15 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,8 @@ public AutoscalerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java index a53c5719b71..3fe3fa8efb5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -50,7 +50,8 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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 @@ -67,7 +68,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public AutoscalerList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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) { @@ -155,7 +158,7 @@ public AutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java index b40ba7c0d02..d60df557631 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java @@ -189,6 +189,13 @@ public final class Backend extends com.google.api.client.json.GenericJson { @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 @@ -201,6 +208,16 @@ public final class Backend extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String preference; + /** + * Represents a service backend (e.g., Cloud Run service, PSC Service Attachment). e.g. + * "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" for Cloud + * Run service. "compute.googleapis.com/projects/123456789/regions/us- + * central1/serviceAttachments/my-service-attachment" for PSC Service Attachment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + /** * The value may be {@code null}. */ @@ -575,6 +592,23 @@ public Backend setMaxUtilization(java.lang.Float 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 @@ -602,6 +636,29 @@ public Backend setPreference(java.lang.String preference) { return this; } + /** + * Represents a service backend (e.g., Cloud Run service, PSC Service Attachment). e.g. + * "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" for Cloud + * Run service. "compute.googleapis.com/projects/123456789/regions/us- + * central1/serviceAttachments/my-service-attachment" for PSC Service Attachment. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Represents a service backend (e.g., Cloud Run service, PSC Service Attachment). e.g. + * "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" for Cloud + * Run service. "compute.googleapis.com/projects/123456789/regions/us- + * central1/serviceAttachments/my-service-attachment" for PSC Service Attachment. + * @param service service or {@code null} for none + */ + public Backend setService(java.lang.String service) { + this.service = service; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java index 5c9634eb5fd..b771bc12479 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -99,7 +99,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Type of the resource. + * Output only. Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -135,9 +135,9 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private BackendBucketParams params; /** - * [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. + * 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 @@ -151,14 +151,14 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -324,7 +324,7 @@ public BackendBucket setId(java.math.BigInteger id) { } /** - * Type of the resource. + * Output only. Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -332,7 +332,7 @@ public java.lang.String getKind() { } /** - * Type of the resource. + * Output only. Type of the resource. * @param kind kind or {@code null} for none */ public BackendBucket setKind(java.lang.String kind) { @@ -408,9 +408,9 @@ public BackendBucket setParams(BackendBucketParams params) { } /** - * [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. + * 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() { @@ -418,9 +418,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -446,7 +446,7 @@ public BackendBucket setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -454,7 +454,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public BackendBucket setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -463,7 +463,7 @@ public BackendBucket setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -471,7 +471,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing that backend bucket. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java index 8333e93f482..f4416b7bc94 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public BackendBucketAggregatedList setItems(java.util.Map items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public BackendBucketList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java index 02ce2377248..ee9f13e6fba 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java @@ -50,8 +50,8 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable - * backend buckets. + * 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 @@ -68,7 +68,7 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public BackendBucketListUsable setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable - * backend buckets. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable - * backend buckets. + * 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) { @@ -158,7 +158,7 @@ public BackendBucketListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java index da75c481ccb..e7045e0c2e3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java @@ -30,14 +30,14 @@ public final class BackendBucketUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * 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] Server-defined URL for UrlMaps referencing that BackendBucket. + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -45,7 +45,7 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java index 1b561672057..bb421cd8506 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -135,7 +135,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private ConsistentHashLoadBalancerSettings consistentHash; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -339,7 +339,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String ipAddressSelectionPolicy; /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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 @@ -468,6 +469,13 @@ public final class BackendService extends com.google.api.client.json.GenericJson @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 @@ -542,9 +550,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String protocol; /** - * [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. + * 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 @@ -574,7 +582,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -654,27 +662,12 @@ public final class BackendService extends com.google.api.client.json.GenericJson private BackendServiceTlsSettings tlsSettings; /** - * [Output Only] List of resources referencing given backend service. + * 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; - /** - * The network scope of the backends that can be added to the backend service. This field can be - * either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK. - * - * A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends - * in global VPC networks. - * - * When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have - * backends in regional networks in the same scope as the backend service. Note: if not specified - * then GLOBAL_VPC_NETWORK will be used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String vpcNetworkScope; - /** * 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. @@ -875,7 +868,7 @@ public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consi } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -883,7 +876,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1372,7 +1365,8 @@ public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSele } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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() { @@ -1380,7 +1374,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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) { @@ -1661,6 +1656,23 @@ public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetwork 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 @@ -1823,9 +1835,9 @@ public BackendService setProtocol(java.lang.String protocol) { } /** - * [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. + * 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() { @@ -1833,9 +1845,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1899,7 +1911,7 @@ public BackendService setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1907,7 +1919,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public BackendService setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -2083,7 +2095,7 @@ public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { } /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -2091,7 +2103,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing given backend service. + * 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) { @@ -2099,39 +2111,6 @@ public BackendService setUsedBy(java.util.List usedBy) { return this; } - /** - * The network scope of the backends that can be added to the backend service. This field can be - * either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK. - * - * A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends - * in global VPC networks. - * - * When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have - * backends in regional networks in the same scope as the backend service. Note: if not specified - * then GLOBAL_VPC_NETWORK will be used. - * @return value or {@code null} for none - */ - public java.lang.String getVpcNetworkScope() { - return vpcNetworkScope; - } - - /** - * The network scope of the backends that can be added to the backend service. This field can be - * either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK. - * - * A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends - * in global VPC networks. - * - * When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have - * backends in regional networks in the same scope as the backend service. Note: if not specified - * then GLOBAL_VPC_NETWORK will be used. - * @param vpcNetworkScope vpcNetworkScope or {@code null} for none - */ - public BackendService setVpcNetworkScope(java.lang.String vpcNetworkScope) { - this.vpcNetworkScope = vpcNetworkScope; - return this; - } - @Override public BackendService set(String fieldName, Object value) { return (BackendService) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java index e0afada0240..313198d23b6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public BackendServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public BackendServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java index 0cedf515d3b..cf815c0675f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class BackendServiceDynamicForwarding extends com.google.api.client.json.GenericJson { + /** + * Dynamic Forwarding Proxy configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceDynamicForwardingForwardProxy forwardProxy; + /** * IP:PORT based dynamic forwarding configuration. * The value may be {@code null}. @@ -36,6 +43,23 @@ public final class BackendServiceDynamicForwarding extends com.google.api.client @com.google.api.client.util.Key private BackendServiceDynamicForwardingIpPortSelection ipPortSelection; + /** + * Dynamic Forwarding Proxy configuration. + * @return value or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy getForwardProxy() { + return forwardProxy; + } + + /** + * Dynamic Forwarding Proxy configuration. + * @param forwardProxy forwardProxy or {@code null} for none + */ + public BackendServiceDynamicForwarding setForwardProxy(BackendServiceDynamicForwardingForwardProxy forwardProxy) { + this.forwardProxy = forwardProxy; + return this; + } + /** * IP:PORT based dynamic forwarding configuration. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java new file mode 100644 index 00000000000..030061819d7 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines Dynamic Forwarding Proxy configuration. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceDynamicForwardingForwardProxy extends com.google.api.client.json.GenericJson { + + /** + * A boolean flag enabling dynamic forwarding proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Determines the dynamic forwarding proxy mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyMode; + + /** + * A boolean flag enabling dynamic forwarding proxy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * A boolean flag enabling dynamic forwarding proxy. + * @param enabled enabled or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Determines the dynamic forwarding proxy mode. + * @return value or {@code null} for none + */ + public java.lang.String getProxyMode() { + return proxyMode; + } + + /** + * Determines the dynamic forwarding proxy mode. + * @param proxyMode proxyMode or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy setProxyMode(java.lang.String proxyMode) { + this.proxyMode = proxyMode; + return this; + } + + @Override + public BackendServiceDynamicForwardingForwardProxy set(String fieldName, Object value) { + return (BackendServiceDynamicForwardingForwardProxy) super.set(fieldName, value); + } + + @Override + public BackendServiceDynamicForwardingForwardProxy clone() { + return (BackendServiceDynamicForwardingForwardProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java index efdb6b23e77..6d41f11341d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -38,7 +38,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * The value may be {@code null}. @@ -73,7 +73,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.js private java.lang.Float failoverRatio; /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * @return value or {@code null} for none @@ -83,7 +83,7 @@ public java.lang.Boolean getDisableConnectionDrainOnFailover() { } /** - * This can be set to true only if the protocol isTCP. + * 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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java index bc3239368af..2df9c4eb5fe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -45,8 +45,8 @@ public final class BackendServiceGroupHealth extends com.google.api.client.json. private java.util.List healthStatus; /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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 @@ -89,8 +89,8 @@ public BackendServiceGroupHealth setHealthStatus(java.util.List he } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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() { @@ -98,8 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java index f6f65dd63bf..e8084deee88 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -62,7 +62,7 @@ public final class BackendServiceIAP extends com.google.api.client.json.GenericJ private java.lang.String oauth2ClientSecret; /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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 @@ -145,7 +145,7 @@ public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecr } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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() { @@ -153,7 +153,7 @@ public java.lang.String getOauth2ClientSecretSha256() { } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java index 55bacc0e85b..a9fbe1babdc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -50,7 +50,8 @@ public final class BackendServiceList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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 @@ -67,7 +68,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public BackendServiceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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) { @@ -155,7 +158,7 @@ public BackendServiceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java index 68b53b5decb..eeee3073ad5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -50,8 +50,8 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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 @@ -68,7 +68,7 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public BackendServiceListUsable setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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) { @@ -158,7 +158,7 @@ public BackendServiceListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java index cebbcab9361..d1f47ab4d6d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java @@ -30,16 +30,16 @@ public final class BackendServiceUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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() { @@ -47,8 +47,8 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java index 9c057f2e6c6..f4e2917b118 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -30,42 +30,42 @@ public final class BgpRoute extends com.google.api.client.json.GenericJson { /** - * [Output only] AS-PATH for the route + * 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] BGP communities in human-readable A:B format. + * 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] Destination IP range for the route, in human-readable CIDR format + * 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] BGP multi-exit discriminator + * 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] BGP origin (EGP, IGP or INCOMPLETE) + * 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] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -73,7 +73,7 @@ public java.util.List getAsPaths() { } /** - * [Output only] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @param asPaths asPaths or {@code null} for none */ public BgpRoute setAsPaths(java.util.List asPaths) { @@ -82,7 +82,7 @@ public BgpRoute setAsPaths(java.util.List asPaths) { } /** - * [Output only] BGP communities in human-readable A:B format. + * Output only. [Output only] BGP communities in human-readable A:B format. * @return value or {@code null} for none */ public java.util.List getCommunities() { @@ -90,7 +90,7 @@ public java.util.List getCommunities() { } /** - * [Output only] BGP communities in human-readable A:B format. + * 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) { @@ -99,7 +99,7 @@ public BgpRoute setCommunities(java.util.List communities) { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * 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() { @@ -107,7 +107,7 @@ public BgpRouteNetworkLayerReachabilityInformation getDestination() { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * 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) { @@ -116,7 +116,7 @@ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation desti } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @return value or {@code null} for none */ public java.lang.Long getMed() { @@ -124,7 +124,7 @@ public java.lang.Long getMed() { } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @param med med or {@code null} for none */ public BgpRoute setMed(java.lang.Long med) { @@ -133,7 +133,7 @@ public BgpRoute setMed(java.lang.Long med) { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @return value or {@code null} for none */ public java.lang.String getOrigin() { @@ -141,7 +141,7 @@ public java.lang.String getOrigin() { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java index da0ffd82c86..34de456cbc3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -30,30 +30,30 @@ public final class BgpRouteAsPath extends com.google.api.client.json.GenericJson { /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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] 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. + * 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] Type of AS-PATH segment (SEQUENCE or SET) + * 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] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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() { @@ -61,7 +61,7 @@ public java.util.List getAsns() { } /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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) { @@ -70,9 +70,9 @@ public BgpRouteAsPath setAsns(java.util.List asns) { } /** - * [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. + * 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() { @@ -80,9 +80,9 @@ public java.util.List getAsns32() { } /** - * [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. + * 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) { @@ -91,7 +91,7 @@ public BgpRouteAsPath setAsns32(java.util.List asns32) { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @return value or {@code null} for none */ public java.lang.String getType() { @@ -99,7 +99,7 @@ public java.lang.String getType() { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java index aca17118fa4..e8d1e697aa7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -38,7 +38,7 @@ public final class BulkInsertInstanceResourcePerInstanceProperties extends com.g private java.lang.String hostname; /** - * This field is only temporary. It will be removed. Do not use it. + * 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 @@ -64,7 +64,7 @@ public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.Str } /** - * This field is only temporary. It will be removed. Do not use it. + * 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() { @@ -72,7 +72,7 @@ public java.lang.String getName() { } /** - * This field is only temporary. It will be removed. Do not use it. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java index 25df3e9b811..cb23dd5a6fa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java @@ -29,6 +29,17 @@ @SuppressWarnings("javadoc") public final class CacheInvalidationRule extends com.google.api.client.json.GenericJson { + /** + * If set, this invalidation rule will only apply to requests routed to the given backend service + * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service + * `bs1` in the same scope as the URL map, the path would be `projects/my- + * project/global/backendServices/bs1`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String backendService; + /** * A list of cache tags used to identify cached objects. * @@ -43,6 +54,15 @@ public final class CacheInvalidationRule extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.util.List cacheTags; + /** + * If set, this invalidation rule will only apply to responses with the given content-type. + * Parameters are not allowed and are ignored from the response when matching. Wildcards are not + * allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contentType; + /** * If set, this invalidation rule will only apply to requests with a Host header matching host. * The value may be {@code null}. @@ -50,12 +70,45 @@ public final class CacheInvalidationRule extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.lang.String host; + /** + * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid + * range is 200-599. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer httpStatus; + /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String path; + /** + * If set, this invalidation rule will only apply to requests routed to the given backend service + * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service + * `bs1` in the same scope as the URL map, the path would be `projects/my- + * project/global/backendServices/bs1`. + * @return value or {@code null} for none + */ + public java.lang.String getBackendService() { + return backendService; + } + + /** + * If set, this invalidation rule will only apply to requests routed to the given backend service + * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, + * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service + * `bs1` in the same scope as the URL map, the path would be `projects/my- + * project/global/backendServices/bs1`. + * @param backendService backendService or {@code null} for none + */ + public CacheInvalidationRule setBackendService(java.lang.String backendService) { + this.backendService = backendService; + return this; + } + /** * A list of cache tags used to identify cached objects. * @@ -87,6 +140,27 @@ public CacheInvalidationRule setCacheTags(java.util.List cache return this; } + /** + * If set, this invalidation rule will only apply to responses with the given content-type. + * Parameters are not allowed and are ignored from the response when matching. Wildcards are not + * allowed. + * @return value or {@code null} for none + */ + public java.lang.String getContentType() { + return contentType; + } + + /** + * If set, this invalidation rule will only apply to responses with the given content-type. + * Parameters are not allowed and are ignored from the response when matching. Wildcards are not + * allowed. + * @param contentType contentType or {@code null} for none + */ + public CacheInvalidationRule setContentType(java.lang.String contentType) { + this.contentType = contentType; + return this; + } + /** * If set, this invalidation rule will only apply to requests with a Host header matching host. * @return value or {@code null} for none @@ -104,6 +178,25 @@ public CacheInvalidationRule setHost(java.lang.String host) { return this; } + /** + * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid + * range is 200-599. + * @return value or {@code null} for none + */ + public java.lang.Integer getHttpStatus() { + return httpStatus; + } + + /** + * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid + * range is 200-599. + * @param httpStatus httpStatus or {@code null} for none + */ + public CacheInvalidationRule setHttpStatus(java.lang.Integer httpStatus) { + this.httpStatus = httpStatus; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java new file mode 100644 index 00000000000..637cb5ec264 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java @@ -0,0 +1,405 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code 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 cachePolicy.cacheMode settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cacheBypassRequestHeaderNames; + + /** + * The CacheKeyPolicy for this CachePolicy. + * 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, the default + * value is 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 Duration 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. 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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration 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). + * 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 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 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 cachePolicy.cacheMode settings. + * @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 cachePolicy.cacheMode settings. + * @param cacheBypassRequestHeaderNames cacheBypassRequestHeaderNames or {@code null} for none + */ + public CachePolicy setCacheBypassRequestHeaderNames(java.util.List cacheBypassRequestHeaderNames) { + this.cacheBypassRequestHeaderNames = cacheBypassRequestHeaderNames; + return this; + } + + /** + * The CacheKeyPolicy for this CachePolicy. + * @return value or {@code null} for none + */ + public CachePolicyCacheKeyPolicy getCacheKeyPolicy() { + return cacheKeyPolicy; + } + + /** + * The CacheKeyPolicy for this CachePolicy. + * @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, the default + * value is 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 route. If not specified, the default + * value is CACHE_ALL_STATIC. + * @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. 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 Duration 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 CachePolicy setClientTtl(Duration 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. 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. + * @return value or {@code null} for none + */ + public Duration 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. 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. + * @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 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). + * Infrequently accessed objects may be evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public Duration 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). + * Infrequently accessed objects may be evicted from the cache before the defined TTL. + * @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 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 CachePolicy 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 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. + * @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 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/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java new file mode 100644 index 00000000000..83241e3f631 --- /dev/null +++ b/clients/google-api-services-compute/alpha/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 excluded_query_parameters or included_query_parameters, 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 a 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 + * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 excluded_query_parameters or included_query_parameters, 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 a 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 excluded_query_parameters or included_query_parameters, 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 a 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 + * included_query_parameters and excluded_query_parameters. 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 a 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 + * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 included_query_parameters or excluded_query_parameters, 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/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java index f3d78921e43..26ac0c12280 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java @@ -31,7 +31,7 @@ public final class CapacityAdviceRequestDistributionPolicy extends com.google.ap /** * The distribution shape to which the group converges. You can only specify the following values: - * ANY,ANY_SINGLE_ZONE. + * ANY,ANY_SINGLE_ZONE,BALANCED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,7 +46,7 @@ public final class CapacityAdviceRequestDistributionPolicy extends com.google.ap /** * The distribution shape to which the group converges. You can only specify the following values: - * ANY,ANY_SINGLE_ZONE. + * ANY,ANY_SINGLE_ZONE,BALANCED. * @return value or {@code null} for none */ public java.lang.String getTargetShape() { @@ -55,7 +55,7 @@ public java.lang.String getTargetShape() { /** * The distribution shape to which the group converges. You can only specify the following values: - * ANY,ANY_SINGLE_ZONE. + * ANY,ANY_SINGLE_ZONE,BALANCED. * @param targetShape targetShape or {@code null} for none */ public CapacityAdviceRequestDistributionPolicy setTargetShape(java.lang.String targetShape) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java index eb3965e3774..4d5f99e3f89 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class CapacityAdviceRequestInstanceProperties extends com.google.api.client.json.GenericJson { + /** + * Input only. Specifies the topology required to create a partition for VMs that have + * interconnected GPUs or TPUs. Example values: 2x2 for ct5l-hightpu-4t. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorTopology; + /** * Specifies the scheduling options. * The value may be {@code null}. @@ -36,6 +44,25 @@ public final class CapacityAdviceRequestInstanceProperties extends com.google.ap @com.google.api.client.util.Key private CapacityAdviceRequestInstancePropertiesScheduling scheduling; + /** + * Input only. Specifies the topology required to create a partition for VMs that have + * interconnected GPUs or TPUs. Example values: 2x2 for ct5l-hightpu-4t. + * @return value or {@code null} for none + */ + public java.lang.String getAcceleratorTopology() { + return acceleratorTopology; + } + + /** + * Input only. Specifies the topology required to create a partition for VMs that have + * interconnected GPUs or TPUs. Example values: 2x2 for ct5l-hightpu-4t. + * @param acceleratorTopology acceleratorTopology or {@code null} for none + */ + public CapacityAdviceRequestInstanceProperties setAcceleratorTopology(java.lang.String acceleratorTopology) { + this.acceleratorTopology = acceleratorTopology; + return this; + } + /** * Specifies the scheduling options. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java index a2fa1fd1198..ec15474f5f7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class CapacityAdviceRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { + /** + * The maximum time that instances can run before Compute Engine terminates them. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String maxRunDuration; + /** * Specifies the provisioning model of the instance. * The value may be {@code null}. @@ -36,6 +43,23 @@ public final class CapacityAdviceRequestInstancePropertiesScheduling extends com @com.google.api.client.util.Key private java.lang.String provisioningModel; + /** + * The maximum time that instances can run before Compute Engine terminates them. + * @return value or {@code null} for none + */ + public String getMaxRunDuration() { + return maxRunDuration; + } + + /** + * The maximum time that instances can run before Compute Engine terminates them. + * @param maxRunDuration maxRunDuration or {@code null} for none + */ + public CapacityAdviceRequestInstancePropertiesScheduling setMaxRunDuration(String maxRunDuration) { + this.maxRunDuration = maxRunDuration; + return this; + } + /** * Specifies the provisioning model of the instance. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java index 3261a84c323..e6406684831 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java @@ -29,6 +29,22 @@ @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 history data and current conditions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String estimatedUptime; + + /** + * Output only. The likely maximum time that you will have to wait until Compute Engine provisions + * your instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String estimatedWaitDuration; + /** * 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. @@ -46,6 +62,44 @@ public final class CapacityAdviceResponseRecommendationScores extends com.google @com.google.api.client.util.Key private java.lang.Double uptimeScore; + /** + * 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 history 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 history data and current conditions. + * @param estimatedUptime estimatedUptime or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores setEstimatedUptime(String estimatedUptime) { + this.estimatedUptime = estimatedUptime; + return this; + } + + /** + * Output only. The likely maximum time that you will have to wait until Compute Engine provisions + * your instances. + * @return value or {@code null} for none + */ + public String getEstimatedWaitDuration() { + return estimatedWaitDuration; + } + + /** + * Output only. The likely maximum time that you will have to wait until Compute Engine provisions + * your instances. + * @param estimatedWaitDuration estimatedWaitDuration or {@code null} for none + */ + public CapacityAdviceResponseRecommendationScores setEstimatedWaitDuration(String estimatedWaitDuration) { + this.estimatedWaitDuration = estimatedWaitDuration; + 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java index 22435677d1c..cf1960ceb7d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java @@ -54,7 +54,7 @@ public final class CapacityAdviceResponseRecommendationShard extends com.google. private java.lang.String provisioningModel; /** - * The zone name for this shard. + * Output only. The zone name for this shard. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -114,7 +114,7 @@ public CapacityAdviceResponseRecommendationShard setProvisioningModel(java.lang. } /** - * The zone name for this shard. + * Output only. The zone name for this shard. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -122,7 +122,7 @@ public java.lang.String getZone() { } /** - * The zone name for this shard. + * Output only. The zone name for this shard. * @param zone zone or {@code null} for none */ public CapacityAdviceResponseRecommendationShard setZone(java.lang.String zone) { 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 cedbd614404..057eb408d04 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 @@ -58,7 +58,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String category; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,14 +95,15 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List existingReservations; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#commitment for commitments. + * 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 @@ -134,6 +135,14 @@ public final class Commitment extends com.google.api.client.json.GenericJson { @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 @@ -146,7 +155,8 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String plan; /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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 @@ -166,7 +176,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List reservations; /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -181,14 +191,14 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List resources; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -203,23 +213,23 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String splitSourceCommitment; /** - * [Output Only] Commitment start time inRFC3339 text format. + * 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] 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. + * 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] An optional, human-readable explanation of the 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 @@ -235,10 +245,11 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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 @@ -297,7 +308,7 @@ public Commitment setCategory(java.lang.String category) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -305,7 +316,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -354,7 +365,7 @@ public Commitment setDescription(java.lang.String description) { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getEndTimestamp() { @@ -362,7 +373,7 @@ public java.lang.String getEndTimestamp() { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * 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) { @@ -386,7 +397,8 @@ public Commitment setExistingReservations(java.util.List exist } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -394,7 +406,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -403,7 +416,7 @@ public Commitment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * 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() { @@ -411,7 +424,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * 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) { @@ -480,6 +493,25 @@ public Commitment setName(java.lang.String 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 @@ -506,7 +538,8 @@ public Commitment setPlan(java.lang.String plan) { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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() { @@ -514,7 +547,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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) { @@ -552,7 +586,7 @@ public Commitment setReservations(java.util.List reservations) { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @return value or {@code null} for none */ public CommitmentResourceStatus getResourceStatus() { @@ -560,7 +594,7 @@ public CommitmentResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { @@ -588,7 +622,7 @@ public Commitment setResources(java.util.List resources) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -596,7 +630,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -605,7 +639,7 @@ public Commitment setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -613,7 +647,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Commitment setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -641,7 +675,7 @@ public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitmen } /** - * [Output Only] Commitment start time inRFC3339 text format. + * Output only. [Output Only] Commitment start time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getStartTimestamp() { @@ -649,7 +683,7 @@ public java.lang.String getStartTimestamp() { } /** - * [Output Only] Commitment start time inRFC3339 text format. + * 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) { @@ -658,9 +692,9 @@ public Commitment setStartTimestamp(java.lang.String startTimestamp) { } /** - * [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. + * 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() { @@ -668,9 +702,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -679,7 +713,7 @@ public Commitment setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -687,7 +721,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { @@ -705,10 +739,11 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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() { @@ -725,10 +760,11 @@ public java.lang.String getType() { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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/CommitmentAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java index ebea0717115..f2e7e93ec6f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -44,8 +44,8 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of - * commitments. + * 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 @@ -62,14 +62,14 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public CommitmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CommitmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java index 888c1afdb74..1b42ceec78e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -50,7 +50,8 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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 @@ -67,7 +68,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public CommitmentList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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) { @@ -155,7 +158,7 @@ public CommitmentList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentParams.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java index c0077d757b3..8b96dfeab67 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -30,23 +30,23 @@ public final class CommitmentResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] An optional, contains all the needed information of cancellation. + * Output only. [Output Only] An optional, contains all the needed information of cancellation. * The value may be {@code null}. */ @com.google.api.client.util.Key private CommitmentResourceStatusCancellationInformation cancellationInformation; /** - * [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. + * 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] An optional, contains all the needed information of cancellation. + * Output only. [Output Only] An optional, contains all the needed information of cancellation. * @return value or {@code null} for none */ public CommitmentResourceStatusCancellationInformation getCancellationInformation() { @@ -54,7 +54,7 @@ public CommitmentResourceStatusCancellationInformation getCancellationInformatio } /** - * [Output Only] An optional, contains all the needed information of cancellation. + * Output only. [Output Only] An optional, contains all the needed information of cancellation. * @param cancellationInformation cancellationInformation or {@code null} for none */ public CommitmentResourceStatus setCancellationInformation(CommitmentResourceStatusCancellationInformation cancellationInformation) { @@ -63,9 +63,9 @@ public CommitmentResourceStatus setCancellationInformation(CommitmentResourceSta } /** - * [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. + * 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() { @@ -73,9 +73,9 @@ public java.lang.String getCustomTermEligibilityEndTimestamp() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java index a898b418a33..11f7d1a7dfa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java @@ -30,43 +30,44 @@ public final class CommitmentResourceStatusCancellationInformation extends com.google.api.client.json.GenericJson { /** - * [Output Only] An optional amount of CUDs canceled so far in the last 365 days. + * Output only. [Output Only] An optional amount of CUDs canceled so far in the last 365 days. * The value may be {@code null}. */ @com.google.api.client.util.Key private Money canceledCommitment; /** - * [Output Only] An optional last update time of canceled_commitment.RFC3339 text format. + * Output only. [Output Only] An optional last update time of canceled_commitment.RFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String canceledCommitmentLastUpdatedTimestamp; /** - * [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a - * rolling 365 per billing account. + * Output only. [Output Only] An optional,the cancellation cap for how much commitments can be + * canceled in a rolling 365 per billing account. * The value may be {@code null}. */ @com.google.api.client.util.Key private Money cancellationCap; /** - * [Output Only] An optional, cancellation fee. + * Output only. [Output Only] An optional, cancellation fee. * The value may be {@code null}. */ @com.google.api.client.util.Key private Money cancellationFee; /** - * [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. + * Output only. [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cancellationFeeExpirationTimestamp; /** - * [Output Only] An optional amount of CUDs canceled so far in the last 365 days. + * Output only. [Output Only] An optional amount of CUDs canceled so far in the last 365 days. * @return value or {@code null} for none */ public Money getCanceledCommitment() { @@ -74,7 +75,7 @@ public Money getCanceledCommitment() { } /** - * [Output Only] An optional amount of CUDs canceled so far in the last 365 days. + * Output only. [Output Only] An optional amount of CUDs canceled so far in the last 365 days. * @param canceledCommitment canceledCommitment or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCanceledCommitment(Money canceledCommitment) { @@ -83,7 +84,8 @@ public CommitmentResourceStatusCancellationInformation setCanceledCommitment(Mon } /** - * [Output Only] An optional last update time of canceled_commitment.RFC3339 text format. + * Output only. [Output Only] An optional last update time of canceled_commitment.RFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCanceledCommitmentLastUpdatedTimestamp() { @@ -91,7 +93,8 @@ public java.lang.String getCanceledCommitmentLastUpdatedTimestamp() { } /** - * [Output Only] An optional last update time of canceled_commitment.RFC3339 text format. + * Output only. [Output Only] An optional last update time of canceled_commitment.RFC3339 text + * format. * @param canceledCommitmentLastUpdatedTimestamp canceledCommitmentLastUpdatedTimestamp or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCanceledCommitmentLastUpdatedTimestamp(java.lang.String canceledCommitmentLastUpdatedTimestamp) { @@ -100,8 +103,8 @@ public CommitmentResourceStatusCancellationInformation setCanceledCommitmentLast } /** - * [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a - * rolling 365 per billing account. + * Output only. [Output Only] An optional,the cancellation cap for how much commitments can be + * canceled in a rolling 365 per billing account. * @return value or {@code null} for none */ public Money getCancellationCap() { @@ -109,8 +112,8 @@ public Money getCancellationCap() { } /** - * [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a - * rolling 365 per billing account. + * Output only. [Output Only] An optional,the cancellation cap for how much commitments can be + * canceled in a rolling 365 per billing account. * @param cancellationCap cancellationCap or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCancellationCap(Money cancellationCap) { @@ -119,7 +122,7 @@ public CommitmentResourceStatusCancellationInformation setCancellationCap(Money } /** - * [Output Only] An optional, cancellation fee. + * Output only. [Output Only] An optional, cancellation fee. * @return value or {@code null} for none */ public Money getCancellationFee() { @@ -127,7 +130,7 @@ public Money getCancellationFee() { } /** - * [Output Only] An optional, cancellation fee. + * Output only. [Output Only] An optional, cancellation fee. * @param cancellationFee cancellationFee or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCancellationFee(Money cancellationFee) { @@ -136,7 +139,7 @@ public CommitmentResourceStatusCancellationInformation setCancellationFee(Money } /** - * [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. + * Output only. [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCancellationFeeExpirationTimestamp() { @@ -144,7 +147,7 @@ public java.lang.String getCancellationFeeExpirationTimestamp() { } /** - * [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. + * Output only. [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. * @param cancellationFeeExpirationTimestamp cancellationFeeExpirationTimestamp or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCancellationFeeExpirationTimestamp(java.lang.String cancellationFeeExpirationTimestamp) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java index 91e7eed3e7d..54846cd5537 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java @@ -34,7 +34,7 @@ public final class CompositeHealthCheck extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,15 +78,16 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener private java.util.List healthSources; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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 @@ -104,30 +105,30 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -135,7 +136,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,7 +267,8 @@ public CompositeHealthCheck setHealthSources(java.util.List he } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -274,7 +276,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -283,8 +286,8 @@ public CompositeHealthCheck setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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() { @@ -292,8 +295,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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) { @@ -327,9 +330,9 @@ public CompositeHealthCheck setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -337,9 +340,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -348,7 +351,7 @@ public CompositeHealthCheck setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -356,7 +359,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -365,7 +368,7 @@ public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -373,7 +376,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java index 82598e5f984..88a96d851a4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java @@ -44,7 +44,7 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public CompositeHealthCheckAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CompositeHealthCheckAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java index c811ce5d44d..d0904ef3566 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java @@ -50,8 +50,8 @@ public final class CompositeHealthCheckList extends com.google.api.client.json.G } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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 @@ -116,8 +116,8 @@ public CompositeHealthCheckList setItems(java.util.List it } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java index 1ec94a91b94..b58929ff142 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -33,7 +33,7 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +47,16 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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 @@ -73,21 +74,21 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -95,7 +96,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -121,8 +122,8 @@ public CrossSiteNetwork setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -130,8 +131,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -140,7 +141,8 @@ public CrossSiteNetwork setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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() { @@ -148,7 +150,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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) { @@ -182,7 +185,7 @@ public CrossSiteNetwork setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -190,7 +193,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -199,7 +202,7 @@ public CrossSiteNetwork setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -207,7 +210,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public CrossSiteNetwork setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java index 110bd4bdc2d..24e29d0450f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -56,7 +56,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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 @@ -80,7 +81,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public CrossSiteNetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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) { @@ -200,7 +204,8 @@ public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public CrossSiteNetworkList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DateTime.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Disk.java index 97ee36c3074..4056660515a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Disk.java @@ -72,14 +72,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private DiskAsyncReplication asyncPrimaryDisk; /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,7 +141,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -156,7 +157,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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 @@ -183,14 +184,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * 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] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,11 +220,11 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String locationHint; /** - * [Output Only] The field indicates if the disk is created from a locked source image. Attachment - * of a disk created from a locked source image will cause the following operations to become - * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk - * detachment. And the disk can only be deleted when the instance is deleted - Creation of - * images or snapshots - Disk cloning + * Output only. [Output Only] The field indicates if the disk is created from a locked source + * image. Attachment of a disk created from a locked source image will cause the following + * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other + * instance - Disk detachment. And the disk can only be deleted when the instance is deleted + * - Creation of images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -296,9 +297,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long provisionedThroughput; /** - * [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. + * 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 @@ -320,7 +321,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -334,21 +335,21 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -367,16 +368,16 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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 @@ -396,10 +397,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceDisk; /** - * [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. + * 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 @@ -441,10 +442,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [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. + * 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 @@ -462,8 +463,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstantSnapshot; /** - * [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 + * 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. @@ -483,8 +484,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceMachineImage; /** - * Input only. The device name of a disk within a given machine image. The source_machine_image - * must be specified. + * The device name of a disk within a given machine image. The source_machine_image must be + * specified. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -499,11 +500,11 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * [Output Only] The unique ID of the machine image used to create this disk. This value - * identifies the exact machine image that was used to create this persistent disk. For example, - * if you created the persistent disk from a machine image that was later deleted and recreated - * under the same name, the source machine image ID would identify the exact version of the - * machine image that was used. + * Output only. [Output Only] The unique ID of the machine image used to create this disk. This + * value identifies the exact machine image that was used to create this persistent disk. For + * example, if you created the persistent disk from a machine image that was later deleted and + * recreated under the same name, the source machine image ID would identify the exact version of + * the machine image that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -528,10 +529,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [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. + * 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 @@ -549,9 +550,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceStorageObject; /** - * [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. + * 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 @@ -585,18 +586,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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}. */ @@ -604,8 +594,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List users; /** - * [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. + * 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 @@ -675,7 +665,7 @@ public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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() { @@ -683,7 +673,7 @@ public java.util.Map getAsyncSecondaryDisks() } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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) { @@ -692,7 +682,7 @@ public Disk setAsyncSecondaryDisks(java.util.Map guestOsFeatures) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -842,7 +833,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -870,7 +862,7 @@ public Disk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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() { @@ -878,7 +870,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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) { @@ -973,7 +965,7 @@ public Disk setLabels(java.util.Map labels) { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastAttachTimestamp() { @@ -981,7 +973,7 @@ public java.lang.String getLastAttachTimestamp() { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * 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) { @@ -990,7 +982,7 @@ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastDetachTimestamp() { @@ -998,7 +990,7 @@ public java.lang.String getLastDetachTimestamp() { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * 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) { @@ -1060,11 +1052,11 @@ public Disk setLocationHint(java.lang.String locationHint) { } /** - * [Output Only] The field indicates if the disk is created from a locked source image. Attachment - * of a disk created from a locked source image will cause the following operations to become - * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk - * detachment. And the disk can only be deleted when the instance is deleted - Creation of - * images or snapshots - Disk cloning + * Output only. [Output Only] The field indicates if the disk is created from a locked source + * image. Attachment of a disk created from a locked source image will cause the following + * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other + * instance - Disk detachment. And the disk can only be deleted when the instance is deleted + * - Creation of images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1078,11 +1070,11 @@ public java.lang.Boolean getLocked() { } /** - * [Output Only] The field indicates if the disk is created from a locked source image. Attachment - * of a disk created from a locked source image will cause the following operations to become - * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk - * detachment. And the disk can only be deleted when the instance is deleted - Creation of - * images or snapshots - Disk cloning + * Output only. [Output Only] The field indicates if the disk is created from a locked source + * image. Attachment of a disk created from a locked source image will cause the following + * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other + * instance - Disk detachment. And the disk can only be deleted when the instance is deleted + * - Creation of images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1238,9 +1230,9 @@ public Disk setProvisionedThroughput(java.lang.Long provisionedThroughput) { } /** - * [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. + * 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() { @@ -1248,9 +1240,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1295,7 +1287,7 @@ public Disk setResourcePolicies(java.util.List resourcePolicie } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @return value or {@code null} for none */ public DiskResourceStatus getResourceStatus() { @@ -1303,7 +1295,7 @@ public DiskResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Disk setResourceStatus(DiskResourceStatus resourceStatus) { @@ -1329,7 +1321,7 @@ public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1337,7 +1329,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1346,7 +1338,7 @@ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1354,7 +1346,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -1363,7 +1355,7 @@ public Disk setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -1371,7 +1363,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Disk setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1407,8 +1399,8 @@ public Disk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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() { @@ -1416,8 +1408,8 @@ public java.lang.String getSourceConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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) { @@ -1426,8 +1418,8 @@ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGr } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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() { @@ -1435,8 +1427,8 @@ public java.lang.String getSourceConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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) { @@ -1474,10 +1466,10 @@ public Disk setSourceDisk(java.lang.String sourceDisk) { } /** - * [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. + * 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() { @@ -1485,10 +1477,10 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1573,10 +1565,10 @@ public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncrypt } /** - * [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. + * 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() { @@ -1584,10 +1576,10 @@ public java.lang.String getSourceImageId() { } /** - * [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. + * 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) { @@ -1621,8 +1613,8 @@ public Disk setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { } /** - * [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 + * 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. @@ -1633,8 +1625,8 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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 + * 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. @@ -1669,8 +1661,8 @@ public Disk setSourceMachineImage(java.lang.String sourceMachineImage) { } /** - * Input only. The device name of a disk within a given machine image. The source_machine_image - * must be specified. + * The device name of a disk within a given machine image. The source_machine_image must be + * specified. * @return value or {@code null} for none */ public java.lang.String getSourceMachineImageDiskDeviceName() { @@ -1678,8 +1670,8 @@ public java.lang.String getSourceMachineImageDiskDeviceName() { } /** - * Input only. The device name of a disk within a given machine image. The source_machine_image - * must be specified. + * The device name of a disk within a given machine image. The source_machine_image must be + * specified. * @param sourceMachineImageDiskDeviceName sourceMachineImageDiskDeviceName or {@code null} for none */ public Disk setSourceMachineImageDiskDeviceName(java.lang.String sourceMachineImageDiskDeviceName) { @@ -1707,11 +1699,11 @@ public Disk setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceMachi } /** - * [Output Only] The unique ID of the machine image used to create this disk. This value - * identifies the exact machine image that was used to create this persistent disk. For example, - * if you created the persistent disk from a machine image that was later deleted and recreated - * under the same name, the source machine image ID would identify the exact version of the - * machine image that was used. + * Output only. [Output Only] The unique ID of the machine image used to create this disk. This + * value identifies the exact machine image that was used to create this persistent disk. For + * example, if you created the persistent disk from a machine image that was later deleted and + * recreated under the same name, the source machine image ID would identify the exact version of + * the machine image that was used. * @return value or {@code null} for none */ public java.lang.String getSourceMachineImageId() { @@ -1719,11 +1711,11 @@ public java.lang.String getSourceMachineImageId() { } /** - * [Output Only] The unique ID of the machine image used to create this disk. This value - * identifies the exact machine image that was used to create this persistent disk. For example, - * if you created the persistent disk from a machine image that was later deleted and recreated - * under the same name, the source machine image ID would identify the exact version of the - * machine image that was used. + * Output only. [Output Only] The unique ID of the machine image used to create this disk. This + * value identifies the exact machine image that was used to create this persistent disk. For + * example, if you created the persistent disk from a machine image that was later deleted and + * recreated under the same name, the source machine image ID would identify the exact version of + * the machine image that was used. * @param sourceMachineImageId sourceMachineImageId or {@code null} for none */ public Disk setSourceMachineImageId(java.lang.String sourceMachineImageId) { @@ -1774,10 +1766,10 @@ public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotE } /** - * [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. + * 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() { @@ -1785,10 +1777,10 @@ public java.lang.String getSourceSnapshotId() { } /** - * [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. + * 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) { @@ -1822,9 +1814,9 @@ public Disk setSourceStorageObject(java.lang.String sourceStorageObject) { } /** - * [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. + * 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() { @@ -1832,9 +1824,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1906,32 +1898,7 @@ public Disk setType(java.lang.String type) { } /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @param userLicenses userLicenses or {@code null} for none - */ - public Disk setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - - /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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 */ @@ -1940,7 +1907,7 @@ public java.util.List getUsers() { } /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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 */ @@ -1950,8 +1917,8 @@ public Disk setUsers(java.util.List users) { } /** - * [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. + * 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() { @@ -1959,8 +1926,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java index b61dce2084d..a396284404a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -44,8 +44,8 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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 @@ -62,14 +62,14 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public DiskAggregatedList setItems(java.util.Map items) } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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) { @@ -159,7 +159,7 @@ public DiskAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +176,7 @@ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java index c8fb4fbcba9..e31cddc0dd0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -30,16 +30,16 @@ public final class DiskAsyncReplication extends com.google.api.client.json.GenericJson { /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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 @@ -56,19 +56,19 @@ public final class DiskAsyncReplication extends com.google.api.client.json.Gener private java.lang.String disk; /** - * [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. + * 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] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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) { @@ -86,8 +86,8 @@ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consisten } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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) { @@ -128,11 +128,11 @@ public DiskAsyncReplication setDisk(java.lang.String disk) { } /** - * [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. + * 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() { @@ -140,11 +140,11 @@ public java.lang.String getDiskId() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.java new file mode 100644 index 00000000000..0857cfec6d8 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.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; + +/** + * Model definition for DiskConvertParams. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DiskConvertParams extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceStopInProgressSnapshot; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedIops; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long provisionedThroughput; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean quickConversionOnly; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean resetSupportedVmFamilies; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetDiskType; + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getForceStopInProgressSnapshot() { + return forceStopInProgressSnapshot; + } + + /** + * @param forceStopInProgressSnapshot forceStopInProgressSnapshot or {@code null} for none + */ + public DiskConvertParams setForceStopInProgressSnapshot(java.lang.Boolean forceStopInProgressSnapshot) { + this.forceStopInProgressSnapshot = forceStopInProgressSnapshot; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedIops() { + return provisionedIops; + } + + /** + * @param provisionedIops provisionedIops or {@code null} for none + */ + public DiskConvertParams setProvisionedIops(java.lang.Long provisionedIops) { + this.provisionedIops = provisionedIops; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Long getProvisionedThroughput() { + return provisionedThroughput; + } + + /** + * @param provisionedThroughput provisionedThroughput or {@code null} for none + */ + public DiskConvertParams setProvisionedThroughput(java.lang.Long provisionedThroughput) { + this.provisionedThroughput = provisionedThroughput; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getQuickConversionOnly() { + return quickConversionOnly; + } + + /** + * @param quickConversionOnly quickConversionOnly or {@code null} for none + */ + public DiskConvertParams setQuickConversionOnly(java.lang.Boolean quickConversionOnly) { + this.quickConversionOnly = quickConversionOnly; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.Boolean getResetSupportedVmFamilies() { + return resetSupportedVmFamilies; + } + + /** + * @param resetSupportedVmFamilies resetSupportedVmFamilies or {@code null} for none + */ + public DiskConvertParams setResetSupportedVmFamilies(java.lang.Boolean resetSupportedVmFamilies) { + this.resetSupportedVmFamilies = resetSupportedVmFamilies; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getTargetDiskType() { + return targetDiskType; + } + + /** + * @param targetDiskType targetDiskType or {@code null} for none + */ + public DiskConvertParams setTargetDiskType(java.lang.String targetDiskType) { + this.targetDiskType = targetDiskType; + return this; + } + + @Override + public DiskConvertParams set(String fieldName, Object value) { + return (DiskConvertParams) super.set(fieldName, value); + } + + @Override + public DiskConvertParams clone() { + return (DiskConvertParams) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java index 340802d6056..af6eab69258 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -50,7 +50,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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 @@ -67,7 +67,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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) { @@ -155,7 +155,7 @@ public DiskList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java index 2a9e2a25060..977563c1cec 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java @@ -30,14 +30,14 @@ public final class DiskPairReplicationState extends com.google.api.client.json.GenericJson { /** - * [Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: - * The device is doing the initial replication after starting the replication. - - * ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to - * the secondary device i.e. last_replication_time is within RPO. - - * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The replication is lagging above the - * SLO limit due to the disk's change rate being above the supported limit. - - * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The replication is lagging, and - * the RPO is not being met due to some internal issue. - + * Output only. [Output Only] The status of disk creation. - + * ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after + * starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The + * primary disk is healthily replicating to the secondary device i.e. last_replication_time is + * within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The + * replication is lagging above the SLO limit due to the disk's change rate being above the + * supported limit. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The + * replication is lagging, and the RPO is not being met due to some internal issue. - * ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some * internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the * process of being stopped. This is a transient state. - @@ -57,14 +57,14 @@ public final class DiskPairReplicationState extends com.google.api.client.json.G private ReplicationDiskPair replicationDiskPair; /** - * [Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: - * The device is doing the initial replication after starting the replication. - - * ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to - * the secondary device i.e. last_replication_time is within RPO. - - * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The replication is lagging above the - * SLO limit due to the disk's change rate being above the supported limit. - - * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The replication is lagging, and - * the RPO is not being met due to some internal issue. - + * Output only. [Output Only] The status of disk creation. - + * ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after + * starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The + * primary disk is healthily replicating to the secondary device i.e. last_replication_time is + * within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The + * replication is lagging above the SLO limit due to the disk's change rate being above the + * supported limit. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The + * replication is lagging, and the RPO is not being met due to some internal issue. - * ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some * internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the * process of being stopped. This is a transient state. - @@ -79,14 +79,14 @@ public java.lang.String getDataReplicationState() { } /** - * [Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: - * The device is doing the initial replication after starting the replication. - - * ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to - * the secondary device i.e. last_replication_time is within RPO. - - * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The replication is lagging above the - * SLO limit due to the disk's change rate being above the supported limit. - - * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The replication is lagging, and - * the RPO is not being met due to some internal issue. - + * Output only. [Output Only] The status of disk creation. - + * ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after + * starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The + * primary disk is healthily replicating to the secondary device i.e. last_replication_time is + * within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The + * replication is lagging above the SLO limit due to the disk's change rate being above the + * supported limit. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The + * replication is lagging, and the RPO is not being met due to some internal issue. - * ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some * internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the * process of being stopped. This is a transient state. - diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java index 1ffac25638f..ca12f2eb573 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -30,18 +30,22 @@ public final class DiskParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java index 100518549c9..a9b4ebc59cd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java @@ -35,9 +35,9 @@ public final class DiskSettingsResourcePolicyDetails extends com.google.api.client.json.GenericJson { /** - * [Output Only] A list of Disk Types that will be excluded from applying the Resource Policy - * referenced here. If absent, Disks created in any DiskType can use the referenced default - * Resource Policy. + * Output only. [Output Only] A list of Disk Types that will be excluded from applying the + * Resource Policy referenced here. If absent, Disks created in any DiskType can use the + * referenced default Resource Policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,9 +51,9 @@ public final class DiskSettingsResourcePolicyDetails extends com.google.api.clie private java.lang.String resourcePolicy; /** - * [Output Only] A list of Disk Types that will be excluded from applying the Resource Policy - * referenced here. If absent, Disks created in any DiskType can use the referenced default - * Resource Policy. + * Output only. [Output Only] A list of Disk Types that will be excluded from applying the + * Resource Policy referenced here. If absent, Disks created in any DiskType can use the + * referenced default Resource Policy. * @return value or {@code null} for none */ public java.util.List getExcludedDiskTypes() { @@ -61,9 +61,9 @@ public java.util.List getExcludedDiskTypes() { } /** - * [Output Only] A list of Disk Types that will be excluded from applying the Resource Policy - * referenced here. If absent, Disks created in any DiskType can use the referenced default - * Resource Policy. + * Output only. [Output Only] A list of Disk Types that will be excluded from applying the + * Resource Policy referenced here. If absent, Disks created in any DiskType can use the + * referenced default Resource Policy. * @param excludedDiskTypes excludedDiskTypes or {@code null} for none */ public DiskSettingsResourcePolicyDetails setExcludedDiskTypes(java.util.List excludedDiskTypes) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java index c31d8cc7bbc..3036f941ac3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -79,7 +79,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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 @@ -109,7 +109,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -216,7 +216,7 @@ public DiskType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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() { @@ -224,7 +224,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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) { @@ -288,7 +288,7 @@ public DiskType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -296,7 +296,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public DiskType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java index c1ded43bc49..cf1cb69068d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public DiskTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java index 514356f0f16..c14af4a2a50 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -50,7 +50,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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 @@ -67,7 +67,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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) { @@ -155,7 +155,7 @@ public DiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.java new file mode 100644 index 00000000000..b293a3ff69f --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.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 DisksConvertRequest. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DisksConvertRequest extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DiskConvertParams params; + + /** + * @return value or {@code null} for none + */ + public DiskConvertParams getParams() { + return params; + } + + /** + * @param params params or {@code null} for none + */ + public DisksConvertRequest setParams(DiskConvertParams params) { + this.params = params; + return this; + } + + @Override + public DisksConvertRequest set(String fieldName, Object value) { + return (DisksConvertRequest) super.set(fieldName, value); + } + + @Override + public DisksConvertRequest clone() { + return (DisksConvertRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java index b9ce02ac6f5..5559090d792 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -38,7 +38,11 @@ public final class DistributionPolicy extends com.google.api.client.json.Generic private java.lang.String targetShape; /** - * Zones where the regional managed instance group will create and manage its instances. + * 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 @@ -64,7 +68,11 @@ public DistributionPolicy setTargetShape(java.lang.String targetShape) { } /** - * Zones where the regional managed instance group will create and manage its instances. + * 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() { @@ -72,7 +80,11 @@ public java.util.List getZones() { } /** - * Zones where the regional managed instance group will create and manage its instances. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java index b29773cfbb2..5e63c8f113a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -50,8 +50,8 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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 @@ -68,7 +68,7 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public ExchangedPeeringRoutesList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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) { @@ -158,7 +158,7 @@ public ExchangedPeeringRoutesList setNextPageToken(java.lang.String nextPageToke } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java index 415b69cc2c6..268e207e284 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -40,7 +40,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +54,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -72,7 +73,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.util.List interfaces; /** - * [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,14 +128,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String redundancyType; /** - * [Output Only] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,7 +143,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -167,7 +169,8 @@ public ExternalVpnGateway setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -175,7 +178,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -209,7 +213,8 @@ public ExternalVpnGateway setInterfaces(java.util.List items) } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @return value or {@code null} for none */ @@ -146,7 +146,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @param kind kind or {@code null} for none */ @@ -179,7 +179,7 @@ public ExternalVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -187,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java index de173045fb0..274c5b66d82 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -47,7 +47,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,14 +109,15 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableLogging; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#firewall for firewall rules. + * 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 @@ -184,7 +185,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -271,7 +272,7 @@ public Firewall setAllowed(java.util.List allowed) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -279,7 +280,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { @@ -404,7 +405,8 @@ public Firewall setEnableLogging(java.lang.Boolean enableLogging) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -412,7 +414,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -421,7 +424,7 @@ public Firewall setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * 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() { @@ -429,7 +432,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * 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) { @@ -578,7 +581,7 @@ public Firewall setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -586,7 +589,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Firewall setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java index 96b60b0b731..c80b819385c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -50,7 +50,8 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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 @@ -67,7 +68,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public FirewallList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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) { @@ -155,7 +158,7 @@ public FirewallList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java index 609dcacbde5..3f0fd7877bd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class FirewallPoliciesListAssociationsResponse extends com.google.a private java.util.List associations; /** - * [Output Only] Type of firewallPolicy associations. + * Output only. [Output Only] Type of firewallPolicy associations. * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. * The value may be {@code null}. */ @@ -62,7 +62,7 @@ public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,8 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,16 +108,22 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.util.List packetMirroringRules; /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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; /** - * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or - * SYSTEM if created by managed services like GKE. + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -132,17 +139,24 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String policyType; /** - * [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. + * 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] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * Configuration and status of the progressive rollout of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallPolicyRolloutOperation rolloutOperation; + + /** + * 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 @@ -165,7 +179,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -218,7 +232,7 @@ public FirewallPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -226,7 +240,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -369,7 +383,8 @@ public FirewallPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -377,7 +392,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * 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) { @@ -422,8 +438,8 @@ public FirewallPolicy setPacketMirroringRules(java.util.List } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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() { @@ -431,8 +447,8 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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) { @@ -441,8 +457,14 @@ public FirewallPolicy setParent(java.lang.String parent) { } /** - * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or - * SYSTEM if created by managed services like GKE. + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. * @return value or {@code null} for none */ public java.lang.String getPolicySource() { @@ -450,8 +472,14 @@ public java.lang.String getPolicySource() { } /** - * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or - * SYSTEM if created by managed services like GKE. + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. * @param policySource policySource or {@code null} for none */ public FirewallPolicy setPolicySource(java.lang.String policySource) { @@ -481,9 +509,9 @@ public FirewallPolicy setPolicyType(java.lang.String policyType) { } /** - * [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. + * 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() { @@ -491,9 +519,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -502,8 +530,25 @@ public FirewallPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * Configuration and status of the progressive rollout of this resource. + * @return value or {@code null} for none + */ + public FirewallPolicyRolloutOperation getRolloutOperation() { + return rolloutOperation; + } + + /** + * Configuration and status of the progressive rollout of this resource. + * @param rolloutOperation rolloutOperation or {@code null} for none + */ + public FirewallPolicy setRolloutOperation(FirewallPolicyRolloutOperation rolloutOperation) { + this.rolloutOperation = rolloutOperation; + 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() { @@ -511,8 +556,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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) { @@ -559,7 +604,7 @@ public FirewallPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -567,7 +612,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index ed43590239d..da4f0aa51e9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -45,7 +45,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String displayName; /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.Integer priority; /** - * [Output Only] The short name of the firewall policy of the association. + * 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 @@ -113,7 +113,7 @@ public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { } /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicyId() { @@ -121,7 +121,7 @@ public java.lang.String getFirewallPolicyId() { } /** - * [Output Only] The firewall policy ID of the association. + * 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) { @@ -172,7 +172,7 @@ public FirewallPolicyAssociation setPriority(java.lang.Integer priority) { } /** - * [Output Only] The short name of the firewall policy of the association. + * 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() { @@ -180,7 +180,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy of the association. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java index 5f6cb2a7687..5ced755c298 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -50,7 +50,8 @@ public final class FirewallPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public FirewallPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.java new file mode 100644 index 00000000000..3420c86026f --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.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 progressive rollout input parameters and current 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 FirewallPolicyRolloutOperation extends com.google.api.client.json.GenericJson { + + /** + * Input parameters to be used by the next not yet scheduled rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallPolicyRolloutOperationRolloutInput rolloutInput; + + /** + * [Output only] Current status of the rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallPolicyRolloutOperationRolloutStatus rolloutStatus; + + /** + * Input parameters to be used by the next not yet scheduled rollout. + * @return value or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutInput getRolloutInput() { + return rolloutInput; + } + + /** + * Input parameters to be used by the next not yet scheduled rollout. + * @param rolloutInput rolloutInput or {@code null} for none + */ + public FirewallPolicyRolloutOperation setRolloutInput(FirewallPolicyRolloutOperationRolloutInput rolloutInput) { + this.rolloutInput = rolloutInput; + return this; + } + + /** + * [Output only] Current status of the rollout. + * @return value or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatus getRolloutStatus() { + return rolloutStatus; + } + + /** + * [Output only] Current status of the rollout. + * @param rolloutStatus rolloutStatus or {@code null} for none + */ + public FirewallPolicyRolloutOperation setRolloutStatus(FirewallPolicyRolloutOperationRolloutStatus rolloutStatus) { + this.rolloutStatus = rolloutStatus; + return this; + } + + @Override + public FirewallPolicyRolloutOperation set(String fieldName, Object value) { + return (FirewallPolicyRolloutOperation) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRolloutOperation clone() { + return (FirewallPolicyRolloutOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.java new file mode 100644 index 00000000000..31a4bbd7721 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.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 progressive rollout input 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 FirewallPolicyRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { + + /** + * The name of the rollout plan. Ex. organizations//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 UUID of the retry action. Only needed if this is a retry for an existing rollout. This can + * be used after the user canceled a rollout and want to retry it with no changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String retryUuid; + + /** + * The name of the rollout plan. Ex. organizations//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/. + * @param name name or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutInput 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 FirewallPolicyRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { + this.predefinedRolloutPlan = predefinedRolloutPlan; + return this; + } + + /** + * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can + * be used after the user canceled a rollout and want to retry it with no changes. + * @return value or {@code null} for none + */ + public java.lang.String getRetryUuid() { + return retryUuid; + } + + /** + * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can + * be used after the user canceled a rollout and want to retry it with no changes. + * @param retryUuid retryUuid or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { + this.retryUuid = retryUuid; + return this; + } + + @Override + public FirewallPolicyRolloutOperationRolloutInput set(String fieldName, Object value) { + return (FirewallPolicyRolloutOperationRolloutInput) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRolloutOperationRolloutInput clone() { + return (FirewallPolicyRolloutOperationRolloutInput) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.java new file mode 100644 index 00000000000..0afa242a5d3 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.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; + +/** + * Represents progressive rollout current 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 FirewallPolicyRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output only] The next rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallPolicyRolloutOperationRolloutStatusNextRollout nextRollout; + + /** + * [Output only] The ongoing rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ongoingRollouts; + + /** + * [Output only] The last previously executed rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout; + + /** + * [Output only] The next rollout. + * @return value or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusNextRollout getNextRollout() { + return nextRollout; + } + + /** + * [Output only] The next rollout. + * @param nextRollout nextRollout or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatus setNextRollout(FirewallPolicyRolloutOperationRolloutStatusNextRollout nextRollout) { + this.nextRollout = nextRollout; + return this; + } + + /** + * [Output only] The ongoing rollout. + * @return value or {@code null} for none + */ + public java.util.List getOngoingRollouts() { + return ongoingRollouts; + } + + /** + * [Output only] The ongoing rollout. + * @param ongoingRollouts ongoingRollouts or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatus setOngoingRollouts(java.util.List ongoingRollouts) { + this.ongoingRollouts = ongoingRollouts; + return this; + } + + /** + * [Output only] The last previously executed rollout. + * @return value or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata getPreviousRollout() { + return previousRollout; + } + + /** + * [Output only] The last previously executed rollout. + * @param previousRollout previousRollout or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatus setPreviousRollout(FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout) { + this.previousRollout = previousRollout; + return this; + } + + @Override + public FirewallPolicyRolloutOperationRolloutStatus set(String fieldName, Object value) { + return (FirewallPolicyRolloutOperationRolloutStatus) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRolloutOperationRolloutStatus clone() { + return (FirewallPolicyRolloutOperationRolloutStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.java new file mode 100644 index 00000000000..5b845cd8e1b --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.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 FirewallPolicyRolloutOperationRolloutStatusNextRollout. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FirewallPolicyRolloutOperationRolloutStatusNextRollout extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] The id of the next rollout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rolloutId; + + /** + * The name of the rollout plan to be used by the next not yet started rollout. This field is auto + * populated based on RolloutInput when a new rollout is scheduled. This can be manually changed + * before the scheduled rollout starts. Ex. organizations//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 id of the next rollout. + * @return value or {@code null} for none + */ + public java.lang.String getRolloutId() { + return rolloutId; + } + + /** + * Output only. [Output only] The id of the next rollout. + * @param rolloutId rolloutId or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusNextRollout setRolloutId(java.lang.String rolloutId) { + this.rolloutId = rolloutId; + return this; + } + + /** + * The name of the rollout plan to be used by the next not yet started rollout. This field is auto + * populated based on RolloutInput when a new rollout is scheduled. This can be manually changed + * before the scheduled rollout starts. Ex. organizations//locations/global/rolloutPlans/ + * @return value or {@code null} for none + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** + * The name of the rollout plan to be used by the next not yet started rollout. This field is auto + * populated based on RolloutInput when a new rollout is scheduled. This can be manually changed + * before the scheduled rollout starts. Ex. organizations//locations/global/rolloutPlans/ + * @param rolloutPlan rolloutPlan or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusNextRollout setRolloutPlan(java.lang.String rolloutPlan) { + this.rolloutPlan = rolloutPlan; + return this; + } + + @Override + public FirewallPolicyRolloutOperationRolloutStatusNextRollout set(String fieldName, Object value) { + return (FirewallPolicyRolloutOperationRolloutStatusNextRollout) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRolloutOperationRolloutStatusNextRollout clone() { + return (FirewallPolicyRolloutOperationRolloutStatusNextRollout) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.java new file mode 100644 index 00000000000..812a25140d1 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.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 status of the progressive rollout instance, either completed or ongoing. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output only] The name of the rollout organizations//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 used by this rollout + * organizations//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 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 name of the rollout organizations//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 organizations//locations/global/rollouts/ + * @param rollout rollout or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata setRollout(java.lang.String rollout) { + this.rollout = rollout; + return this; + } + + /** + * Output only. [Output only] The name of the rollout plan used by this rollout + * organizations//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 used by this rollout + * organizations//locations/global/rolloutPlans/ + * @param rolloutPlan rolloutPlan or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata setRolloutPlan(java.lang.String rolloutPlan) { + this.rolloutPlan = rolloutPlan; + return this; + } + + /** + * Output only. [Output only] The state of the rollout. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [Output only] The state of the rollout. + * @param state state or {@code null} for none + */ + public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata set(String fieldName, Object value) { + return (FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata) super.set(fieldName, value); + } + + @Override + public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata clone() { + return (FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java index c5c7032c624..6d2b0ebd702 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -72,8 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.Boolean enableLogging; /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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 @@ -104,7 +104,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.String ruleName; /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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 @@ -274,8 +274,8 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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() { @@ -283,8 +283,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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) { @@ -350,7 +350,7 @@ public FirewallPolicyRule setRuleName(java.lang.String ruleName) { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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() { @@ -358,7 +358,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java index b8b606b7f46..3aa52411ce1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -37,8 +37,8 @@ public final class FirewallPolicyRuleSecureTag extends com.google.api.client.jso private java.lang.String name; /** - * [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. + * 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 @@ -62,8 +62,8 @@ public FirewallPolicyRuleSecureTag setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java index 96e626ed323..d244d6d7f04 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -30,7 +30,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson { /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * @@ -58,7 +59,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson private java.lang.Integer percent; /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * @@ -72,7 +74,8 @@ public java.lang.Integer getCalculated() { } /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java index d28846f8d69..36f13e72ddc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java @@ -17,8 +17,7 @@ package com.google.api.services.compute.model; /** - * A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start - * time, (2) a flexible end time, (3) a flexible duration. + * 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index acc5a660ce3..2566dcf6630 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -73,6 +73,12 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key("IPAddress") private java.lang.String iPAddress; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("IPAddresses") + private java.util.List iPAddresses; + /** * The IP protocol to which this rule applies. * @@ -124,17 +130,11 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean allowPscGlobalAccess; /** - * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to - * inject packets into the consumer's network. If set to true, the target service attachment must - * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC - * forwarding rules should not use this field. - * - * This field was never released to any customers and is deprecated and will be removed in the - * future. + * 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.lang.Boolean allowPscPacketInjection; + private java.util.List attachedExtensions; /** * [Output Only] Specifies the availability group of the forwarding rule. This field is for use by @@ -155,27 +155,28 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String backendService; /** - * [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. + * 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] Applicable only to the parent forwarding rule of global external passthrough load - * balancers. This field contains the list of child forwarding rule URLs associated with the - * parent forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first - * element, and AVAILABILITY_GROUP1 will be the second element. + * Output only. [Output Only] Applicable only to the parent forwarding rule of global external + * passthrough load balancers. This field contains the list of child forwarding rule URLs + * associated with the parent forwarding rule: one for each availability group. + * AVAILABILITY_GROUP0 will be the first element, and AVAILABILITY_GROUP1 will be the second + * element. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List childForwardingRules; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -272,7 +273,8 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean isMirroringCollector; /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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 @@ -385,8 +387,8 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean noAutomateDnsZone; /** - * [Output Only] Applicable only to the child forwarding rules of global external passthrough load - * balancers. This field contains the URL of the parent forwarding rule. + * Output only. [Output Only] Applicable only to the child forwarding rules of global external + * passthrough load balancers. This field contains the URL of the parent forwarding rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -453,9 +455,9 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String pscConnectionStatus; /** - * [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. + * 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 @@ -469,7 +471,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -618,6 +620,21 @@ public ForwardingRule setIPAddress(java.lang.String iPAddress) { return this; } + /** + * @return value or {@code null} for none + */ + public java.util.List getIPAddresses() { + return iPAddresses; + } + + /** + * @param iPAddresses iPAddresses or {@code null} for none + */ + public ForwardingRule setIPAddresses(java.util.List iPAddresses) { + this.iPAddresses = iPAddresses; + return this; + } + /** * The IP protocol to which this rule applies. * @@ -731,31 +748,19 @@ public ForwardingRule setAllowPscGlobalAccess(java.lang.Boolean allowPscGlobalAc } /** - * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to - * inject packets into the consumer's network. If set to true, the target service attachment must - * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC - * forwarding rules should not use this field. - * - * This field was never released to any customers and is deprecated and will be removed in the - * future. + * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. * @return value or {@code null} for none */ - public java.lang.Boolean getAllowPscPacketInjection() { - return allowPscPacketInjection; + public java.util.List getAttachedExtensions() { + return attachedExtensions; } /** - * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to - * inject packets into the consumer's network. If set to true, the target service attachment must - * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC - * forwarding rules should not use this field. - * - * This field was never released to any customers and is deprecated and will be removed in the - * future. - * @param allowPscPacketInjection allowPscPacketInjection or {@code null} for none + * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. + * @param attachedExtensions attachedExtensions or {@code null} for none */ - public ForwardingRule setAllowPscPacketInjection(java.lang.Boolean allowPscPacketInjection) { - this.allowPscPacketInjection = allowPscPacketInjection; + public ForwardingRule setAttachedExtensions(java.util.List attachedExtensions) { + this.attachedExtensions = attachedExtensions; return this; } @@ -802,10 +807,10 @@ public ForwardingRule setBackendService(java.lang.String backendService) { } /** - * [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. + * 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() { @@ -813,10 +818,10 @@ public java.lang.String getBaseForwardingRule() { } /** - * [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. + * 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) { @@ -825,10 +830,11 @@ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) } /** - * [Output Only] Applicable only to the parent forwarding rule of global external passthrough load - * balancers. This field contains the list of child forwarding rule URLs associated with the - * parent forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first - * element, and AVAILABILITY_GROUP1 will be the second element. + * Output only. [Output Only] Applicable only to the parent forwarding rule of global external + * passthrough load balancers. This field contains the list of child forwarding rule URLs + * associated with the parent forwarding rule: one for each availability group. + * AVAILABILITY_GROUP0 will be the first element, and AVAILABILITY_GROUP1 will be the second + * element. * @return value or {@code null} for none */ public java.util.List getChildForwardingRules() { @@ -836,10 +842,11 @@ public java.util.List getChildForwardingRules() { } /** - * [Output Only] Applicable only to the parent forwarding rule of global external passthrough load - * balancers. This field contains the list of child forwarding rule URLs associated with the - * parent forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first - * element, and AVAILABILITY_GROUP1 will be the second element. + * Output only. [Output Only] Applicable only to the parent forwarding rule of global external + * passthrough load balancers. This field contains the list of child forwarding rule URLs + * associated with the parent forwarding rule: one for each availability group. + * AVAILABILITY_GROUP0 will be the first element, and AVAILABILITY_GROUP1 will be the second + * element. * @param childForwardingRules childForwardingRules or {@code null} for none */ public ForwardingRule setChildForwardingRules(java.util.List childForwardingRules) { @@ -848,7 +855,7 @@ public ForwardingRule setChildForwardingRules(java.util.List c } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -856,7 +863,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1107,7 +1114,8 @@ public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringColle } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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() { @@ -1115,7 +1123,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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) { @@ -1400,8 +1409,8 @@ public ForwardingRule setNoAutomateDnsZone(java.lang.Boolean noAutomateDnsZone) } /** - * [Output Only] Applicable only to the child forwarding rules of global external passthrough load - * balancers. This field contains the URL of the parent forwarding rule. + * Output only. [Output Only] Applicable only to the child forwarding rules of global external + * passthrough load balancers. This field contains the URL of the parent forwarding rule. * @return value or {@code null} for none */ public java.lang.String getParentForwardingRule() { @@ -1409,8 +1418,8 @@ public java.lang.String getParentForwardingRule() { } /** - * [Output Only] Applicable only to the child forwarding rules of global external passthrough load - * balancers. This field contains the URL of the parent forwarding rule. + * Output only. [Output Only] Applicable only to the child forwarding rules of global external + * passthrough load balancers. This field contains the URL of the parent forwarding rule. * @param parentForwardingRule parentForwardingRule or {@code null} for none */ public ForwardingRule setParentForwardingRule(java.lang.String parentForwardingRule) { @@ -1551,9 +1560,9 @@ public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatu } /** - * [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. + * 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() { @@ -1561,9 +1570,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1589,7 +1598,7 @@ public ForwardingRule setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1597,7 +1606,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java index b3edbe7c261..01fcda7261e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -44,8 +44,8 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of - * forwarding rules. + * 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 @@ -62,14 +62,14 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ForwardingRuleAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ForwardingRuleAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java index f54e7f24f8a..eadbc548ba5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -50,7 +50,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ForwardingRuleList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ForwardingRuleList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ForwardingRuleList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java index 12dc3ab2d6f..8d1901147cb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class FutureReservation extends com.google.api.client.json.GenericJson { + /** + * Advanced control for cluster management, applicable only to DENSE deployment type future + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationAdvancedDeploymentControl advancedDeploymentControl; + /** * Aggregate reservation details for the future reservation. * The value may be {@code null}. @@ -73,7 +81,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationCommitmentInfo commitmentInfo; /** - * [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 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 @@ -102,15 +117,16 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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 @@ -136,6 +152,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ @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}. @@ -175,14 +199,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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 @@ -212,7 +236,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationSpecificSKUProperties specificSkuProperties; /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -226,12 +250,31 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationTimeWindow timeWindow; /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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; + /** + * Advanced control for cluster management, applicable only to DENSE deployment type future + * reservations. + * @return value or {@code null} for none + */ + public ReservationAdvancedDeploymentControl getAdvancedDeploymentControl() { + return advancedDeploymentControl; + } + + /** + * Advanced control for cluster management, applicable only to DENSE deployment type future + * reservations. + * @param advancedDeploymentControl advancedDeploymentControl or {@code null} for none + */ + public FutureReservation setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl advancedDeploymentControl) { + this.advancedDeploymentControl = advancedDeploymentControl; + return this; + } + /** * Aggregate reservation details for the future reservation. * @return value or {@code null} for none @@ -334,7 +377,23 @@ public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commi } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * @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() { @@ -342,7 +401,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * 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) { @@ -404,8 +464,8 @@ public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEm } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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() { @@ -413,8 +473,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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) { @@ -423,7 +483,8 @@ public FutureReservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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() { @@ -431,7 +492,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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) { @@ -485,6 +547,25 @@ public FutureReservation setNamePrefix(java.lang.String 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 @@ -577,7 +658,7 @@ public FutureReservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -585,7 +666,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -594,7 +675,7 @@ public FutureReservation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -602,7 +683,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -666,7 +747,7 @@ public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUPr } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @return value or {@code null} for none */ public FutureReservationStatus getStatus() { @@ -674,7 +755,7 @@ public FutureReservationStatus getStatus() { } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @param status status or {@code null} for none */ public FutureReservation setStatus(FutureReservationStatus status) { @@ -700,7 +781,7 @@ public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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() { @@ -708,7 +789,7 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java index 59fbc1a6f59..2595b4830d2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -30,38 +30,39 @@ public final class FutureReservationStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The current status of the requested amendment. + * 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; /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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] Represents the existing matching usage for the future reservation. + * 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; /** - * 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. + * 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] 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 + * 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}. */ @@ -69,17 +70,17 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusLastKnownGoodState lastKnownGoodState; /** - * 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. + * 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; /** - * Current state of this Future Reservation + * Output only. Current state of this Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +93,7 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusSpecificSKUProperties specificSkuProperties; /** - * [Output Only] The current status of the requested amendment. + * Output only. [Output Only] The current status of the requested amendment. * @return value or {@code null} for none */ public java.lang.String getAmendmentStatus() { @@ -100,7 +101,7 @@ public java.lang.String getAmendmentStatus() { } /** - * [Output Only] The current status of the requested amendment. + * 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) { @@ -109,7 +110,7 @@ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStat } /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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() { @@ -117,7 +118,7 @@ public java.util.List getAutoCreatedReservations() { } /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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) { @@ -126,7 +127,7 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#futureReservationsAggregatedListResponse for - * future resevation aggregated list response. + * 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 @@ -68,14 +69,14 @@ public final class FutureReservationsAggregatedListResponse extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public FutureReservationsAggregatedListResponse setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java index 967fa4b6712..26c435a877b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -56,8 +56,8 @@ public final class FutureReservationsListResponse extends com.google.api.client. } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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 @@ -74,14 +74,14 @@ public final class FutureReservationsListResponse extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,8 +144,8 @@ public FutureReservationsListResponse setItems(java.util.List } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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() { @@ -153,8 +153,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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) { @@ -186,7 +186,7 @@ public FutureReservationsListResponse setNextPageToken(java.lang.String nextPage } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +203,7 @@ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java new file mode 100644 index 00000000000..1e457d9c5ac --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.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 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 { + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map currentComponentVersions; + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map targetComponentVersions; + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @return value or {@code null} for none + */ + public java.util.Map getCurrentComponentVersions() { + return currentComponentVersions; + } + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @param currentComponentVersions currentComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { + this.currentComponentVersions = currentComponentVersions; + return this; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @return value or {@code null} for none + */ + public java.util.Map getTargetComponentVersions() { + return targetComponentVersions; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @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/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.java new file mode 100644 index 00000000000..812322f9c6d --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.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 GlobalListVmExtensionsResponse. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GlobalListVmExtensionsResponse extends com.google.api.client.json.GenericJson { + + /** + * 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. Unique identifier 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 VM extensions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List 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. Server-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. 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. 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 GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. A list of VM extensions. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. A list of VM extensions. + * @param items items or {@code null} for none + */ + public GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public GlobalListVmExtensionsResponse set(String fieldName, Object value) { + return (GlobalListVmExtensionsResponse) super.set(fieldName, value); + } + + @Override + public GlobalListVmExtensionsResponse clone() { + return (GlobalListVmExtensionsResponse) super.clone(); + } + + /** + * Output only. Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for GlobalListVmExtensionsResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java new file mode 100644 index 00000000000..a13fc0abe95 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.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 GlobalVmExtension. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GlobalVmExtension 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.util.List versions; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * @param name name or {@code null} for none + */ + public GlobalVmExtension setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.List getVersions() { + return versions; + } + + /** + * @param versions versions or {@code null} for none + */ + public GlobalVmExtension setVersions(java.util.List versions) { + this.versions = versions; + return this; + } + + @Override + public GlobalVmExtension set(String fieldName, Object value) { + return (GlobalVmExtension) super.set(fieldName, value); + } + + @Override + public GlobalVmExtension clone() { + return (GlobalVmExtension) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java index a571737cc93..b52d5081698 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,7 +52,8 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.Map extensionPolicies; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -67,7 +68,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.List instanceSelectors; /** - * [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for * globalVmExtensionPolicies. * The value may be {@code null}. */ @@ -104,36 +105,36 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private GlobalVmExtensionPolicyRolloutOperation rolloutOperation; /** - * [Output Only] The scoped resource status. It's only for tracking the purging status of the - * policy. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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] Update timestamp inRFC3339 text format. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,7 +142,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public GlobalVmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -186,7 +187,8 @@ public GlobalVmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public GlobalVmExtensionPolicyList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java index 6a4402d2d7f..84a7cc8f18f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java @@ -37,7 +37,7 @@ public final class GlobalVmExtensionPolicyRolloutOperation extends com.google.ap private GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput; /** - * [Output Only] The rollout status of the policy. + * Output only. [Output Only] The rollout status of the policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public GlobalVmExtensionPolicyRolloutOperation setRolloutInput(GlobalVmExtension } /** - * [Output Only] The rollout status of the policy. + * Output only. [Output Only] The rollout status of the policy. * @return value or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { @@ -69,7 +69,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { } /** - * [Output Only] The rollout status of the policy. + * Output only. [Output Only] The rollout status of the policy. * @param rolloutStatus rolloutStatus or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperation setRolloutStatus(GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java index b38f098b052..9a91e54bcec 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java @@ -30,12 +30,19 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { /** - * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a - * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the - * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the - * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If - * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the - * zonal policy was updated out of band by a zonal API, it's a conflict. + * 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 @@ -49,28 +56,41 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutInput extends c private java.lang.String name; /** - * Optional. Predefined rollout plan. + * 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 of the retry action. Only set it if this is a retry for an existing - * resource. This is for the user re-populate the resource without changes. An error will be - * returned if the retry_uuid is set but the resource get modified. + * 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. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a - * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the - * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the - * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If - * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the - * zonal policy was updated out of band by a zonal API, it's a conflict. + * 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() { @@ -78,12 +98,19 @@ public java.lang.String getConflictBehavior() { } /** - * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a - * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the - * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the - * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If - * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the - * zonal policy was updated out of band by a zonal API, it's a conflict. + * 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) { @@ -109,7 +136,9 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setName(java.lang.Str } /** - * Optional. Predefined rollout plan. + * 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() { @@ -117,7 +146,9 @@ public java.lang.String getPredefinedRolloutPlan() { } /** - * Optional. Predefined rollout plan. + * 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) { @@ -126,9 +157,13 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutP } /** - * Optional. The UUID of the retry action. Only set it if this is a retry for an existing - * resource. This is for the user re-populate the resource without changes. An error will be - * returned if the retry_uuid is set but the resource get modified. + * 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() { @@ -136,9 +171,13 @@ public java.lang.String getRetryUuid() { } /** - * Optional. The UUID of the retry action. Only set it if this is a retry for an existing - * resource. This is for the user re-populate the resource without changes. An error will be - * returned if the retry_uuid is set but the resource get modified. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java index a2f7a1ab433..4b905fd66b1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java @@ -30,24 +30,24 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] The last completed rollout resource. This field will not be populated until the - * first rollout is completed. + * 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] The current rollouts for the latest version of the resource. There should be only - * one current rollout, but for scalability, we make it repeated. + * 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() { @@ -55,8 +55,8 @@ public java.util.List currentRollouts) { @@ -65,8 +65,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setCurrentRollouts(j } /** - * [Output Only] The last completed rollout resource. This field will not be populated until the - * first rollout is completed. + * 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() { @@ -74,8 +74,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata getPr } /** - * [Output Only] The last completed rollout resource. This field will not be populated until the - * first rollout is completed. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java index 9f532f3b012..52e24e59562 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java @@ -30,28 +30,56 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { /** - * [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * 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] The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * 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] The overall state of the rollout. + * 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] The name of the rollout. Ex. projects//locations/global/rollouts/. + * 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() { @@ -59,7 +87,7 @@ public java.lang.String getRollout() { } /** - * [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * 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) { @@ -68,7 +96,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * [Output Only] The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * 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() { @@ -76,7 +105,8 @@ public java.lang.String getRolloutPlan() { } /** - * [Output Only] The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * 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) { @@ -85,7 +115,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * [Output Only] The overall state of the rollout. + * Output only. [Output Only] The overall state of the rollout. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -93,7 +123,7 @@ public java.lang.String getState() { } /** - * [Output Only] The overall state of the rollout. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java index d17716bd84f..03028ade01e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -30,7 +30,8 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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 @@ -45,14 +46,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String queryPath; /** - * [Output Only] The value of the requested queried path. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +67,15 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String variableKey; /** - * [Output Only] The value found for the requested key. + * 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] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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() { @@ -81,7 +83,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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) { @@ -109,7 +112,7 @@ public GuestAttributes setQueryPath(java.lang.String queryPath) { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @return value or {@code null} for none */ public GuestAttributesValue getQueryValue() { @@ -117,7 +120,7 @@ public GuestAttributesValue getQueryValue() { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @param queryValue queryValue or {@code null} for none */ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { @@ -126,7 +129,7 @@ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -160,7 +163,7 @@ public GuestAttributes setVariableKey(java.lang.String variableKey) { } /** - * [Output Only] The value found for the requested key. + * Output only. [Output Only] The value found for the requested key. * @return value or {@code null} for none */ public java.lang.String getVariableValue() { @@ -168,7 +171,7 @@ public java.lang.String getVariableValue() { } /** - * [Output Only] The value found for the requested key. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java index 8893abc41a5..f08342a3d02 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java @@ -30,15 +30,17 @@ public final class HaController extends com.google.api.client.json.GenericJson { /** - * Advanced configuration option. If specified, these Backend Services need to be pre-created and - * configured as managed. + * 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] Creation timestamp in RFC3339 text format. + * Output only. [Output Only] Creation timestamp in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,6 +53,14 @@ public final class HaController extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String description; + /** + * Capacity guarantee settings for the event of a failover. This determines whether capacity is + * guaranteed to be available in the zones used by the HaController. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failoverCapacity; + /** * Indicates how failover should be initiated. * The value may be {@code null}. @@ -59,7 +69,8 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.lang.String failoverInitiation; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -78,7 +89,7 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.lang.String instanceName; /** - * [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,8 +115,8 @@ public final class HaController extends com.google.api.client.json.GenericJson { private HaControllerNetworkingAutoConfiguration networkingAutoConfiguration; /** - * [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. + * 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 @@ -119,21 +130,21 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.lang.String secondaryZoneCapacity; /** - * [Output only] Server-defined URL for the resource. + * 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. + * 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] Status information for the HaController resource. + * Output only. [Output Only] Status information for the HaController resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -147,8 +158,10 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.util.Map zoneConfigurations; /** - * Advanced configuration option. If specified, these Backend Services need to be pre-created and - * configured as managed. + * 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() { @@ -156,8 +169,10 @@ public java.util.List getBackendServices() { } /** - * Advanced configuration option. If specified, these Backend Services need to be pre-created and - * configured as managed. + * 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) { @@ -166,7 +181,7 @@ public HaController setBackendServices(java.util.List backendS } /** - * [Output Only] Creation timestamp in RFC3339 text format. + * Output only. [Output Only] Creation timestamp in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -174,7 +189,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp in RFC3339 text format. + * 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) { @@ -199,6 +214,25 @@ public HaController setDescription(java.lang.String description) { return this; } + /** + * Capacity guarantee settings for the event of a failover. This determines whether capacity is + * guaranteed to be available in the zones used by the HaController. + * @return value or {@code null} for none + */ + public java.lang.String getFailoverCapacity() { + return failoverCapacity; + } + + /** + * Capacity guarantee settings for the event of a failover. This determines whether capacity is + * guaranteed to be available in the zones used by the HaController. + * @param failoverCapacity failoverCapacity or {@code null} for none + */ + public HaController setFailoverCapacity(java.lang.String failoverCapacity) { + this.failoverCapacity = failoverCapacity; + return this; + } + /** * Indicates how failover should be initiated. * @return value or {@code null} for none @@ -217,7 +251,8 @@ public HaController setFailoverInitiation(java.lang.String failoverInitiation) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -225,7 +260,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -261,7 +297,7 @@ public HaController setInstanceName(java.lang.String instanceName) { } /** - * [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -269,7 +305,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * 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) { @@ -322,8 +358,8 @@ public HaController setNetworkingAutoConfiguration(HaControllerNetworkingAutoCon } /** - * [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. + * 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() { @@ -331,8 +367,8 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -358,7 +394,7 @@ public HaController setSecondaryZoneCapacity(java.lang.String secondaryZoneCapac } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -366,7 +402,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for the resource. + * 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) { @@ -375,7 +411,7 @@ public HaController setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -383,7 +419,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -392,7 +428,7 @@ public HaController setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status information for the HaController resource. + * Output only. [Output Only] Status information for the HaController resource. * @return value or {@code null} for none */ public HaControllerStatus getStatus() { @@ -400,7 +436,7 @@ public HaControllerStatus getStatus() { } /** - * [Output Only] Status information for the HaController resource. + * Output only. [Output Only] Status information for the HaController resource. * @param status status or {@code null} for none */ public HaController setStatus(HaControllerStatus status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java index 1751530b51e..4c72b316e46 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java @@ -30,62 +30,62 @@ public final class HaControllerStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] Contains the details of the ongoing failover. This message is not displayed if - * failover is NOT in progress. + * 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] Contains the details of the last successful failover. + * 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] Indicates if the failover is currently in-progress. + * 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] 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. + * 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] 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. + * 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] Indicates if the resource is ready for initiating a failover to the secondary - * zone. + * 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] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * 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] Contains the details of the ongoing failover. This message is not displayed if - * failover is NOT in progress. + * 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() { @@ -93,8 +93,8 @@ public HaControllerStatusFailoverProgress getFailoverProgress() { } /** - * [Output Only] Contains the details of the ongoing failover. This message is not displayed if - * failover is NOT in progress. + * 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) { @@ -103,7 +103,7 @@ public HaControllerStatus setFailoverProgress(HaControllerStatusFailoverProgress } /** - * [Output Only] Contains the details of the last successful failover. + * Output only. [Output Only] Contains the details of the last successful failover. * @return value or {@code null} for none */ public HaControllerStatusFailoverProgress getLastFailoverInfo() { @@ -111,7 +111,7 @@ public HaControllerStatusFailoverProgress getLastFailoverInfo() { } /** - * [Output Only] Contains the details of the last successful failover. + * 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) { @@ -120,7 +120,7 @@ public HaControllerStatus setLastFailoverInfo(HaControllerStatusFailoverProgress } /** - * [Output Only] Indicates if the failover is currently in-progress. + * Output only. [Output Only] Indicates if the failover is currently in-progress. * @return value or {@code null} for none */ public java.lang.Boolean getOngoingFailover() { @@ -128,7 +128,7 @@ public java.lang.Boolean getOngoingFailover() { } /** - * [Output Only] Indicates if the failover is currently in-progress. + * 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) { @@ -137,8 +137,8 @@ public HaControllerStatus setOngoingFailover(java.lang.Boolean ongoingFailover) } /** - * [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. + * 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() { @@ -146,8 +146,8 @@ public java.lang.String getPrimaryInstance() { } /** - * [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. + * 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) { @@ -156,9 +156,9 @@ public HaControllerStatus setPrimaryInstance(java.lang.String primaryInstance) { } /** - * [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. + * 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() { @@ -166,9 +166,9 @@ public java.lang.String getPrimaryZone() { } /** - * [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. + * 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) { @@ -177,8 +177,8 @@ public HaControllerStatus setPrimaryZone(java.lang.String primaryZone) { } /** - * [Output Only] Indicates if the resource is ready for initiating a failover to the secondary - * zone. + * 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() { @@ -186,8 +186,8 @@ public java.lang.Boolean getReadyForFailover() { } /** - * [Output Only] Indicates if the resource is ready for initiating a failover to the secondary - * zone. + * 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) { @@ -196,7 +196,7 @@ public HaControllerStatus setReadyForFailover(java.lang.Boolean readyForFailover } /** - * [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * 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() { @@ -204,7 +204,7 @@ public java.util.Map getZoneStatus() { } /** - * [Output Only] Map of zone statuses. Key: name of the zone Value: 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java index b40f2428430..c374bc1dbd0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java @@ -30,38 +30,38 @@ public final class HaControllerStatusFailoverProgress extends com.google.api.client.json.GenericJson { /** - * [Output Only] Timestamp of the failover completion. Filled only if the failover is completed, - * in lastFailoverInfo. + * 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] Indicates if failover has been triggered automatically or manually. + * 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] Timestamp of the last failover trigger. + * 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] Contains details of the last failed failover. This field is filled only if the - * current failover is failing + * 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] Timestamp of the failover completion. Filled only if the failover is completed, - * in lastFailoverInfo. + * 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() { @@ -69,8 +69,8 @@ public String getFailoverCompleteTimestamp() { } /** - * [Output Only] Timestamp of the failover completion. Filled only if the failover is completed, - * in lastFailoverInfo. + * 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) { @@ -79,7 +79,7 @@ public HaControllerStatusFailoverProgress setFailoverCompleteTimestamp(String fa } /** - * [Output Only] Indicates if failover has been triggered automatically or manually. + * 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() { @@ -87,7 +87,7 @@ public java.lang.String getFailoverTrigger() { } /** - * [Output Only] Indicates if failover has been triggered automatically or manually. + * 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) { @@ -96,7 +96,7 @@ public HaControllerStatusFailoverProgress setFailoverTrigger(java.lang.String fa } /** - * [Output Only] Timestamp of the last failover trigger. + * Output only. [Output Only] Timestamp of the last failover trigger. * @return value or {@code null} for none */ public String getFailoverTriggerTimestamp() { @@ -104,7 +104,7 @@ public String getFailoverTriggerTimestamp() { } /** - * [Output Only] Timestamp of the last failover trigger. + * Output only. [Output Only] Timestamp of the last failover trigger. * @param failoverTriggerTimestamp failoverTriggerTimestamp or {@code null} for none */ public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(String failoverTriggerTimestamp) { @@ -113,8 +113,8 @@ public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(String fai } /** - * [Output Only] Contains details of the last failed failover. This field is filled only if the - * current failover is failing + * 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() { @@ -122,8 +122,8 @@ public HaControllerStatusFailoverProgressLastFailoverAttempt getLastFailoverAtte } /** - * [Output Only] Contains details of the last failed failover. This field is filled only if the - * current failover is failing + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java index ecfc53820b6..bcddc4e7c72 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java @@ -30,21 +30,21 @@ public final class HaControllerStatusFailoverProgressLastFailoverAttempt extends com.google.api.client.json.GenericJson { /** - * [Output Only] Encountered errors during the last attempt to process failover. + * 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] Show timestamp only if there is an error.RFC3339 text format. + * 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] Encountered errors during the last attempt to process failover. + * Output only. [Output Only] Encountered errors during the last attempt to process failover. * @return value or {@code null} for none */ public Errors getErrors() { @@ -52,7 +52,7 @@ public Errors getErrors() { } /** - * [Output Only] Encountered errors during the last attempt to process failover. + * 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) { @@ -61,7 +61,7 @@ public HaControllerStatusFailoverProgressLastFailoverAttempt setErrors(Errors er } /** - * [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * 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() { @@ -69,7 +69,7 @@ public String getTimestamp() { } /** - * [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * 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) { @@ -88,7 +88,7 @@ public HaControllerStatusFailoverProgressLastFailoverAttempt clone() { } /** - * [Output Only] Encountered errors during the last attempt to process failover. + * 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 { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java index 2132e73aec6..f10664639fc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java @@ -30,28 +30,28 @@ public final class HaControllerStatusZoneStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates if the zone is primary at this moment. + * 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] Indicates if the zone is ready for initiating a failover. + * 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] This field is filled only if the current operation is failing. + * 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] Indicates if the zone is primary at this moment. + * 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() { @@ -59,7 +59,7 @@ public java.lang.Boolean getIsPrimary() { } /** - * [Output Only] Indicates if the zone is primary at this moment. + * 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) { @@ -68,7 +68,7 @@ public HaControllerStatusZoneStatus setIsPrimary(java.lang.Boolean isPrimary) { } /** - * [Output Only] Indicates if the zone is ready for initiating a failover. + * 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() { @@ -76,7 +76,7 @@ public java.lang.Boolean getIsZoneReady() { } /** - * [Output Only] Indicates if the zone is ready for initiating a failover. + * 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) { @@ -85,7 +85,7 @@ public HaControllerStatusZoneStatus setIsZoneReady(java.lang.Boolean isZoneReady } /** - * [Output Only] This field is filled only if the current operation is failing. + * 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() { @@ -93,7 +93,7 @@ public HaControllerStatusZoneStatusLastError getLastError() { } /** - * [Output Only] This field is filled only if the current operation is failing. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java index e1199bd9461..79e49949e77 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java @@ -30,21 +30,21 @@ public final class HaControllerStatusZoneStatusLastError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Encountered errors. + * Output only. [Output Only] Encountered errors. * 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.RFC3339 text format. + * 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] Encountered errors. + * Output only. [Output Only] Encountered errors. * @return value or {@code null} for none */ public Errors getErrors() { @@ -52,7 +52,7 @@ public Errors getErrors() { } /** - * [Output Only] Encountered errors. + * Output only. [Output Only] Encountered errors. * @param errors errors or {@code null} for none */ public HaControllerStatusZoneStatusLastError setErrors(Errors errors) { @@ -61,7 +61,7 @@ public HaControllerStatusZoneStatusLastError setErrors(Errors errors) { } /** - * [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * 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() { @@ -69,7 +69,7 @@ public String getTimestamp() { } /** - * [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * 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) { @@ -88,7 +88,7 @@ public HaControllerStatusZoneStatusLastError clone() { } /** - * [Output Only] Encountered errors. + * Output only. [Output Only] Encountered errors. */ public static final class Errors extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java index d4cc4e13714..62efd68fe1b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java @@ -50,8 +50,8 @@ public final class HaControllersAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for lists of - * HaControllers. + * 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 @@ -68,14 +68,14 @@ public final class HaControllersAggregatedList extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public HaControllersAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HaControllersAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java index 6ad90876fcf..7bbb0930db2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java @@ -65,14 +65,14 @@ public final class HaControllersList extends com.google.api.client.json.GenericJ private java.lang.String nextPageToken; /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-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. + * Output only. [Output only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,7 +156,7 @@ public HaControllersList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public HaControllersList setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Unreachable resources. + * Output only. [Output only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output only] Unreachable resources. + * Output only. [Output only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HaControllersList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java index 9576c103227..5854e52ebe9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java @@ -34,7 +34,7 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,15 +72,16 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge private java.lang.Long healthyPercentThreshold; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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 @@ -121,30 +122,30 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge private java.lang.String policyType; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -152,7 +153,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -268,7 +269,8 @@ public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthy } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -276,7 +278,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -285,8 +288,8 @@ public HealthAggregationPolicy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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() { @@ -294,8 +297,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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) { @@ -381,9 +384,9 @@ public HealthAggregationPolicy setPolicyType(java.lang.String policyType) { } /** - * [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. + * 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() { @@ -391,9 +394,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -402,7 +405,7 @@ public HealthAggregationPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -410,7 +413,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -419,7 +422,7 @@ public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -427,7 +430,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java index f4afe8045ce..ef8315f5b60 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java @@ -50,7 +50,7 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,14 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public HealthAggregationPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthAggregationPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java index effd9cc356e..bf5d73570e9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java @@ -50,8 +50,8 @@ public final class HealthAggregationPolicyList extends com.google.api.client.jso } /** - * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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 @@ -116,8 +116,8 @@ public HealthAggregationPolicyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java index 248326b00eb..d11a186b351 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -30,7 +30,7 @@ public final class HealthCheckService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,14 +99,16 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.lang.String healthStatusAggregationStrategy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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 @@ -143,30 +145,30 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.util.List notificationEndpoints; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -174,7 +176,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -358,7 +360,8 @@ public HealthCheckService setHealthStatusAggregationStrategy(java.lang.String he } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -366,7 +369,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -375,7 +379,8 @@ public HealthCheckService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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() { @@ -383,7 +388,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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) { @@ -461,9 +467,9 @@ public HealthCheckService setNotificationEndpoints(java.util.List items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthCheckServiceAggregatedList extends com.google.api.clien private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthCheckServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthCheckServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java index e77f8500ff9..e80bc5dfb36 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -30,14 +30,14 @@ public final class HealthCheckServicesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,25 +50,25 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -99,7 +99,7 @@ public HealthCheckServicesList setId(java.lang.String id) { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -107,7 +107,7 @@ public java.util.List getItems() { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @param items items or {@code null} for none */ public HealthCheckServicesList setItems(java.util.List items) { @@ -116,8 +116,8 @@ public HealthCheckServicesList setItems(java.util.List items } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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) { @@ -135,10 +135,10 @@ public HealthCheckServicesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java index 18d8d8076ef..65b6d6c9236 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthChecksAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthChecksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java index ee2c30bd156..e645a8cd5d1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java @@ -33,7 +33,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +66,15 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.lang.String healthAggregationPolicy; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#healthSource for health sources. + * 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 @@ -91,23 +92,23 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -133,7 +134,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.util.List sources; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,7 +142,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { @@ -247,7 +248,8 @@ public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregatio } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -255,7 +257,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -264,7 +267,7 @@ public HealthSource setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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() { @@ -272,7 +275,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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) { @@ -306,9 +309,9 @@ public HealthSource setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -316,9 +319,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -327,7 +330,7 @@ public HealthSource setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -335,7 +338,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -344,7 +347,7 @@ public HealthSource setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -352,7 +355,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java index 9f69f1113b0..1ec07ab4b13 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthSourceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthSourceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java index f2077b0a56e..6bb05406796 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java @@ -50,7 +50,7 @@ public final class HealthSourceList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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 @@ -115,7 +115,7 @@ public HealthSourceList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java index cb4c89b509a..f7f6e7a324b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -117,7 +117,7 @@ public final class HttpHeaderMatch extends com.google.api.client.json.GenericJso * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -316,7 +316,7 @@ public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -334,7 +334,7 @@ public java.lang.String getRegexMatch() { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java index a3941ce3d4b..2d598fd0195 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -80,7 +80,8 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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 @@ -120,7 +121,7 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -249,7 +250,8 @@ public HttpHealthCheck setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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() { @@ -257,7 +259,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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) { @@ -344,7 +347,7 @@ public HttpHealthCheck setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -352,7 +355,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public HttpHealthCheck setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java index 1df376c1629..42f2fddf7a6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -50,7 +50,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HttpHealthCheckList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java index 5d4f2e2caf8..3393e1b57b1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -64,7 +64,7 @@ public final class HttpQueryParameterMatch extends com.google.api.client.json.Ge * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -156,7 +156,7 @@ public java.lang.String getRegexMatch() { * 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 orINTERNAL_MANAGED. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java index 406373c5fe0..0bdf5c09517 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class HttpRouteAction extends com.google.api.client.json.GenericJson { + /** + * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer + * schemes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private 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. @@ -54,6 +62,15 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private HttpFaultInjection faultInjectionPolicy; + /** + * Image optimization policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImageOptimizationPolicy imageOptimizationPolicy; + /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed @@ -133,6 +150,25 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.List weightedBackendServices; + /** + * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer + * schemes. + * @return value or {@code null} for none + */ + public CachePolicy getCachePolicy() { + return cachePolicy; + } + + /** + * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer + * schemes. + * @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. @@ -189,6 +225,27 @@ public HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjection return this; } + /** + * Image optimization policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * @return value or {@code null} for none + */ + public ImageOptimizationPolicy getImageOptimizationPolicy() { + return imageOptimizationPolicy; + } + + /** + * Image optimization policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * @param imageOptimizationPolicy imageOptimizationPolicy or {@code null} for none + */ + public HttpRouteAction setImageOptimizationPolicy(ImageOptimizationPolicy imageOptimizationPolicy) { + this.imageOptimizationPolicy = imageOptimizationPolicy; + return this; + } + /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java index 27d237f9ccf..cd8eebf2f5c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -96,14 +96,18 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic private java.util.List metadataFilters; /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * 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: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - 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 @@ -115,8 +119,10 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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 @@ -146,7 +152,7 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -283,14 +289,18 @@ public HttpRouteRuleMatch setMetadataFilters(java.util.List meta } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * 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: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - 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() { @@ -298,14 +308,18 @@ public java.lang.String getPathTemplateMatch() { } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * 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: * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * - 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 ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * 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) { @@ -319,8 +333,10 @@ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatc * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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() { @@ -333,8 +349,10 @@ public java.lang.String getPrefixMatch() { * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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) { @@ -373,7 +391,7 @@ public HttpRouteRuleMatch setQueryParameterMatches(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpsHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpsHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java index b89f492fb07..7eee1026876 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java @@ -46,14 +46,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long archiveSizeBytes; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +74,8 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long diskSizeGb; /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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 @@ -110,7 +110,8 @@ public final class Image extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -133,7 +134,7 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey imageEncryptionKey; /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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 @@ -244,21 +245,21 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -293,9 +294,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceDiskEncryptionKey; /** - * [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. + * 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 @@ -323,9 +324,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [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. + * 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 @@ -353,9 +354,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [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. + * 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 @@ -369,9 +370,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.String sourceType; /** - * [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. + * 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 @@ -384,17 +385,6 @@ public final class Image extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List storageLocations; - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - /** * The architecture of the image. Valid values are ARM64 or X86_64. * @return value or {@code null} for none @@ -430,7 +420,7 @@ public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -438,7 +428,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Image setCreationTimestamp(java.lang.String creationTimestamp) { @@ -447,7 +437,7 @@ public Image setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -455,7 +445,7 @@ public DeprecationStatus getDeprecated() { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @param deprecated deprecated or {@code null} for none */ public Image setDeprecated(DeprecationStatus deprecated) { @@ -498,8 +488,8 @@ public Image setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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() { @@ -507,8 +497,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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) { @@ -567,7 +557,8 @@ public Image setGuestOsFeatures(java.util.List guestOsFeatures) } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -575,7 +566,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -619,7 +611,7 @@ public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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() { @@ -627,7 +619,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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) { @@ -914,7 +906,7 @@ public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -922,7 +914,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -931,7 +923,7 @@ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -939,7 +931,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -948,7 +940,7 @@ public Image setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -956,7 +948,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Image setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1030,9 +1022,9 @@ public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncrypti } /** - * [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. + * 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() { @@ -1040,9 +1032,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1099,9 +1091,9 @@ public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryp } /** - * [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. + * 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() { @@ -1109,9 +1101,9 @@ public java.lang.String getSourceImageId() { } /** - * [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. + * 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) { @@ -1168,9 +1160,9 @@ public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshot } /** - * [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. + * 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() { @@ -1178,9 +1170,9 @@ public java.lang.String getSourceSnapshotId() { } /** - * [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. + * 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) { @@ -1206,9 +1198,9 @@ public Image setSourceType(java.lang.String sourceType) { } /** - * [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. + * 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() { @@ -1216,9 +1208,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1243,31 +1235,6 @@ public Image setStorageLocations(java.util.List storageLocatio return this; } - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @param userLicenses userLicenses or {@code null} for none - */ - public Image setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public Image set(String fieldName, Object value) { return (Image) super.set(fieldName, value); @@ -1301,10 +1268,13 @@ public static final class RawDisk extends com.google.api.client.json.GenericJson private java.lang.String sha1Checksum; /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 @@ -1355,10 +1325,13 @@ public RawDisk setSha1Checksum(java.lang.String sha1Checksum) { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 @@ -1370,10 +1343,13 @@ public java.lang.String getSource() { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java index a61438b1d5b..5dadcb0dd06 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -50,7 +50,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ImageList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ImageList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java new file mode 100644 index 00000000000..4f942439b3b --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for Cloud CDN's image optimization feature. This feature dynamically processes + * and delivers images from the network edge. Image Optimization is only available for Global + * External Application Load Balancers. Either Cloud CDN must be enabled on the backend service or + * backend bucket serving the route, or cache policy must be configured on the same route. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImageOptimizationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether to interpret query parameters for image optimization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String queryParameterInterpretation; + + /** + * Specifies whether to interpret query parameters for image optimization. + * @return value or {@code null} for none + */ + public java.lang.String getQueryParameterInterpretation() { + return queryParameterInterpretation; + } + + /** + * Specifies whether to interpret query parameters for image optimization. + * @param queryParameterInterpretation queryParameterInterpretation or {@code null} for none + */ + public ImageOptimizationPolicy setQueryParameterInterpretation(java.lang.String queryParameterInterpretation) { + this.queryParameterInterpretation = queryParameterInterpretation; + return this; + } + + @Override + public ImageOptimizationPolicy set(String fieldName, Object value) { + return (ImageOptimizationPolicy) super.set(fieldName, value); + } + + @Override + public ImageOptimizationPolicy clone() { + return (ImageOptimizationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java index 8d4975d6e7a..e15c382b178 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -30,18 +30,22 @@ public final class ImageParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java index cbfa16dcf8c..44f9c683399 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java @@ -55,14 +55,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ConfidentialInstanceConfig confidentialInstanceConfig; /** - * [Output Only] The CPU platform used by this instance. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,7 +146,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String hostname; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -187,7 +188,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String keyRevocationActionType; /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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 @@ -213,21 +214,21 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last start timestamp inRFC3339 text format. + * 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] Last stop timestamp inRFC3339 text format. + * 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] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -320,7 +321,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String postKeyRevocationActionType; /** - * Total amount of preserved state for SUSPENDED instances. Read-only in the api. + * Output only. Total amount of preserved state for SUSPENDED instances. Read-only in the api. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -349,22 +350,22 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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] Reserved for future use. + * 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] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -386,14 +387,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.List secureTags; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this 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. + * 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 @@ -431,14 +432,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy; /** - * Deprecating, please use shielded_instance_config. + * Output only. Deprecating, please use shielded_instance_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private ShieldedVmConfig shieldedVmConfig; /** - * Deprecating, please use shielded_instance_integrity_policy. + * Output only. Deprecating, please use shielded_instance_integrity_policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -459,24 +460,24 @@ public final class Instance extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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] 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. + * 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] An optional, human-readable explanation of the 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 @@ -493,8 +494,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Tags tags; /** - * [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. Specifies - * upcoming maintenance for the instance. + * Output only. [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. + * Specifies upcoming maintenance for the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -507,8 +508,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private WorkloadIdentityConfig workloadIdentityConfig; /** - * [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. + * 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 @@ -568,7 +569,7 @@ public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confide } /** - * [Output Only] The CPU platform used by this instance. + * Output only. [Output Only] The CPU platform used by this instance. * @return value or {@code null} for none */ public java.lang.String getCpuPlatform() { @@ -576,7 +577,7 @@ public java.lang.String getCpuPlatform() { } /** - * [Output Only] The CPU platform used by this instance. + * 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) { @@ -585,7 +586,7 @@ public Instance setCpuPlatform(java.lang.String cpuPlatform) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -593,7 +594,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Instance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -794,7 +795,8 @@ public Instance setHostname(java.lang.String hostname) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -802,7 +804,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -891,7 +894,7 @@ public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionT } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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() { @@ -899,7 +902,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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) { @@ -990,7 +993,7 @@ public Instance setLabels(java.util.Map labels) { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * Output only. [Output Only] Last start timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStartTimestamp() { @@ -998,7 +1001,7 @@ public java.lang.String getLastStartTimestamp() { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * 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) { @@ -1007,7 +1010,7 @@ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStopTimestamp() { @@ -1015,7 +1018,7 @@ public java.lang.String getLastStopTimestamp() { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * 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) { @@ -1024,7 +1027,7 @@ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastSuspendedTimestamp() { @@ -1032,7 +1035,7 @@ public java.lang.String getLastSuspendedTimestamp() { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * 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) { @@ -1240,7 +1243,7 @@ public Instance setPostKeyRevocationActionType(java.lang.String postKeyRevocatio } /** - * Total amount of preserved state for SUSPENDED instances. Read-only in the api. + * Output only. Total amount of preserved state for SUSPENDED instances. Read-only in the api. * @return value or {@code null} for none */ public java.lang.Long getPreservedStateSizeGb() { @@ -1248,7 +1251,7 @@ public java.lang.Long getPreservedStateSizeGb() { } /** - * Total amount of preserved state for SUSPENDED instances. Read-only in the api. + * Output only. Total amount of preserved state for SUSPENDED instances. Read-only in the api. * @param preservedStateSizeGb preservedStateSizeGb or {@code null} for none */ public Instance setPreservedStateSizeGb(java.lang.Long preservedStateSizeGb) { @@ -1310,8 +1313,8 @@ public Instance setResourcePolicies(java.util.List resourcePol } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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() { @@ -1319,8 +1322,8 @@ public ResourceStatus getResourceStatus() { } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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) { @@ -1329,7 +1332,7 @@ public Instance setResourceStatus(ResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -1337,7 +1340,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -1346,7 +1349,7 @@ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1354,7 +1357,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1399,7 +1402,7 @@ public Instance setSecureTags(java.util.List secureTags) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1407,7 +1410,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -1416,7 +1419,7 @@ public Instance setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1424,7 +1427,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Instance setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1507,7 +1510,7 @@ public Instance setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPoli } /** - * Deprecating, please use shielded_instance_config. + * Output only. Deprecating, please use shielded_instance_config. * @return value or {@code null} for none */ public ShieldedVmConfig getShieldedVmConfig() { @@ -1515,7 +1518,7 @@ public ShieldedVmConfig getShieldedVmConfig() { } /** - * Deprecating, please use shielded_instance_config. + * Output only. Deprecating, please use shielded_instance_config. * @param shieldedVmConfig shieldedVmConfig or {@code null} for none */ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { @@ -1524,7 +1527,7 @@ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { } /** - * Deprecating, please use shielded_instance_integrity_policy. + * Output only. Deprecating, please use shielded_instance_integrity_policy. * @return value or {@code null} for none */ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { @@ -1532,7 +1535,7 @@ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { } /** - * Deprecating, please use shielded_instance_integrity_policy. + * Output only. Deprecating, please use shielded_instance_integrity_policy. * @param shieldedVmIntegrityPolicy shieldedVmIntegrityPolicy or {@code null} for none */ public Instance setShieldedVmIntegrityPolicy(ShieldedVmIntegrityPolicy shieldedVmIntegrityPolicy) { @@ -1575,8 +1578,8 @@ public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceM } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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() { @@ -1584,8 +1587,8 @@ public java.lang.Boolean getStartRestricted() { } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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) { @@ -1594,9 +1597,9 @@ public Instance setStartRestricted(java.lang.Boolean startRestricted) { } /** - * [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. + * 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() { @@ -1604,9 +1607,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1615,7 +1618,7 @@ public Instance setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -1623,7 +1626,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { @@ -1655,8 +1658,8 @@ public Instance setTags(Tags tags) { } /** - * [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. Specifies - * upcoming maintenance for the instance. + * Output only. [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. + * Specifies upcoming maintenance for the instance. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -1664,8 +1667,8 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. Specifies - * upcoming maintenance for the instance. + * Output only. [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. + * Specifies upcoming maintenance for the instance. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public Instance setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { @@ -1689,8 +1692,8 @@ public Instance setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentit } /** - * [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. + * 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() { @@ -1698,8 +1701,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java index 8ace3b07ae4..e9839b02983 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -44,8 +44,8 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for aggregated lists of - * Instance resources. + * 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 @@ -62,14 +62,14 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java index a460f6a71e8..0802df8ace4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -30,21 +30,21 @@ public final class InstanceConsumptionData extends com.google.api.client.json.GenericJson { /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceConsumptionInfo consumptionInfo; /** - * Server-defined URL for the instance. + * 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; /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumptionInfo() { @@ -52,7 +52,7 @@ public InstanceConsumptionInfo getConsumptionInfo() { } /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @param consumptionInfo consumptionInfo or {@code null} for none */ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { @@ -61,7 +61,7 @@ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consum } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -69,7 +69,7 @@ public java.lang.String getInstance() { } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @param instance instance or {@code null} for none */ public InstanceConsumptionData setInstance(java.lang.String instance) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java index 9964f0ec7b8..045c36fe60e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -30,35 +30,35 @@ public final class InstanceConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * The number of virtual CPUs that are available to the instance. + * 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; /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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; /** - * The amount of physical memory available to the instance, defined in MiB. + * 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; /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * 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; /** - * The number of virtual CPUs that are available to the instance. + * 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() { @@ -66,7 +66,7 @@ public java.lang.Integer getGuestCpus() { } /** - * The number of virtual CPUs that are available to the instance. + * 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) { @@ -75,7 +75,7 @@ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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() { @@ -83,7 +83,7 @@ public java.lang.Integer getLocalSsdGb() { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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) { @@ -92,7 +92,7 @@ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * The amount of physical memory available to the instance, defined in MiB. + * 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() { @@ -100,7 +100,7 @@ public java.lang.Integer getMemoryMb() { } /** - * The amount of physical memory available to the instance, defined in MiB. + * 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) { @@ -109,7 +109,7 @@ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. * @return value or {@code null} for none */ public java.lang.Integer getMinNodeCpus() { @@ -117,7 +117,7 @@ public java.lang.Integer getMinNodeCpus() { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java index 95dd1ecb580..52702e2215c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -43,7 +43,8 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * 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 @@ -57,22 +58,24 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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] A unique identifier for this instance group, generated by the server. + * 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] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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 @@ -108,52 +111,54 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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] The URL for this instance group. The server generates this URL. + * 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] Server-defined URL for this resource with the resource id. + * 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 total number of instances in the instance group. + * 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] 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). + * 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] The URL of thezone where the instance group is located (for zonal resources). + * 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] The creation timestamp for this instance group inRFC3339 text format. + * 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() { @@ -161,7 +166,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * 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) { @@ -187,8 +193,8 @@ public InstanceGroup setDescription(java.lang.String description) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 */ @@ -197,8 +203,8 @@ public java.lang.String getFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 * @@ -209,8 +215,8 @@ public byte[] decodeFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 */ @@ -220,8 +226,8 @@ public InstanceGroup setFingerprint(java.lang.String fingerprint) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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() * *

      @@ -236,7 +242,8 @@ public InstanceGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * 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() { @@ -244,7 +251,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * 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) { @@ -253,7 +261,8 @@ public InstanceGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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() { @@ -261,7 +270,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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) { @@ -337,8 +347,8 @@ public InstanceGroup setNetwork(java.lang.String network) { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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() { @@ -346,8 +356,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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) { @@ -356,7 +366,7 @@ public InstanceGroup setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * 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() { @@ -364,7 +374,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * 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) { @@ -373,7 +383,7 @@ public InstanceGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -381,7 +391,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -390,7 +400,7 @@ public InstanceGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] The total number of instances in the instance group. + * 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() { @@ -398,7 +408,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of instances in the instance group. + * 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) { @@ -407,9 +417,9 @@ public InstanceGroup setSize(java.lang.Integer size) { } /** - * [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). + * 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() { @@ -417,9 +427,9 @@ public java.lang.String getSubnetwork() { } /** - * [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). + * 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) { @@ -428,7 +438,8 @@ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * 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() { @@ -436,7 +447,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java index 5d0836701f5..e5e5e311a40 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -30,7 +30,7 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -44,46 +44,46 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupAggregatedList for - * aggregated lists of instance groups. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [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. + * 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() { @@ -91,7 +91,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -117,8 +117,8 @@ public InstanceGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +193,7 @@ public InstanceGroupAggregatedList setUnreachables(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * 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) { @@ -135,10 +135,10 @@ public InstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -175,7 +175,7 @@ public InstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index ccd463be7fa..2c6d16b2442 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -66,15 +66,16 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String baseInstanceName; /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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. + * Output only. [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 @@ -115,7 +116,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String fingerprint; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 @@ -130,7 +132,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -154,8 +156,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String instanceTemplate; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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 @@ -200,8 +202,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerParams params; /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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 @@ -215,28 +217,29 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerResourcePolicies resourcePolicies; /** - * [Output Only] Reserved for future use. + * 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] Reserved for future use. + * 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] The URL for this managed instance group. The server defines this URL. + * Output only. [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; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -267,7 +270,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private StatefulPolicy statefulPolicy; /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -345,8 +348,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List versions; /** - * [Output Only] The URL of azone where the managed instance group is located (for zonal - * resources). + * Output only. [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 @@ -420,7 +423,8 @@ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceNam } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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() { @@ -428,7 +432,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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) { @@ -437,8 +442,8 @@ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimest } /** - * [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. + * Output only. [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() { @@ -446,8 +451,8 @@ public InstanceGroupManagerActionsSummary getCurrentActions() { } /** - * [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. + * Output only. [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) { @@ -572,7 +577,8 @@ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -580,7 +586,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 InstanceGroupManager setId(java.math.BigInteger id) { @@ -608,7 +615,7 @@ public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerIns } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { @@ -616,7 +623,7 @@ public java.lang.String getInstanceGroup() { } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { @@ -665,8 +672,8 @@ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplat } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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() { @@ -674,8 +681,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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) { @@ -775,8 +782,8 @@ public InstanceGroupManager setParams(InstanceGroupManagerParams params) { } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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() { @@ -784,8 +791,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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) { @@ -811,7 +818,7 @@ public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePoli } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -819,7 +826,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -828,7 +835,7 @@ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -836,7 +843,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -845,7 +852,8 @@ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [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() { @@ -853,7 +861,8 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [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) { @@ -862,7 +871,7 @@ public InstanceGroupManager setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -870,7 +879,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceGroupManager setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -936,7 +945,7 @@ public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerStatus getStatus() { @@ -944,7 +953,7 @@ public InstanceGroupManagerStatus getStatus() { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @param status status or {@code null} for none */ public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { @@ -1119,8 +1128,8 @@ public InstanceGroupManager setVersions(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. + * Output only. [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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [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. + * 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() { @@ -91,7 +92,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -117,8 +118,9 @@ public InstanceGroupManagerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +196,7 @@ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List it } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [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) { @@ -135,10 +135,10 @@ public InstanceGroupManagerList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupManagerList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupManagerList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java index 60357bf4cba..b449f96a27d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java @@ -30,18 +30,20 @@ public final class InstanceGroupManagerParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys - * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, - * seeManage tags for resources. + * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value + * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and + * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. For more information, seeManage tags for resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys - * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, - * seeManage tags for resources. + * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value + * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and + * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. For more information, seeManage tags for resources. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -49,9 +51,10 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys - * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, - * seeManage tags for resources. + * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value + * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and + * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. For more information, seeManage tags for resources. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceGroupManagerParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java index c0d722d928f..dd51ac0463d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -41,7 +41,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer count; /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +56,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String description; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 @@ -71,8 +73,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.util.List instances; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,8 +98,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private QueuingPolicy queuingPolicy; /** - * [Output Only] The URL of aregion where the resize request is located. Populated only for - * regional resize requests. + * Output only. [Output Only] The URL of aregion where the resize request is located. Populated + * only for regional resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -120,36 +122,36 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer resizeBy; /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [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. + * 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] Current state of the request. + * Output only. [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. + * Output only. [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 azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone where the resize request is located. Populated only + * for zonal resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -175,7 +177,8 @@ public InstanceGroupManagerResizeRequest setCount(java.lang.Integer count) { } /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -183,7 +186,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [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) { @@ -209,7 +213,8 @@ public InstanceGroupManagerResizeRequest setDescription(java.lang.String descrip } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -217,7 +222,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { @@ -247,8 +253,8 @@ public InstanceGroupManagerResizeRequest setInstances(java.util.List appliedAcceleratorTopologies; + + /** + * Output only. [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. + * Output only. [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] 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. + * Output only. [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. [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. + * Output only. [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. + * Output only. [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. + * Output only. [Output only] Status of all-instances configuration on the group. * @return value or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { @@ -85,7 +101,7 @@ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { } /** - * [Output only] Status of all-instances configuration on the group. + * Output only. [Output only] Status of all-instances configuration on the group. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { @@ -94,7 +110,26 @@ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStat } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [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. [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. [Output Only] The URL of theAutoscaler that targets this instance group manager. * @return value or {@code null} for none */ public java.lang.String getAutoscaler() { @@ -102,7 +137,7 @@ public java.lang.String getAutoscaler() { } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [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) { @@ -111,7 +146,7 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * [Output Only] The status of bulk instance operation. + * Output only. [Output Only] The status of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { @@ -119,7 +154,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation( } /** - * [Output Only] The status of bulk instance operation. + * Output only. [Output Only] The status of bulk instance operation. * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none */ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { @@ -128,11 +163,30 @@ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerS } /** - * [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. + * Output only. [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. [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. [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() { @@ -140,11 +194,11 @@ public java.lang.Boolean getIsStable() { } /** - * [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. + * Output only. [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) { @@ -153,7 +207,7 @@ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStateful getStateful() { @@ -161,7 +215,7 @@ public InstanceGroupManagerStatusStateful getStateful() { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @param stateful stateful or {@code null} for none */ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { @@ -170,8 +224,8 @@ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [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() { @@ -179,8 +233,8 @@ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java new file mode 100644 index 00000000000..26fa1838eb2 --- /dev/null +++ b/clients/google-api-services-compute/alpha/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. [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. [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. [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. [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. [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. [Output Only] The state of the accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [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. [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. [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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java new file mode 100644 index 00000000000..4846161c97c --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java @@ -0,0 +1,370 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by 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. [Output Only] Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. [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. [Output Only] Encountered errors. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. [Output Only] Encountered errors. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. [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. [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. [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(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors. + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * ErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java index e0e76dce377..3d76a225843 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -30,24 +30,24 @@ 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. + * Output only. [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. + * Output only. [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. + * Output only. [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() { @@ -55,8 +55,8 @@ public java.lang.String getCurrentRevision() { } /** - * [Output Only] Current all-instances configuration revision. This value is in RFC3339 text - * format. + * Output only. [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) { @@ -65,8 +65,8 @@ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [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() { @@ -74,8 +74,8 @@ public java.lang.Boolean getEffective() { } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java index 989340fa3df..365ad1b4b88 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -31,21 +31,21 @@ public final class InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { /** - * [Output Only] Informs whether bulk instance operation is in progress. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Informs whether bulk instance operation is in progress. * @return value or {@code null} for none */ public java.lang.Boolean getInProgress() { @@ -53,7 +53,7 @@ public java.lang.Boolean getInProgress() { } /** - * [Output Only] Informs whether bulk instance operation is in progress. + * Output only. [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) { @@ -62,7 +62,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.B } /** - * [Output Only] Information from the last progress check of bulk instance operation. + * Output only. [Output Only] Information from the last progress check of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { @@ -70,7 +70,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastP } /** - * [Output Only] Information from the last progress check of bulk instance operation. + * Output only. [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java index ecbde4accc4..a807d179547 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -30,22 +30,22 @@ public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { /** - * [Output Only] Errors encountered during bulk instance operation. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Errors encountered during bulk instance operation. * @return value or {@code null} for none */ public Error getError() { @@ -53,7 +53,7 @@ public Error getError() { } /** - * [Output Only] Errors encountered during bulk instance operation. + * Output only. [Output Only] Errors encountered during bulk instance operation. * @param error error or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { @@ -62,8 +62,8 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError } /** - * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. + * Output only. [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() { @@ -71,8 +71,8 @@ public String getTimestamp() { } /** - * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. + * Output only. [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) { @@ -91,7 +91,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() } /** - * [Output Only] Errors encountered during bulk instance operation. + * Output only. [Output Only] Errors encountered during bulk instance operation. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java new file mode 100644 index 00000000000..b83decbf8bf --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.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; + +/** + * 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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java index 9206c3f3286..1c67ad04c5b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -30,40 +30,40 @@ 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. + * Output only. [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] 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. This field is deprecated in favor of has_stateful_config. + * Output only. [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. This field is deprecated in favor of has_stateful_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isStateful; /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [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. + * Output only. [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() { @@ -71,11 +71,11 @@ public java.lang.Boolean getHasStatefulConfig() { } /** - * [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. + * Output only. [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) { @@ -84,11 +84,11 @@ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean } /** - * [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. This field is deprecated in favor of has_stateful_config. + * Output only. [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. This field is deprecated in favor of has_stateful_config. * @return value or {@code null} for none */ public java.lang.Boolean getIsStateful() { @@ -96,11 +96,11 @@ public java.lang.Boolean getIsStateful() { } /** - * [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. This field is deprecated in favor of has_stateful_config. + * Output only. [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. This field is deprecated in favor of has_stateful_config. * @param isStateful isStateful or {@code null} for none */ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStateful) { @@ -109,7 +109,7 @@ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStat } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { @@ -117,7 +117,7 @@ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfig } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @param perInstanceConfigs perInstanceConfigs or {@code null} for none */ public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java index cd4fcc7b0cd..0a11f261bbd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -30,16 +30,18 @@ public final class InstanceGroupManagerStatusStatefulPerInstanceConfigs extends com.google.api.client.json.GenericJson { /** - * 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. + * 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; /** - * 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. + * 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() { @@ -47,8 +49,9 @@ public java.lang.Boolean getAllEffective() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java index daa48f86a9a..47ab8a1d668 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -30,18 +30,18 @@ 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. + * Output only. [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. + * Output only. [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() { @@ -49,9 +49,9 @@ public java.lang.Boolean getIsReached() { } /** - * [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. + * Output only. [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java index 6c6818e78ac..5cc7e672182 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerUpdatePolicy extends com.google.api.client.json.GenericJson { + /** + * Whether the boot disk is allowed to be updated with restart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disruptionMode; + /** * 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 @@ -124,6 +131,23 @@ public final class InstanceGroupManagerUpdatePolicy extends com.google.api.clien @com.google.api.client.util.Key private java.lang.String type; + /** + * Whether the boot disk is allowed to be updated with restart. + * @return value or {@code null} for none + */ + public java.lang.String getDisruptionMode() { + return disruptionMode; + } + + /** + * Whether the boot disk is allowed to be updated with restart. + * @param disruptionMode disruptionMode or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setDisruptionMode(java.lang.String disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + /** * 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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java index e9c9cb6c5e8..cc379401820 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java @@ -37,6 +37,13 @@ public final class InstanceGroupManagersApplyUpdatesRequest extends com.google.a @com.google.api.client.util.Key private java.lang.Boolean allInstances; + /** + * Whether the boot disk is allowed to be updated with restart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disruptionMode; + /** * 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]. @@ -98,6 +105,23 @@ public InstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolea return this; } + /** + * Whether the boot disk is allowed to be updated with restart. + * @return value or {@code null} for none + */ + public java.lang.String getDisruptionMode() { + return disruptionMode; + } + + /** + * Whether the boot disk is allowed to be updated with restart. + * @param disruptionMode disruptionMode or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setDisruptionMode(java.lang.String disruptionMode) { + this.disruptionMode = disruptionMode; + 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]. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java new file mode 100644 index 00000000000..b71abcd8eef --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.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; + +/** + * InstanceGroupManagers.ConfigureAcceleratorTopologies + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagersConfigureAcceleratorTopologiesRequest extends com.google.api.client.json.GenericJson { + + /** + * Map of accelerator topologies that should have their state changed to the specified value. The + * key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyActions; + + /** + * Map of accelerator topologies that should have their state changed to the specified + * configuration. The map key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyConfigurations; + + /** + * Map of accelerator topologies that should have their state changed to the specified value. The + * key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyActions() { + return acceleratorTopologyActions; + } + + /** + * Map of accelerator topologies that should have their state changed to the specified value. The + * key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @param acceleratorTopologyActions acceleratorTopologyActions or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyActions(java.util.Map acceleratorTopologyActions) { + this.acceleratorTopologyActions = acceleratorTopologyActions; + return this; + } + + /** + * Map of accelerator topologies that should have their state changed to the specified + * configuration. The map key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyConfigurations() { + return acceleratorTopologyConfigurations; + } + + /** + * Map of accelerator topologies that should have their state changed to the specified + * configuration. The map key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @param acceleratorTopologyConfigurations acceleratorTopologyConfigurations or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyConfigurations(java.util.Map acceleratorTopologyConfigurations) { + this.acceleratorTopologyConfigurations = acceleratorTopologyConfigurations; + return this; + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest clone() { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java new file mode 100644 index 00000000000..b3540f47759 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.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; + +/** + * Configuration for a single accelerator 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 InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is + * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be + * provided on deactivating as well. This identifier is cleared on successful deform of a sub- + * slice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalId; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * @param action action or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is + * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be + * provided on deactivating as well. This identifier is cleared on successful deform of a sub- + * slice. + * @return value or {@code null} for none + */ + public java.lang.String getExternalId() { + return externalId; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is + * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be + * provided on deactivating as well. This identifier is cleared on successful deform of a sub- + * slice. + * @param externalId externalId or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setExternalId(java.lang.String externalId) { + this.externalId = externalId; + return this; + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration set(String fieldName, Object value) { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration clone() { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java index aabd38483fb..35e3248c950 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java @@ -36,6 +36,13 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.util.Map acceleratorTopologiesInfo; + /** + * URL to MMIG this MIG belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String multiMig; + /** * The accelerator topology information returned per id of the topology location. * @return value or {@code null} for none @@ -53,6 +60,23 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setAcceler return this; } + /** + * URL to MMIG this MIG belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getMultiMig() { + return multiMig; + } + + /** + * URL to MMIG this MIG belongs to. + * @param multiMig multiMig or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setMultiMig(java.lang.String multiMig) { + this.multiMig = multiMig; + return this; + } + @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java index 5a2343fe5ef..62245dff30e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java @@ -43,6 +43,26 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.lang.String acceleratorTopologyHealth; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instancesHealth; + + /** + * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level + * topology + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + /** * Topology in the format of: "16x16", "4x4x4", etc. * @return value or {@code null} for none @@ -75,6 +95,55 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerator return this; } + /** + * @return value or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState getAcceleratorTopologyState() { + return acceleratorTopologyState; + } + + /** + * @param acceleratorTopologyState acceleratorTopologyState or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setAcceleratorTopologyState(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState) { + this.acceleratorTopologyState = acceleratorTopologyState; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getInstancesHealth() { + return instancesHealth; + } + + /** + * @param instancesHealth instancesHealth or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setInstancesHealth(java.lang.String instancesHealth) { + this.instancesHealth = instancesHealth; + return this; + } + + /** + * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level + * topology + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level + * topology + * @param parent parent or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java new file mode 100644 index 00000000000..7920e4ab13b --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.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; + +/** + * Specifies the 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 InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentState; + + /** + * Reason why the topology state change failed + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Timestamp when the last error happened + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String errorTimestamp; + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating + * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared + * on successful deform of a sub-slice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalId; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getCurrentState() { + return currentState; + } + + /** + * @param currentState currentState or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setCurrentState(java.lang.String currentState) { + this.currentState = currentState; + return this; + } + + /** + * Reason why the topology state change failed + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Reason why the topology state change failed + * @param error error or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setError(Error error) { + this.error = error; + return this; + } + + /** + * Timestamp when the last error happened + * @return value or {@code null} for none + */ + public String getErrorTimestamp() { + return errorTimestamp; + } + + /** + * Timestamp when the last error happened + * @param errorTimestamp errorTimestamp or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setErrorTimestamp(String errorTimestamp) { + this.errorTimestamp = errorTimestamp; + return this; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating + * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared + * on successful deform of a sub-slice. + * @return value or {@code null} for none + */ + public java.lang.String getExternalId() { + return externalId; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating + * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared + * on successful deform of a sub-slice. + * @param externalId externalId or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setExternalId(java.lang.String externalId) { + this.externalId = externalId; + return this; + } + + @Override + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState set(String fieldName, Object value) { + return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState clone() { + return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.clone(); + } + + /** + * Reason why the topology state change failed + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop + * ologyStateErrorErrors. + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop + * ologyStateErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java index 350007eb424..f00dea2d9f0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [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 thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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. + * Output only. [Output Only] The list of errors of the managed instance group. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -55,7 +55,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListErrorsResponse setItems(java.util.List managedInstances; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 instances in the managed instance group. + * 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() { @@ -55,7 +55,7 @@ public java.util.List getManagedInstances() { } /** - * [Output Only] The list of instances in the managed instance group. + * 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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(jav } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -75,10 +75,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java index 6e5441c60d9..39f9310f8a1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -30,31 +30,31 @@ public final class InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of PerInstanceConfig. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -62,7 +62,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { @@ -71,10 +71,10 @@ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List

      getInstanceGroupManagers() { @@ -61,8 +61,8 @@ public java.util.List getInstanceGroupManagers() { } /** - * [Output Only] The list of managed instance groups that are contained in the specified project - * and zone. + * Output only. [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) { @@ -71,8 +71,8 @@ public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupsListInstances for the - * list of instances in the specified instance group. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -84,7 +85,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -110,8 +111,9 @@ public InstanceGroupsListInstances setItems(java.util.List getInstanceGroups() { @@ -59,7 +59,7 @@ public java.util.List getInstanceGroups() { } /** - * [Output Only] The list ofinstance groups that are contained in this scope. + * 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) { @@ -68,8 +68,8 @@ public InstanceGroupsScopedList setInstanceGroups(java.util.List } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * 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() { @@ -77,8 +77,8 @@ public Warning getWarning() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * 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) { @@ -97,8 +97,8 @@ public InstanceGroupsScopedList clone() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list is - * empty. + * 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 { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java index e04d46dd714..52708ff7c7d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -50,7 +50,8 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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 @@ -67,7 +68,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InstanceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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) { @@ -155,7 +158,7 @@ public InstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java index 77d1bf083d9..0a26dcf6469 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -44,8 +44,8 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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 @@ -62,7 +62,7 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,8 +110,8 @@ public InstanceListReferrers setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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() { @@ -119,8 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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) { @@ -152,7 +152,7 @@ public InstanceListReferrers setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -160,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index ffd6e4dfa37..7d14a73c218 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,29 +30,30 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Contents of the error. + * Output only. [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. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -60,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * [Output Only] Contents of the error. + * Output only. [Output Only] Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -69,8 +70,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * [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. + * Output only. [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() { @@ -78,8 +79,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * [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. + * Output only. [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) { @@ -88,7 +89,8 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [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() { @@ -96,7 +98,8 @@ public java.lang.String getTimestamp() { } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index c0704e627c8..f92d0a732ed 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ 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: + * Output only. [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. + * Output only. [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. + * Output only. [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: + * Output only. [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() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * [Output Only] Action that managed instance group was executing on the instance when the error - * occurred. Possible values: + * Output only. [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) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [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() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [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) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * [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. + * Output only. [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() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * [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. + * Output only. [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 73b93956f78..3006dd39ef3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Error code. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * [Output Only] Error code. + * Output only. [Output Only] Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java index 95781dfac53..63c2e3a2f6b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -37,9 +37,11 @@ public final class InstanceParams extends com.google.api.client.json.GenericJson private Duration requestValidForDuration; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 @@ -63,9 +65,11 @@ public InstanceParams setRequestValidForDuration(Duration requestValidForDuratio } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -73,9 +77,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java index e59d0fce5aa..1b575f74844 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -201,9 +201,10 @@ public final class InstanceProperties extends com.google.api.client.json.Generic private ReservationAffinity reservationAffinity; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -656,9 +657,10 @@ public InstanceProperties setReservationAffinity(ReservationAffinity reservation } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -666,9 +668,10 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java index 14ad4679fa3..279a076dd23 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -52,7 +52,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private java.lang.String fingerprint; /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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 @@ -66,8 +67,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private InstanceSettingsMetadata metadata; /** - * [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. + * 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 @@ -160,7 +161,8 @@ public InstanceSettings encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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() { @@ -168,7 +170,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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) { @@ -194,8 +197,8 @@ public InstanceSettings setMetadata(InstanceSettingsMetadata metadata) { } /** - * [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. + * 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() { @@ -203,8 +206,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java index 41d708caacc..560dee51139 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -37,7 +37,7 @@ public final class InstanceSettingsMetadata extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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 @@ -61,7 +61,7 @@ public InstanceSettingsMetadata setItems(java.util.Map } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java index af584b235ce..9baaf0cf1f2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -44,7 +44,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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 @@ -58,16 +59,16 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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 @@ -92,22 +93,22 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private InstanceProperties properties; /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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] The URL for this instance template. The server defines this URL. + * 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; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -131,7 +132,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private SourceInstanceParams sourceInstanceParams; /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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() { @@ -139,7 +141,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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) { @@ -165,8 +168,8 @@ public InstanceTemplate setDescription(java.lang.String description) { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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() { @@ -174,8 +177,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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) { @@ -184,8 +187,8 @@ public InstanceTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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() { @@ -193,8 +196,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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) { @@ -245,8 +248,8 @@ public InstanceTemplate setProperties(InstanceProperties properties) { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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() { @@ -254,8 +257,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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) { @@ -264,7 +267,7 @@ public InstanceTemplate setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * 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() { @@ -272,7 +275,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * 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) { @@ -281,7 +284,7 @@ public InstanceTemplate setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -289,7 +292,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceTemplate setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java index a493fec52ef..df3fbf15617 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -44,7 +44,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public InstanceTemplateAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * 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) { @@ -158,7 +158,7 @@ public InstanceTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java index c697b45db10..0337c8ee34c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -30,28 +30,28 @@ public final class InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { /** - * [Output Only] The URL of the instance. + * 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] The named ports that belong to this instance group. + * 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] The status of the instance. + * 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] The URL of the instance. + * Output only. [Output Only] The URL of the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -59,7 +59,7 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the 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) { @@ -68,7 +68,7 @@ public InstanceWithNamedPorts setInstance(java.lang.String instance) { } /** - * [Output Only] The named ports that belong to this instance group. + * 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() { @@ -76,7 +76,7 @@ public java.util.List getNamedPorts() { } /** - * [Output Only] The named ports that belong to this instance group. + * 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) { @@ -85,7 +85,7 @@ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -93,7 +93,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @param status status or {@code null} for none */ public InstanceWithNamedPorts setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index d82f3df25a9..4ef7f976b66 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the instance. + * 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 @@ -58,7 +58,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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 @@ -80,14 +81,14 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * 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] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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}. */ @@ -95,8 +96,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy private java.lang.String type; /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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() { @@ -104,8 +105,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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) { @@ -114,7 +115,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayN } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -122,7 +123,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -131,7 +132,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(jav } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * 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() { @@ -139,7 +140,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * 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) { @@ -148,7 +149,8 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMi } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -156,7 +158,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -186,7 +189,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(ja } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -194,7 +197,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * 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) { @@ -203,7 +206,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortNam } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ @@ -212,7 +215,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index 3d5173fb948..e9a6ca5f849 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,7 +30,8 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * The unique identifier for the security policy. This identifier is defined by the server. + * Output only. The unique identifier for the security policy. 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 @@ -44,7 +45,8 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPol private java.util.List rules; /** - * The unique identifier for the security policy. This identifier is defined by the server. + * Output only. The unique identifier for the security policy. This identifier is defined by the + * server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -52,7 +54,8 @@ public java.math.BigInteger getId() { } /** - * The unique identifier for the security policy. This identifier is defined by the server. + * Output only. The unique identifier for the security policy. This identifier is defined by the + * server. * @param id id or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java index ec95212a8d5..927c0fff327 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -32,14 +32,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,7 +54,7 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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 @@ -68,15 +69,16 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean guestFlush; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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 @@ -115,15 +117,24 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [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. + * 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] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,21 +148,21 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -172,50 +183,51 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String sourceDisk; /** - * [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. + * 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] 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. + * 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] 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. + * 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] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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] 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. + * 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] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -223,7 +235,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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) { @@ -232,7 +245,7 @@ public InstantSnapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -240,7 +253,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,7 +279,7 @@ public InstantSnapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -274,7 +287,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * 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) { @@ -302,7 +315,8 @@ public InstantSnapshot setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -310,7 +324,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -319,8 +334,8 @@ public InstantSnapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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() { @@ -328,8 +343,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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) { @@ -451,8 +466,28 @@ public InstantSnapshot setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -460,8 +495,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -470,7 +506,7 @@ public InstantSnapshot setRegion(java.lang.String region) { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @return value or {@code null} for none */ public InstantSnapshotResourceStatus getResourceStatus() { @@ -478,7 +514,7 @@ public InstantSnapshotResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @param resourceStatus resourceStatus or {@code null} for none */ public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { @@ -504,7 +540,7 @@ public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -512,7 +548,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -521,7 +557,7 @@ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -529,7 +565,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -538,7 +574,7 @@ public InstantSnapshot setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -546,7 +582,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -586,9 +622,9 @@ public InstantSnapshot setSourceDisk(java.lang.String sourceDisk) { } /** - * [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. + * 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() { @@ -596,9 +632,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -607,9 +643,9 @@ public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { } /** - * [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. + * 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() { @@ -617,9 +653,9 @@ public java.lang.String getSourceInstantSnapshotGroup() { } /** - * [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. + * 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) { @@ -628,9 +664,9 @@ public InstantSnapshot setSourceInstantSnapshotGroup(java.lang.String sourceInst } /** - * [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. + * 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() { @@ -638,9 +674,9 @@ public java.lang.String getSourceInstantSnapshotGroupId() { } /** - * [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. + * 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) { @@ -649,8 +685,8 @@ public InstantSnapshot setSourceInstantSnapshotGroupId(java.lang.String sourceIn } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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() { @@ -658,8 +694,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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) { @@ -668,8 +704,8 @@ public InstantSnapshot setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -677,8 +713,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java index 142111e4ee5..a2dec556c4a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -44,8 +44,8 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated - * lists of instantSnapshots. + * 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 @@ -62,14 +62,14 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstantSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstantSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java index 7bb49dd2dd7..cc0835f0895 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java @@ -33,7 +33,7 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -48,15 +48,16 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup - * resources. + * 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 @@ -74,8 +75,9 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private java.lang.String name; /** - * [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. + * 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 @@ -88,14 +90,14 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private InstantSnapshotGroupResourceStatus resourceStatus; /** - * [Output Only] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -108,22 +110,23 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private java.lang.String sourceConsistencyGroup; /** - * [Output Only] + * Output only. [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -131,7 +134,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshotGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -159,7 +162,8 @@ public InstantSnapshotGroup setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -167,7 +171,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -176,8 +181,8 @@ public InstantSnapshotGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup - * resources. + * 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() { @@ -185,8 +190,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup - * resources. + * 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) { @@ -220,8 +225,9 @@ public InstantSnapshotGroup setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -229,8 +235,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -254,7 +261,7 @@ public InstantSnapshotGroup setResourceStatus(InstantSnapshotGroupResourceStatus } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -262,7 +269,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -271,7 +278,7 @@ public InstantSnapshotGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -279,7 +286,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -303,7 +310,7 @@ public InstantSnapshotGroup setSourceConsistencyGroup(java.lang.String sourceCon } /** - * [Output Only] + * Output only. [Output Only] * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -311,7 +318,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] + * Output only. [Output Only] * @param status status or {@code null} for none */ public InstantSnapshotGroup setStatus(java.lang.String status) { @@ -320,8 +327,9 @@ public InstantSnapshotGroup setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -329,8 +337,9 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java index 2479e6b5506..44d3387e7de 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java @@ -30,21 +30,21 @@ public final class InstantSnapshotGroupResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] + * Output only. [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private String consistencyMembershipResolutionTime; /** - * [Output Only] + * Output only. [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private InstantSnapshotGroupSourceInfo sourceInfo; /** - * [Output Only] + * Output only. [Output Only] * @return value or {@code null} for none */ public String getConsistencyMembershipResolutionTime() { @@ -52,7 +52,7 @@ public String getConsistencyMembershipResolutionTime() { } /** - * [Output Only] + * Output only. [Output Only] * @param consistencyMembershipResolutionTime consistencyMembershipResolutionTime or {@code null} for none */ public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(String consistencyMembershipResolutionTime) { @@ -61,7 +61,7 @@ public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime } /** - * [Output Only] + * Output only. [Output Only] * @return value or {@code null} for none */ public InstantSnapshotGroupSourceInfo getSourceInfo() { @@ -69,7 +69,7 @@ public InstantSnapshotGroupSourceInfo getSourceInfo() { } /** - * [Output Only] + * Output only. [Output Only] * @param sourceInfo sourceInfo or {@code null} for none */ public InstantSnapshotGroupResourceStatus setSourceInfo(InstantSnapshotGroupSourceInfo sourceInfo) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java index da8ce7d29fa..455da93a46a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -50,7 +50,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public InstantSnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public InstantSnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public InstantSnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java index 238d4ea66c5..ffc13d222d2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -70,14 +70,15 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.util.List availableFeatures; /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,46 +100,55 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [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] IP address configured on the Google side of the Interconnect link. This can be - * used only for ping tests. + * 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] Google reference ID to be used when raising support tickets with Google or - * otherwise to debug backend connectivity issues. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * 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] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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 @@ -156,7 +166,7 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String interconnectType; /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,9 +253,9 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String nocContactEmail; /** - * [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. + * 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 @@ -264,16 +274,16 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private InterconnectParams params; /** - * [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. + * 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] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -308,49 +318,48 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.Integer requestedLinkCount; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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. + * 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 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. + * 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; /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String subzone; /** - * [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. + * 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 @@ -443,7 +452,8 @@ public Interconnect setAvailableFeatures(java.util.List availa } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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() { @@ -451,7 +461,8 @@ public java.util.List getCircuitInfos() { } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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) { @@ -460,7 +471,7 @@ public Interconnect setCircuitInfos(java.util.List circ } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -468,7 +479,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { @@ -513,7 +524,26 @@ public Interconnect setDescription(java.lang.String description) { } /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [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. [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() { @@ -521,7 +551,7 @@ public java.util.List getExpectedOutages() { } /** - * [Output Only] A list of outages expected for this Interconnect. + * 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) { @@ -530,8 +560,8 @@ public Interconnect setExpectedOutages(java.util.List getInterconnectAttachments() { @@ -594,8 +626,8 @@ public java.util.List getInterconnectAttachments() { } /** - * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * 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) { @@ -604,8 +636,8 @@ public Interconnect setInterconnectAttachments(java.util.List } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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() { @@ -613,8 +645,8 @@ public java.util.List getInterconnectGroups() { } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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) { @@ -648,7 +680,7 @@ public Interconnect setInterconnectType(java.lang.String interconnectType) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -656,7 +688,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * 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) { @@ -889,9 +921,9 @@ public Interconnect setNocContactEmail(java.lang.String nocContactEmail) { } /** - * [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. + * 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 @@ -903,9 +935,9 @@ public java.lang.String getOperationalStatus() { } /** - * [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. + * 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 @@ -937,9 +969,9 @@ public Interconnect setParams(InterconnectParams params) { } /** - * [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. + * 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() { @@ -947,9 +979,9 @@ public java.lang.String getPeerIpAddress() { } /** - * [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. + * 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) { @@ -958,7 +990,7 @@ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * @return value or {@code null} for none */ public java.lang.Integer getProvisionedLinkCount() { @@ -966,7 +998,7 @@ public java.lang.Integer getProvisionedLinkCount() { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * 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) { @@ -1040,7 +1072,7 @@ public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1048,7 +1080,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1057,7 +1089,7 @@ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1065,7 +1097,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -1074,7 +1106,7 @@ public Interconnect setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1082,7 +1114,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [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) { @@ -1091,12 +1123,12 @@ public Interconnect setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [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. + * 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() { @@ -1104,12 +1136,12 @@ public java.lang.String getState() { } /** - * [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. + * 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) { @@ -1118,8 +1150,7 @@ public Interconnect setState(java.lang.String state) { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @return value or {@code null} for none */ public java.lang.String getSubzone() { @@ -1127,8 +1158,7 @@ public java.lang.String getSubzone() { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @param subzone subzone or {@code null} for none */ public Interconnect setSubzone(java.lang.String subzone) { @@ -1137,8 +1167,8 @@ public Interconnect setSubzone(java.lang.String subzone) { } /** - * [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. + * 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() { @@ -1146,8 +1176,8 @@ public java.util.List getWireGroups() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index cc66e490e18..735ec2b43fc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -41,7 +41,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.Boolean adminEnabled; /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,16 +119,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List candidateSubnets; /** - * [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * 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] IPv6 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * 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 @@ -142,31 +142,31 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String cloudRouterIpv6InterfaceId; /** - * [Output Only] Constraints for this attachment, if any. The attachment does not work if these - * constraints are not met. + * 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] Creation timestamp inRFC3339 text format. + * 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] IPv4 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * 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] IPv6 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * 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 @@ -180,9 +180,9 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String customerRouterIpv6InterfaceId; /** - * [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. + * 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 @@ -224,15 +224,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String encryption; /** - * [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. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -262,8 +263,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List ipsecInternalAddresses; /** - * [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect - * attachments. + * 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 @@ -330,10 +331,10 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String name; /** - * [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. + * 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 @@ -374,25 +375,25 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private InterconnectAttachmentPartnerMetadata partnerMetadata; /** - * [Output Only] Information specific to an InterconnectAttachment. This property is populated if - * the interconnect that this is attached to is of type DEDICATED. + * 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] 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. + * 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] If the attachment is on a Cross-Cloud Interconnect connection, this field - * contains the interconnect's remote location service provider. Example values: "Amazon Web + * 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 @@ -412,21 +413,21 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String router; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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. + * 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 @@ -444,19 +445,19 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String stackType; /** - * [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. + * 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 @@ -515,7 +516,7 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * @return value or {@code null} for none */ public java.lang.String getAttachmentGroup() { @@ -523,7 +524,7 @@ public java.lang.String getAttachmentGroup() { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * 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) { @@ -539,7 +540,7 @@ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGrou * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -554,7 +555,7 @@ public java.lang.String getBandwidth() { * 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 + * 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) { @@ -695,8 +696,8 @@ public InterconnectAttachment setCandidateSubnets(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList for - * aggregated lists of interconnect attachments. + * 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 @@ -62,14 +62,14 @@ public final class InterconnectAttachmentAggregatedList extends com.google.api.c private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InterconnectAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java index e646f684b49..1988be83c63 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -30,8 +30,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.google.api.client.json.GenericJson { /** - * [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, + * 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 @@ -45,9 +45,10 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.lang.String bgpMd5; /** - * [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. + * 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. @@ -57,8 +58,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.util.List bgpPeerAsnRanges; /** - * [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, + * 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 @@ -73,8 +74,8 @@ public java.lang.String getBgpMd5() { } /** - * [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, + * 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 @@ -90,9 +91,10 @@ public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String } /** - * [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. + * 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. @@ -103,9 +105,10 @@ public java.util.List metros; /** - * [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. + * 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] 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. + * 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] URLs of any particular Attachments to explain this blocker in more detail. + * 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() { @@ -94,7 +97,8 @@ public java.util.List getAttachments() { } /** - * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * 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) { @@ -118,8 +122,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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() { @@ -127,8 +131,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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) { @@ -137,8 +141,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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() { @@ -146,8 +150,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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) { @@ -156,8 +160,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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 + * 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 */ @@ -166,8 +170,8 @@ public java.util.List getMetros() { } /** - * [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 + * 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 */ @@ -177,9 +181,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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. + * 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() { @@ -187,9 +191,9 @@ public java.util.List getRegions() { } /** - * [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. + * 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) { @@ -198,8 +202,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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. + * 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() { @@ -207,8 +212,9 @@ public java.util.List getZones() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java index f267df5464a..ac31099ab68 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -36,7 +36,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegion extends com private java.util.List metros; /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,7 @@ public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.Lis } /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -66,7 +66,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of a region, like "us-central1". + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java index bba3ca5148d..45ba8bbc924 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -36,8 +36,8 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetro extend private java.util.List facilities; /** - * [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. + * 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 @@ -59,8 +59,8 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java } /** - * [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. + * 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() { @@ -68,8 +68,8 @@ public java.lang.String getMetro() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java index 41cf84fc4f2..c0d019c94e5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -30,7 +30,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilit private java.util.List zones; /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -51,7 +51,7 @@ public java.lang.String getFacility() { } /** - * [Output Only] The name of a facility, like "iad-1234". + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java index aa732b0c6b9..51dea9c5bf9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -31,23 +31,23 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] The name of a zone, either "zone1" or "zone2". + * 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] 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. + * 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() { @@ -55,8 +55,8 @@ public java.util.List getAttachments() { } /** - * [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. + * 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) { @@ -65,7 +65,7 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAtt } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * 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() { @@ -73,7 +73,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java index c7df0825b03..a7295c49358 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java @@ -46,7 +46,7 @@ public final class InterconnectAttachmentGroupsCreateMembersInterconnectAttachme * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -332,7 +332,7 @@ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setA * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -347,7 +347,7 @@ public java.lang.String getBandwidth() { * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @param bandwidth bandwidth or {@code null} for none */ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setBandwidth(java.lang.String bandwidth) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java index 79f57e9c00f..887526bd499 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectAttachmentGroupsListResponse extends com.google.a private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String sel } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java index f1ab8505df3..5789be05d78 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -42,7 +42,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupConfigured configured; /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupIntent intent; /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +92,7 @@ public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectA } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -100,7 +100,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -124,7 +124,7 @@ public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttac } /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * @return value or {@code null} for none */ public InterconnectAttachmentGroupConfigured getOperational() { @@ -132,7 +132,7 @@ public InterconnectAttachmentGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Attachments. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java index 6bf525bd03e..3122c881cc7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -30,39 +30,39 @@ public final class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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; /** - * The URL of the Attachment being described. + * 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; /** - * 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. + * 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; /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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; /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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) { @@ -80,7 +80,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEna } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @return value or {@code null} for none */ public java.lang.String getAttachment() { @@ -88,7 +88,7 @@ public java.lang.String getAttachment() { } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @param attachment attachment or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { @@ -97,9 +97,9 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachme } /** - * 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. + * 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() { @@ -107,9 +107,9 @@ public java.lang.String getIsActive() { } /** - * 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. + * 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) { @@ -118,7 +118,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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() { @@ -126,7 +126,7 @@ public java.lang.String getStatus() { } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java index 136a013f418..d2a89e3a68e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -50,8 +50,8 @@ public final class InterconnectAttachmentList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of - * interconnect attachments. + * 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 @@ -68,7 +68,7 @@ public final class InterconnectAttachmentList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectAttachmentList setItems(java.util.List interconnects; /** - * [Output Only] Type of the resource. Always compute#InterconnectGroup + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class InterconnectGroup extends com.google.api.client.json.GenericJ private InterconnectGroupPhysicalStructure physicalStructure; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -188,8 +188,8 @@ public InterconnectGroup setEtag(java.lang.String etag) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -197,8 +197,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -245,7 +245,7 @@ public InterconnectGroup setInterconnects(java.util.Map facilities; /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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] 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. + * 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] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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 @@ -100,8 +100,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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() { @@ -109,8 +109,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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) { @@ -119,8 +119,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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() { @@ -128,8 +128,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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) { @@ -138,7 +138,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * 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 */ @@ -147,7 +147,7 @@ public java.util.List getFacilities() { } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * 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 */ @@ -157,7 +157,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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() { @@ -165,7 +165,7 @@ public java.util.List getInterconnects() { } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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) { @@ -174,9 +174,9 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [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. + * 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() { @@ -184,9 +184,9 @@ public java.util.List getMetros() { } /** - * [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. + * 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) { @@ -195,8 +195,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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() { @@ -204,8 +204,8 @@ public java.util.List getZones() { } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java index 1c4b44ca7c0..39179adb193 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -36,8 +36,8 @@ public final class InterconnectGroupPhysicalStructureMetros extends com.google.a private java.util.List facilities; /** - * [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. + * 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 @@ -59,8 +59,8 @@ public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List zones; /** - * [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. + * 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() { @@ -53,8 +53,8 @@ public java.lang.String getFacility() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java index df961f862ac..a71726bdb33 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -30,24 +30,24 @@ public final class InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * 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] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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] URLs of Interconnects in this redundancy group in the given metro, facility, and - * 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() { @@ -55,8 +55,8 @@ public java.util.List getInterconnects() { } /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * 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) { @@ -65,8 +65,8 @@ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects( } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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() { @@ -74,8 +74,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java index 076722dc0ce..bf7e43b98dc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectGroupsListResponse extends com.google.api.client. private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java index 80d27d471e5..f042bf10e06 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -30,21 +30,21 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectGroupConfigured configured; /** - * Summarizes the status of the group. + * 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 intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,14 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.cl private java.util.List interconnectStatuses; /** - * The operational state of the group, including only active Interconnects. + * 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; /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupConfigured getConfigured() { @@ -72,7 +72,7 @@ public InterconnectGroupConfigured getConfigured() { } /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @param configured configured or {@code null} for none */ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { @@ -81,7 +81,7 @@ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfig } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -89,7 +89,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -98,7 +98,7 @@ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String group } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupIntent getIntent() { @@ -106,7 +106,7 @@ public InterconnectGroupIntent getIntent() { } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @param intent intent or {@code null} for none */ public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { @@ -130,7 +130,7 @@ public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.Lis } /** - * The operational state of the group, including only active Interconnects. + * Output only. The operational state of the group, including only active Interconnects. * @return value or {@code null} for none */ public InterconnectGroupConfigured getOperational() { @@ -138,7 +138,7 @@ public InterconnectGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Interconnects. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java index 49fd3a7746a..4dc45ceabc1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -30,35 +30,36 @@ public final class InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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; /** - * The URL of the Interconnect being described. + * 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; /** - * Whether this interconnect is participating in the redundant configuration. + * 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; /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -66,7 +67,7 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -75,7 +76,8 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(jav } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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() { @@ -83,7 +85,8 @@ public InterconnectDiagnostics getDiagnostics() { } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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) { @@ -92,7 +95,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(Inte } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @return value or {@code null} for none */ public java.lang.String getInterconnect() { @@ -100,7 +103,7 @@ public java.lang.String getInterconnect() { } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @param interconnect interconnect or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { @@ -109,7 +112,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(jav } /** - * Whether this interconnect is participating in the redundant configuration. + * Output only. Whether this interconnect is participating in the redundant configuration. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -117,7 +120,7 @@ public java.lang.String getIsActive() { } /** - * Whether this interconnect is participating in the redundant configuration. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java index a1b7c05ded9..1e714fff188 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -50,7 +50,8 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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 @@ -67,7 +68,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InterconnectList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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) { @@ -155,7 +158,7 @@ public InterconnectList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java index 283f3642173..42c140f1a46 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -33,8 +33,8 @@ public final class InterconnectLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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 @@ -83,7 +83,7 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String continent; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,82 +99,85 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.util.List crossSiteInterconnectInfos; /** - * [Output Only] An optional description of the resource. + * 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] The name of the provider for this facility (e.g., EQUINIX). + * 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] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#interconnectLocation for interconnect - * locations. + * 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] Name of the resource. + * 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] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * 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] Server-defined URL for the resource. + * 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. + * 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] 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. + * 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 @@ -191,15 +194,15 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String status; /** - * [Output Only] Reserved for future use. + * 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] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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() { @@ -207,8 +210,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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) { @@ -316,7 +319,7 @@ public InterconnectLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -324,7 +327,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -354,7 +357,7 @@ public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List getRegionInfos() { @@ -486,8 +494,9 @@ public java.util.List getRegionInfos() { } /** - * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * 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) { @@ -496,7 +505,7 @@ public InterconnectLocation setRegionInfos(java.util.List getSingleRegionProductionCriticalPeerLocations() { @@ -540,9 +549,9 @@ public java.util.List getSingleRegionProductionCriticalPeerLoc } /** - * [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. + * 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) { @@ -574,7 +583,7 @@ public InterconnectLocation setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -582,7 +591,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index cf046c1f817..83cdfd2d70a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -31,24 +31,26 @@ public final class InterconnectLocationCrossSiteInterconnectInfo extends com.google.api.client.json.GenericJson { /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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; /** - * The maximum gbps for a single flow to this metro. This limits the total bandwidth which may be - * configured per wire. + * Output only. The maximum gbps for a single flow to this metro. This limits the total bandwidth + * which may be configured per wire. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxSingleFlowGbps; /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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() { @@ -56,8 +58,9 @@ public java.lang.String getCity() { } /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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) { @@ -66,8 +69,8 @@ public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String ci } /** - * The maximum gbps for a single flow to this metro. This limits the total bandwidth which may be - * configured per wire. + * Output only. The maximum gbps for a single flow to this metro. This limits the total bandwidth + * which may be configured per wire. * @return value or {@code null} for none */ public java.lang.Integer getMaxSingleFlowGbps() { @@ -75,8 +78,8 @@ public java.lang.Integer getMaxSingleFlowGbps() { } /** - * The maximum gbps for a single flow to this metro. This limits the total bandwidth which may be - * configured per wire. + * Output only. The maximum gbps for a single flow to this metro. This limits the total bandwidth + * which may be configured per wire. * @param maxSingleFlowGbps maxSingleFlowGbps or {@code null} for none */ public InterconnectLocationCrossSiteInterconnectInfo setMaxSingleFlowGbps(java.lang.Integer maxSingleFlowGbps) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java index c708d024142..051f5900f98 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -50,8 +50,8 @@ public final class InterconnectLocationList extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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 @@ -68,7 +68,7 @@ public final class InterconnectLocationList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectLocationList setItems(java.util.List it } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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) { @@ -158,7 +158,7 @@ public InterconnectLocationList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 76fa0dedf9f..1e35db8faf6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -31,38 +31,38 @@ public final class InterconnectLocationRegionInfo extends com.google.api.client.json.GenericJson { /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * 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; /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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; /** - * Identifies the network presence of this location. + * 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; /** - * URL for the region of this location. + * 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; /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * 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() { @@ -70,8 +70,8 @@ public java.lang.Long getExpectedRttMs() { } /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * 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) { @@ -80,8 +80,8 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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() { @@ -89,8 +89,8 @@ public java.lang.Boolean getL2ForwardingEnabled() { } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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) { @@ -99,7 +99,7 @@ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @return value or {@code null} for none */ public java.lang.String getLocationPresence() { @@ -107,7 +107,7 @@ public java.lang.String getLocationPresence() { } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @param locationPresence locationPresence or {@code null} for none */ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { @@ -116,7 +116,7 @@ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locat } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -124,7 +124,7 @@ public java.lang.String getRegion() { } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @param region region or {@code null} for none */ public InterconnectLocationRegionInfo setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java index 8e6f5f12516..7b2c024c61b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -33,168 +33,170 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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] Creation timestamp inRFC3339 text format. + * 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] An optional description of the resource. + * 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] The name of the provider for this facility (e.g., EQUINIX). + * 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] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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] 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. + * 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] 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. + * 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] 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. + * 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] Name of the resource. + * 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] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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] Permitted connections. + * 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] Indicates the service provider present at the remote location. Example values: - * "Amazon Web Services", "Microsoft Azure". + * 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] Server-defined URL for the resource. + * 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. + * 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 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 + * 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}. */ @@ -202,8 +204,8 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json private java.lang.String status; /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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() { @@ -211,8 +213,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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) { @@ -221,8 +223,8 @@ public InterconnectRemoteLocation setAddress(java.lang.String address) { } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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() { @@ -230,8 +232,8 @@ public InterconnectAttachmentConfigurationConstraints getAttachmentConfiguration } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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) { @@ -240,8 +242,8 @@ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(Intercon } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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() { @@ -249,8 +251,8 @@ public java.lang.String getCity() { } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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) { @@ -259,8 +261,8 @@ public InterconnectRemoteLocation setCity(java.lang.String city) { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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() { @@ -268,8 +270,8 @@ public InterconnectRemoteLocationConstraints getConstraints() { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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) { @@ -278,8 +280,8 @@ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConst } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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() { @@ -287,8 +289,8 @@ public java.lang.String getContinent() { } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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) { @@ -297,7 +299,7 @@ public InterconnectRemoteLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -305,7 +307,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -314,7 +316,7 @@ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creation } /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -322,7 +324,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of the resource. + * 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) { @@ -331,7 +333,7 @@ public InterconnectRemoteLocation setDescription(java.lang.String description) { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * 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() { @@ -339,7 +341,7 @@ public java.lang.String getFacilityProvider() { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * 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) { @@ -348,7 +350,8 @@ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityP } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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() { @@ -356,7 +359,8 @@ public java.lang.String getFacilityProviderFacilityId() { } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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) { @@ -365,7 +369,8 @@ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -373,7 +378,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -382,8 +388,8 @@ public InterconnectRemoteLocation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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() { @@ -391,8 +397,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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) { @@ -401,8 +407,8 @@ public InterconnectRemoteLocation setKind(java.lang.String kind) { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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() { @@ -410,8 +416,8 @@ public java.lang.String getLacp() { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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) { @@ -420,8 +426,8 @@ public InterconnectRemoteLocation setLacp(java.lang.String lacp) { } /** - * [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. + * 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() { @@ -429,8 +435,8 @@ public java.lang.Integer getMaxLagSize100Gbps() { } /** - * [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. + * 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) { @@ -439,8 +445,8 @@ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagS } /** - * [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. + * 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() { @@ -448,8 +454,8 @@ public java.lang.Integer getMaxLagSize10Gbps() { } /** - * [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. + * 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) { @@ -458,8 +464,8 @@ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSi } /** - * [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. + * 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() { @@ -467,8 +473,8 @@ public java.lang.Integer getMaxLagSize400Gbps() { } /** - * [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. + * 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) { @@ -477,7 +483,7 @@ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagS } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -485,7 +491,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public InterconnectRemoteLocation setName(java.lang.String name) { @@ -494,8 +500,8 @@ public InterconnectRemoteLocation setName(java.lang.String name) { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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() { @@ -503,8 +509,8 @@ public java.lang.String getPeeringdbFacilityId() { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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) { @@ -513,7 +519,7 @@ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peerin } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @return value or {@code null} for none */ public java.util.List getPermittedConnections() { @@ -521,7 +527,7 @@ public java.util.List getPermitt } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @param permittedConnections permittedConnections or {@code null} for none */ public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { @@ -530,8 +536,8 @@ public InterconnectRemoteLocation setPermittedConnections(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses lists. + * Output only. [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses + * lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses lists. + * Output only. [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses + * lists. * @param kind kind or {@code null} for none */ public IpAddressesList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public IpAddressesList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public IpAddressesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java index cfb074d526d..4a19e2c50e7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java @@ -50,7 +50,7 @@ public final class IpOwnerList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. + * Output only. [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,14 @@ public final class IpOwnerList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public IpOwnerList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. + * Output only. [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -130,7 +130,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. + * Output only. [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. * @param kind kind or {@code null} for none */ public IpOwnerList setKind(java.lang.String kind) { @@ -162,7 +162,7 @@ public IpOwnerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -170,7 +170,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public IpOwnerList setSelfLink(java.lang.String selfLink) { @@ -179,7 +179,7 @@ public IpOwnerList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -187,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public IpOwnerList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java index b090e4dfc27..2df15b24974 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java @@ -56,7 +56,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean chargesUseFee; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,7 +86,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.util.List incompatibleLicenses; /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,6 +129,14 @@ public final class License extends com.google.api.client.json.GenericJson { @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. @@ -154,14 +162,14 @@ public final class License extends com.google.api.client.json.GenericJson { private LicenseResourceRequirements resourceRequirements; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -183,7 +191,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean transferable; /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,7 +251,7 @@ public License setChargesUseFee(java.lang.Boolean chargesUseFee) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -251,7 +259,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public License setCreationTimestamp(java.lang.String creationTimestamp) { @@ -315,7 +323,7 @@ public License setIncompatibleLicenses(java.util.List incompat } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -323,7 +331,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * 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) { @@ -420,6 +428,25 @@ public License setOsLicense(java.lang.Boolean 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. @@ -478,7 +505,7 @@ public License setResourceRequirements(LicenseResourceRequirements resourceRequi } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -486,7 +513,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -495,7 +522,7 @@ public License setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -503,7 +530,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -548,7 +575,7 @@ public License setTransferable(java.lang.Boolean transferable) { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getUpdateTimestamp() { @@ -556,7 +583,7 @@ public java.lang.String getUpdateTimestamp() { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java index 95f4b8e3f53..85f546f4ddb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -48,21 +48,22 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.lang.Boolean appendableToDisk; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] Description of this License Code. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -77,7 +78,7 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List incompatibleLicenses; /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -106,8 +107,8 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.lang.Boolean multiTenantOnly; /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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 @@ -139,7 +140,7 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List requiredCoattachedLicenses; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -153,22 +154,22 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.lang.Boolean soleTenantOnly; /** - * [Output Only] Current state of this License Code. + * 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] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -211,7 +212,7 @@ public LicenseCode setAppendableToDisk(java.lang.Boolean appendableToDisk) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -219,7 +220,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { @@ -228,7 +229,7 @@ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -236,7 +237,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCode setDescription(java.lang.String description) { @@ -245,7 +246,8 @@ public LicenseCode setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -253,7 +255,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -281,7 +284,7 @@ public LicenseCode setIncompatibleLicenses(java.util.List inco } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -289,7 +292,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * 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) { @@ -351,8 +354,8 @@ public LicenseCode setMultiTenantOnly(java.lang.Boolean multiTenantOnly) { } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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() { @@ -360,8 +363,8 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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) { @@ -429,7 +432,7 @@ public LicenseCode setRequiredCoattachedLicenses(java.util.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 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/456` 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/456` 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/456` 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/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java index cee8ece927f..1c5fc4d949c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -60,7 +60,7 @@ public final class LicensesListResponse extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public LicensesListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -139,7 +139,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java index d05db1f6ff9..e1e5f9b49c9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java @@ -56,7 +56,7 @@ public final class ListInstantSnapshotGroups extends com.google.api.client.json. } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,15 @@ public final class ListInstantSnapshotGroups extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +144,7 @@ public ListInstantSnapshotGroups setItems(java.util.List i } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +152,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ListInstantSnapshotGroups setKind(java.lang.String kind) { @@ -183,7 +184,7 @@ public ListInstantSnapshotGroups setNextPageToken(java.lang.String nextPageToken } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +192,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +201,8 @@ public ListInstantSnapshotGroups setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +210,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public ListInstantSnapshotGroups setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java index 910ea430f92..2e7147df3ed 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java @@ -50,7 +50,7 @@ public final class ListSnapshotGroups extends com.google.api.client.json.Generic private java.util.List items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,15 @@ public final class ListSnapshotGroups extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,7 +138,7 @@ public ListSnapshotGroups setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -145,7 +146,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ListSnapshotGroups setKind(java.lang.String kind) { @@ -177,7 +178,7 @@ public ListSnapshotGroups setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -185,7 +186,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public ListSnapshotGroups setSelfLink(java.lang.String selfLink) { @@ -194,7 +195,8 @@ public ListSnapshotGroups setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -202,7 +204,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public ListSnapshotGroups setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java new file mode 100644 index 00000000000..4d3c8b948fe --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.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 ListVmExtensionStatesResponse. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListVmExtensionStatesResponse extends com.google.api.client.json.GenericJson { + + /** + * 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. Unique identifier 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 VM extension policy resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List 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. Server-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. 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. 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * 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. A list of VM extension policy resources. + * @param items items or {@code null} for none + */ + public ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ListVmExtensionStatesResponse set(String fieldName, Object value) { + return (ListVmExtensionStatesResponse) super.set(fieldName, value); + } + + @Override + public ListVmExtensionStatesResponse clone() { + return (ListVmExtensionStatesResponse) super.clone(); + } + + /** + * Output only. Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ListVmExtensionStatesResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.java new file mode 100644 index 00000000000..d206ebe135a --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.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 ListVmExtensionsResponse. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListVmExtensionsResponse extends com.google.api.client.json.GenericJson { + + /** + * 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. Unique identifier 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 VM extensions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List 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. Server-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. 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. 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 ListVmExtensionsResponse 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 ListVmExtensionsResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. A list of VM extensions. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * Output only. A list of VM extensions. + * @param items items or {@code null} for none + */ + public ListVmExtensionsResponse 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 ListVmExtensionsResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListVmExtensionsResponse 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 ListVmExtensionsResponse 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 ListVmExtensionsResponse 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 ListVmExtensionsResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ListVmExtensionsResponse set(String fieldName, Object value) { + return (ListVmExtensionsResponse) super.set(fieldName, value); + } + + @Override + public ListVmExtensionsResponse clone() { + return (ListVmExtensionsResponse) super.clone(); + } + + /** + * Output only. Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ListVmExtensionsResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java index afd21b38b7c..7c437efa39b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -32,7 +32,12 @@ 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. + * 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 @@ -45,9 +50,22 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson @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. + * 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() { @@ -56,7 +74,12 @@ public java.util.Map getLocations() { /** * 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. + * 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) { @@ -81,6 +104,25 @@ public LocationPolicy setTargetShape(java.lang.String 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); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java index c87aa7abe77..d23f74aa935 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -34,7 +34,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * 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 @@ -56,7 +56,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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 @@ -70,7 +71,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private InstanceProperties instanceProperties; /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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 @@ -139,28 +141,29 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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; /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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] The URL for this machine image. The server defines this URL. + * 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; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -185,16 +188,16 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstance; /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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 @@ -208,14 +211,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] Total size of the storage used by the machine image. + * 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] The creation timestamp for this machine image inRFC3339 text format. + * 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() { @@ -223,7 +226,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * 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) { @@ -268,7 +271,8 @@ public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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() { @@ -276,7 +280,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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) { @@ -302,7 +307,8 @@ public MachineImage setInstanceProperties(InstanceProperties instanceProperties) } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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() { @@ -310,7 +316,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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) { @@ -499,7 +506,7 @@ public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -507,7 +514,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -516,7 +523,8 @@ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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() { @@ -524,7 +532,8 @@ public java.util.List getSavedDisks() { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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) { @@ -533,7 +542,7 @@ public MachineImage setSavedDisks(java.util.List savedDisks) { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * 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() { @@ -541,7 +550,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * 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) { @@ -550,7 +559,7 @@ public MachineImage setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -558,7 +567,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public MachineImage setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -609,8 +618,8 @@ public MachineImage setSourceInstance(java.lang.String sourceInstance) { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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() { @@ -618,8 +627,8 @@ public SourceInstanceProperties getSourceInstanceProperties() { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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) { @@ -628,8 +637,8 @@ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceI } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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() { @@ -637,8 +646,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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) { @@ -664,7 +673,7 @@ public MachineImage setStorageLocations(java.util.List storage } /** - * [Output Only] Total size of the storage used by the machine image. + * 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() { @@ -672,7 +681,7 @@ public java.lang.Long getTotalStorageBytes() { } /** - * [Output Only] Total size of the storage used by the machine image. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java index 68648fbbe07..2447569de0b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -50,8 +50,8 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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 @@ -68,7 +68,7 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public MachineImageList setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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) { @@ -158,7 +158,7 @@ public MachineImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java index b8d1c3806da..02e308422a6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java @@ -45,6 +45,17 @@ public final class MachineImageParams extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.util.List includedDisks; + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * 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. [Input Only] Specifies the list of disk device names that must be excluded from the * new machine image. @@ -83,6 +94,31 @@ public MachineImageParams setIncludedDisks(java.util.List incl return this; } + /** + * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have + * the same definition as resource manager tags. Keys and values can be either in numeric format, + * 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); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java index ce8aea96b42..7e4f3185b03 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -104,7 +104,8 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.Boolean isSharedCpu; /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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 @@ -146,7 +147,7 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -317,7 +318,8 @@ public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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() { @@ -325,7 +327,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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) { @@ -419,7 +422,7 @@ public MachineType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -427,7 +430,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public MachineType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java index 35ac3fa24d1..8ca50f855de 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for aggregated lists of - * machine types. + * 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 @@ -62,14 +62,14 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public MachineTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public MachineTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java index 1292b1205e6..a94434edc45 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -50,7 +50,8 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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 @@ -67,7 +68,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public MachineTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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) { @@ -155,7 +158,7 @@ public MachineTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 5df654baed9..85119617b50 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -30,28 +30,30 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] Current all-instances configuration revision applied to this instance. + * Output only. [Output Only] Current all-instances configuration revision applied to this + * instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceAllInstancesConfig allInstancesConfig; /** - * [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. + * 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 @@ -64,81 +66,84 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstanceCurrentActionDetails currentActionDetails; /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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] The overrides to instance properties resulting from InstanceFlexibilityPolicy. + * Output only. [Output Only] The overrides to instance properties resulting from + * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceInstanceFlexibilityOverride instanceFlexibilityOverride; /** - * [Output Only] Health state of the instance per health-check. + * 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] The status of the instance. This field is empty when the instance does not exist. + * 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] The intended template of the instance. This field is empty when current_action is - * one of { DELETING, ABANDONING }. + * 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] Information about the last attempt to create or delete the instance. + * 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] The name of the instance. The name always exists even if the instance has not yet - * been created. + * 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] Preserved state applied from per-instance config for this instance. + * 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] Preserved state generated based on stateful policy for this instance. + * 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] Instance properties selected for this instance resulting from + * Output only. [Output Only] Instance properties selected for this instance resulting from * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @@ -146,44 +151,46 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; /** - * [Output Only] Information about the termination timestamp of the instance, if applicable. + * Output only. [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] The size of the VM represented by this Managed Instance. This is how much this - * Managed Instance contributes to the size of the group. + * Output only. [Output only] The size of the VM represented by this Managed Instance. This is how + * much this Managed Instance contributes to the size of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Float sizeInUnit; /** - * [Output Only] Tag describing the version. + * Output only. [Output Only] Tag describing the version. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String tag; /** - * [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. + * Output only. [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] Intended version of this instance. + * 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] Current all-instances configuration revision applied to this instance. + * Output only. [Output Only] Current all-instances configuration revision applied to this + * instance. * @return value or {@code null} for none */ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { @@ -191,7 +198,8 @@ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { } /** - * [Output Only] Current all-instances configuration revision applied to this instance. + * Output only. [Output Only] Current all-instances configuration revision applied to this + * instance. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig allInstancesConfig) { @@ -200,21 +208,22 @@ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig a } /** - * [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. + * 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() { @@ -222,21 +231,22 @@ public java.lang.String getCurrentAction() { } /** - * [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. + * 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) { @@ -260,8 +270,8 @@ public ManagedInstance setCurrentActionDetails(ManagedInstanceCurrentActionDetai } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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() { @@ -269,8 +279,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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) { @@ -279,8 +289,8 @@ public ManagedInstance setId(java.math.BigInteger id) { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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() { @@ -288,8 +298,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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) { @@ -298,7 +308,8 @@ public ManagedInstance setInstance(java.lang.String instance) { } /** - * [Output Only] The overrides to instance properties resulting from InstanceFlexibilityPolicy. + * Output only. [Output Only] The overrides to instance properties resulting from + * InstanceFlexibilityPolicy. * @return value or {@code null} for none */ public ManagedInstanceInstanceFlexibilityOverride getInstanceFlexibilityOverride() { @@ -306,7 +317,8 @@ public ManagedInstanceInstanceFlexibilityOverride getInstanceFlexibilityOverride } /** - * [Output Only] The overrides to instance properties resulting from InstanceFlexibilityPolicy. + * Output only. [Output Only] The overrides to instance properties resulting from + * InstanceFlexibilityPolicy. * @param instanceFlexibilityOverride instanceFlexibilityOverride or {@code null} for none */ public ManagedInstance setInstanceFlexibilityOverride(ManagedInstanceInstanceFlexibilityOverride instanceFlexibilityOverride) { @@ -315,7 +327,7 @@ public ManagedInstance setInstanceFlexibilityOverride(ManagedInstanceInstanceFle } /** - * [Output Only] Health state of the instance per health-check. + * Output only. [Output Only] Health state of the instance per health-check. * @return value or {@code null} for none */ public java.util.List getInstanceHealth() { @@ -323,7 +335,7 @@ public java.util.List getInstanceHealth() { } /** - * [Output Only] Health state of the instance per health-check. + * 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) { @@ -332,7 +344,8 @@ public ManagedInstance setInstanceHealth(java.util.List items) { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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() { @@ -157,7 +157,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java index a4dd625a14b..88009e558c8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java @@ -30,7 +30,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { /** - * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,15 +44,15 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The 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] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,8 +70,9 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output only] The URL of the region where the resource resides. You must specify this field as - * part of the HTTP request URL. You cannot set the region as a field in the request body. + * Output only. [Output only] The URL of the region where the resource resides. You must specify + * this field as part of the HTTP request URL. You cannot set the region as a field in the request + * body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +86,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigResourcePolicies resourcePolicies; /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,7 +99,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigStatus status; /** - * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MultiMig setCreationTimestamp(java.lang.String creationTimestamp) { @@ -132,8 +133,8 @@ public MultiMig setDescription(java.lang.String description) { } /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The unique identifier for this resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -141,8 +142,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The unique identifier for this resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public MultiMig setId(java.math.BigInteger id) { @@ -151,7 +152,7 @@ public MultiMig setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -159,7 +160,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @param kind kind or {@code null} for none */ public MultiMig setKind(java.lang.String kind) { @@ -193,8 +194,9 @@ public MultiMig setName(java.lang.String name) { } /** - * [Output only] The URL of the region where the resource resides. You must specify this field as - * part of the HTTP request URL. You cannot set the region as a field in the request body. + * Output only. [Output only] The URL of the region where the resource resides. You must specify + * this field as part of the HTTP request URL. You cannot set the region as a field in the request + * body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -202,8 +204,9 @@ public java.lang.String getRegion() { } /** - * [Output only] The URL of the region where the resource resides. You must specify this field as - * part of the HTTP request URL. You cannot set the region as a field in the request body. + * Output only. [Output only] The URL of the region where the resource resides. You must specify + * this field as part of the HTTP request URL. You cannot set the region as a field in the request + * body. * @param region region or {@code null} for none */ public MultiMig setRegion(java.lang.String region) { @@ -229,7 +232,7 @@ public MultiMig setResourcePolicies(MultiMigResourcePolicies resourcePolicies) { } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -237,7 +240,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public MultiMig setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java index ad38405b4e7..eb23d361f69 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java @@ -30,57 +30,58 @@ public final class MultiMigMember extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationTimestamp; /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The 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; /** - * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] The name of this multi-MIG member generated by Google Compute Engine. + * Output only. [Output Only] Server-defined name for the multi-MIG member. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * [Output Only] The URL of the region where the multi-MIG resides. + * Output only. [Output Only] The URL of the region where the multi-MIG resides. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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 status of this multi-MIG member + * Output only. [Output Only] The status of this multi-MIG member * The value may be {@code null}. */ @com.google.api.client.util.Key private MultiMigMemberStatus status; /** - * [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -88,7 +89,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MultiMigMember setCreationTimestamp(java.lang.String creationTimestamp) { @@ -97,8 +98,8 @@ public MultiMigMember setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The unique identifier for this resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -106,8 +107,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The unique identifier for this resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public MultiMigMember setId(java.math.BigInteger id) { @@ -116,7 +117,8 @@ public MultiMigMember setId(java.math.BigInteger id) { } /** - * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +126,8 @@ public java.lang.String getKind() { } /** - * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. * @param kind kind or {@code null} for none */ public MultiMigMember setKind(java.lang.String kind) { @@ -133,7 +136,7 @@ public MultiMigMember setKind(java.lang.String kind) { } /** - * [Output Only] The name of this multi-MIG member generated by Google Compute Engine. + * Output only. [Output Only] Server-defined name for the multi-MIG member. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -141,7 +144,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of this multi-MIG member generated by Google Compute Engine. + * Output only. [Output Only] Server-defined name for the multi-MIG member. * @param name name or {@code null} for none */ public MultiMigMember setName(java.lang.String name) { @@ -150,7 +153,7 @@ public MultiMigMember setName(java.lang.String name) { } /** - * [Output Only] The URL of the region where the multi-MIG resides. + * Output only. [Output Only] The URL of the region where the multi-MIG resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -158,7 +161,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of the region where the multi-MIG resides. + * Output only. [Output Only] The URL of the region where the multi-MIG resides. * @param region region or {@code null} for none */ public MultiMigMember setRegion(java.lang.String region) { @@ -167,7 +170,7 @@ public MultiMigMember setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -175,7 +178,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MultiMigMember setSelfLink(java.lang.String selfLink) { @@ -184,7 +187,7 @@ public MultiMigMember setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The status of this multi-MIG member + * Output only. [Output Only] The status of this multi-MIG member * @return value or {@code null} for none */ public MultiMigMemberStatus getStatus() { @@ -192,7 +195,7 @@ public MultiMigMemberStatus getStatus() { } /** - * [Output Only] The status of this multi-MIG member + * Output only. [Output Only] The status of this multi-MIG member * @param status status or {@code null} for none */ public MultiMigMember setStatus(MultiMigMemberStatus status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java index 10d198855c1..5cc8e756e7b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java @@ -50,7 +50,8 @@ public final class MultiMigMemberList extends com.google.api.client.json.Generic } /** - * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class MultiMigMemberList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public MultiMigMemberList setItems(java.util.List items) { } /** - * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. * @param kind kind or {@code null} for none */ public MultiMigMemberList setKind(java.lang.String kind) { @@ -155,7 +158,7 @@ public MultiMigMemberList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MultiMigMemberList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java index 3cdebc8d6f6..e8919808afe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java @@ -30,8 +30,8 @@ public final class MultiMigStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one - * accelerator topology is supported. + * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only + * one accelerator topology is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,15 +44,15 @@ public final class MultiMigStatus extends com.google.api.client.json.GenericJson private java.util.List memberInstanceGroupManagers; /** - * [Output Only] The number of instance group manager members in this multi-MIG. + * Output only. [Output Only] The number of instance group manager members in this multi-MIG. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer membersCount; /** - * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one - * accelerator topology is supported. + * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only + * one accelerator topology is supported. * @return value or {@code null} for none */ public java.util.List getAppliedAcceleratorTopologies() { @@ -60,8 +60,8 @@ public java.util.List getAppliedAcceleratorTo } /** - * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one - * accelerator topology is supported. + * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only + * one accelerator topology is supported. * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none */ public MultiMigStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { @@ -85,7 +85,7 @@ public MultiMigStatus setMemberInstanceGroupManagers(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -122,7 +122,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public MultiMigsList setKind(java.lang.String kind) { @@ -152,7 +152,7 @@ public MultiMigsList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -160,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MultiMigsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java index b880a69e7e6..ad71f5d0e5a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -30,21 +30,21 @@ public final class NatIpInfo extends com.google.api.client.json.GenericJson { /** - * A list of all NAT IPs assigned to this NAT config. + * 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; /** - * Name of the NAT config which the NAT IP belongs to. + * 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; /** - * A list of all NAT IPs assigned to this NAT config. + * 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() { @@ -52,7 +52,7 @@ public java.util.List getNatIpInfoMappings() { } /** - * A list of all NAT IPs assigned to this NAT config. + * 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) { @@ -61,7 +61,7 @@ public NatIpInfo setNatIpInfoMappings(java.util.List } /** - * Name of the NAT config which the NAT IP belongs to. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getNatName() { } /** - * Name of the NAT config which the NAT IP belongs to. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java index 223a66411ab..9ca1eff4dd7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -30,28 +30,28 @@ public final class NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { /** - * Specifies whether NAT IP is auto or manual. + * 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; /** - * NAT IP address. For example: 203.0.113.11. + * 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; /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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; /** - * Specifies whether NAT IP is auto or manual. + * Output only. Specifies whether NAT IP is auto or manual. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -59,7 +59,7 @@ public java.lang.String getMode() { } /** - * Specifies whether NAT IP is auto or manual. + * 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) { @@ -68,7 +68,7 @@ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { } /** - * NAT IP address. For example: 203.0.113.11. + * Output only. NAT IP address. For example: 203.0.113.11. * @return value or {@code null} for none */ public java.lang.String getNatIp() { @@ -76,7 +76,7 @@ public java.lang.String getNatIp() { } /** - * NAT IP address. For example: 203.0.113.11. + * 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) { @@ -85,7 +85,7 @@ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getUsage() { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java index 77872c28d5a..f091fb29c52 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java @@ -57,7 +57,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean autoCreateSubnetworks; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +79,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableUlaInternalIpv6; /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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 @@ -94,7 +94,8 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIPv4; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -112,7 +113,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String internalIpv6Range; /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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 @@ -165,16 +166,16 @@ public final class Network extends com.google.api.client.json.GenericJson { private NetworkParams params; /** - * [Output Only] A list of network peerings for the resource. + * 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; /** - * [Output Only] URL of the region where the regional network resides. This field is not - * applicable to global network. 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. [Output Only] URL of the region where the regional network resides. This field is + * not applicable to global network. 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 @@ -196,7 +197,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -264,7 +265,7 @@ public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -272,7 +273,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Network setCreationTimestamp(java.lang.String creationTimestamp) { @@ -317,7 +318,7 @@ public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) } /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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() { @@ -325,7 +326,7 @@ public java.lang.String getFirewallPolicy() { } /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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) { @@ -353,7 +354,8 @@ public Network setGatewayIPv4(java.lang.String gatewayIPv4) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -361,7 +363,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -395,7 +398,7 @@ public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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() { @@ -403,7 +406,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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) { @@ -519,7 +522,7 @@ public Network setParams(NetworkParams params) { } /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * @return value or {@code null} for none */ public java.util.List getPeerings() { @@ -527,7 +530,7 @@ public java.util.List getPeerings() { } /** - * [Output Only] A list of network peerings for the resource. + * 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) { @@ -536,9 +539,9 @@ public Network setPeerings(java.util.List peerings) { } /** - * [Output Only] URL of the region where the regional network resides. This field is not - * applicable to global network. 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. [Output Only] URL of the region where the regional network resides. This field is + * not applicable to global network. 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() { @@ -546,9 +549,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional network resides. This field is not - * applicable to global network. 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. [Output Only] URL of the region where the regional network resides. This field is + * not applicable to global network. 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 Network setRegion(java.lang.String region) { @@ -593,7 +596,7 @@ public Network setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -601,7 +604,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java index eecbab8e189..5320d7e3f2c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -30,8 +30,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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 @@ -44,7 +44,7 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String connectionPreference; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,15 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. + * Output only. [Output Only] Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,10 +92,10 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String name; /** - * [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. + * 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 @@ -118,23 +118,23 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List producerRejectLists; /** - * [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. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -149,8 +149,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List subnetworks; /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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() { @@ -158,8 +158,8 @@ public java.util.List getConnectionEndpoints } /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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) { @@ -183,7 +183,7 @@ public NetworkAttachment setConnectionPreference(java.lang.String connectionPref } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,8 +266,8 @@ public NetworkAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -275,8 +275,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -285,7 +285,7 @@ public NetworkAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -293,7 +293,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @param kind kind or {@code null} for none */ public NetworkAttachment setKind(java.lang.String kind) { @@ -327,10 +327,10 @@ public NetworkAttachment setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -338,10 +338,10 @@ public java.lang.String getNetwork() { } /** - * [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. + * 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) { @@ -388,9 +388,9 @@ public NetworkAttachment setProducerRejectLists(java.util.List } /** - * [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. + * 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() { @@ -398,9 +398,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -409,7 +409,7 @@ public NetworkAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -417,7 +417,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -426,7 +426,7 @@ public NetworkAttachment setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -434,7 +434,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java index 817d984f250..a1ba49eed7d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -60,6 +60,13 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli @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}. @@ -75,7 +82,8 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli private java.lang.String subnetwork; /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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 @@ -155,6 +163,23 @@ public NetworkAttachmentConnectedEndpoint setSecondaryIpCidrRanges(java.util.Lis 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 @@ -190,7 +215,8 @@ public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetw } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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() { @@ -198,7 +224,8 @@ public java.lang.String getSubnetworkCidrRange() { } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java index 719c606976c..013691466fe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -30,7 +30,7 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,14 +56,15 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * The value may be {@code null}. */ @@ -82,8 +83,8 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String name; /** - * [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. + * 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 @@ -98,21 +99,21 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String securityPolicy; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -120,7 +121,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -211,7 +212,8 @@ public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -219,7 +221,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -228,7 +231,7 @@ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @return value or {@code null} for none */ @@ -237,7 +240,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @param kind kind or {@code null} for none */ @@ -272,8 +275,8 @@ public NetworkEdgeSecurityService setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -281,8 +284,8 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -310,7 +313,7 @@ public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPol } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -318,7 +321,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -327,7 +330,7 @@ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -335,7 +338,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java index 1fa727e85f7..2817e613104 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -50,8 +50,9 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#networkEdgeSecurityServiceAggregatedList for - * lists of Network Edge Security Services. + * 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 @@ -68,14 +69,14 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEdgeSecurityServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java index bb105832a60..43ec70a5be9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -23,6 +23,12 @@ * 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 @@ -65,7 +71,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupCloudRun cloudRun; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,15 +95,16 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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 @@ -157,21 +164,21 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String pscTargetService; /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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] Server-defined URL for the resource. + * 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. + * 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 @@ -186,7 +193,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupServerlessDeployment serverlessDeployment; /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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 @@ -207,7 +214,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String type; /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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 @@ -288,7 +295,7 @@ public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -296,7 +303,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -345,7 +352,8 @@ public NetworkEndpointGroup setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -353,7 +361,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -362,8 +371,8 @@ public NetworkEndpointGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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() { @@ -371,8 +380,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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) { @@ -505,7 +514,7 @@ public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetServic } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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() { @@ -513,7 +522,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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) { @@ -522,7 +531,7 @@ public NetworkEndpointGroup setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -530,7 +539,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -539,7 +548,7 @@ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -547,7 +556,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkEndpointGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -575,7 +584,7 @@ public NetworkEndpointGroup setServerlessDeployment(NetworkEndpointGroupServerle } /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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() { @@ -583,7 +592,7 @@ public java.lang.Integer getSize() { } /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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) { @@ -626,7 +635,7 @@ public NetworkEndpointGroup setType(java.lang.String type) { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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() { @@ -634,7 +643,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java index d257a2c16a2..a2c8acc31ba 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -44,8 +44,9 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupAggregatedList for - * aggregated lists of network endpoint groups. + * 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 @@ -62,14 +63,14 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public NetworkEndpointGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEndpointGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java index b0d4b65954f..efa4899f51a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java @@ -56,8 +56,8 @@ public final class NetworkEndpointGroupLbNetworkEndpointGroup extends com.google private java.lang.String subnetwork; /** - * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This - * field is deprecated. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [Deprecated] This field is deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,8 +125,8 @@ public NetworkEndpointGroupLbNetworkEndpointGroup setSubnetwork(java.lang.String } /** - * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This - * field is deprecated. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [Deprecated] This field is deprecated. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -134,8 +134,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This - * field is deprecated. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [Deprecated] This field is deprecated. * @param zone zone or {@code null} for none */ public NetworkEndpointGroupLbNetworkEndpointGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java index a9e2537c619..8d6eaa31913 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -50,8 +50,8 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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 @@ -68,7 +68,7 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NetworkEndpointGroupList setItems(java.util.List it } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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) { @@ -158,7 +158,7 @@ public NetworkEndpointGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java index 88ee04444bb..294c37e562a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -31,8 +31,8 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.json.GenericJson { /** - * [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. + * 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 @@ -47,22 +47,22 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.jso private java.lang.Integer producerPort; /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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] The connection status of the PSC Forwarding Rule. + * 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] 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.String getConsumerPscAddress() { } /** - * [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. + * 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) { @@ -99,7 +99,7 @@ public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPor } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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() { @@ -107,7 +107,7 @@ public java.math.BigInteger getPscConnectionId() { } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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) { @@ -116,7 +116,7 @@ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscCo } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. * @return value or {@code null} for none */ public java.lang.String getPscConnectionStatus() { @@ -124,7 +124,7 @@ public java.lang.String getPscConnectionStatus() { } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java index cd49337f505..b1a4a35294e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -44,7 +44,7 @@ public final class NetworkEndpointGroupsListNetworkEndpoints extends com.google. private java.util.List items; /** - * [Output Only] The resource type, which is + * 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}. @@ -104,7 +104,7 @@ public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List getNetworkEndpointGroups() { @@ -59,7 +59,7 @@ public java.util.List getNetworkEndpointGroups() { } /** - * [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * 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) { @@ -68,8 +68,8 @@ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List getHealths() { } /** - * [Output only] The health status of network endpoint. + * 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 @@ -73,7 +73,7 @@ public NetworkEndpointWithHealthStatus setHealths(java.util.List getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkFirewallPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index c5df5ee9dd7..ca65f0c7651 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -58,6 +58,20 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs 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. @@ -107,8 +121,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs } /** - * [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. + * 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}. @@ -126,12 +140,20 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs private java.lang.String ipv6Address; /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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. [Output Only] MAC address assigned to this network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String macAddress; + /** * [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 @@ -195,6 +217,15 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs @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. @@ -275,6 +306,25 @@ public NetworkInterface setAliasIpRanges(java.util.List aliasIpRan 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. @@ -409,8 +459,8 @@ public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6Ac } /** - * [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. + * 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 @@ -420,8 +470,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [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. + * 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 @@ -453,7 +503,8 @@ public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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() { @@ -461,7 +512,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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) { @@ -469,6 +521,23 @@ public NetworkInterface setKind(java.lang.String kind) { return this; } + /** + * Output only. [Output Only] MAC address assigned to this network interface. + * @return value or {@code null} for none + */ + public java.lang.String getMacAddress() { + return macAddress; + } + + /** + * Output only. [Output Only] MAC address assigned to this network interface. + * @param macAddress macAddress or {@code null} for none + */ + public NetworkInterface setMacAddress(java.lang.String macAddress) { + this.macAddress = macAddress; + 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 @@ -616,6 +685,27 @@ public NetworkInterface setQueueCount(java.lang.Integer 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java index 161aace29df..e4981ce773e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -50,7 +50,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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 @@ -67,7 +67,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public NetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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) { @@ -155,7 +155,7 @@ public NetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index 90888f98fd0..a7a6c814cf6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -50,7 +50,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.Boolean autoCreateRoutes; /** - * [Output Only] The effective state of the peering connection as a whole. + * 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 @@ -118,7 +118,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] Maximum Transmission Unit in bytes of the peer 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 @@ -133,15 +133,14 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String stackType; /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * 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] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,7 +197,7 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { } /** - * [Output Only] The effective state of the peering connection as a whole. + * Output only. [Output Only] The effective state of the peering connection as a whole. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatus getConnectionStatus() { @@ -206,7 +205,7 @@ public NetworkPeeringConnectionStatus getConnectionStatus() { } /** - * [Output Only] The effective state of the peering connection as a whole. + * 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) { @@ -358,7 +357,7 @@ public NetworkPeering setNetwork(java.lang.String network) { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * 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() { @@ -366,7 +365,7 @@ public java.lang.Integer getPeerMtu() { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * 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) { @@ -394,8 +393,7 @@ public NetworkPeering setStackType(java.lang.String stackType) { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -403,8 +401,7 @@ public java.lang.String getState() { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @param state state or {@code null} for none */ public NetworkPeering setState(java.lang.String state) { @@ -413,7 +410,7 @@ public NetworkPeering setState(java.lang.String state) { } /** - * [Output Only] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * @return value or {@code null} for none */ public java.lang.String getStateDetails() { @@ -421,7 +418,7 @@ public java.lang.String getStateDetails() { } /** - * [Output Only] Details about the current state of the peering. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java index 0dd995dca57..badc96b3d4a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java @@ -30,14 +30,14 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] A list of associations that belong to this network policy. + * Output only. [Output Only] A list of associations that belong to this network policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies + * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,44 +73,45 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] URL of the region where the regional network policy resides. 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. [Output Only] URL of the region where the regional network policy 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] Total count of all network policy rule tuples. A network policy can not exceed a - * set number of tuples. + * Output only. [Output Only] Total count of all network policy rule tuples. A network 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; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] A list of traffic classification rules that belong to this policy. + * Output only. [Output Only] A list of traffic classification rules that belong to this policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List trafficClassificationRules; /** - * [Output Only] A list of associations that belong to this network policy. + * Output only. [Output Only] A list of associations that belong to this network policy. * @return value or {@code null} for none */ public java.util.List getAssociations() { @@ -117,7 +119,7 @@ public java.util.List getAssociations() { } /** - * [Output Only] A list of associations that belong to this network policy. + * Output only. [Output Only] A list of associations that belong to this network policy. * @param associations associations or {@code null} for none */ public NetworkPolicy setAssociations(java.util.List associations) { @@ -126,7 +128,7 @@ public NetworkPolicy setAssociations(java.util.List as } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -134,7 +136,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -177,7 +179,8 @@ public NetworkPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies + * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -185,7 +188,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies + * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network + * policies * @param kind kind or {@code null} for none */ public NetworkPolicy setKind(java.lang.String kind) { @@ -211,8 +215,9 @@ public NetworkPolicy setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the regional network policy resides. 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. [Output Only] URL of the region where the regional network policy 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() { @@ -220,8 +225,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional network policy resides. 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. [Output Only] URL of the region where the regional network policy 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 NetworkPolicy setRegion(java.lang.String region) { @@ -230,8 +236,8 @@ public NetworkPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a - * set number of tuples. + * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can + * not exceed a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -239,8 +245,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a - * set number of tuples. + * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can + * not exceed a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -249,7 +255,7 @@ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -257,7 +263,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkPolicy setSelfLink(java.lang.String selfLink) { @@ -266,7 +272,7 @@ public NetworkPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -274,7 +280,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -283,7 +289,7 @@ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] A list of traffic classification rules that belong to this policy. + * Output only. [Output Only] A list of traffic classification rules that belong to this policy. * @return value or {@code null} for none */ public java.util.List getTrafficClassificationRules() { @@ -291,7 +297,7 @@ public java.util.List getTrafficClassifi } /** - * [Output Only] A list of traffic classification rules that belong to this policy. + * Output only. [Output Only] A list of traffic classification rules that belong to this policy. * @param trafficClassificationRules trafficClassificationRules or {@code null} for none */ public NetworkPolicy setTrafficClassificationRules(java.util.List trafficClassificationRules) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java index 4dafaa22d20..d476645f2fd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java @@ -50,8 +50,8 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for lists of network - * policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for + * lists of network policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public NetworkPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java index f87dcb81e7b..913ca8a4d6a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java @@ -50,7 +50,8 @@ public final class NetworkPolicyList extends com.google.api.client.json.GenericJ } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of + * network policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public NetworkPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of + * network policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of + * network policies. * @param kind kind or {@code null} for none */ public NetworkPolicyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java index ae1ba7866f8..e58090e5b01 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java @@ -54,8 +54,9 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.Boolean disabled; /** - * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for - * network policy traffic classification rules + * Output only. [Output only] Type of the resource. + * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification + * rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,7 +88,7 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.String ruleName; /** - * [Output Only] Calculation of the complexity of a single network policy rule. + * Output only. [Output Only] Calculation of the complexity of a single network policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -169,8 +170,9 @@ public NetworkPolicyTrafficClassificationRule setDisabled(java.lang.Boolean disa } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for - * network policy traffic classification rules + * Output only. [Output only] Type of the resource. + * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification + * rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -178,8 +180,9 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for - * network policy traffic classification rules + * Output only. [Output only] Type of the resource. + * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification + * rules * @param kind kind or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setKind(java.lang.String kind) { @@ -247,7 +250,7 @@ public NetworkPolicyTrafficClassificationRule setRuleName(java.lang.String ruleN } /** - * [Output Only] Calculation of the complexity of a single network policy rule. + * Output only. [Output Only] Calculation of the complexity of a single network policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -255,7 +258,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single network policy rule. + * Output only. [Output Only] Calculation of the complexity of a single network policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java index 434d469ce7e..cab865cf5bb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java @@ -37,8 +37,8 @@ public final class NetworkPolicyTrafficClassificationRuleSecureTag extends com.g private java.lang.String name; /** - * [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. + * 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 @@ -62,8 +62,8 @@ public NetworkPolicyTrafficClassificationRuleSecureTag setName(java.lang.String } /** - * [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. + * 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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * [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. + * 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 NetworkPolicyTrafficClassificationRuleSecureTag setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java index 1eaec17410c..0e3cfd5fd64 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -30,77 +30,79 @@ public final class NetworkProfile extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] An optional description of this resource. + * 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] Features supported by the network. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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] Location to which the network is restricted. + * 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] Name of the resource. + * 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] Type of the network profile. + * 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] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -108,7 +110,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { @@ -117,7 +119,7 @@ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] An optional description of this resource. + * Output only. [Output Only] An optional description of this resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -125,7 +127,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of this resource. + * 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) { @@ -134,7 +136,7 @@ public NetworkProfile setDescription(java.lang.String description) { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @return value or {@code null} for none */ public NetworkProfileNetworkFeatures getFeatures() { @@ -142,7 +144,7 @@ public NetworkProfileNetworkFeatures getFeatures() { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @param features features or {@code null} for none */ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { @@ -151,7 +153,8 @@ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -159,7 +162,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -168,7 +172,8 @@ public NetworkProfile setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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() { @@ -176,7 +181,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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) { @@ -185,7 +191,7 @@ public NetworkProfile setKind(java.lang.String kind) { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @return value or {@code null} for none */ public NetworkProfileLocation getLocation() { @@ -193,7 +199,7 @@ public NetworkProfileLocation getLocation() { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @param location location or {@code null} for none */ public NetworkProfile setLocation(NetworkProfileLocation location) { @@ -202,7 +208,7 @@ public NetworkProfile setLocation(NetworkProfileLocation location) { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -210,7 +216,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public NetworkProfile setName(java.lang.String name) { @@ -219,7 +225,7 @@ public NetworkProfile setName(java.lang.String name) { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @return value or {@code null} for none */ public NetworkProfileProfileType getProfileType() { @@ -227,7 +233,7 @@ public NetworkProfileProfileType getProfileType() { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @param profileType profileType or {@code null} for none */ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { @@ -236,7 +242,7 @@ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -244,7 +250,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -253,7 +259,7 @@ public NetworkProfile setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -261,7 +267,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java index d1e0a74e002..243b31e663f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -276,14 +276,14 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j private java.util.List subnetStackTypes; /** - * Specifies which subnetwork purposes are supported. + * 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; /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -894,7 +894,7 @@ public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List getSubnetworkPurposes() { @@ -902,7 +902,7 @@ public java.util.List getSubnetworkPurposes() { } /** - * Specifies which subnetwork purposes are supported. + * Output only. Specifies which subnetwork purposes are supported. * @param subnetworkPurposes subnetworkPurposes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { @@ -911,7 +911,7 @@ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List getSubnetworkStackTypes() { @@ -919,7 +919,7 @@ public java.util.List getSubnetworkStackTypes() { } /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java index b045ed464b2..d126fc2f0bb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -56,7 +56,8 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +74,15 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public NetworkProfilesListResponse setItems(java.util.List items } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * 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) { @@ -183,7 +187,7 @@ public NetworkProfilesListResponse setNextPageToken(java.lang.String nextPageTok } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +204,8 @@ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public NetworkProfilesListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java index 390f610176d..195b392152e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -56,14 +56,14 @@ public final class NetworkRoutingConfig extends com.google.api.client.json.Gener private java.lang.String bgpInterRegionCost; /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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] Effective value of the bgp_inter_region_cost field. + * 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 @@ -137,7 +137,7 @@ public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegio } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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() { @@ -145,7 +145,7 @@ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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) { @@ -154,7 +154,7 @@ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean ef } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * 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() { @@ -162,7 +162,7 @@ public java.lang.String getEffectiveBgpInterRegionCost() { } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 87552222ac0..57b26100431 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the network. + * 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 @@ -58,7 +58,8 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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 @@ -78,22 +79,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * 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] The type of the firewall policy. + * 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] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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() { @@ -101,8 +102,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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) { @@ -111,7 +112,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayNa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -119,7 +120,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -128,7 +129,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java } /** - * [Output Only] The packet mirroring rules that apply to the network. + * 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() { @@ -136,7 +137,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the network. + * 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) { @@ -145,7 +146,8 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMir } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -153,7 +155,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -179,7 +182,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(jav } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -187,7 +190,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * 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) { @@ -196,7 +199,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName } /** - * [Output Only] The type of the firewall policy. + * Output only. [Output Only] The type of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -204,7 +207,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index 3972693f23a..e43c15856e4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,8 +30,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] The unique identifier for the security policy. This identifier is defined by the - * server. + * Output only. [Output Only] The unique identifier for the security policy. 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 @@ -45,8 +45,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPoli private java.util.List rules; /** - * [Output Only] The unique identifier for the security policy. This identifier is defined by the - * server. + * Output only. [Output Only] The unique identifier for the security policy. This identifier is + * defined by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -54,8 +54,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the security policy. This identifier is defined by the - * server. + * Output only. [Output Only] The unique identifier for the security policy. This identifier is + * defined by the server. * @param id id or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java index 5fc20509973..62c8c404731 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -42,7 +42,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private NodeGroupAutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,15 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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 @@ -126,14 +127,14 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String nodeTemplate; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -147,7 +148,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private ShareSettings shareSettings; /** - * [Output Only] The total number of nodes in the node group. + * 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 @@ -160,7 +161,8 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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 @@ -184,7 +186,7 @@ public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPoli } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -192,7 +194,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -261,7 +263,8 @@ public NodeGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -269,7 +272,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -278,7 +282,7 @@ public NodeGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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() { @@ -286,7 +290,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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) { @@ -413,7 +417,7 @@ public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -421,7 +425,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -430,7 +434,7 @@ public NodeGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -438,7 +442,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NodeGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -464,7 +468,7 @@ public NodeGroup setShareSettings(ShareSettings shareSettings) { } /** - * [Output Only] The total number of nodes in the node group. + * 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() { @@ -472,7 +476,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of nodes in the node group. + * 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) { @@ -496,7 +500,8 @@ public NodeGroup setStatus(java.lang.String status) { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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() { @@ -504,7 +509,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java index 8cd8b43da57..edaad394eeb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for aggregated lists of - * node groups. + * 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 @@ -62,14 +62,14 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java index b9a428b708a..238b1f18114 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -50,7 +50,8 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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 @@ -67,7 +68,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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) { @@ -155,7 +158,7 @@ public NodeGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java index a1eda5e82fb..b38511bda24 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -31,16 +31,16 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json.GenericJson { /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 @@ -55,8 +55,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json private java.lang.String startTime; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -64,8 +64,8 @@ public java.lang.String getDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 NodeGroupMaintenanceWindow setDuration(java.lang.String duration) { @@ -74,8 +74,8 @@ public NodeGroupMaintenanceWindow setDuration(java.lang.String duration) { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -83,8 +83,8 @@ public Duration getMaintenanceDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java index 93ab16ab3e6..b1af48a0a34 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -43,7 +43,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String nodeType; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +131,14 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String status; /** - * Total amount of available resources on the node. + * 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] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +162,7 @@ public NodeGroupNode setAccelerators(java.util.List accelerat } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumedResources() { @@ -170,7 +170,7 @@ public InstanceConsumptionInfo getConsumedResources() { } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @param consumedResources consumedResources or {@code null} for none */ public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { @@ -213,7 +213,7 @@ public NodeGroupNode setDisks(java.util.List disks) { } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * @return value or {@code null} for none */ public java.util.List getInstanceConsumptionData() { @@ -221,7 +221,7 @@ public java.util.List getInstanceConsumptionData() { } /** - * Instance data that shows consumed resources on the node. + * 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) { @@ -281,7 +281,7 @@ public NodeGroupNode setNodeType(java.lang.String nodeType) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -289,7 +289,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -347,7 +347,7 @@ public NodeGroupNode setStatus(java.lang.String status) { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @return value or {@code null} for none */ public InstanceConsumptionInfo getTotalResources() { @@ -355,7 +355,7 @@ public InstanceConsumptionInfo getTotalResources() { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @param totalResources totalResources or {@code null} for none */ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { @@ -364,7 +364,7 @@ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -372,7 +372,7 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java index b983f28193d..699a60fca23 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -30,7 +30,7 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.Generi } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -116,8 +116,8 @@ public NodeGroupsListNodes setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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) { @@ -135,10 +135,10 @@ public NodeGroupsListNodes setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -175,7 +175,7 @@ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public NodeGroupsListNodes setWarning(Warning warning) { @@ -202,7 +202,7 @@ public NodeGroupsListNodes clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java index 0baa92731bb..8f43e3e7e08 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -52,7 +52,7 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private java.lang.String cpuOvercommitType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,14 +78,16 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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 @@ -124,21 +126,22 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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] Server-defined URL for the resource. + * 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. + * 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 @@ -156,15 +159,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private ServerBinding serverBinding; /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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] An optional, human-readable explanation of the 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 @@ -203,7 +206,7 @@ public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -211,7 +214,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -252,7 +255,8 @@ public NodeTemplate setDisks(java.util.List disks) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -260,7 +264,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -269,7 +274,8 @@ public NodeTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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() { @@ -277,7 +283,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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) { @@ -362,7 +369,8 @@ public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeT } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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() { @@ -370,7 +378,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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) { @@ -379,7 +388,7 @@ public NodeTemplate setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -387,7 +396,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -396,7 +405,7 @@ public NodeTemplate setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -404,7 +413,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NodeTemplate setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -438,8 +447,8 @@ public NodeTemplate setServerBinding(ServerBinding serverBinding) { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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() { @@ -447,8 +456,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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) { @@ -457,7 +466,7 @@ public NodeTemplate setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -465,7 +474,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java index 99eb552c0f4..8108caade4f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for aggregated lists of - * node templates. + * 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 @@ -62,14 +62,14 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTemplateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTemplateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java index 4dec3311cd1..975a9ec6bb3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -50,7 +50,8 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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 @@ -67,7 +68,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTemplateList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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) { @@ -155,7 +158,7 @@ public NodeTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java index 31150c01170..725932bec54 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -77,7 +77,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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 @@ -91,7 +91,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.Integer localSsdGb; /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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 @@ -112,21 +112,22 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 name of the zone where the node type resides, such as us-central1-a. + * 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 @@ -235,7 +236,7 @@ public NodeType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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() { @@ -243,7 +244,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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) { @@ -269,7 +270,7 @@ public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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() { @@ -277,7 +278,7 @@ public java.lang.Integer getMaxVms() { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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) { @@ -320,7 +321,7 @@ public NodeType setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -328,7 +329,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -337,7 +338,7 @@ public NodeType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -345,7 +346,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NodeType setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -354,7 +355,8 @@ public NodeType setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * 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() { @@ -362,7 +364,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java index 2985c263e70..b5f8aa4ddf8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated lists of - * node types. + * 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 @@ -62,14 +62,14 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java index 499df967122..87afc1e14e8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -50,7 +50,8 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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 @@ -67,7 +68,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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) { @@ -155,7 +158,7 @@ public NodeTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java index df4ed94b238..29423ff6380 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -35,7 +35,7 @@ public final class NotificationEndpoint extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,15 +56,16 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private NotificationEndpointGrpcSettings grpcSettings; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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 @@ -82,23 +83,23 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { @@ -149,7 +150,8 @@ public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grp } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -157,7 +159,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -166,8 +169,8 @@ public NotificationEndpoint setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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() { @@ -175,8 +178,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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) { @@ -210,9 +213,9 @@ public NotificationEndpoint setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -220,9 +223,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -231,7 +234,7 @@ public NotificationEndpoint setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -239,7 +242,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java index 02b6fbacfec..8a8ca6062f3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java @@ -44,7 +44,7 @@ public final class NotificationEndpointAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class NotificationEndpointAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public NotificationEndpointAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NotificationEndpointAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java index 092c5f23afb..1c0a447d4f3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -50,8 +50,8 @@ public final class NotificationEndpointList extends com.google.api.client.json.G } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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 @@ -116,8 +116,8 @@ public NotificationEndpointList setItems(java.util.List it } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java index bc616004dd7..2428efb1436 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,6 +84,12 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; + /** + * 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`. @@ -122,7 +128,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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 @@ -136,8 +143,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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 @@ -176,15 +183,15 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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 @@ -350,6 +357,21 @@ public Operation setError(Error error) { 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`. @@ -440,7 +462,8 @@ public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOper } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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() { @@ -448,7 +471,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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) { @@ -474,8 +498,8 @@ public Operation setName(java.lang.String name) { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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() { @@ -483,8 +507,8 @@ public java.lang.String getOperationGroupId() { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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) { @@ -569,7 +593,7 @@ public Operation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -577,7 +601,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Operation setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -586,8 +610,8 @@ public Operation setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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() { @@ -595,8 +619,8 @@ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOp } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java index 923f1b730d8..0a42c170556 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -44,8 +44,8 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always `compute#operationAggregatedList` for aggregated lists - * of operations. + * 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 @@ -69,7 +69,7 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public OperationAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public OperationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java index c7c27b93315..b993539d1db 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -50,7 +50,8 @@ public final class OperationList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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 @@ -115,7 +116,8 @@ public OperationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java index 92f1e45bacd..5608b2e6ea6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class OrganizationSecurityPoliciesListAssociationsResponse extends private java.util.List associations; /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * The value may be {@code null}. @@ -63,7 +63,7 @@ public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @return value or {@code null} for none @@ -73,7 +73,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @param kind kind or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java index 2808340e7c3..8d6a3631048 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -43,7 +43,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringForwardingRuleInfo collectorIlb; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,16 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringFilter filter; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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 @@ -134,14 +136,14 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -167,7 +169,7 @@ public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collect } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -175,7 +177,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { @@ -241,7 +243,8 @@ public PacketMirroring setFilter(PacketMirroringFilter filter) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -249,7 +252,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -258,7 +262,8 @@ public PacketMirroring setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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() { @@ -266,7 +271,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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) { @@ -382,7 +388,7 @@ public PacketMirroring setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -390,7 +396,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -399,7 +405,7 @@ public PacketMirroring setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -407,7 +413,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public PacketMirroring setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java index 595728e2281..1037f9cab3d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -44,7 +44,7 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public PacketMirroringAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PacketMirroringAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java index ec03ec70a94..94108ee8069 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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 @@ -45,7 +45,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.clie private java.lang.String url; /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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() { @@ -53,7 +53,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java index c7915c3357f..3d7fba4d7f1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -50,7 +50,8 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public PacketMirroringList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * 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) { @@ -155,7 +158,7 @@ public PacketMirroringList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java index 6cb0e091a11..17b0f288da5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.g private java.lang.String url; /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java index 4001f06eabd..afcc0dfdf19 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.goo private java.lang.String url; /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java index 254d520c669..aba6b27e954 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json private java.lang.String url; /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java index 9f3e11621fe..862d369b8cb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -146,8 +146,11 @@ public final class PathMatcher extends com.google.api.client.json.GenericJson { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. @@ -426,8 +429,11 @@ public PathMatcher setName(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. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. @@ -441,8 +447,11 @@ public java.util.List getPathRules() { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java index 65df1d11db3..67589c68ecf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -37,28 +37,30 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private java.lang.String activationStatus; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] Description of the feature. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the feature. Always "compute#previewFeature" for preview features. + * 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 @@ -79,14 +81,14 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private PreviewFeatureRolloutOperation rolloutOperation; /** - * [Output Only] Server-defined URL for the resource. + * 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] Status of the feature. + * Output only. [Output only] Status of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +112,7 @@ public PreviewFeature setActivationStatus(java.lang.String activationStatus) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -118,7 +120,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { @@ -127,7 +129,7 @@ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -135,7 +137,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @param description description or {@code null} for none */ public PreviewFeature setDescription(java.lang.String description) { @@ -144,7 +146,8 @@ public PreviewFeature setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -152,7 +155,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -161,7 +165,8 @@ public PreviewFeature setId(java.math.BigInteger id) { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * 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() { @@ -169,7 +174,8 @@ public java.lang.String getKind() { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * 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) { @@ -212,7 +218,7 @@ public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rollout } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -220,7 +226,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -229,7 +235,7 @@ public PreviewFeature setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @return value or {@code null} for none */ public PreviewFeatureStatus getStatus() { @@ -237,7 +243,7 @@ public PreviewFeatureStatus getStatus() { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @param status status or {@code null} for none */ public PreviewFeature setStatus(PreviewFeatureStatus status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java index 7db8ee1c6d8..f099ab2a800 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -66,14 +66,15 @@ public final class PreviewFeatureList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public PreviewFeatureList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java index af6b1bbc4e8..6b0cd6054f8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -30,14 +30,14 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The description of the feature. + * 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] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,7 +50,7 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.Gener private PreviewFeatureStatusReleaseStatus releaseStatus; /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -58,7 +58,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @param description description or {@code null} for none */ public PreviewFeatureStatus setDescription(java.lang.String description) { @@ -67,7 +67,7 @@ public PreviewFeatureStatus setDescription(java.lang.String description) { } /** - * [Output Only] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * @return value or {@code null} for none */ public java.lang.String getHelpLink() { @@ -75,7 +75,7 @@ public java.lang.String getHelpLink() { } /** - * [Output Only] Link to the public documentation for the feature. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java index f26a5843a8a..bbefbcc3470 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -30,7 +30,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.clie private Date updateDate; /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @return value or {@code null} for none */ public java.lang.String getStage() { @@ -52,7 +52,7 @@ public java.lang.String getStage() { } /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @param stage stage or {@code null} for none */ public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java index 7c97bff47df..b8c5d5a80e3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java @@ -33,8 +33,8 @@ public final class Project extends com.google.api.client.json.GenericJson { /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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}. @@ -97,15 +97,15 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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; /** - * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of - * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It + * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * The value may be {@code null}. @@ -144,7 +144,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private UsageExportLocation usageExportLocation; /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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 @@ -159,8 +159,8 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.lang.String xpnProjectStatus; /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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 @@ -170,8 +170,8 @@ public java.lang.String getCloudArmorTier() { } /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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 @@ -311,7 +311,7 @@ public Project setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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() { @@ -319,7 +319,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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) { @@ -328,8 +328,8 @@ public Project setKind(java.lang.String kind) { } /** - * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of - * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It + * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @return value or {@code null} for none @@ -339,8 +339,8 @@ public java.lang.String getManagedProtectionTier() { } /** - * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of - * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It + * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @param managedProtectionTier managedProtectionTier or {@code null} for none @@ -423,7 +423,7 @@ public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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() { @@ -431,7 +431,7 @@ public java.lang.String getVmDnsSetting() { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java index b7574ceac6c..cd70d815772 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -30,18 +30,18 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -55,8 +55,8 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.Ge private java.util.List resources; /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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() { @@ -64,8 +64,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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) { @@ -74,10 +74,10 @@ public ProjectsGetXpnResources setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -85,10 +85,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java index b474e13ab5d..e2e5d61066d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -32,14 +32,14 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { /** - * [Output Only] The version of BYOIP API. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,8 +72,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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 @@ -94,8 +94,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String ipv6AccessType; /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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 @@ -112,6 +112,15 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.String name; + /** + * Network tier to be used for this prefix. All child delegated prefixes will inherit this field. + * If this field is not specified, it defaults to the network tier of the project that the + * PublicAdvertisedPrefix belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkTier; + /** * 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 @@ -125,22 +134,22 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String pdpScope; /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -166,7 +175,7 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String status; /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -174,7 +183,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -183,7 +192,7 @@ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +200,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -299,8 +308,8 @@ public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -308,8 +317,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -352,8 +361,8 @@ public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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() { @@ -361,8 +370,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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) { @@ -395,6 +404,27 @@ public PublicAdvertisedPrefix setName(java.lang.String name) { return this; } + /** + * Network tier to be used for this prefix. All child delegated prefixes will inherit this field. + * If this field is not specified, it defaults to the network tier of the project that the + * PublicAdvertisedPrefix belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getNetworkTier() { + return networkTier; + } + + /** + * Network tier to be used for this prefix. All child delegated prefixes will inherit this field. + * If this field is not specified, it defaults to the network tier of the project that the + * PublicAdvertisedPrefix belongs to. + * @param networkTier networkTier or {@code null} for none + */ + public PublicAdvertisedPrefix setNetworkTier(java.lang.String networkTier) { + this.networkTier = networkTier; + 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 @@ -423,8 +453,8 @@ public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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() { @@ -432,8 +462,8 @@ public java.util.List getPublicDele } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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) { @@ -442,7 +472,7 @@ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List items; /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixAggregatedList for - * aggregated lists of public delegated prefixes. + * 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 @@ -69,7 +70,7 @@ public final class PublicDelegatedPrefixAggregatedList extends com.google.api.cl private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public PublicDelegatedPrefixAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PublicDelegatedPrefixAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java index 661e1a7fb4a..c6896a733e8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -50,8 +50,8 @@ public final class PublicDelegatedPrefixList extends com.google.api.client.json. } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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 @@ -116,8 +116,8 @@ public PublicDelegatedPrefixList setItems(java.util.List } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java index 1e8cbccdc3a..f72aed87a8c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -51,8 +51,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String description; /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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 @@ -66,8 +66,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String ipCidrRange; /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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 @@ -95,22 +95,23 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String name; /** - * [Output Only] The purpose of the sub public delegated prefix. Inherited from parent prefix. + * Output only. [Output Only] The purpose of the sub public delegated prefix. Inherited from + * parent prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String purpose; /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -168,8 +169,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.St } /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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() { @@ -177,8 +178,8 @@ public java.lang.Boolean getEnableEnhancedIpv4Allocation() { } /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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) { @@ -204,8 +205,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.St } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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() { @@ -213,8 +214,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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) { @@ -274,7 +275,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String na } /** - * [Output Only] The purpose of the sub public delegated prefix. Inherited from parent prefix. + * Output only. [Output Only] The purpose of the sub public delegated prefix. Inherited from + * parent prefix. * @return value or {@code null} for none */ public java.lang.String getPurpose() { @@ -282,7 +284,8 @@ public java.lang.String getPurpose() { } /** - * [Output Only] The purpose of the sub public delegated prefix. Inherited from parent prefix. + * Output only. [Output Only] The purpose of the sub public delegated prefix. Inherited from + * parent prefix. * @param purpose purpose or {@code null} for none */ public PublicDelegatedPrefixPublicDelegatedSubPrefix setPurpose(java.lang.String purpose) { @@ -291,8 +294,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setPurpose(java.lang.String } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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() { @@ -300,8 +303,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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) { @@ -310,7 +313,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String } /** - * [Output Only] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -318,7 +321,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the sub public delegated prefix. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java index 51bb0b1b2e6..2704dbf0885 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java @@ -38,7 +38,7 @@ public final class QueuedResource extends com.google.api.client.json.GenericJson private BulkInsertInstanceResource bulkInsertInstanceResource; /** - * [Output Only] Creation timestamp in RFC3339 text format. + * Output only. [Output Only] Creation timestamp in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,14 +52,16 @@ public final class QueuedResource extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#queuedResource for QueuedResources. + * Output only. [Output Only] Type of the resource. Alwayscompute#queuedResource for + * QueuedResources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -84,37 +86,37 @@ public final class QueuedResource extends com.google.api.client.json.GenericJson private QueuingPolicy queuingPolicy; /** - * [Output only] Server-defined URL for the resource. + * 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. + * 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] High-level status of the request. + * Output only. [Output only] High-level status of the request. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * [Output only] Result of queuing and provisioning based on deferred capacity. + * Output only. [Output only] Result of queuing and provisioning based on deferred capacity. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueuedResourceStatus status; /** - * [Output Only] URL of the zone where the resource resides. Only applicable for zonal resources. - * 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. [Output Only] URL of the zone where the resource resides. Only applicable for + * zonal 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 @@ -138,7 +140,7 @@ public QueuedResource setBulkInsertInstanceResource(BulkInsertInstanceResource b } /** - * [Output Only] Creation timestamp in RFC3339 text format. + * Output only. [Output Only] Creation timestamp in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -146,7 +148,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp in RFC3339 text format. + * Output only. [Output Only] Creation timestamp in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public QueuedResource setCreationTimestamp(java.lang.String creationTimestamp) { @@ -172,7 +174,8 @@ public QueuedResource setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -180,7 +183,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 QueuedResource setId(java.math.BigInteger id) { @@ -189,7 +193,8 @@ public QueuedResource setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#queuedResource for QueuedResources. + * Output only. [Output Only] Type of the resource. Alwayscompute#queuedResource for + * QueuedResources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -197,7 +202,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#queuedResource for QueuedResources. + * Output only. [Output Only] Type of the resource. Alwayscompute#queuedResource for + * QueuedResources. * @param kind kind or {@code null} for none */ public QueuedResource setKind(java.lang.String kind) { @@ -248,7 +254,7 @@ public QueuedResource setQueuingPolicy(QueuingPolicy queuingPolicy) { } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -256,7 +262,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public QueuedResource setSelfLink(java.lang.String selfLink) { @@ -265,7 +271,7 @@ public QueuedResource setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -273,7 +279,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public QueuedResource setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -282,7 +288,7 @@ public QueuedResource setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output only] High-level status of the request. + * Output only. [Output only] High-level status of the request. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -290,7 +296,7 @@ public java.lang.String getState() { } /** - * [Output only] High-level status of the request. + * Output only. [Output only] High-level status of the request. * @param state state or {@code null} for none */ public QueuedResource setState(java.lang.String state) { @@ -299,7 +305,7 @@ public QueuedResource setState(java.lang.String state) { } /** - * [Output only] Result of queuing and provisioning based on deferred capacity. + * Output only. [Output only] Result of queuing and provisioning based on deferred capacity. * @return value or {@code null} for none */ public QueuedResourceStatus getStatus() { @@ -307,7 +313,7 @@ public QueuedResourceStatus getStatus() { } /** - * [Output only] Result of queuing and provisioning based on deferred capacity. + * Output only. [Output only] Result of queuing and provisioning based on deferred capacity. * @param status status or {@code null} for none */ public QueuedResource setStatus(QueuedResourceStatus status) { @@ -316,9 +322,9 @@ public QueuedResource setStatus(QueuedResourceStatus status) { } /** - * [Output Only] URL of the zone where the resource resides. Only applicable for zonal resources. - * 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. [Output Only] URL of the zone where the resource resides. Only applicable for + * zonal 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 getZone() { @@ -326,9 +332,9 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the zone where the resource resides. Only applicable for zonal resources. - * 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. [Output Only] URL of the zone where the resource resides. Only applicable for + * zonal 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 zone zone or {@code null} for none */ public QueuedResource setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java index 93bc52a7d4b..b7897aea784 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java @@ -50,7 +50,7 @@ public final class QueuedResourceList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +66,14 @@ public final class QueuedResourceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-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. + * Output only. [Output only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +121,7 @@ public QueuedResourceList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -129,7 +129,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public QueuedResourceList setKind(java.lang.String kind) { @@ -159,7 +159,7 @@ public QueuedResourceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public QueuedResourceList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public QueuedResourceList setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Unreachable resources. + * Output only. [Output only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output only] Unreachable resources. + * Output only. [Output only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public QueuedResourceList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java index 18d0c6eca5e..98f37d7f056 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java @@ -30,31 +30,31 @@ public final class QueuedResourceStatus extends com.google.api.client.json.GenericJson { /** - * Additional status detail for the FAILED state. + * Output only. Additional status detail for the FAILED state. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueuedResourceStatusFailedData failedData; /** - * [Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning - * along with provisioning errors. The referenced operation may not exist after having been - * deleted or expired. + * Output only. [Output only] Fully qualified URL of the provisioning GCE operation to track the + * provisioning along with provisioning errors. The referenced operation may not exist after + * having been deleted or expired. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List provisioningOperations; /** - * Constraints for the time when the resource(s) start provisioning. Always exposed as absolute - * times. + * Output only. Constraints for the time when the resource(s) start provisioning. Always exposed + * as absolute times. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueuingPolicy queuingPolicy; /** - * Additional status detail for the FAILED state. + * Output only. Additional status detail for the FAILED state. * @return value or {@code null} for none */ public QueuedResourceStatusFailedData getFailedData() { @@ -62,7 +62,7 @@ public QueuedResourceStatusFailedData getFailedData() { } /** - * Additional status detail for the FAILED state. + * Output only. Additional status detail for the FAILED state. * @param failedData failedData or {@code null} for none */ public QueuedResourceStatus setFailedData(QueuedResourceStatusFailedData failedData) { @@ -71,9 +71,9 @@ public QueuedResourceStatus setFailedData(QueuedResourceStatusFailedData failedD } /** - * [Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning - * along with provisioning errors. The referenced operation may not exist after having been - * deleted or expired. + * Output only. [Output only] Fully qualified URL of the provisioning GCE operation to track the + * provisioning along with provisioning errors. The referenced operation may not exist after + * having been deleted or expired. * @return value or {@code null} for none */ public java.util.List getProvisioningOperations() { @@ -81,9 +81,9 @@ public java.util.List getProvisioningOperations() { } /** - * [Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning - * along with provisioning errors. The referenced operation may not exist after having been - * deleted or expired. + * Output only. [Output only] Fully qualified URL of the provisioning GCE operation to track the + * provisioning along with provisioning errors. The referenced operation may not exist after + * having been deleted or expired. * @param provisioningOperations provisioningOperations or {@code null} for none */ public QueuedResourceStatus setProvisioningOperations(java.util.List provisioningOperations) { @@ -92,8 +92,8 @@ public QueuedResourceStatus setProvisioningOperations(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#queuedResourcesAggregatedList for lists of - * QueuedResource. + * Output only. [Output Only] Type of resource. Alwayscompute#queuedResourcesAggregatedList for + * lists of QueuedResource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class QueuedResourcesAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public QueuedResourcesAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public QueuedResourcesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java index 4ee101475b0..ef60c5d50de 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java @@ -32,7 +32,7 @@ public final class RecoverableSnapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,40 +46,41 @@ public final class RecoverableSnapshot extends com.google.api.client.json.Generi private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot - * resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for + * RecoverableSnapshot resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot. The - * name will be 1-63 characters long, and comply withRFC1035. Specifically, the name will be 1-63 - * characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the - * first character will be a lowercase letter, and all following characters can be a dash, - * lowercase letter, or digit, except the last character, which cannot be a dash. + * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the + * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name + * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + * which means the first character will be a lowercase letter, and all following characters can 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 original snapshot resource. + * Output only. Output Only] The original snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private RecoverableSnapshotOriginalSnapshot originalResource; /** - * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,35 +94,35 @@ public final class RecoverableSnapshot extends com.google.api.client.json.Generi private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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] Status of the recoverable snapshot. + * Output only. [Output Only] Status of the recoverable snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +130,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RecoverableSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -155,7 +156,8 @@ public RecoverableSnapshot setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -163,7 +165,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 RecoverableSnapshot setId(java.math.BigInteger id) { @@ -172,8 +175,8 @@ public RecoverableSnapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot - * resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for + * RecoverableSnapshot resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -181,8 +184,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot - * resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for + * RecoverableSnapshot resources. * @param kind kind or {@code null} for none */ public RecoverableSnapshot setKind(java.lang.String kind) { @@ -191,11 +194,11 @@ public RecoverableSnapshot setKind(java.lang.String kind) { } /** - * Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot. The - * name will be 1-63 characters long, and comply withRFC1035. Specifically, the name will be 1-63 - * characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the - * first character will be a lowercase letter, and all following characters can be a dash, - * lowercase letter, or digit, except the last character, which cannot be a dash. + * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the + * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name + * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + * which means the first character will be a lowercase letter, and all following characters can 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() { @@ -203,11 +206,11 @@ public java.lang.String getName() { } /** - * Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot. The - * name will be 1-63 characters long, and comply withRFC1035. Specifically, the name will be 1-63 - * characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the - * first character will be a lowercase letter, and all following characters can be a dash, - * lowercase letter, or digit, except the last character, which cannot be a dash. + * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the + * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name + * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + * which means the first character will be a lowercase letter, and all following characters can 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 RecoverableSnapshot setName(java.lang.String name) { @@ -216,7 +219,7 @@ public RecoverableSnapshot setName(java.lang.String name) { } /** - * Output Only] The original snapshot resource. + * Output only. Output Only] The original snapshot resource. * @return value or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot getOriginalResource() { @@ -224,7 +227,7 @@ public RecoverableSnapshotOriginalSnapshot getOriginalResource() { } /** - * Output Only] The original snapshot resource. + * Output only. Output Only] The original snapshot resource. * @param originalResource originalResource or {@code null} for none */ public RecoverableSnapshot setOriginalResource(RecoverableSnapshotOriginalSnapshot originalResource) { @@ -233,7 +236,7 @@ public RecoverableSnapshot setOriginalResource(RecoverableSnapshotOriginalSnapsh } /** - * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getPurgeTimestamp() { @@ -241,7 +244,7 @@ public java.lang.String getPurgeTimestamp() { } /** - * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @param purgeTimestamp purgeTimestamp or {@code null} for none */ public RecoverableSnapshot setPurgeTimestamp(java.lang.String purgeTimestamp) { @@ -267,7 +270,7 @@ public RecoverableSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -275,7 +278,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public RecoverableSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -284,7 +287,7 @@ public RecoverableSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -292,7 +295,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public RecoverableSnapshot setSelfLink(java.lang.String selfLink) { @@ -301,7 +304,7 @@ public RecoverableSnapshot setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -309,7 +312,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public RecoverableSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -318,7 +321,7 @@ public RecoverableSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the recoverable snapshot. + * Output only. [Output Only] Status of the recoverable snapshot. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -326,7 +329,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the recoverable snapshot. + * Output only. [Output Only] Status of the recoverable snapshot. * @param status status or {@code null} for none */ public RecoverableSnapshot setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java index ee62c41fb0b..da3ff5adbc3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java @@ -50,8 +50,8 @@ public final class RecoverableSnapshotAggregatedList extends com.google.api.clie private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotAggregatedList for aggregated - * lists of recoverablesnapshots. + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotAggregatedList + * for aggregated lists of recoverablesnapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,15 @@ public final class RecoverableSnapshotAggregatedList extends com.google.api.clie private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,8 @@ public RecoverableSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RecoverableSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java index 1510a22a3cd..a5109f8a267 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java @@ -56,7 +56,7 @@ public final class RecoverableSnapshotList extends com.google.api.client.json.Ge } /** - * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of * recoverablesnapshots. * The value may be {@code null}. */ @@ -74,14 +74,15 @@ public final class RecoverableSnapshotList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,7 +145,7 @@ public RecoverableSnapshotList setItems(java.util.List item } /** - * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of * recoverablesnapshots. * @return value or {@code null} for none */ @@ -153,7 +154,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of * recoverablesnapshots. * @param kind kind or {@code null} for none */ @@ -186,7 +187,7 @@ public RecoverableSnapshotList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RecoverableSnapshotList setSelfLink(java.lang.String selfLink) { @@ -203,7 +204,8 @@ public RecoverableSnapshotList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RecoverableSnapshotList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java index a36b6fdf838..930e8835150 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java @@ -30,15 +30,15 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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 @@ -63,21 +63,21 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String chainName; /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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] Creation timestamp inRFC3339 text format. + * 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] Purge timestamp of recoverable snapshot inRFC3339 text format. + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,22 +91,22 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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] Number of bytes downloaded to restore a snapshot to a disk. + * 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; /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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 @@ -120,9 +120,9 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.Boolean full; /** - * [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. + * 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 @@ -135,8 +135,8 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl } /** - * [Output Only] The unique identifier for the original snapshot. This identifier is defined by - * the server. + * Output only. [Output Only] The unique identifier for the original snapshot. 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 @@ -164,14 +164,15 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.util.Map labels; /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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] A list of public visible licenses that apply to this snapshot. + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,8 +197,8 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String name; /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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 @@ -211,21 +212,21 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -249,14 +250,14 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private CustomerEncryptionKey snapshotEncryptionKey; /** - * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String snapshotGroupId; /** - * [Output only] The snapshot group that this snapshot belongs to. + * Output only. [Output only] The snapshot group that this snapshot belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -292,7 +293,7 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String sourceDiskForRecoveryCheckpoint; /** - * [Output Only] The ID value of the disk used to create this snapshot + * Output only. [Output Only] The ID value of the disk used to create this snapshot * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -313,42 +314,42 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; /** - * [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 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 instant - * snapshot that was used. + * 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 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 + * instant snapshot that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String sourceInstantSnapshotId; /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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] ID of the resource policy which created this scheduled snapshot. + * 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] A size of the storage used by the snapshot. + * Output only. [Output Only] A size of the storage used by the snapshot. * 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] 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. + * 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 @@ -362,15 +363,7 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.util.List storageLocations; /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -378,7 +371,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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 RecoverableSnapshotOriginalSnapshot setArchitecture(java.lang.String architecture) { @@ -387,8 +380,8 @@ public RecoverableSnapshotOriginalSnapshot setArchitecture(java.lang.String arch } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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() { @@ -396,8 +389,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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 RecoverableSnapshotOriginalSnapshot setAutoCreated(java.lang.Boolean autoCreated) { @@ -448,7 +441,7 @@ public RecoverableSnapshotOriginalSnapshot setChainName(java.lang.String chainNa } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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() { @@ -456,7 +449,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * Output only. [Output Only] Size in bytes of the snapshot at creation time. * @param creationSizeBytes creationSizeBytes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { @@ -465,7 +458,7 @@ public RecoverableSnapshotOriginalSnapshot setCreationSizeBytes(java.lang.Long c } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -473,7 +466,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -482,7 +475,7 @@ public RecoverableSnapshotOriginalSnapshot setCreationTimestamp(java.lang.String } /** - * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getDeletionTimestamp() { @@ -490,7 +483,7 @@ public java.lang.String getDeletionTimestamp() { } /** - * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @param deletionTimestamp deletionTimestamp or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setDeletionTimestamp(java.lang.String deletionTimestamp) { @@ -516,7 +509,7 @@ public RecoverableSnapshotOriginalSnapshot setDescription(java.lang.String descr } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -524,7 +517,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @param diskSizeGb diskSizeGb or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { @@ -533,7 +526,7 @@ public RecoverableSnapshotOriginalSnapshot setDiskSizeGb(java.lang.Long diskSize } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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() { @@ -541,7 +534,7 @@ public java.lang.Long getDownloadBytes() { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. * @param downloadBytes downloadBytes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setDownloadBytes(java.lang.Long downloadBytes) { @@ -550,8 +543,8 @@ public RecoverableSnapshotOriginalSnapshot setDownloadBytes(java.lang.Long downl } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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() { @@ -559,8 +552,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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 RecoverableSnapshotOriginalSnapshot setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { @@ -586,9 +579,9 @@ public RecoverableSnapshotOriginalSnapshot setFull(java.lang.Boolean full) { } /** - * [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. + * 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() { @@ -596,9 +589,9 @@ public java.util.List getGuestOsFeatures() { } /** - * [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. + * 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 RecoverableSnapshotOriginalSnapshot setGuestOsFeatures(java.util.List guestOsFeatures) { @@ -607,8 +600,8 @@ public RecoverableSnapshotOriginalSnapshot setGuestOsFeatures(java.util.List getLicenseCodes() { @@ -722,7 +716,8 @@ public java.util.List getLicenseCodes() { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * Output only. [Output Only] Integer license codes indicating which licenses are attached to this + * snapshot. * @param licenseCodes licenseCodes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setLicenseCodes(java.util.List licenseCodes) { @@ -731,7 +726,7 @@ public RecoverableSnapshotOriginalSnapshot setLicenseCodes(java.util.List getLicenses() { @@ -739,7 +734,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] A list of public visible licenses that apply to this snapshot. + * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. * @param licenses licenses or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setLicenses(java.util.List licenses) { @@ -790,8 +785,8 @@ public RecoverableSnapshotOriginalSnapshot setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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() { @@ -799,8 +794,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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 RecoverableSnapshotOriginalSnapshot setRegion(java.lang.String region) { @@ -826,7 +821,7 @@ public RecoverableSnapshotOriginalSnapshot setSatisfiesPzi(java.lang.Boolean sat } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -834,7 +829,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -843,7 +838,7 @@ public RecoverableSnapshotOriginalSnapshot setSatisfiesPzs(java.lang.Boolean sat } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -851,7 +846,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSelfLink(java.lang.String selfLink) { @@ -860,7 +855,7 @@ public RecoverableSnapshotOriginalSnapshot setSelfLink(java.lang.String selfLink } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -868,7 +863,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -914,7 +909,7 @@ public RecoverableSnapshotOriginalSnapshot setSnapshotEncryptionKey(CustomerEncr } /** - * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupId() { @@ -922,7 +917,7 @@ public java.lang.String getSnapshotGroupId() { } /** - * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @param snapshotGroupId snapshotGroupId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { @@ -931,7 +926,7 @@ public RecoverableSnapshotOriginalSnapshot setSnapshotGroupId(java.lang.String s } /** - * [Output only] The snapshot group that this snapshot belongs to. + * Output only. [Output only] The snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupName() { @@ -939,7 +934,7 @@ public java.lang.String getSnapshotGroupName() { } /** - * [Output only] The snapshot group that this snapshot belongs to. + * Output only. [Output only] The snapshot group that this snapshot belongs to. * @param snapshotGroupName snapshotGroupName or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { @@ -1018,7 +1013,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceDiskForRecoveryCheckpoint(ja } /** - * [Output Only] The ID value of the disk used to create this snapshot + * Output only. [Output Only] The ID value of the disk used to create this snapshot * @return value or {@code null} for none */ public java.lang.String getSourceDiskId() { @@ -1026,7 +1021,7 @@ public java.lang.String getSourceDiskId() { } /** - * [Output Only] The ID value of the disk used to create this snapshot + * Output only. [Output Only] The ID value of the disk used to create this snapshot * @param sourceDiskId sourceDiskId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceDiskId(java.lang.String sourceDiskId) { @@ -1069,11 +1064,11 @@ public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotEncryptionKey } /** - * [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 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 instant - * snapshot that was used. + * 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 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 + * instant snapshot that was used. * @return value or {@code null} for none */ public java.lang.String getSourceInstantSnapshotId() { @@ -1081,11 +1076,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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 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 instant - * snapshot that was used. + * 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 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 + * instant snapshot that was used. * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { @@ -1094,7 +1089,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotId(java.lang. } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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() { @@ -1102,7 +1097,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. * @param sourceSnapshotSchedulePolicy sourceSnapshotSchedulePolicy or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotSchedulePolicy) { @@ -1111,7 +1106,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicy(java. } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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() { @@ -1119,7 +1114,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. * @param sourceSnapshotSchedulePolicyId sourceSnapshotSchedulePolicyId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapshotSchedulePolicyId) { @@ -1128,7 +1123,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicyId(jav } /** - * [Output Only] A size of the storage used by the snapshot. + * Output only. [Output Only] A size of the storage used by the snapshot. * @return value or {@code null} for none */ public java.lang.Long getStorageBytes() { @@ -1136,7 +1131,7 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] A size of the storage used by the snapshot. + * Output only. [Output Only] A size of the storage used by the snapshot. * @param storageBytes storageBytes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setStorageBytes(java.lang.Long storageBytes) { @@ -1145,10 +1140,10 @@ public RecoverableSnapshotOriginalSnapshot setStorageBytes(java.lang.Long storag } /** - * [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. + * 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() { @@ -1156,10 +1151,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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 RecoverableSnapshotOriginalSnapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { @@ -1184,25 +1179,6 @@ public RecoverableSnapshotOriginalSnapshot setStorageLocations(java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * @param userLicenses userLicenses or {@code null} for none - */ - public RecoverableSnapshotOriginalSnapshot setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public RecoverableSnapshotOriginalSnapshot set(String fieldName, Object value) { return (RecoverableSnapshotOriginalSnapshot) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java index 924e8061310..db743f6ac38 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java @@ -30,7 +30,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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 @@ -59,7 +59,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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() { @@ -67,7 +67,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java index 8eb5eb3fa8e..0e5dc0a5ba1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java @@ -61,7 +61,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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 @@ -75,8 +75,8 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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 @@ -103,7 +103,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -117,7 +117,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,7 +199,7 @@ public Region setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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() { @@ -207,7 +207,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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) { @@ -233,8 +233,8 @@ public Region setName(java.lang.String name) { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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() { @@ -242,8 +242,8 @@ public QuotaStatusWarning getQuotaStatusWarning() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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) { @@ -286,7 +286,7 @@ public Region setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -294,7 +294,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Region setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -320,7 +320,7 @@ public Region setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -328,7 +328,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Region setSupportsPzs(java.lang.Boolean supportsPzs) { @@ -364,8 +364,8 @@ public Region clone() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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 { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java index 2e556ab7d08..551ddfd2ac0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -50,7 +50,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RegionAutoscalerList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RegionAutoscalerList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionAutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java index 75127baf46f..872032b6f03 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -50,7 +50,8 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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 @@ -67,7 +68,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public RegionDiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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) { @@ -155,7 +158,7 @@ public RegionDiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java index 05b7ebc0b41..85740a56c46 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,38 +50,38 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.Ge } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupList setItems(java.util.List items) { } /** - * The resource type. + * Output only. The resource type. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * The resource type. + * Output only. The resource type. * @param kind kind or {@code null} for none */ public RegionInstanceGroupList setKind(java.lang.String kind) { @@ -132,10 +132,10 @@ public RegionInstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -143,10 +143,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -155,7 +155,7 @@ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -172,7 +172,7 @@ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -180,7 +180,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupList setWarning(Warning warning) { @@ -199,7 +199,7 @@ public RegionInstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java index 92bdbe38b6c..5a070239603 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client. } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. + * Output only. [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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -116,8 +116,8 @@ public RegionInstanceGroupManagerList setItems(java.util.List unreachables; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +111,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setEtag(java.lang.St } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -118,7 +119,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -144,8 +145,8 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.L } /** - * [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. + * Output only. [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() { @@ -153,8 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. + * Output only. [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) { @@ -163,10 +164,10 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.St } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -174,10 +175,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { @@ -186,7 +187,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(jav } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { @@ -203,7 +204,8 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lan } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java.util.List unreachables) { @@ -220,7 +223,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -228,7 +231,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { @@ -247,7 +250,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java new file mode 100644 index 00000000000..059cdc52e7f --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.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 RegionInstanceGroupManagersAdoptInstancesRequest. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RegionInstanceGroupManagersAdoptInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of per-instance configs specifying instances to adopt. + * 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); + } + + /** + * The list of per-instance configs specifying instances to adopt. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The list of per-instance configs specifying instances to adopt. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersAdoptInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersAdoptInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersAdoptInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersAdoptInstancesRequest clone() { + return (RegionInstanceGroupManagersAdoptInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java index 7aa2fc902de..0c52ac21058 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java @@ -37,6 +37,13 @@ public final class RegionInstanceGroupManagersApplyUpdatesRequest extends com.go @com.google.api.client.util.Key private java.lang.Boolean allInstances; + /** + * Whether the boot disk is allowed to be updated with restart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String disruptionMode; + /** * 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]. @@ -98,6 +105,23 @@ public RegionInstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang. return this; } + /** + * Whether the boot disk is allowed to be updated with restart. + * @return value or {@code null} for none + */ + public java.lang.String getDisruptionMode() { + return disruptionMode; + } + + /** + * Whether the boot disk is allowed to be updated with restart. + * @param disruptionMode disruptionMode or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setDisruptionMode(java.lang.String disruptionMode) { + this.disruptionMode = disruptionMode; + 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]. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java index c5415e1b6a4..1743aba53b2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListErrorsResponse extends com.goo } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List getItems() { @@ -68,7 +68,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { @@ -77,10 +77,10 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.Lis } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -88,10 +88,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -100,7 +100,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java. } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -108,7 +108,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { @@ -127,7 +127,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java index acfc0c7acca..be961b62fc1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListInstancesResponse extends com. } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -81,10 +81,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java index 74c56d2d388..7830be72bea 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java @@ -52,6 +52,14 @@ public final class RegionInstanceGroupManagersResizeAdvancedRequest extends com. @com.google.api.client.util.Key private java.lang.Boolean noCreationRetries; + /** + * If this flag is enabled within a request to decrease a MIG's target size, then the MIG declines + * that request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean scaleInProtection; + /** * 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 @@ -110,6 +118,25 @@ public RegionInstanceGroupManagersResizeAdvancedRequest setNoCreationRetries(jav return this; } + /** + * If this flag is enabled within a request to decrease a MIG's target size, then the MIG declines + * that request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getScaleInProtection() { + return scaleInProtection; + } + + /** + * If this flag is enabled within a request to decrease a MIG's target size, then the MIG declines + * that request. + * @param scaleInProtection scaleInProtection or {@code null} for none + */ + public RegionInstanceGroupManagersResizeAdvancedRequest setScaleInProtection(java.lang.Boolean scaleInProtection) { + this.scaleInProtection = scaleInProtection; + 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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java index dac1f439e48..aefcae26d51 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,38 +50,38 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.clie } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupsListInstances setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * 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) { @@ -155,7 +155,7 @@ public RegionList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java index ee278d6de38..f55221c5cee 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -30,9 +30,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { /** - * [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. + * 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 @@ -52,9 +52,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ex } /** - * [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. + * 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() { @@ -62,9 +62,9 @@ public java.util.List firewallPolicys) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index c87245ab60e..8ee047a1277 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -31,21 +31,21 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] The display name of the firewall policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the network. + * 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 @@ -58,14 +58,15 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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. + * Output only. [Output only] The rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,7 +79,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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}. */ @@ -86,7 +87,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff private java.lang.String type; /** - * [Output Only] The display name of the firewall policy. + * Output only. [Output Only] The display name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -94,7 +95,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the firewall policy. + * 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) { @@ -103,7 +104,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -111,7 +112,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -120,7 +121,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The packet mirroring rules that apply to the network. + * 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() { @@ -128,7 +129,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output only] The packet mirroring rules that apply to the network. + * 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) { @@ -137,7 +138,8 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -145,7 +147,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -154,7 +157,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The rules that apply to the network. + * Output only. [Output only] The rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getRules() { @@ -162,7 +165,7 @@ public java.util.List getRules() { } /** - * [Output only] The rules that apply to the network. + * 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) { @@ -171,7 +174,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ @@ -180,7 +183,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java index 41ed5c7ad76..f7c85ad355e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java @@ -30,7 +30,7 @@ public final class ReliabilityRisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class ReliabilityRisk extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks. + * 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 @@ -79,21 +80,21 @@ public final class ReliabilityRisk extends com.google.api.client.json.GenericJso private RiskRecommendation recommendation; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -101,7 +102,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReliabilityRisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -161,7 +162,8 @@ public ReliabilityRisk setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks. + * 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() { @@ -169,7 +171,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks. + * 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) { @@ -212,7 +215,7 @@ public ReliabilityRisk setRecommendation(RiskRecommendation recommendation) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -220,7 +223,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -229,7 +232,7 @@ public ReliabilityRisk setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -237,7 +240,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java index 2758ad2cd74..17bc9acfb9f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java @@ -66,14 +66,15 @@ public final class ReliabilityRisksListResponse extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public ReliabilityRisksListResponse setNextPageToken(java.lang.String nextPageTo } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public ReliabilityRisksListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public ReliabilityRisksListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java index 05bb117f066..f6548290836 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java @@ -30,23 +30,23 @@ public final class ReplicationDetails extends com.google.api.client.json.GenericJson { /** - * The last sync time of the device pair. + * Output only. The last sync time of the device pair. * The value may be {@code null}. */ @com.google.api.client.util.Key private String lastReplicationTime; /** - * Replication lag in seconds. This will only be populated if device is in replicating state. Note - * that the value is calculated sometime during request processing and at the instant the client - * receives the response, the current replication_lag may have changed. + * Output only. Replication lag in seconds. This will only be populated if device is in + * replicating state. Note that the value is calculated sometime during request processing and at + * the instant the client receives the response, the current replication_lag may have changed. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long secondsSinceLastReplication; /** - * The last sync time of the device pair. + * Output only. The last sync time of the device pair. * @return value or {@code null} for none */ public String getLastReplicationTime() { @@ -54,7 +54,7 @@ public String getLastReplicationTime() { } /** - * The last sync time of the device pair. + * Output only. The last sync time of the device pair. * @param lastReplicationTime lastReplicationTime or {@code null} for none */ public ReplicationDetails setLastReplicationTime(String lastReplicationTime) { @@ -63,9 +63,9 @@ public ReplicationDetails setLastReplicationTime(String lastReplicationTime) { } /** - * Replication lag in seconds. This will only be populated if device is in replicating state. Note - * that the value is calculated sometime during request processing and at the instant the client - * receives the response, the current replication_lag may have changed. + * Output only. Replication lag in seconds. This will only be populated if device is in + * replicating state. Note that the value is calculated sometime during request processing and at + * the instant the client receives the response, the current replication_lag may have changed. * @return value or {@code null} for none */ public java.lang.Long getSecondsSinceLastReplication() { @@ -73,9 +73,9 @@ public java.lang.Long getSecondsSinceLastReplication() { } /** - * Replication lag in seconds. This will only be populated if device is in replicating state. Note - * that the value is calculated sometime during request processing and at the instant the client - * receives the response, the current replication_lag may have changed. + * Output only. Replication lag in seconds. This will only be populated if device is in + * replicating state. Note that the value is calculated sometime during request processing and at + * the instant the client receives the response, the current replication_lag may have changed. * @param secondsSinceLastReplication secondsSinceLastReplication or {@code null} for none */ public ReplicationDetails setSecondsSinceLastReplication(java.lang.Long secondsSinceLastReplication) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java index efcc7ad1581..e80ee86e5c6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java @@ -30,21 +30,21 @@ public final class ReplicationDiskPair extends com.google.api.client.json.GenericJson { /** - * URL of the primary disk. + * Output only. URL of the primary disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String primaryDisk; /** - * URL of the secondary disk. + * Output only. URL of the secondary disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String secondaryDisk; /** - * URL of the primary disk. + * Output only. URL of the primary disk. * @return value or {@code null} for none */ public java.lang.String getPrimaryDisk() { @@ -52,7 +52,7 @@ public java.lang.String getPrimaryDisk() { } /** - * URL of the primary disk. + * Output only. URL of the primary disk. * @param primaryDisk primaryDisk or {@code null} for none */ public ReplicationDiskPair setPrimaryDisk(java.lang.String primaryDisk) { @@ -61,7 +61,7 @@ public ReplicationDiskPair setPrimaryDisk(java.lang.String primaryDisk) { } /** - * URL of the secondary disk. + * Output only. URL of the secondary disk. * @return value or {@code null} for none */ public java.lang.String getSecondaryDisk() { @@ -69,7 +69,7 @@ public java.lang.String getSecondaryDisk() { } /** - * URL of the secondary disk. + * Output only. URL of the secondary disk. * @param secondaryDisk secondaryDisk or {@code null} for none */ public ReplicationDiskPair setSecondaryDisk(java.lang.String secondaryDisk) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java index de51d7df2ca..3bb1735708f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -46,15 +46,21 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private AllocationAggregateReservation aggregateReservation; /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * 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; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 @@ -90,6 +96,15 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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. @@ -99,22 +114,23 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#reservations for reservations. + * 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] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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 @@ -131,6 +147,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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). @@ -140,7 +164,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String protectionTier; /** - * [Output only] Indicates the reservation mode of the reservation. + * Output only. [Output only] Indicates the reservation mode of the reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -163,14 +187,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.util.Map resourcePolicies; /** - * [Output Only] Status information for Reservation resource. + * 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] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -184,14 +208,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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 @@ -223,10 +247,10 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean specificReservationRequired; /** - * [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. + * 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 @@ -275,8 +299,8 @@ public Reservation setAggregateReservation(AllocationAggregateReservation aggreg } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * 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() { @@ -284,8 +308,8 @@ public java.lang.String getCommitment() { } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a 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) { @@ -294,7 +318,22 @@ public Reservation setCommitment(java.lang.String commitment) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * @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() { @@ -302,7 +341,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -382,6 +421,27 @@ public Reservation setDescription(java.lang.String 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. @@ -402,7 +462,8 @@ public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergent } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -410,7 +471,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -419,7 +481,7 @@ public Reservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -427,7 +489,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * 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) { @@ -436,8 +498,8 @@ public Reservation setKind(java.lang.String kind) { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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() { @@ -445,8 +507,8 @@ public java.util.List getLinkedCommitments() { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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) { @@ -479,6 +541,25 @@ public Reservation setName(java.lang.String 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). @@ -499,7 +580,7 @@ public Reservation setProtectionTier(java.lang.String protectionTier) { } /** - * [Output only] Indicates the reservation mode of the reservation. + * Output only. [Output only] Indicates the reservation mode of the reservation. * @return value or {@code null} for none */ public java.lang.String getReservationMode() { @@ -507,7 +588,7 @@ public java.lang.String getReservationMode() { } /** - * [Output only] Indicates the reservation mode of the reservation. + * Output only. [Output only] Indicates the reservation mode of the reservation. * @param reservationMode reservationMode or {@code null} for none */ public Reservation setReservationMode(java.lang.String reservationMode) { @@ -554,7 +635,7 @@ public Reservation setResourcePolicies(java.util.Map r } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @return value or {@code null} for none */ public AllocationResourceStatus getResourceStatus() { @@ -562,7 +643,7 @@ public AllocationResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { @@ -571,7 +652,7 @@ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -579,7 +660,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -605,7 +686,7 @@ public Reservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -613,7 +694,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -622,7 +703,7 @@ public Reservation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -630,7 +711,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Reservation setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -698,10 +779,10 @@ public Reservation setSpecificReservationRequired(java.lang.Boolean specificRese } /** - * [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. + * 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() { @@ -709,10 +790,10 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java index b89fe21e167..481d5487015 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -44,7 +44,7 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ReservationAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ReservationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index a4c5eb91439..aa570b1a944 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,67 +30,71 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] The number of resources that are allocated in this reservation block. + * 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] Creation timestamp inRFC3339 text format. + * 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] Health information for the reservation block. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The number of instances that are currently in use on this reservation block. + * 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; /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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] Obfuscated location where this reservation block physically resides in format - * /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: - * /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 + * Output only. [Output Only] Obfuscated location where this reservation block physically resides + * in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. + * Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String locationPrefix; /** - * [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 + * 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}. */ @@ -98,64 +102,66 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] The physical topology of the reservation block. + * 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] Maintenance information for this reservation block. + * 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] The number of reservation subBlocks associated with this reservation block. + * 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] 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. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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] Status of the reservation block. + * 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] Zone in which the reservation block resides. + * 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] The number of resources that are allocated in this reservation block. + * 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() { @@ -163,7 +169,8 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of resources that are allocated in this reservation block. + * 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) { @@ -172,7 +179,7 @@ public ReservationBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -180,7 +187,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -189,7 +196,7 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @return value or {@code null} for none */ public ReservationBlockHealthInfo getHealthInfo() { @@ -197,7 +204,7 @@ public ReservationBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @param healthInfo healthInfo or {@code null} for none */ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { @@ -206,7 +213,8 @@ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -214,7 +222,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -223,7 +232,8 @@ public ReservationBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * 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() { @@ -231,7 +241,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * 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) { @@ -240,8 +251,8 @@ public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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() { @@ -249,8 +260,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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) { @@ -259,7 +270,8 @@ public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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() { @@ -267,7 +279,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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) { @@ -276,9 +289,9 @@ public ReservationBlock setKind(java.lang.String kind) { } /** - * [Output Only] Obfuscated location where this reservation block physically resides in format - * /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: - * /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 + * Output only. [Output Only] Obfuscated location where this reservation block physically resides + * in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. + * Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 * @return value or {@code null} for none */ public java.lang.String getLocationPrefix() { @@ -286,9 +299,9 @@ public java.lang.String getLocationPrefix() { } /** - * [Output Only] Obfuscated location where this reservation block physically resides in format - * /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: - * /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 + * Output only. [Output Only] Obfuscated location where this reservation block physically resides + * in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. + * Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 * @param locationPrefix locationPrefix or {@code null} for none */ public ReservationBlock setLocationPrefix(java.lang.String locationPrefix) { @@ -297,8 +310,8 @@ public ReservationBlock setLocationPrefix(java.lang.String locationPrefix) { } /** - * [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 + * 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 */ @@ -307,8 +320,8 @@ public java.lang.String getName() { } /** - * [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 + * 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 */ @@ -318,7 +331,7 @@ public ReservationBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopology getPhysicalTopology() { @@ -326,7 +339,7 @@ public ReservationBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { @@ -335,7 +348,7 @@ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology phy } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationMaintenance() { @@ -343,7 +356,7 @@ public GroupMaintenanceInfo getReservationMaintenance() { } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @param reservationMaintenance reservationMaintenance or {@code null} for none */ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { @@ -352,7 +365,8 @@ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservati } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * 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() { @@ -360,7 +374,8 @@ public java.lang.Integer getReservationSubBlockCount() { } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * 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) { @@ -369,8 +384,8 @@ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservatio } /** - * [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. + * 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() { @@ -378,8 +393,8 @@ public java.lang.Integer getReservationSubBlockInUseCount() { } /** - * [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. + * 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) { @@ -388,7 +403,7 @@ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reser } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -396,7 +411,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -405,7 +420,7 @@ public ReservationBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -413,7 +428,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -422,7 +437,7 @@ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -430,7 +445,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @param status status or {@code null} for none */ public ReservationBlock setStatus(java.lang.String status) { @@ -439,7 +454,7 @@ public ReservationBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation block resides. + * Output only. [Output Only] Zone in which the reservation block resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -447,7 +462,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation block resides. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java index 53e85cffd67..b51a80d1123 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -44,7 +44,7 @@ public final class ReservationBlockPhysicalTopology extends com.google.api.clien private java.lang.String cluster; /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,7 @@ public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { } /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * @return value or {@code null} for none */ public java.util.List getInstances() { @@ -93,7 +93,7 @@ public java.util.List getInstances() { } /** - * The detailed instances information for a given Block + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java index bca68a5e4f5..74bbbacca30 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -37,7 +37,7 @@ public final class ReservationBlockPhysicalTopologyInstance extends com.google.a private java.math.BigInteger instanceId; /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteg } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { @@ -76,7 +76,7 @@ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalH } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java index b036cd71a72..0bad0666237 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -50,7 +50,8 @@ public final class ReservationList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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 @@ -67,7 +68,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public ReservationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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) { @@ -155,7 +158,7 @@ public ReservationList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java new file mode 100644 index 00000000000..9a5b6a712ab --- /dev/null +++ b/clients/google-api-services-compute/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 9ae87d6d051..7e39ffbcc94 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -30,66 +30,68 @@ public final class ReservationSubBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] Slice info for the reservation subBlock. + * 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] The number of hosts that are allocated in this reservation subBlock. + * 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] Creation timestamp inRFC3339 text format. + * 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] Health information for the reservation subBlock. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The number of instances that are currently in use on this reservation subBlock. + * 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; /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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] The name of this reservation subBlock generated by Google Compute Engine. The - * name must be 1-63 characters long, and comply with RFC1035 @pattern + * 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}. */ @@ -97,49 +99,49 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi private java.lang.String name; /** - * [Output Only] The physical topology of the reservation subBlock. + * 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; /** - * Maintenance information for this reservation subBlock. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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] Status of the reservation subBlock. + * 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] Zone in which the reservation subBlock resides. + * 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] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @return value or {@code null} for none */ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { @@ -147,7 +149,7 @@ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { } /** - * [Output Only] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none */ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { @@ -156,7 +158,7 @@ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInf } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * 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() { @@ -164,7 +166,7 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * 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) { @@ -173,7 +175,7 @@ public ReservationSubBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -181,7 +183,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -190,7 +192,7 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockHealthInfo getHealthInfo() { @@ -198,7 +200,7 @@ public ReservationSubBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @param healthInfo healthInfo or {@code null} for none */ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { @@ -207,7 +209,8 @@ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInf } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -215,7 +218,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -224,7 +228,8 @@ public ReservationSubBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * 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() { @@ -232,7 +237,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * 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) { @@ -241,8 +247,8 @@ public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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() { @@ -250,8 +256,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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) { @@ -260,8 +266,8 @@ public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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() { @@ -269,8 +275,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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) { @@ -279,8 +285,8 @@ public ReservationSubBlock setKind(java.lang.String kind) { } /** - * [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 + * 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 */ @@ -289,8 +295,8 @@ public java.lang.String getName() { } /** - * [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 + * 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 */ @@ -300,7 +306,7 @@ public ReservationSubBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { @@ -308,7 +314,7 @@ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { @@ -317,7 +323,7 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { @@ -325,7 +331,7 @@ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none */ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { @@ -334,7 +340,7 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -342,7 +348,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -351,7 +357,7 @@ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -359,7 +365,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -368,7 +374,7 @@ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -376,7 +382,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @param status status or {@code null} for none */ public ReservationSubBlock setStatus(java.lang.String status) { @@ -385,7 +391,7 @@ public ReservationSubBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * Output only. [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -393,7 +399,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java index c133485b98f..4edc694b687 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -31,7 +31,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -72,7 +73,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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 @@ -96,21 +98,21 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private java.lang.String region; /** - * [Output Only] The system status of the resource policy. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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 @@ -124,7 +126,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,7 +147,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyWorkloadPolicy workloadPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -153,7 +155,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -211,7 +213,8 @@ public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -219,7 +222,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -245,7 +249,8 @@ public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePo } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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() { @@ -253,7 +258,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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) { @@ -302,7 +308,7 @@ public ResourcePolicy setRegion(java.lang.String region) { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @return value or {@code null} for none */ public ResourcePolicyResourceStatus getResourceStatus() { @@ -310,7 +316,7 @@ public ResourcePolicyResourceStatus getResourceStatus() { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @param resourceStatus resourceStatus or {@code null} for none */ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { @@ -319,7 +325,7 @@ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceSta } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -327,7 +333,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -336,7 +342,7 @@ public ResourcePolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -344,7 +350,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public ResourcePolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -370,7 +376,7 @@ public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePo } /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -378,7 +384,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of resource policy creation. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java index 62d0b0d5449..50b94076f75 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -56,7 +56,7 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,14 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,7 @@ public ResourcePolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ResourcePolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java index 3bdee011222..a23209854dd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -38,8 +38,8 @@ public final class ResourcePolicyDailyCycle extends com.google.api.client.json.G private java.lang.Integer daysInCycle; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 @@ -73,8 +73,8 @@ public ResourcePolicyDailyCycle setDaysInCycle(java.lang.Integer daysInCycle) { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -82,8 +82,8 @@ public java.lang.String getDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java index 344c0e6dd69..7bc231a7392 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -30,8 +30,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json.GenericJson { /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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 @@ -54,8 +54,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json. private java.lang.String startTime; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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() { @@ -63,8 +63,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java index 0e74d741445..495e033dbc4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -56,7 +56,8 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +74,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +137,8 @@ public ResourcePolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * 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) { @@ -176,7 +179,7 @@ public ResourcePolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -184,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java index 0d0dcd61a5e..530e452effd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -32,16 +32,18 @@ public final class ResourcePolicyResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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() { @@ -49,8 +51,9 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSched } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java index ee231f26daa..4a6a22e20dd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -30,22 +30,24 @@ public final class ResourcePolicyResourceStatusInstanceSchedulePolicyStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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() { @@ -53,7 +55,8 @@ public java.lang.String getLastRunStartTime() { } /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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) { @@ -62,8 +65,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartT } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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() { @@ -71,8 +74,8 @@ public java.lang.String getNextRunStartTime() { } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java index c95509acb7f..620437c3886 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -39,8 +39,8 @@ public final class ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.cli private java.lang.String day; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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 @@ -76,8 +76,8 @@ public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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() { @@ -85,8 +85,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index 02e54b248be..df85a48697c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -31,64 +31,67 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] Accelerators status show results of GPU scans. These scans are specialized - * diagnostic tests designed to uncover latent manufacturing defects or other issues that could - * potentially lead to data corruption or impede the customer's ability to efficiently execute GPU - * workloads. + * Output only. [Output Only] Accelerators status show results of GPU scans. These scans are + * specialized diagnostic tests designed to uncover latent manufacturing defects or other issues + * that could potentially lead to data corruption or impede the customer's ability to efficiently + * execute GPU workloads. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List acceleratorStatus; /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * 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] The full resource name of the reservation block that this instance is consuming - * from. + * 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] 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. + * 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] Contains last termination details why the instance was terminated. + * Output only. [Output Only] Contains last termination details why the instance was terminated. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourceStatusLastInstanceTerminationDetails lastInstanceTerminationDetails; /** - * [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. + * 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] 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. + * 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] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +112,7 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private java.util.Map serviceIntegrationStatuses; /** - * [Output Only] Details about the instance stopping state. + * Output only. [Output Only] Details about the instance stopping state. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,10 +125,10 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private UpcomingMaintenance upcomingMaintenance; /** - * [Output Only] Accelerators status show results of GPU scans. These scans are specialized - * diagnostic tests designed to uncover latent manufacturing defects or other issues that could - * potentially lead to data corruption or impede the customer's ability to efficiently execute GPU - * workloads. + * Output only. [Output Only] Accelerators status show results of GPU scans. These scans are + * specialized diagnostic tests designed to uncover latent manufacturing defects or other issues + * that could potentially lead to data corruption or impede the customer's ability to efficiently + * execute GPU workloads. * @return value or {@code null} for none */ public java.util.List getAcceleratorStatus() { @@ -133,10 +136,10 @@ public java.util.List getAcceleratorStatus() { } /** - * [Output Only] Accelerators status show results of GPU scans. These scans are specialized - * diagnostic tests designed to uncover latent manufacturing defects or other issues that could - * potentially lead to data corruption or impede the customer's ability to efficiently execute GPU - * workloads. + * Output only. [Output Only] Accelerators status show results of GPU scans. These scans are + * specialized diagnostic tests designed to uncover latent manufacturing defects or other issues + * that could potentially lead to data corruption or impede the customer's ability to efficiently + * execute GPU workloads. * @param acceleratorStatus acceleratorStatus or {@code null} for none */ public ResourceStatus setAcceleratorStatus(java.util.List acceleratorStatus) { @@ -145,7 +148,8 @@ public ResourceStatus setAcceleratorStatus(java.util.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: @@ -44,7 +47,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String completionTime; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,14 +75,15 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String etag; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#rollout for rollouts. + * 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 @@ -96,6 +100,20 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @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}. @@ -112,14 +130,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String rolloutPlan; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -174,7 +192,7 @@ public Rollout setCompletionTime(java.lang.String completionTime) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -182,7 +200,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Rollout setCreationTimestamp(java.lang.String creationTimestamp) { @@ -242,7 +260,8 @@ public Rollout setEtag(java.lang.String etag) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -250,7 +269,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -259,7 +279,7 @@ public Rollout setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#rollout for rollouts. + * 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() { @@ -267,7 +287,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#rollout for rollouts. + * 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) { @@ -300,6 +320,40 @@ public Rollout setName(java.lang.String 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 @@ -337,7 +391,7 @@ public Rollout setRolloutPlan(java.lang.String rolloutPlan) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -345,7 +399,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -354,7 +408,7 @@ public Rollout setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -362,7 +416,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java index c24af287777..712a6961446 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java @@ -17,7 +17,11 @@ package com.google.api.services.compute.model; /** - * Message describing RolloutPlan object + * 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: @@ -30,7 +34,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,14 +48,15 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * 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 @@ -77,14 +82,14 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -98,7 +103,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.util.List waves; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +111,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RolloutPlan setCreationTimestamp(java.lang.String creationTimestamp) { @@ -132,7 +137,8 @@ public RolloutPlan setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -140,7 +146,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -149,7 +156,7 @@ public RolloutPlan setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * 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() { @@ -157,7 +164,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * 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) { @@ -210,7 +217,7 @@ public RolloutPlan setName(java.lang.String name) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -218,7 +225,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -227,7 +234,7 @@ public RolloutPlan setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -235,7 +242,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java index beb3942d8a9..88f9bd42c32 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java @@ -66,14 +66,15 @@ public final class RolloutPlansListResponse extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public RolloutPlansListResponse setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutPlansListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java index 7dd72f4b0fa..a7b6ac697b0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java @@ -36,6 +36,14 @@ public final class RolloutWaveDetailsOrchestratedWaveDetails extends com.google. @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}. @@ -59,6 +67,14 @@ public final class RolloutWaveDetailsOrchestratedWaveDetails extends com.google. @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 @@ -76,6 +92,25 @@ public RolloutWaveDetailsOrchestratedWaveDetails setCompletedResourcesCount(java 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 @@ -131,6 +166,25 @@ public RolloutWaveDetailsOrchestratedWaveDetails setFailedResourcesCount(java.la 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); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java index 9c0deff71b3..c49f5389511 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java @@ -66,14 +66,15 @@ public final class RolloutsListResponse extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public RolloutsListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public RolloutsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java index 9ad3cd86ca9..469316e566e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java @@ -43,14 +43,14 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.Boolean allowConflictingSubnetworks; /** - * [Output Only] AS path. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +73,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String destRange; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -88,7 +89,7 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String ilbRouteBehaviorOnUnhealthy; /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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 @@ -122,8 +123,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopGateway; /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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 @@ -156,17 +157,18 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopInstance; /** - * [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. + * 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] 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. + * 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 @@ -184,8 +186,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopIp; /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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 @@ -199,16 +201,16 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopNetwork; /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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 @@ -240,18 +242,18 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.Long priority; /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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] 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 + * 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 @@ -265,7 +267,7 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -279,8 +281,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.util.List tags; /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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 @@ -314,7 +316,7 @@ public Route setAllowConflictingSubnetworks(java.lang.Boolean allowConflictingSu } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -322,7 +324,7 @@ public java.util.List getAsPaths() { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @param asPaths asPaths or {@code null} for none */ public Route setAsPaths(java.util.List asPaths) { @@ -331,7 +333,7 @@ public Route setAsPaths(java.util.List asPaths) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -339,7 +341,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Route setCreationTimestamp(java.lang.String creationTimestamp) { @@ -386,7 +388,8 @@ public Route setDestRange(java.lang.String destRange) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -394,7 +397,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -422,7 +426,7 @@ public Route setIlbRouteBehaviorOnUnhealthy(java.lang.String ilbRouteBehaviorOnU } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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() { @@ -430,7 +434,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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) { @@ -502,8 +506,8 @@ public Route setNextHopGateway(java.lang.String nextHopGateway) { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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() { @@ -511,8 +515,8 @@ public java.lang.String getNextHopHub() { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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) { @@ -579,8 +583,9 @@ public Route setNextHopInstance(java.lang.String nextHopInstance) { } /** - * [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. + * 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() { @@ -588,8 +593,9 @@ public java.lang.Long getNextHopInterRegionCost() { } /** - * [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. + * 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) { @@ -598,9 +604,9 @@ public Route setNextHopInterRegionCost(java.lang.Long nextHopInterRegionCost) { } /** - * [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. + * 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() { @@ -608,9 +614,9 @@ public java.lang.String getNextHopInterconnectAttachment() { } /** - * [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. + * 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) { @@ -644,8 +650,8 @@ public Route setNextHopIp(java.lang.String nextHopIp) { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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() { @@ -653,8 +659,8 @@ public java.lang.Long getNextHopMed() { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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) { @@ -680,8 +686,8 @@ public Route setNextHopNetwork(java.lang.String nextHopNetwork) { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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() { @@ -689,8 +695,8 @@ public java.lang.String getNextHopOrigin() { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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) { @@ -699,8 +705,8 @@ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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() { @@ -708,8 +714,8 @@ public java.lang.String getNextHopPeering() { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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) { @@ -777,8 +783,8 @@ public Route setPriority(java.lang.Long priority) { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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() { @@ -786,8 +792,8 @@ public java.lang.String getRouteStatus() { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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) { @@ -796,10 +802,10 @@ public Route setRouteStatus(java.lang.String routeStatus) { } /** - * [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 + * 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() { @@ -807,10 +813,10 @@ public java.lang.String getRouteType() { } /** - * [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 + * 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) { @@ -836,7 +842,7 @@ public Route setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -844,7 +850,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Route setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -870,8 +876,8 @@ public Route setTags(java.util.List tags) { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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() { @@ -879,8 +885,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java index 9052a3d434e..cd5b56ea9e0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -50,7 +50,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouteList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouteList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouteList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java index 763be891a01..a418e5f4ecc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java @@ -48,7 +48,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List bgpPeers; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List interfaces; /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -158,7 +158,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -203,7 +203,7 @@ public Router setBgpPeers(java.util.List bgpPeers) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -211,7 +211,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Router setCreationTimestamp(java.lang.String creationTimestamp) { @@ -300,7 +300,7 @@ public Router setInterfaces(java.util.List interfaces) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -308,7 +308,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * 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) { @@ -465,7 +465,7 @@ public Router setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -473,7 +473,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Router setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java index 307e0afc33c..db21c3e9216 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -44,7 +44,7 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public RouterAggregatedList setItems(java.util.Map it } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouterAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public RouterAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RouterAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java index b96bcaed7d8..44e993f198c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -175,12 +175,12 @@ public final class RouterBgpPeer extends com.google.api.client.json.GenericJson private java.lang.String linkedCustomHardware; /** - * [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. + * 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 @@ -573,12 +573,12 @@ public RouterBgpPeer setLinkedCustomHardware(java.lang.String linkedCustomHardwa } /** - * [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. + * 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() { @@ -586,12 +586,12 @@ public java.lang.String getManagementType() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java index 93e8c4c2c42..779d4921d86 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -69,12 +69,12 @@ public final class RouterInterface extends com.google.api.client.json.GenericJso private java.lang.String linkedVpnTunnel; /** - * [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. + * 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 @@ -214,12 +214,12 @@ public RouterInterface setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { } /** - * [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. + * 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() { @@ -227,12 +227,12 @@ public java.lang.String getManagementType() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java index 6f5d8bad44d..95df0e9398e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -50,7 +50,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouterList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * 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) { @@ -155,7 +155,7 @@ public RouterList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java index 05cdc558e85..5f19258d4f0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -49,42 +49,44 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private BfdStatus bfdStatus; /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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; /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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; /** - * IP address of the local BGP interface. + * 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; /** - * IPv4 address of the local BGP interface. + * 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; /** - * IPv6 address of the local BGP interface. + * 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; /** - * The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This + * Output only. The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This * CustomHardwareLinkAttachment resource is the one that will establish the BGP session from the * Cloud Router. * The value may be {@code null}. @@ -93,7 +95,7 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.String linkedCustomHardware; /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,59 +109,59 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.Boolean md5AuthEnabled; /** - * Name of this BGP peer. Unique within the Routers resource. + * 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; /** - * Number of routes learned from the remote BGP Peer. + * 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; /** - * IP address of the remote BGP interface. + * 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; /** - * IPv4 address of the remote BGP interface. + * 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; /** - * IPv6 address of the remote BGP interface. + * 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] 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. + * 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; /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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; /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -173,15 +175,15 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.String statusReason; /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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; /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -220,7 +222,8 @@ public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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() { @@ -228,7 +231,8 @@ public java.lang.Boolean getEnableIpv4() { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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) { @@ -237,7 +241,8 @@ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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() { @@ -245,7 +250,8 @@ public java.lang.Boolean getEnableIpv6() { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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) { @@ -254,7 +260,7 @@ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -262,7 +268,7 @@ public java.lang.String getIpAddress() { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @param ipAddress ipAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { @@ -271,7 +277,7 @@ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv4NexthopAddress() { @@ -279,7 +285,7 @@ public java.lang.String getIpv4NexthopAddress() { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { @@ -288,7 +294,7 @@ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4Next } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv6NexthopAddress() { @@ -296,7 +302,7 @@ public java.lang.String getIpv6NexthopAddress() { } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { @@ -305,7 +311,7 @@ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6Next } /** - * The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This + * Output only. The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This * CustomHardwareLinkAttachment resource is the one that will establish the BGP session from the * Cloud Router. * @return value or {@code null} for none @@ -315,7 +321,7 @@ public java.lang.String getLinkedCustomHardware() { } /** - * The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This + * Output only. The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This * CustomHardwareLinkAttachment resource is the one that will establish the BGP session from the * Cloud Router. * @param linkedCustomHardware linkedCustomHardware or {@code null} for none @@ -326,7 +332,7 @@ public RouterStatusBgpPeerStatus setLinkedCustomHardware(java.lang.String linked } /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * @return value or {@code null} for none */ public java.lang.String getLinkedVpnTunnel() { @@ -334,7 +340,7 @@ public java.lang.String getLinkedVpnTunnel() { } /** - * URL of the VPN tunnel that this BGP peer controls. + * 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) { @@ -360,7 +366,7 @@ public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnab } /** - * Name of this BGP peer. Unique within the Routers resource. + * Output only. Name of this BGP peer. Unique within the Routers resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -368,7 +374,7 @@ public java.lang.String getName() { } /** - * Name of this BGP peer. Unique within the Routers resource. + * 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) { @@ -377,7 +383,7 @@ public RouterStatusBgpPeerStatus setName(java.lang.String name) { } /** - * Number of routes learned from the remote BGP Peer. + * Output only. Number of routes learned from the remote BGP Peer. * @return value or {@code null} for none */ public java.lang.Long getNumLearnedRoutes() { @@ -385,7 +391,7 @@ public java.lang.Long getNumLearnedRoutes() { } /** - * Number of routes learned from the remote BGP Peer. + * 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) { @@ -394,7 +400,7 @@ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRo } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -402,7 +408,7 @@ public java.lang.String getPeerIpAddress() { } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { @@ -411,7 +417,7 @@ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv4NexthopAddress() { @@ -419,7 +425,7 @@ public java.lang.String getPeerIpv4NexthopAddress() { } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { @@ -428,7 +434,7 @@ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peer } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv6NexthopAddress() { @@ -436,7 +442,7 @@ public java.lang.String getPeerIpv6NexthopAddress() { } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { @@ -445,9 +451,9 @@ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peer } /** - * [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. + * 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() { @@ -455,9 +461,9 @@ public java.lang.String getRouterApplianceInstance() { } /** - * [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. + * 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) { @@ -466,8 +472,8 @@ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String rou } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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() { @@ -475,8 +481,8 @@ public java.lang.String getState() { } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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) { @@ -485,7 +491,7 @@ public RouterStatusBgpPeerStatus setState(java.lang.String state) { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -493,7 +499,7 @@ public java.lang.String getStatus() { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @param status status or {@code null} for none */ public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { @@ -519,8 +525,8 @@ public RouterStatusBgpPeerStatus setStatusReason(java.lang.String statusReason) } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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() { @@ -528,8 +534,8 @@ public java.lang.String getUptime() { } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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) { @@ -538,7 +544,7 @@ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { } /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * @return value or {@code null} for none */ public java.lang.String getUptimeSeconds() { @@ -546,7 +552,7 @@ public java.lang.String getUptimeSeconds() { } /** - * Time this session has been up, in seconds. Format: 145 + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java index 7444eae4ae0..ef71891d9b5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -30,14 +30,14 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.GenericJson { /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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}. */ @@ -45,7 +45,7 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainAutoAllocatedNatIps; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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}. */ @@ -53,23 +53,23 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainUserAllocatedNatIps; /** - * 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. + * 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; /** - * Unique name of this NAT. + * Output only. Unique name of this NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * Number of VM endpoints (i.e., Nics) that can use NAT. + * 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 @@ -83,21 +83,22 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List ruleStatus; /** - * A list of fully qualified URLs of reserved IP address resources. + * 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; /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * 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; /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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() { @@ -105,7 +106,7 @@ public java.util.List getAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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) { @@ -114,7 +115,7 @@ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List getDrainAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -133,7 +134,7 @@ public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List getDrainUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -152,9 +153,9 @@ public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List getUserAllocatedNatIpResources() { @@ -232,7 +233,7 @@ public java.util.List getUserAllocatedNatIpResources() { } /** - * A list of fully qualified URLs of reserved IP address resources. + * 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) { @@ -241,7 +242,8 @@ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List getUserAllocatedNatIps() { @@ -249,7 +251,8 @@ public java.util.List getUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java index db7f3b5c89d..cbbdfb39f77 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -30,43 +30,44 @@ public final class RouterStatusNatStatusNatRuleStatus extends com.google.api.client.json.GenericJson { /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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; /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * 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; /** - * 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. + * 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; /** - * Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * 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; /** - * Rule number of the rule. + * Output only. Rule number of the rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer ruleNumber; /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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() { @@ -74,7 +75,7 @@ public java.util.List getActiveNatIps() { } /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -83,7 +84,8 @@ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List getDrainNatIps() { @@ -91,7 +93,8 @@ public java.util.List getDrainNatIps() { } /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -100,8 +103,8 @@ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +203,7 @@ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListBgpRoutes setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java index 4a30536d130..4e536a46cba 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java @@ -43,7 +43,8 @@ public final class RoutersListNamedSets extends com.google.api.client.json.Gener private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets. + * 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 @@ -73,14 +74,14 @@ public final class RoutersListNamedSets extends com.google.api.client.json.Gener } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,7 +127,8 @@ public RoutersListNamedSets setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets. + * 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() { @@ -134,7 +136,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets. + * 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) { @@ -183,7 +186,7 @@ public RoutersListNamedSets setResult(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +203,7 @@ public RoutersListNamedSets setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListNamedSets setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java index b527ad775a6..1a62c00b46b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -43,8 +43,8 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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 @@ -74,14 +74,14 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +127,8 @@ public RoutersListRoutePolicies setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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() { @@ -136,8 +136,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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) { @@ -186,7 +186,7 @@ public RoutersListRoutePolicies setResult(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +203,7 @@ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListRoutePolicies setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java index bf7e29946a2..200770cde8a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -67,7 +67,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.Long diskSizeGb; /** - * [Output Only] URL of the disk type resource. For + * 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}. */ @@ -89,7 +89,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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 @@ -103,14 +103,14 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,17 +131,18 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String source; /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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] 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. + * 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 @@ -244,7 +245,7 @@ public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] URL of the disk type resource. For + * 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 */ @@ -253,7 +254,7 @@ public java.lang.String getDiskType() { } /** - * [Output Only] URL of the disk type resource. For + * 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 */ @@ -282,7 +283,7 @@ public SavedAttachedDisk setGuestOsFeatures(java.util.List guest } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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() { @@ -290,7 +291,7 @@ public java.lang.Integer getIndex() { } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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) { @@ -316,7 +317,7 @@ public SavedAttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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() { @@ -324,7 +325,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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) { @@ -333,7 +334,7 @@ public SavedAttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -341,7 +342,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible 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) { @@ -384,7 +385,8 @@ public SavedAttachedDisk setSource(java.lang.String source) { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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() { @@ -392,7 +394,8 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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) { @@ -401,10 +404,10 @@ public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -412,10 +415,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java index a9935b2bb70..aaed00e16f7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -30,45 +30,45 @@ public final class SavedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. + * 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] Type of the resource. Always compute#savedDisk for attached disks. + * 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; /** - * Specifies a URL of the disk attached to the source instance. + * 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] Size of the individual disk snapshot used by this machine image. + * 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] 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. + * 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] The architecture of the attached disk. + * Output only. [Output Only] The architecture of the attached disk. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -76,7 +76,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. + * 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) { @@ -85,7 +85,7 @@ public SavedDisk setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * 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) { @@ -102,7 +102,7 @@ public SavedDisk setKind(java.lang.String kind) { } /** - * Specifies a URL of the disk attached to the source instance. + * 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() { @@ -110,7 +110,7 @@ public java.lang.String getSourceDisk() { } /** - * Specifies a URL of the disk attached to the source instance. + * 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) { @@ -119,7 +119,7 @@ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * 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() { @@ -127,7 +127,7 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * 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) { @@ -136,10 +136,10 @@ public SavedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -147,10 +147,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java index 4eed043ce0c..3aabd23a6e1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -37,7 +37,7 @@ public final class Screenshot extends com.google.api.client.json.GenericJson { private java.lang.String contents; /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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 @@ -61,7 +61,7 @@ public Screenshot setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java index b6a54a3106a..a84058c3cc4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -50,8 +50,8 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of - * Security Policies. + * 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 @@ -68,14 +68,14 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SecurityPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java index cf3d4120905..8544db33c52 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -58,7 +58,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private SecurityPolicyCloudArmorConfig cloudArmorConfig; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,14 +104,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,7 +151,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,16 +164,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig; /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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; /** - * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all security policy rule tuples. A security policy + * can not exceed a set number of tuples. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -189,14 +191,14 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List rules; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -316,7 +318,7 @@ public SecurityPolicy setCloudArmorConfig(SecurityPolicyCloudArmorConfig cloudAr } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -324,7 +326,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -463,7 +465,8 @@ public SecurityPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -471,7 +474,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -480,7 +484,8 @@ public SecurityPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -488,7 +493,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * 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) { @@ -606,7 +612,7 @@ public SecurityPolicy setName(java.lang.String name) { } /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -614,7 +620,7 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the security policy. + * 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) { @@ -638,8 +644,8 @@ public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsCo } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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() { @@ -647,8 +653,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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) { @@ -657,8 +663,8 @@ public SecurityPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all security policy rule tuples. A security policy + * can not exceed a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -666,8 +672,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all security policy rule tuples. A security policy + * can not exceed a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -701,7 +707,7 @@ public SecurityPolicy setRules(java.util.List rules) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -709,7 +715,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -718,7 +724,7 @@ public SecurityPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -726,7 +732,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SecurityPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java index 57ec4989820..9476b243de5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -37,7 +37,7 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String attachmentId; /** - * [Output Only] The display name of the security policy of the association. + * 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 @@ -65,14 +65,14 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * [Output Only] The security policy ID of the association. + * 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] The short name of the security policy of the association. + * 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 @@ -96,7 +96,7 @@ public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) } /** - * [Output Only] The display name of the security policy of the association. + * 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() { @@ -104,7 +104,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the security policy of the association. + * 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) { @@ -164,7 +164,7 @@ public SecurityPolicyAssociation setName(java.lang.String name) { } /** - * [Output Only] The security policy ID of the association. + * Output only. [Output Only] The security policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getSecurityPolicyId() { @@ -172,7 +172,7 @@ public java.lang.String getSecurityPolicyId() { } /** - * [Output Only] The security policy ID of the association. + * 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) { @@ -181,7 +181,7 @@ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPo } /** - * [Output Only] The short name of the security policy of the association. + * 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() { @@ -189,7 +189,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the security policy of the association. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java index fb8b80d49ca..33873905536 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java @@ -36,14 +36,18 @@ public final class SecurityPolicyDdosProtectionConfig extends com.google.api.cli private java.lang.String ddosAdaptiveProtection; /** - * Adaptive 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. + * 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 ddosAdaptiveImpactedBaselineThreshold 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 - * between 0.01 and 0.10. + * 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 @@ -71,14 +75,18 @@ public SecurityPolicyDdosProtectionConfig setDdosAdaptiveProtection(java.lang.St } /** - * Adaptive 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. + * 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 ddosAdaptiveImpactedBaselineThreshold 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 - * between 0.01 and 0.10. + * 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() { @@ -86,14 +94,18 @@ public java.lang.Float getDdosImpactedBaselineThreshold() { } /** - * Adaptive 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. + * 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 ddosAdaptiveImpactedBaselineThreshold 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 - * between 0.01 and 0.10. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java index 87fa15c75a8..aeea33780ca 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -56,7 +56,8 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +74,7 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +137,8 @@ public SecurityPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * 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) { @@ -176,7 +179,7 @@ public SecurityPolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPolicyList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java index 2857374f216..4e161a8377f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -85,7 +85,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private SecurityPolicyRuleHttpHeaderAction headerAction; /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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 @@ -182,8 +183,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private java.lang.String redirectTarget; /** - * [Output Only] The minimum Cloud Armor subscription required for this rule. [Deprecated] Use - * requiredManagedProtectionTiers instead. + * Output only. [Output Only] The minimum Cloud Armor subscription required for this rule. + * [Deprecated] Use requiredManagedProtectionTiers instead. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,7 +199,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private java.lang.Long ruleNumber; /** - * [Output Only] Calculation of the complexity of a single firewall security policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall security policy + * rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -346,7 +348,8 @@ public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction hea } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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() { @@ -354,7 +357,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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) { @@ -567,8 +571,8 @@ public SecurityPolicyRule setRedirectTarget(java.lang.String redirectTarget) { } /** - * [Output Only] The minimum Cloud Armor subscription required for this rule. [Deprecated] Use - * requiredManagedProtectionTiers instead. + * Output only. [Output Only] The minimum Cloud Armor subscription required for this rule. + * [Deprecated] Use requiredManagedProtectionTiers instead. * @return value or {@code null} for none */ public java.lang.String getRuleManagedProtectionTier() { @@ -576,8 +580,8 @@ public java.lang.String getRuleManagedProtectionTier() { } /** - * [Output Only] The minimum Cloud Armor subscription required for this rule. [Deprecated] Use - * requiredManagedProtectionTiers instead. + * Output only. [Output Only] The minimum Cloud Armor subscription required for this rule. + * [Deprecated] Use requiredManagedProtectionTiers instead. * @param ruleManagedProtectionTier ruleManagedProtectionTier or {@code null} for none */ public SecurityPolicyRule setRuleManagedProtectionTier(java.lang.String ruleManagedProtectionTier) { @@ -605,7 +609,8 @@ public SecurityPolicyRule setRuleNumber(java.lang.Long ruleNumber) { } /** - * [Output Only] Calculation of the complexity of a single firewall security policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall security policy + * rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -613,7 +618,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single firewall security policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall security policy + * rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java index c0e4da81a12..6ffbb122749 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com.google.api.client.json.GenericJson { + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestBodiesToExclude; + /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. @@ -78,6 +86,25 @@ public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com @com.google.api.client.util.Key private java.lang.String targetRuleSet; + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * @return value or {@code null} for none + */ + public java.util.List getRequestBodiesToExclude() { + return requestBodiesToExclude; + } + + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * @param requestBodiesToExclude requestBodiesToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestBodiesToExclude(java.util.List requestBodiesToExclude) { + this.requestBodiesToExclude = requestBodiesToExclude; + return this; + } + /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java index bbb282182db..55658088fdb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -37,7 +37,8 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.String contents; /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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 @@ -53,7 +54,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.Long next; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +89,8 @@ public SerialPortOutput setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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() { @@ -96,7 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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) { @@ -126,7 +129,7 @@ public SerialPortOutput setNext(java.lang.Long next) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java index 4e614e1b586..60323086c10 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -34,8 +34,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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 @@ -73,7 +73,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.util.List consumerRejectLists; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,15 +115,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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 @@ -181,7 +182,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Long propagatedConnectionLimit; /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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 @@ -202,16 +203,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Boolean reconcileConnections; /** - * [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. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -236,8 +237,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private ServiceAttachmentTunnelingConfig tunnelingConfig; /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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() { @@ -245,8 +246,8 @@ public java.util.List getConnectedEndpoints( } /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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) { @@ -326,7 +327,7 @@ public ServiceAttachment setConsumerRejectLists(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -334,7 +335,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -461,8 +462,8 @@ public ServiceAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -470,8 +471,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -480,7 +481,8 @@ public ServiceAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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() { @@ -488,7 +490,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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) { @@ -614,7 +617,7 @@ public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedC } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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() { @@ -622,7 +625,7 @@ public Uint128 getPscServiceAttachmentId() { } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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) { @@ -662,9 +665,9 @@ public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConn } /** - * [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. + * 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() { @@ -672,9 +675,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -683,7 +686,7 @@ public ServiceAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -691,7 +694,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java index c059c93940b..4e76e05905c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -44,7 +44,7 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ServiceAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ServiceAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java index da01d8aa8a6..ae7bbed5851 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -50,7 +50,8 @@ public final class ServiceAttachmentList extends com.google.api.client.json.Gene } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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 @@ -115,7 +116,8 @@ public ServiceAttachmentList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java index 6aead1f593f..4381a64c967 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -51,8 +51,8 @@ public final class ShieldedInstanceIdentity extends com.google.api.client.json.G private ShieldedInstanceIdentityEntry encryptionKey; /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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 @@ -117,8 +117,8 @@ public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry e } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java index d284f34ce5b..f9eaa9d86b5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java @@ -37,8 +37,8 @@ public final class ShieldedVmIdentity extends com.google.api.client.json.Generic private ShieldedVmIdentityEntry encryptionKey; /** - * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity - * entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded + * VM identity entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,8 +69,8 @@ public ShieldedVmIdentity setEncryptionKey(ShieldedVmIdentityEntry encryptionKey } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity - * entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded + * VM identity entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -78,8 +78,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity - * entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded + * VM identity entry. * @param kind kind or {@code null} for none */ public ShieldedVmIdentity setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java index 40ac613327a..0ecb5721488 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -33,15 +33,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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 @@ -59,14 +59,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String chainName; /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,22 +80,22 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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] Number of bytes downloaded to restore a snapshot to a disk. + * 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; /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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 @@ -110,9 +110,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [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. + * 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 @@ -125,14 +125,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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 @@ -160,15 +162,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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] 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). + * 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 @@ -209,15 +212,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private SnapshotParams params; /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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] ResourceStatus of the Snapshot resource + * Output only. [Output only] ResourceStatus of the Snapshot resource * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -231,21 +234,21 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -269,14 +272,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey snapshotEncryptionKey; /** - * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String snapshotGroupId; /** - * [Output only] The snapshot group that this snapshot belongs to. + * Output only. [Output only] The snapshot group that this snapshot belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -312,9 +315,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String sourceDiskForRecoveryCheckpoint; /** - * [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. + * 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 @@ -339,51 +342,51 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; /** - * [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. + * 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] URL of the resource policy which created this scheduled snapshot. + * 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] ID of the resource policy which created this scheduled snapshot. + * 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] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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] A size of the storage used by the snapshot. As snapshots share storage, this - * number is expected to change with snapshot creation/deletion. + * 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] 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. + * 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 @@ -397,15 +400,7 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -413,7 +408,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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) { @@ -422,8 +417,8 @@ public Snapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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() { @@ -431,8 +426,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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) { @@ -466,7 +461,7 @@ public Snapshot setChainName(java.lang.String chainName) { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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() { @@ -474,7 +469,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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) { @@ -483,7 +478,7 @@ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -491,7 +486,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -517,7 +512,7 @@ public Snapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -525,7 +520,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * 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) { @@ -534,7 +529,7 @@ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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() { @@ -542,7 +537,7 @@ public java.lang.Long getDownloadBytes() { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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) { @@ -551,8 +546,8 @@ public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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() { @@ -560,8 +555,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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) { @@ -589,9 +584,9 @@ public Snapshot setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [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. + * 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() { @@ -599,9 +594,9 @@ public java.util.List getGuestOsFeatures() { } /** - * [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. + * 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) { @@ -610,7 +605,8 @@ public Snapshot setGuestOsFeatures(java.util.List guestOsFeature } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -618,7 +614,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -627,7 +624,8 @@ public Snapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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() { @@ -635,7 +633,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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) { @@ -732,7 +731,8 @@ public Snapshot setLabels(java.util.Map labels) { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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() { @@ -740,7 +740,8 @@ public java.util.List getLicenseCodes() { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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) { @@ -749,8 +750,8 @@ public Snapshot setLicenseCodes(java.util.List licenseCodes) { } /** - * [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). + * 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() { @@ -758,8 +759,8 @@ public java.util.List getLicenses() { } /** - * [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). + * 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) { @@ -848,8 +849,8 @@ public Snapshot setParams(SnapshotParams params) { } /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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() { @@ -857,8 +858,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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) { @@ -867,7 +868,7 @@ public Snapshot setRegion(java.lang.String region) { } /** - * [Output only] ResourceStatus of the Snapshot resource + * Output only. [Output only] ResourceStatus of the Snapshot resource * @return value or {@code null} for none */ public SnapshotResourceStatus getResourceStatus() { @@ -875,7 +876,7 @@ public SnapshotResourceStatus getResourceStatus() { } /** - * [Output only] ResourceStatus of the Snapshot resource + * Output only. [Output only] ResourceStatus of the Snapshot resource * @param resourceStatus resourceStatus or {@code null} for none */ public Snapshot setResourceStatus(SnapshotResourceStatus resourceStatus) { @@ -901,7 +902,7 @@ public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -909,7 +910,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -918,7 +919,7 @@ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -926,7 +927,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -935,7 +936,7 @@ public Snapshot setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -943,7 +944,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Snapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -989,7 +990,7 @@ public Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptio } /** - * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupId() { @@ -997,7 +998,7 @@ public java.lang.String getSnapshotGroupId() { } /** - * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @param snapshotGroupId snapshotGroupId or {@code null} for none */ public Snapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { @@ -1006,7 +1007,7 @@ public Snapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { } /** - * [Output only] The snapshot group that this snapshot belongs to. + * Output only. [Output only] The snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupName() { @@ -1014,7 +1015,7 @@ public java.lang.String getSnapshotGroupName() { } /** - * [Output only] The snapshot group that this snapshot belongs to. + * Output only. [Output only] The snapshot group that this snapshot belongs to. * @param snapshotGroupName snapshotGroupName or {@code null} for none */ public Snapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { @@ -1093,9 +1094,9 @@ public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskFo } /** - * [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. + * 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() { @@ -1103,9 +1104,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1156,11 +1157,11 @@ public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sour } /** - * [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. + * 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() { @@ -1168,11 +1169,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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. + * 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) { @@ -1181,7 +1182,7 @@ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapsho } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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() { @@ -1189,7 +1190,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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) { @@ -1198,7 +1199,7 @@ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotS } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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() { @@ -1206,7 +1207,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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) { @@ -1215,8 +1216,8 @@ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapsho } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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() { @@ -1224,8 +1225,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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) { @@ -1234,8 +1235,8 @@ public Snapshot setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -1243,8 +1244,8 @@ public java.lang.Long getStorageBytes() { } /** - * [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. + * 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) { @@ -1253,10 +1254,10 @@ public Snapshot setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -1264,10 +1265,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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 Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { @@ -1292,25 +1293,6 @@ public Snapshot setStorageLocations(java.util.List storageLoca return this; } - /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * @param userLicenses userLicenses or {@code null} for none - */ - public Snapshot setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public Snapshot set(String fieldName, Object value) { return (Snapshot) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java index 9188a4355ad..c9adaf64afb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java @@ -50,8 +50,8 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for aggregated lists of - * snapshots. + * Output only. [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for + * aggregated lists of snapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java index db7039350f8..b44d02aa4c3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java @@ -33,7 +33,7 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -48,14 +48,16 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,21 +75,21 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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's resource id. + * 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. [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -101,21 +103,21 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson private java.lang.String sourceInstantSnapshotGroup; /** - * [Output Only] + * Output only. [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo; /** - * [Output Only] + * Output only. [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -123,7 +125,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SnapshotGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -151,7 +153,8 @@ public SnapshotGroup setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -159,7 +162,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 SnapshotGroup setId(java.math.BigInteger id) { @@ -168,7 +172,8 @@ public SnapshotGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -176,7 +181,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup resources. + * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup + * resources. * @param kind kind or {@code null} for none */ public SnapshotGroup setKind(java.lang.String kind) { @@ -210,7 +216,7 @@ public SnapshotGroup setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -218,7 +224,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SnapshotGroup setSelfLink(java.lang.String selfLink) { @@ -227,7 +233,7 @@ public SnapshotGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -235,7 +241,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * Output only. [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -244,7 +250,7 @@ public SnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] + * Output only. [Output Only] * @return value or {@code null} for none */ public SnapshotGroupSourceInfo getSourceInfo() { @@ -252,7 +258,7 @@ public SnapshotGroupSourceInfo getSourceInfo() { } /** - * [Output Only] + * Output only. [Output Only] * @param sourceInfo sourceInfo or {@code null} for none */ public SnapshotGroup setSourceInfo(SnapshotGroupSourceInfo sourceInfo) { @@ -278,7 +284,7 @@ public SnapshotGroup setSourceInstantSnapshotGroup(java.lang.String sourceInstan } /** - * [Output Only] + * Output only. [Output Only] * @return value or {@code null} for none */ public SnapshotGroupSourceInstantSnapshotGroupInfo getSourceInstantSnapshotGroupInfo() { @@ -286,7 +292,7 @@ public SnapshotGroupSourceInstantSnapshotGroupInfo getSourceInstantSnapshotGroup } /** - * [Output Only] + * Output only. [Output Only] * @param sourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo or {@code null} for none */ public SnapshotGroup setSourceInstantSnapshotGroupInfo(SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo) { @@ -295,7 +301,7 @@ public SnapshotGroup setSourceInstantSnapshotGroupInfo(SnapshotGroupSourceInstan } /** - * [Output Only] + * Output only. [Output Only] * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -303,7 +309,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] + * Output only. [Output Only] * @param status status or {@code null} for none */ public SnapshotGroup setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java index 39950d997d4..04f8790fe65 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -50,7 +50,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java index 0f1afad1dce..1191efded34 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -30,18 +30,22 @@ public final class SnapshotParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java new file mode 100644 index 00000000000..8a55d9eaf19 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.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; + +/** + * Represents the singleton resource Snapshot Recycle Bin Policy that configures the retention + * duration for snapshots in the recycle bin. + * + * You can configure the retention duration for snapshots in the recycle bin at the project or + * organization level. If you configure the policy at the organization level, all projects in that + * organization will share the same policy. If you configure the policy at the project level it will + * be merged with org level policy (if any) and the snapshots in that project will use that 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 SnapshotRecycleBinPolicy extends com.google.api.client.json.GenericJson { + + /** + * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of + * the TagValue which can be in the format: + * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if + * snapshots do not have any of these tags. The value is the rule for the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map rules; + + /** + * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of + * the TagValue which can be in the format: + * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if + * snapshots do not have any of these tags. The value is the rule for the key. + * @return value or {@code null} for none + */ + public java.util.Map getRules() { + return rules; + } + + /** + * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of + * the TagValue which can be in the format: + * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if + * snapshots do not have any of these tags. The value is the rule for the key. + * @param rules rules or {@code null} for none + */ + public SnapshotRecycleBinPolicy setRules(java.util.Map rules) { + this.rules = rules; + return this; + } + + @Override + public SnapshotRecycleBinPolicy set(String fieldName, Object value) { + return (SnapshotRecycleBinPolicy) super.set(fieldName, value); + } + + @Override + public SnapshotRecycleBinPolicy clone() { + return (SnapshotRecycleBinPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java new file mode 100644 index 00000000000..1787c9bd153 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.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 rule that defines the retention policy for snapshots in the recycle bin. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SnapshotRecycleBinPolicyRule extends com.google.api.client.json.GenericJson { + + /** + * The rule config for standard snapshots. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotRecycleBinPolicyRuleRuleConfig standardSnapshots; + + /** + * The rule config for standard snapshots. + * @return value or {@code null} for none + */ + public SnapshotRecycleBinPolicyRuleRuleConfig getStandardSnapshots() { + return standardSnapshots; + } + + /** + * The rule config for standard snapshots. + * @param standardSnapshots standardSnapshots or {@code null} for none + */ + public SnapshotRecycleBinPolicyRule setStandardSnapshots(SnapshotRecycleBinPolicyRuleRuleConfig standardSnapshots) { + this.standardSnapshots = standardSnapshots; + return this; + } + + @Override + public SnapshotRecycleBinPolicyRule set(String fieldName, Object value) { + return (SnapshotRecycleBinPolicyRule) super.set(fieldName, value); + } + + @Override + public SnapshotRecycleBinPolicyRule clone() { + return (SnapshotRecycleBinPolicyRule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java new file mode 100644 index 00000000000..0d8630cb26b --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.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 rule config for snapshots in the recycle bin. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SnapshotRecycleBinPolicyRuleRuleConfig extends com.google.api.client.json.GenericJson { + + /** + * The retention duration for snapshots in the recycle bin after which the snapshots are + * automatically deleted from recycle bin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long retentionDurationDays; + + /** + * The retention duration for snapshots in the recycle bin after which the snapshots are + * automatically deleted from recycle bin. + * @return value or {@code null} for none + */ + public java.lang.Long getRetentionDurationDays() { + return retentionDurationDays; + } + + /** + * The retention duration for snapshots in the recycle bin after which the snapshots are + * automatically deleted from recycle bin. + * @param retentionDurationDays retentionDurationDays or {@code null} for none + */ + public SnapshotRecycleBinPolicyRuleRuleConfig setRetentionDurationDays(java.lang.Long retentionDurationDays) { + this.retentionDurationDays = retentionDurationDays; + return this; + } + + @Override + public SnapshotRecycleBinPolicyRuleRuleConfig set(String fieldName, Object value) { + return (SnapshotRecycleBinPolicyRuleRuleConfig) super.set(fieldName, value); + } + + @Override + public SnapshotRecycleBinPolicyRuleRuleConfig clone() { + return (SnapshotRecycleBinPolicyRuleRuleConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java index 3014b2e580a..ea5ee64fca3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java @@ -30,16 +30,16 @@ public final class SnapshotResourceStatus extends com.google.api.client.json.GenericJson { /** - * [Output only] Scheduled deletion time of the snapshot. The snapshot will be deleted by the at - * any point within one hour after the deletion time. + * Output only. [Output only] Scheduled deletion time of the snapshot. The snapshot will be + * deleted by the at any point within one hour after the deletion time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String scheduledDeletionTime; /** - * [Output only] Scheduled deletion time of the snapshot. The snapshot will be deleted by the at - * any point within one hour after the deletion time. + * Output only. [Output only] Scheduled deletion time of the snapshot. The snapshot will be + * deleted by the at any point within one hour after the deletion time. * @return value or {@code null} for none */ public String getScheduledDeletionTime() { @@ -47,8 +47,8 @@ public String getScheduledDeletionTime() { } /** - * [Output only] Scheduled deletion time of the snapshot. The snapshot will be deleted by the at - * any point within one hour after the deletion time. + * Output only. [Output only] Scheduled deletion time of the snapshot. The snapshot will be + * deleted by the at any point within one hour after the deletion time. * @param scheduledDeletionTime scheduledDeletionTime or {@code null} for none */ public SnapshotResourceStatus setScheduledDeletionTime(String scheduledDeletionTime) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java new file mode 100644 index 00000000000..5b09a0d3efe --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.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 SnapshotsGetEffectiveRecycleBinRuleResponse. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SnapshotsGetEffectiveRecycleBinRuleResponse extends com.google.api.client.json.GenericJson { + + /** + * The retention duration of the snapshot in recycle bin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long retentionDurationDays; + + /** + * The retention duration of the snapshot in recycle bin. + * @return value or {@code null} for none + */ + public java.lang.Long getRetentionDurationDays() { + return retentionDurationDays; + } + + /** + * The retention duration of the snapshot in recycle bin. + * @param retentionDurationDays retentionDurationDays or {@code null} for none + */ + public SnapshotsGetEffectiveRecycleBinRuleResponse setRetentionDurationDays(java.lang.Long retentionDurationDays) { + this.retentionDurationDays = retentionDurationDays; + return this; + } + + @Override + public SnapshotsGetEffectiveRecycleBinRuleResponse set(String fieldName, Object value) { + return (SnapshotsGetEffectiveRecycleBinRuleResponse) super.set(fieldName, value); + } + + @Override + public SnapshotsGetEffectiveRecycleBinRuleResponse clone() { + return (SnapshotsGetEffectiveRecycleBinRuleResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java index 30338f7ae17..2940167fc95 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java @@ -71,7 +71,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] Expire time of the certificate. RFC3339 + * Output only. [Output Only] Expire time of the certificate. RFC3339 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. + * 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 @@ -118,8 +119,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String privateKey; /** - * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not - * applicable to global SSL Certificate. + * 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 @@ -133,7 +134,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -147,7 +148,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private SslCertificateSelfManagedSslCertificate selfManaged; /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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 @@ -217,7 +219,7 @@ public SslCertificate setDescription(java.lang.String description) { } /** - * [Output Only] Expire time of the certificate. RFC3339 + * Output only. [Output Only] Expire time of the certificate. RFC3339 * @return value or {@code null} for none */ public java.lang.String getExpireTime() { @@ -225,7 +227,7 @@ public java.lang.String getExpireTime() { } /** - * [Output Only] Expire time of the certificate. RFC3339 + * 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) { @@ -251,7 +253,8 @@ public SslCertificate setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. + * 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() { @@ -259,7 +262,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. + * 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) { @@ -329,8 +333,8 @@ public SslCertificate setPrivateKey(java.lang.String privateKey) { } /** - * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not - * applicable to global SSL Certificate. + * 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() { @@ -338,8 +342,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not - * applicable to global SSL Certificate. + * 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) { @@ -365,7 +369,7 @@ public SslCertificate setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -373,7 +377,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SslCertificate setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -399,7 +403,8 @@ public SslCertificate setSelfManaged(SslCertificateSelfManagedSslCertificate sel } /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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() { @@ -407,7 +412,8 @@ public java.util.List getSubjectAlternativeNames() { } /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java index afee0f9e13d..d806133ed5f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -44,8 +44,8 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL - * Certificates. + * 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 @@ -62,14 +62,14 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SslCertificateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslCertificateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java index 688db9167d9..27110fd9466 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -50,7 +50,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SslCertificateList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SslCertificateList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SslCertificateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java index 2521f524e73..8897726891a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -30,7 +30,8 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.client.json.GenericJson { /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * 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 @@ -46,14 +47,15 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.cl private java.util.List domains; /** - * [Output only] Status of the managed certificate resource. + * 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] Detailed statuses of the domains specified for managed certificate resource. + * 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() { @@ -61,7 +63,8 @@ public java.util.Map getDomainStatus() { } /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * 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) { @@ -91,7 +94,7 @@ public SslCertificateManagedSslCertificate setDomains(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL - * Policies. + * 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 @@ -68,14 +68,14 @@ public final class SslPoliciesAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SslPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java index 775a4adcdbe..c8c7092cb3a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -30,38 +30,39 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 SslPolicy resources. + * 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] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +76,7 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJso private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -83,7 +84,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -92,7 +93,7 @@ public SslPoliciesList setId(java.lang.String id) { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -100,7 +101,7 @@ public java.util.List getItems() { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @param items items or {@code null} for none */ public SslPoliciesList setItems(java.util.List items) { @@ -109,7 +110,8 @@ public SslPoliciesList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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() { @@ -117,7 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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) { @@ -126,10 +129,10 @@ public SslPoliciesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -137,10 +140,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -149,7 +152,7 @@ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -157,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java index a2d08f9958d..8169480c656 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -34,7 +34,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,7 +57,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The list of features enabled in the SSL policy. + * 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 @@ -76,14 +76,15 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,32 +110,46 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer allows negotiating + * 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 until it is enabled by default on load balancers. When set toENABLED, the load + * balancer can negotiate X25519MLKEM768 key exchange. When set to DEFERRED, temporarily opts out + * the load balancer from negotiating X25519MLKEM768 beyond the point where it is enabled by + * default on load balancers. + * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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] Server-defined URL for the resource. + * 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. + * 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 @@ -149,8 +164,8 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private ServerTlsSettings tlsSettings; /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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 @@ -163,7 +178,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -171,7 +186,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -218,7 +233,7 @@ public SslPolicy setDescription(java.lang.String description) { } /** - * [Output Only] The list of features enabled in the SSL policy. + * 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() { @@ -226,7 +241,7 @@ public java.util.List getEnabledFeatures() { } /** - * [Output Only] The list of features enabled in the SSL policy. + * 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) { @@ -300,7 +315,8 @@ public SslPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -308,7 +324,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -317,7 +334,7 @@ public SslPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -325,7 +342,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * 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) { @@ -379,10 +396,40 @@ public SslPolicy setName(java.lang.String name) { return this; } + /** + * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer allows negotiating + * 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 until it is enabled by default on load balancers. When set toENABLED, the load + * balancer can negotiate X25519MLKEM768 key exchange. When set to DEFERRED, temporarily opts out + * the load balancer from negotiating X25519MLKEM768 beyond the point where it is enabled by + * default on load balancers. + * @return value or {@code null} for none + */ + public java.lang.String getPostQuantumKeyExchange() { + return postQuantumKeyExchange; + } + + /** + * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer allows negotiating + * 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 until it is enabled by default on load balancers. When set toENABLED, the load + * balancer can negotiate X25519MLKEM768 key exchange. When set to DEFERRED, temporarily opts out + * the load balancer from negotiating X25519MLKEM768 beyond the point where it is enabled by + * default on load balancers. + * @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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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() { @@ -391,8 +438,9 @@ public java.lang.String getProfile() { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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) { @@ -401,8 +449,8 @@ public SslPolicy setProfile(java.lang.String profile) { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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() { @@ -410,8 +458,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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) { @@ -420,7 +468,7 @@ public SslPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -428,7 +476,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -437,7 +485,7 @@ public SslPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -445,7 +493,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SslPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -473,8 +521,8 @@ public SslPolicy setTlsSettings(ServerTlsSettings tlsSettings) { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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() { @@ -482,8 +530,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java index 3a64d534ceb..a2b225a4c5e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -37,7 +37,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String capacityProvisioningType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,21 +51,22 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Output only. [Output Only] 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#storagePool for storage pools. + * 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 @@ -102,6 +103,14 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @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. @@ -149,21 +158,21 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long provisionedThroughput; /** - * [Output Only] Status information for the storage pool resource. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -177,16 +186,16 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * [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. + * 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] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -200,8 +209,8 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String storagePoolType; /** - * [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. + * 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 @@ -225,7 +234,7 @@ public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -233,7 +242,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -259,7 +268,7 @@ public StoragePool setDescription(java.lang.String description) { } /** - * [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB * @return value or {@code null} for none */ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { @@ -267,7 +276,7 @@ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() } /** - * [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none */ public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { @@ -276,7 +285,8 @@ public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisioned } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -284,7 +294,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -293,7 +304,7 @@ public StoragePool setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * 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() { @@ -301,7 +312,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * 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) { @@ -420,6 +431,25 @@ public StoragePool setName(java.lang.String 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. @@ -531,7 +561,7 @@ public StoragePool setProvisionedThroughput(java.lang.Long provisionedThroughput } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getResourceStatus() { @@ -539,7 +569,7 @@ public StoragePoolResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param resourceStatus resourceStatus or {@code null} for none */ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { @@ -548,7 +578,7 @@ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -556,7 +586,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -565,7 +595,7 @@ public StoragePool setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -573,7 +603,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -599,9 +629,9 @@ public StoragePool setSizeGb(java.lang.Long sizeGb) { } /** - * [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. + * 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() { @@ -609,9 +639,9 @@ public java.lang.String getState() { } /** - * [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. + * 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) { @@ -620,7 +650,7 @@ public StoragePool setState(java.lang.String state) { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getStatus() { @@ -628,7 +658,7 @@ public StoragePoolResourceStatus getStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param status status or {@code null} for none */ public StoragePool setStatus(StoragePoolResourceStatus status) { @@ -654,8 +684,8 @@ public StoragePool setStoragePoolType(java.lang.String storagePoolType) { } /** - * [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. + * 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() { @@ -663,8 +693,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java index 186794e02ce..a6e2968a57e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -50,8 +50,8 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for aggregated lists of - * storage pools. + * 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 @@ -68,14 +68,14 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public StoragePoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public StoragePoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java index 336f05138ed..f4aedbc4874 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -30,84 +30,84 @@ public final class StoragePoolDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] Instances this disk is attached to. + * 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] Creation timestamp inRFC3339 text format. + * 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 URL of the disk. + * 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] The name of the 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] The number of IOPS provisioned for the disk. + * 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] The throughput provisioned for the disk. + * 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] Resource policies applied to disk for automatic snapshot creations. + * 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] The disk size, in GB. + * 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] The disk status. + * 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] The disk type. + * 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] Amount of disk space used. + * 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] Instances this disk is attached to. + * Output only. [Output Only] Instances this disk is attached to. * @return value or {@code null} for none */ public java.util.List getAttachedInstances() { @@ -115,7 +115,7 @@ public java.util.List getAttachedInstances() { } /** - * [Output Only] Instances this disk is attached to. + * 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) { @@ -124,7 +124,7 @@ public StoragePoolDisk setAttachedInstances(java.util.List att } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -141,7 +141,7 @@ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] The URL of the disk. + * Output only. [Output Only] The URL of the disk. * @return value or {@code null} for none */ public java.lang.String getDisk() { @@ -149,7 +149,7 @@ public java.lang.String getDisk() { } /** - * [Output Only] The URL of the 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) { @@ -158,7 +158,7 @@ public StoragePoolDisk setDisk(java.lang.String disk) { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -166,7 +166,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @param name name or {@code null} for none */ public StoragePoolDisk setName(java.lang.String name) { @@ -175,7 +175,7 @@ public StoragePoolDisk setName(java.lang.String name) { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * Output only. [Output Only] The number of IOPS provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedIops() { @@ -183,7 +183,7 @@ public java.lang.Long getProvisionedIops() { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * 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) { @@ -192,7 +192,7 @@ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { } /** - * [Output Only] The throughput provisioned for the disk. + * Output only. [Output Only] The throughput provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedThroughput() { @@ -200,7 +200,7 @@ public java.lang.Long getProvisionedThroughput() { } /** - * [Output Only] The throughput provisioned for the disk. + * 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) { @@ -209,7 +209,7 @@ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroug } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * 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() { @@ -217,7 +217,7 @@ public java.util.List getResourcePolicies() { } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * 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) { @@ -226,7 +226,7 @@ public StoragePoolDisk setResourcePolicies(java.util.List reso } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @return value or {@code null} for none */ public java.lang.Long getSizeGb() { @@ -234,7 +234,7 @@ public java.lang.Long getSizeGb() { } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @param sizeGb sizeGb or {@code null} for none */ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { @@ -243,7 +243,7 @@ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -251,7 +251,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @param status status or {@code null} for none */ public StoragePoolDisk setStatus(java.lang.String status) { @@ -260,7 +260,7 @@ public StoragePoolDisk setStatus(java.lang.String status) { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -268,7 +268,7 @@ public java.lang.String getType() { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @param type type or {@code null} for none */ public StoragePoolDisk setType(java.lang.String type) { @@ -277,7 +277,7 @@ public StoragePoolDisk setType(java.lang.String type) { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @return value or {@code null} for none */ public java.lang.Long getUsedBytes() { @@ -285,7 +285,7 @@ public java.lang.Long getUsedBytes() { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @param usedBytes usedBytes or {@code null} for none */ public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java index 2d0728fe318..34edec41ca8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -56,7 +56,8 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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 @@ -73,14 +74,15 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public StoragePoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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) { @@ -183,7 +187,7 @@ public StoragePoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +204,8 @@ public StoragePoolList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java index bb3ca251ff1..31b6d2f7ece 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -36,7 +36,7 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener private java.lang.String etag; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -56,39 +56,40 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * 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. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +111,7 @@ public StoragePoolListDisks setEtag(java.lang.String etag) { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -118,7 +119,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -144,8 +145,8 @@ public StoragePoolListDisks setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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() { @@ -153,8 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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) { @@ -163,10 +164,10 @@ public StoragePoolListDisks setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -174,10 +175,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -186,7 +187,7 @@ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +204,8 @@ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolListDisks setUnreachables(java.util.List unreachables) { @@ -220,7 +223,7 @@ public StoragePoolListDisks setUnreachables(java.util.List unr } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -228,7 +231,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public StoragePoolListDisks setWarning(Warning warning) { @@ -247,7 +250,7 @@ public StoragePoolListDisks clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java new file mode 100644 index 00000000000..f7f367511c0 --- /dev/null +++ b/clients/google-api-services-compute/alpha/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/456` 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/456` 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/456` 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/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java index 80a35ca3ed1..67adc081a79 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -51,35 +51,35 @@ public final class StoragePoolResourceStatus extends com.google.api.client.json. private java.lang.Long diskCount; /** - * [Output Only] Maximum allowed read IOPS for this Exapool. + * 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] Maximum allowed read throughput in MiB/s for this Exapool. + * 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] Maximum allowed write IOPS for this Exapool. + * 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] Maximum allowed write throughput in MiB/s for this Exapool. + * 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] Timestamp of the last successful resize inRFC3339 text format. + * 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 @@ -234,7 +234,7 @@ public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { } /** - * [Output Only] Maximum allowed read IOPS for this Exapool. + * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. * @return value or {@code null} for none */ public java.lang.Long getExapoolMaxReadIops() { @@ -242,7 +242,7 @@ public java.lang.Long getExapoolMaxReadIops() { } /** - * [Output Only] Maximum allowed read IOPS for this Exapool. + * 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) { @@ -251,7 +251,7 @@ public StoragePoolResourceStatus setExapoolMaxReadIops(java.lang.Long exapoolMax } /** - * [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * 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() { @@ -259,7 +259,7 @@ public java.lang.Long getExapoolMaxReadThroughput() { } /** - * [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * 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) { @@ -268,7 +268,7 @@ public StoragePoolResourceStatus setExapoolMaxReadThroughput(java.lang.Long exap } /** - * [Output Only] Maximum allowed write IOPS for this Exapool. + * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. * @return value or {@code null} for none */ public java.lang.Long getExapoolMaxWriteIops() { @@ -276,7 +276,7 @@ public java.lang.Long getExapoolMaxWriteIops() { } /** - * [Output Only] Maximum allowed write IOPS for this Exapool. + * 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) { @@ -285,7 +285,7 @@ public StoragePoolResourceStatus setExapoolMaxWriteIops(java.lang.Long exapoolMa } /** - * [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * 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() { @@ -293,7 +293,7 @@ public java.lang.Long getExapoolMaxWriteThroughput() { } /** - * [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * 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) { @@ -302,7 +302,7 @@ public StoragePoolResourceStatus setExapoolMaxWriteThroughput(java.lang.Long exa } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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() { @@ -310,7 +310,7 @@ public java.lang.String getLastResizeTimestamp() { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java index 48b85c05c96..2abe154233a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -58,7 +58,8 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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 @@ -128,7 +129,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -218,7 +219,8 @@ public StoragePoolType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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() { @@ -226,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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) { @@ -388,7 +391,7 @@ public StoragePoolType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -396,7 +399,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java index c3fc6a05a48..1831cd7a360 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public StoragePoolTypeAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * 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) { @@ -155,7 +158,7 @@ public StoragePoolTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 550ad93e4ed..6862ad4155f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -45,8 +45,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String aggregationInterval; /** - * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static + * 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 @@ -61,15 +61,13 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. - * - * This field cannot be set to true at resource creation time. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean allowSubnetCidrRoutesOverlap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,7 +85,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * 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 @@ -139,15 +138,16 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.Float flowSampling; /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -195,27 +195,37 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String ipv6AccessType; /** - * [Output Only] This field is for internal use. + * 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] 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. + * 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] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * Specifies the network tier for EXTERNAL IPv6. Can only be set when ipv6_access_type is + * EXTERNAL. Defaults to project defaultNetworkTier if not specified during the creation of the + * subnetwork. This field is IMMUTABLE once set with EXTERNAL IPv6. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipv6NetworkTier; + + /** + * 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 @@ -327,7 +337,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * apatch request. Supports both IPv4 and IPv6 ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -341,7 +351,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -359,11 +369,11 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String stackType; /** - * [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 + * 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 @@ -428,8 +438,8 @@ public Subnetwork setAggregationInterval(java.lang.String aggregationInterval) { } /** - * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static + * 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 @@ -444,8 +454,6 @@ public Subnetwork setAggregationInterval(java.lang.String aggregationInterval) { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. - * - * This field cannot be set to true at resource creation time. * @return value or {@code null} for none */ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { @@ -453,8 +461,8 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { } /** - * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static + * 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 @@ -469,8 +477,6 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. - * - * This field cannot be set to true at resource creation time. * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none */ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { @@ -479,7 +485,7 @@ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetC } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -487,7 +493,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -518,7 +524,8 @@ public Subnetwork setDescription(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. + * 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() { @@ -529,7 +536,8 @@ public java.lang.Boolean getEnableFlowLogs() { * 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. + * 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) { @@ -681,8 +689,8 @@ public Subnetwork setFlowSampling(java.lang.Float flowSampling) { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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() { @@ -690,8 +698,8 @@ public java.lang.String getGatewayAddress() { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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) { @@ -700,7 +708,8 @@ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -708,7 +717,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -811,7 +821,7 @@ public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { } /** - * [Output Only] This field is for internal use. + * Output only. [Output Only] This field is for internal use. * @return value or {@code null} for none */ public java.lang.String getIpv6CidrRange() { @@ -819,7 +829,7 @@ public java.lang.String getIpv6CidrRange() { } /** - * [Output Only] This field is for internal use. + * 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) { @@ -828,13 +838,13 @@ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { } /** - * [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. + * 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() { @@ -842,13 +852,13 @@ public java.lang.String getIpv6GceEndpoint() { } /** - * [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. + * 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) { @@ -857,7 +867,29 @@ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * Specifies the network tier for EXTERNAL IPv6. Can only be set when ipv6_access_type is + * EXTERNAL. Defaults to project defaultNetworkTier if not specified during the creation of the + * subnetwork. This field is IMMUTABLE once set with EXTERNAL IPv6. + * @return value or {@code null} for none + */ + public java.lang.String getIpv6NetworkTier() { + return ipv6NetworkTier; + } + + /** + * Specifies the network tier for EXTERNAL IPv6. Can only be set when ipv6_access_type is + * EXTERNAL. Defaults to project defaultNetworkTier if not specified during the creation of the + * subnetwork. This field is IMMUTABLE once set with EXTERNAL IPv6. + * @param ipv6NetworkTier ipv6NetworkTier or {@code null} for none + */ + public Subnetwork setIpv6NetworkTier(java.lang.String ipv6NetworkTier) { + this.ipv6NetworkTier = ipv6NetworkTier; + 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() { @@ -865,7 +897,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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) { @@ -1117,7 +1150,7 @@ public Subnetwork setRole(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. + * apatch request. Supports both IPv4 and IPv6 ranges. * @return value or {@code null} for none */ public java.util.List getSecondaryIpRanges() { @@ -1128,7 +1161,7 @@ public java.util.List getSecondaryIpRanges() { * 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. + * apatch request. Supports both IPv4 and IPv6 ranges. * @param secondaryIpRanges secondaryIpRanges or {@code null} for none */ public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { @@ -1154,7 +1187,7 @@ public Subnetwork setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1162,7 +1195,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Subnetwork setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1196,11 +1229,11 @@ public Subnetwork setStackType(java.lang.String stackType) { } /** - * [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 + * 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() { @@ -1208,11 +1241,11 @@ public java.lang.String getState() { } /** - * [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 + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java index 3ce236d4f61..92577af696e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -44,8 +44,8 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of - * subnetworks. + * 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 @@ -62,14 +62,14 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SubnetworkAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SubnetworkAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java index bfed8d09195..f8578cc2a42 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -50,7 +50,8 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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 @@ -67,7 +68,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public SubnetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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) { @@ -155,7 +158,7 @@ public SubnetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java index e2a3ca20f2c..4f8af881a0b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -32,24 +32,48 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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; /** - * 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. + * 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. + * The URL of the reserved internal range. Only IPv4 is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +82,15 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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() { @@ -69,8 +100,15 @@ public java.lang.String getIpCidrRange() { /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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) { @@ -79,9 +117,49 @@ public SubnetworkSecondaryRange setIpCidrRange(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. + * 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() { @@ -89,9 +167,9 @@ public java.lang.String getRangeName() { } /** - * 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 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) { @@ -100,7 +178,7 @@ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { } /** - * The URL of the reserved internal range. + * The URL of the reserved internal range. Only IPv4 is supported. * @return value or {@code null} for none */ public java.lang.String getReservedInternalRange() { @@ -108,7 +186,7 @@ public java.lang.String getReservedInternalRange() { } /** - * The URL of the reserved internal range. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java index 8e52f4284e0..e5b790d1254 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -35,7 +35,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,15 +60,16 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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 @@ -86,14 +87,14 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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 with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +122,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean validateForProxyless; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +130,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -216,8 +217,8 @@ public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -225,8 +226,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -235,7 +236,8 @@ public TargetGrpcProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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() { @@ -243,7 +245,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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) { @@ -277,7 +280,7 @@ public TargetGrpcProxy setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -285,7 +288,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -294,7 +297,7 @@ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -302,7 +305,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java index 92580b50781..4e795941c63 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -50,7 +50,8 @@ public final class TargetGrpcProxyList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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 @@ -115,7 +116,8 @@ public TargetGrpcProxyList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java index a81b5124483..be250a05ae1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -45,7 +45,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +108,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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 @@ -142,8 +143,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean proxyBind; /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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 @@ -157,7 +158,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -171,7 +172,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String urlMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -179,7 +180,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -351,7 +352,8 @@ public TargetHttpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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() { @@ -359,7 +361,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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) { @@ -428,8 +431,8 @@ public TargetHttpProxy setProxyBind(java.lang.Boolean proxyBind) { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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() { @@ -437,8 +440,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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) { @@ -464,7 +467,7 @@ public TargetHttpProxy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -472,7 +475,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetHttpProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java index a7392cf3d15..76baf55751e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for lists of Target - * HTTP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java index 5e34d1a9076..437aef687bf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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 @@ -67,7 +68,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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) { @@ -155,7 +158,7 @@ public TargetHttpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java index f09b90d7b5f..c575d234f17 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -89,7 +89,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,7 +152,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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 @@ -198,8 +199,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String quicOverride; /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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 @@ -213,7 +214,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -403,7 +404,7 @@ public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -411,7 +412,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -583,7 +584,8 @@ public TargetHttpsProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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() { @@ -591,7 +593,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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) { @@ -687,8 +690,8 @@ public TargetHttpsProxy setQuicOverride(java.lang.String quicOverride) { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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() { @@ -696,8 +699,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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) { @@ -723,7 +726,7 @@ public TargetHttpsProxy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -731,7 +734,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetHttpsProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java index c5e35673c5f..e3b6c0c7bde 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for lists of - * Target HTTP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpsProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpsProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java index 2f5c614d3de..30dd6b631cf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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 @@ -67,7 +68,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpsProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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) { @@ -155,7 +158,7 @@ public TargetHttpsProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java index 12ebc83aac1..8ca1d6b2d8c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -34,7 +34,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,7 +66,8 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String instance; /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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 @@ -114,22 +115,22 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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] 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -137,7 +138,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -205,7 +206,8 @@ public TargetInstance setInstance(java.lang.String instance) { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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() { @@ -213,7 +215,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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) { @@ -319,7 +322,7 @@ public TargetInstance setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -327,7 +330,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetInstance setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -336,8 +339,8 @@ public TargetInstance setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [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. + * 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() { @@ -345,8 +348,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java index 2b3a07f23b9..01d803ffaf3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -44,7 +44,7 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public TargetInstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetInstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java index 4ad42444a27..9ed13afb4c8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -50,7 +50,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetInstanceList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetInstanceList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetInstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java index 81293167d55..06ab6ab69e6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -51,7 +51,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String backupPool; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +107,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.util.List instances; /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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 @@ -125,7 +125,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] URL of the region where the target pool resides. + * 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 @@ -146,7 +146,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -201,7 +201,7 @@ public TargetPool setBackupPool(java.lang.String backupPool) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -209,7 +209,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -331,7 +331,7 @@ public TargetPool setInstances(java.util.List instances) { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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() { @@ -339,7 +339,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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) { @@ -373,7 +373,7 @@ public TargetPool setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the target pool resides. + * 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() { @@ -381,7 +381,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the target pool resides. + * 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) { @@ -424,7 +424,7 @@ public TargetPool setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -432,7 +432,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetPool setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java index 965213fa705..a4eaf801e32 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -44,8 +44,8 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for aggregated lists of - * target pools. + * 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 @@ -62,14 +62,14 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public TargetPoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetPoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java index 0a8f1b2844c..e1930f67b71 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -42,8 +42,8 @@ public final class TargetPoolInstanceHealth extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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 @@ -65,8 +65,8 @@ public TargetPoolInstanceHealth setHealthStatus(java.util.List hea } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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() { @@ -74,8 +74,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java index 66c2c97ec52..313eb178dbd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -50,7 +50,8 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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 @@ -67,7 +68,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetPoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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) { @@ -155,7 +158,7 @@ public TargetPoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java index b63eac66aae..0f34d06b101 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -46,7 +46,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,8 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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 @@ -152,7 +153,7 @@ public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -160,7 +161,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +204,8 @@ public TargetSslProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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() { @@ -211,7 +213,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java index e8d1f6506b7..a63574c696b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -50,7 +50,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetSslProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetSslProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetSslProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java index 9abb70a4721..86a88700008 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -34,7 +34,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,12 +55,20 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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 @@ -97,8 +105,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String proxyHeader; /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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 @@ -119,7 +127,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String service; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -127,7 +135,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -170,7 +178,8 @@ public TargetTcpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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() { @@ -178,7 +187,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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) { @@ -186,6 +196,23 @@ public TargetTcpProxy setKind(java.lang.String 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 @@ -266,8 +293,8 @@ public TargetTcpProxy setProxyHeader(java.lang.String proxyHeader) { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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() { @@ -275,8 +302,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java index e6a659795d2..af685bb148e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js } /** - * [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for lists of Target - * TCP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetTcpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetTcpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java index f2aae16d2ea..51094df31db 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -50,7 +50,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetTcpProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetTcpProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetTcpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java index a0dd9cd4728..5447e2d91e4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -33,7 +33,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,8 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -148,7 +149,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.util.List tunnels; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -156,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -218,7 +219,8 @@ public TargetVpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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() { @@ -226,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java index a428470d62c..fcee0487cb5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -44,7 +44,8 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -61,14 +62,14 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +117,8 @@ public TargetVpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetVpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java index d691fa57cbe..6eaf8c73a84 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -50,7 +50,8 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -67,7 +68,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetVpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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) { @@ -155,7 +158,7 @@ public TargetVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TimeZone.java b/clients/google-api-services-compute/alpha/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/alpha/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/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java index 112bf9dfb5e..a36011b3c82 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java @@ -52,6 +52,13 @@ public final class UpcomingMaintenance extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String latestWindowStartTime; + /** + * Output only. Maintenance method for the upcoming maintenance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String maintenanceMethod; + /** * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. * The value may be {@code null}. @@ -167,6 +174,23 @@ public UpcomingMaintenance setLatestWindowStartTime(java.lang.String latestWindo return this; } + /** + * Output only. Maintenance method for the upcoming maintenance. + * @return value or {@code null} for none + */ + public java.lang.String getMaintenanceMethod() { + return maintenanceMethod; + } + + /** + * Output only. Maintenance method for the upcoming maintenance. + * @param maintenanceMethod maintenanceMethod or {@code null} for none + */ + public UpcomingMaintenance setMaintenanceMethod(java.lang.String maintenanceMethod) { + this.maintenanceMethod = maintenanceMethod; + return this; + } + /** * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java index 8486729a4f7..7c80b5d1e76 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -56,7 +56,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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 @@ -227,9 +227,9 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { } /** - * [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. + * 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 @@ -254,7 +254,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.util.List tests; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -262,7 +262,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { @@ -590,7 +590,7 @@ public UrlMap setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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() { @@ -598,7 +598,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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) { @@ -649,9 +649,9 @@ public UrlMap setPathMatchers(java.util.List pathMatchers) { } /** - * [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. + * 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() { @@ -659,9 +659,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java index 47969709c14..717e1bf36c0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -50,7 +50,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public UrlMapList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public UrlMapList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java index 4ef0ac8e10f..97dc4836b3e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -44,7 +44,7 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public UrlMapsAggregatedList setItems(java.util.Map i } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapsAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public UrlMapsAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UrlMapsAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java index 20241b48f30..05fe83d9ac0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -30,14 +30,14 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * 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] The internal IPv6 address range that is assigned to this subnetwork. + * 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 @@ -108,7 +108,7 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJs private java.lang.String subnetwork; /** - * [Output Only] The external IPv6 address range that is assigned to this 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() { @@ -116,7 +116,7 @@ public java.lang.String getExternalIpv6Prefix() { } /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * 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) { @@ -125,7 +125,7 @@ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefi } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * 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() { @@ -133,7 +133,7 @@ public java.lang.String getInternalIpv6Prefix() { } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java index 1ddaab1abe0..44ad036dfd4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -30,7 +30,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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 @@ -46,7 +47,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client. private java.lang.String rangeName; /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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() { @@ -54,7 +56,8 @@ public java.lang.String getIpCidrRange() { } /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 842a539118c..534fc9e95cd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -50,8 +50,8 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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 @@ -69,7 +69,7 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +82,14 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +137,8 @@ public UsableSubnetworksAggregatedList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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() { @@ -146,8 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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) { @@ -181,7 +181,7 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * @return value or {@code null} for none */ public java.util.List getScopedWarnings() { @@ -189,7 +189,7 @@ public java.util.List getScopedWarnings() { } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * 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) { @@ -198,7 +198,7 @@ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List getUnreachables() { @@ -223,7 +223,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java index b745011ac7e..dba5c153b73 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -30,7 +30,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.GenericJson { /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.Gene private java.util.List interfaceNatMappings; /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * @return value or {@code null} for none */ public java.lang.String getInstanceName() { @@ -51,7 +51,7 @@ public java.lang.String getInstanceName() { } /** - * Name of the VM instance which the endpoint belongs to + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java index 09332672258..69ee2a0bc82 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -30,8 +30,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google.api.client.json.GenericJson { /** - * 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: + * 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}. */ @@ -39,8 +39,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List drainNatIpPortRanges; /** - * 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: + * 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}. */ @@ -48,46 +48,46 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List natIpPortRanges; /** - * 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. + * 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; /** - * 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. + * 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; /** - * Information about mappings provided by rules in this NAT. + * 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; /** - * 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". + * 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; /** - * Primary IP of the VM for this NIC. + * 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; /** - * 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: + * 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 */ @@ -96,8 +96,8 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -107,8 +107,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.ut } /** - * 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: + * 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 */ @@ -117,8 +117,8 @@ public java.util.List getNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -128,8 +128,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.Li } /** - * 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. + * 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() { @@ -137,8 +137,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -147,8 +147,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.l } /** - * 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. + * 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() { @@ -156,8 +156,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -166,7 +166,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.I } /** - * Information about mappings provided by rules in this NAT. + * Output only. Information about mappings provided by rules in this NAT. * @return value or {@code null} for none */ public java.util.List getRuleMappings() { @@ -174,7 +174,7 @@ public java.util.List } /** - * Information about mappings provided by rules in this NAT. + * 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) { @@ -183,8 +183,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List< } /** - * 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". + * 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() { @@ -192,8 +192,8 @@ public java.lang.String getSourceAliasIpRange() { } /** - * 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". + * 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) { @@ -202,7 +202,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang } /** - * Primary IP of the VM for this NIC. + * Output only. Primary IP of the VM for this NIC. * @return value or {@code null} for none */ public java.lang.String getSourceVirtualIp() { @@ -210,7 +210,7 @@ public java.lang.String getSourceVirtualIp() { } /** - * Primary IP of the VM for this NIC. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java index a29036c0838..1b6a728406e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -30,50 +30,50 @@ public final class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends com.google.api.client.json.GenericJson { /** - * 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"]. + * 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; /** - * 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"]. + * 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; /** - * 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. + * 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; /** - * 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. + * 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; /** - * Rule number of the NAT Rule. + * 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; /** - * 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"]. + * 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() { @@ -81,9 +81,9 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -92,9 +92,9 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPor } /** - * 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"]. + * 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() { @@ -102,9 +102,9 @@ public java.util.List getNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -113,8 +113,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRang } /** - * 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. + * 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() { @@ -122,8 +122,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -132,8 +132,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrain } /** - * 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. + * 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() { @@ -141,8 +141,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -151,7 +151,7 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPo } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleNumber() { @@ -159,7 +159,7 @@ public java.lang.Integer getRuleNumber() { } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @param ruleNumber ruleNumber or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java index 286f93e7107..5fb6f39d7d1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -37,8 +37,8 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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 @@ -68,7 +68,7 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,8 +99,8 @@ public VmEndpointNatMappingsList setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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() { @@ -108,8 +108,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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) { @@ -158,7 +158,7 @@ public VmEndpointNatMappingsList setResult(java.util.List } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.java new file mode 100644 index 00000000000..45c6d4aa683 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.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 VM extension that can be installed on a VM. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtension extends com.google.api.client.json.GenericJson { + + /** + * The name of the vm extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The latest 10 versions of the vm extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List versions; + + /** + * The name of the vm extension. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the vm extension. + * @param name name or {@code null} for none + */ + public VmExtension setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The latest 10 versions of the vm extension. + * @return value or {@code null} for none + */ + public java.util.List getVersions() { + return versions; + } + + /** + * The latest 10 versions of the vm extension. + * @param versions versions or {@code null} for none + */ + public VmExtension setVersions(java.util.List versions) { + this.versions = versions; + return this; + } + + @Override + public VmExtension set(String fieldName, Object value) { + return (VmExtension) super.set(fieldName, value); + } + + @Override + public VmExtension clone() { + return (VmExtension) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java index 2c90d277cdf..c33bf330196 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.String description; /** - * Required. A map of extension names (e.g., "cloudops") to their corresponding policy + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy * configurations. * The value may be {@code null}. */ @@ -52,14 +52,16 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.Map extensionPolicies; /** - * Optional. [Output Only] Link to the global policy that manages this zone policy, if applicable. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -74,14 +76,14 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.List instanceSelectors; /** - * [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * 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] Indicates if this policy is managed by a global policy. + * 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 @@ -102,7 +104,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ * 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 more recent + * 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}. */ @@ -110,35 +112,35 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.Integer priority; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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] Current state of the policy: ACTIVE or DELETING. + * 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] Update timestamp inRFC3339 text format. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -146,7 +148,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -172,7 +174,7 @@ public VmExtensionPolicy setDescription(java.lang.String description) { } /** - * Required. A map of extension names (e.g., "cloudops") to their corresponding policy + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy * configurations. * @return value or {@code null} for none */ @@ -181,7 +183,7 @@ public java.util.Map getExtensionPolic } /** - * Required. A map of extension names (e.g., "cloudops") to their corresponding policy + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy * configurations. * @param extensionPolicies extensionPolicies or {@code null} for none */ @@ -191,7 +193,8 @@ public VmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java index 28f3a4ef8f7..2cc93446c09 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java @@ -30,8 +30,8 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.GenericJson { /** - * [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 + * 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. * @@ -43,14 +43,14 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene private java.lang.String etag; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 VM extension policy resources. + * Output only. [Output Only] A list of VM extension policy resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -63,46 +63,46 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene } /** - * Type of resource. + * 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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [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 + * 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. * @@ -115,8 +115,8 @@ public java.lang.String getEtag() { } /** - * [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 + * 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. * @@ -130,7 +130,7 @@ public VmExtensionPolicyList setEtag(java.lang.String etag) { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -138,7 +138,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -147,7 +147,7 @@ public VmExtensionPolicyList setId(java.lang.String id) { } /** - * [Output Only] A list of VM extension policy resources. + * Output only. [Output Only] A list of VM extension policy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -155,7 +155,7 @@ public java.util.List getItems() { } /** - * [Output Only] A list of VM extension policy resources. + * 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) { @@ -164,7 +164,7 @@ public VmExtensionPolicyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -172,7 +172,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public VmExtensionPolicyList setKind(java.lang.String kind) { @@ -181,10 +181,10 @@ public VmExtensionPolicyList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -192,10 +192,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -204,7 +204,7 @@ public VmExtensionPolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -212,7 +212,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -221,7 +221,7 @@ public VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -229,7 +229,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyList setUnreachables(java.util.List unreachables) { @@ -238,7 +238,7 @@ public VmExtensionPolicyList setUnreachables(java.util.List un } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -246,7 +246,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public VmExtensionPolicyList setWarning(Warning warning) { @@ -265,7 +265,7 @@ public VmExtensionPolicyList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.java new file mode 100644 index 00000000000..63bed00988b --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.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; + +/** + * State of an extension on 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 VmExtensionState extends com.google.api.client.json.GenericJson { + + /** + * The status message of the extension if the extension fails to enforce. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforcementMsg; + + /** + * The enforcement state of the extension. If the extension is not enforced yet, then the health + * status will not be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforcementState; + + /** + * The health status message of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthMsg; + + /** + * The health status of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String healthStatus; + + /** + * The name of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The id of the policy that is enforced on the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyId; + + /** + * The version of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * The status message of the extension if the extension fails to enforce. + * @return value or {@code null} for none + */ + public java.lang.String getEnforcementMsg() { + return enforcementMsg; + } + + /** + * The status message of the extension if the extension fails to enforce. + * @param enforcementMsg enforcementMsg or {@code null} for none + */ + public VmExtensionState setEnforcementMsg(java.lang.String enforcementMsg) { + this.enforcementMsg = enforcementMsg; + return this; + } + + /** + * The enforcement state of the extension. If the extension is not enforced yet, then the health + * status will not be specified. + * @return value or {@code null} for none + */ + public java.lang.String getEnforcementState() { + return enforcementState; + } + + /** + * The enforcement state of the extension. If the extension is not enforced yet, then the health + * status will not be specified. + * @param enforcementState enforcementState or {@code null} for none + */ + public VmExtensionState setEnforcementState(java.lang.String enforcementState) { + this.enforcementState = enforcementState; + return this; + } + + /** + * The health status message of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getHealthMsg() { + return healthMsg; + } + + /** + * The health status message of the extension. + * @param healthMsg healthMsg or {@code null} for none + */ + public VmExtensionState setHealthMsg(java.lang.String healthMsg) { + this.healthMsg = healthMsg; + return this; + } + + /** + * The health status of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getHealthStatus() { + return healthStatus; + } + + /** + * The health status of the extension. + * @param healthStatus healthStatus or {@code null} for none + */ + public VmExtensionState setHealthStatus(java.lang.String healthStatus) { + this.healthStatus = healthStatus; + return this; + } + + /** + * The name of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the extension. + * @param name name or {@code null} for none + */ + public VmExtensionState setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The id of the policy that is enforced on the extension. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyId() { + return policyId; + } + + /** + * The id of the policy that is enforced on the extension. + * @param policyId policyId or {@code null} for none + */ + public VmExtensionState setPolicyId(java.lang.String policyId) { + this.policyId = policyId; + return this; + } + + /** + * The version of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * The version of the extension. + * @param version version or {@code null} for none + */ + public VmExtensionState setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public VmExtensionState set(String fieldName, Object value) { + return (VmExtensionState) super.set(fieldName, value); + } + + @Override + public VmExtensionState clone() { + return (VmExtensionState) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java index e1ec2acc644..d8149f69b9b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -35,7 +35,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,15 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIpVersion; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -119,14 +120,14 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private VpnGatewayParams params; /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,7 +150,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.util.List vpnInterfaces; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -157,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -202,7 +203,8 @@ public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -210,7 +212,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -219,7 +222,7 @@ public VpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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() { @@ -227,7 +230,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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) { @@ -387,7 +390,7 @@ public VpnGateway setParams(VpnGatewayParams params) { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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() { @@ -395,7 +398,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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) { @@ -404,7 +407,7 @@ public VpnGateway setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -412,7 +415,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java index ad57f221ca9..125137b6dcb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -61,14 +61,14 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java index 5d0c093170d..582e5d5df26 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -50,7 +50,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -67,7 +67,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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) { @@ -155,7 +155,7 @@ public VpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java index 7904e9eec5a..e70f0cef786 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java @@ -30,14 +30,14 @@ public final class VpnGatewayStatus extends com.google.api.client.json.GenericJson { /** - * List of VPN connection for this VpnGateway. + * 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; /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @return value or {@code null} for none */ public java.util.List getVpnConnections() { @@ -45,7 +45,7 @@ public java.util.List getVpnConnections() { } /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @param vpnConnections vpnConnections or {@code null} for none */ public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java index 67a40c89518..ff635e7b322 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -30,29 +30,29 @@ public final class VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { /** - * The VPN gateway interface this VPN tunnel is associated with. + * 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; /** - * 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. + * 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; /** - * URL reference to the VPN tunnel. + * 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; /** - * The VPN gateway interface this VPN tunnel is associated with. + * Output only. The VPN gateway interface this VPN tunnel is associated with. * @return value or {@code null} for none */ public java.lang.Long getLocalGatewayInterface() { @@ -60,7 +60,7 @@ public java.lang.Long getLocalGatewayInterface() { } /** - * The VPN gateway interface this VPN tunnel is associated with. + * 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) { @@ -69,8 +69,8 @@ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatew } /** - * 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. + * 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() { @@ -78,8 +78,8 @@ public java.lang.Long getPeerGatewayInterface() { } /** - * 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. + * 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) { @@ -88,7 +88,7 @@ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGateway } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @return value or {@code null} for none */ public java.lang.String getTunnelUrl() { @@ -96,7 +96,7 @@ public java.lang.String getTunnelUrl() { } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @param tunnelUrl tunnelUrl or {@code null} for none */ public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java index 1e97486d287..af1945dd5b6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -31,16 +31,16 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.json.GenericJson { /** - * 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. + * 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; /** - * 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. + * 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 @@ -67,8 +67,8 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.j } /** - * 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. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getPeerExternalGateway() { } /** - * 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. + * 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) { @@ -86,8 +86,8 @@ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String pee } /** - * 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. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getPeerGcpGateway() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java index 244d89c5e97..a0c47f43cf1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -30,7 +30,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.json.GenericJson { /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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 @@ -47,21 +48,22 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String interconnectAttachment; /** - * [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. + * 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] 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. + * 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}. */ @@ -69,7 +71,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String ipv6Address; /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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() { @@ -77,7 +80,8 @@ public java.lang.Long getId() { } /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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) { @@ -109,13 +113,14 @@ public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String } /** - * [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. + * 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() { @@ -123,13 +128,14 @@ public java.lang.String getIpAddress() { } /** - * [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. + * 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) { @@ -138,8 +144,8 @@ public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { } /** - * [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. + * 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 */ @@ -148,8 +154,8 @@ public java.lang.String getIpv6Address() { } /** - * [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. + * 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 */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java index 112d37f3bf9..02513e59931 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -47,7 +47,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private VpnTunnelCipherSuite cipherSuite; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,7 +83,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private java.lang.Integer ikeVersion; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -307,7 +307,7 @@ public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -315,7 +315,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { @@ -394,7 +394,7 @@ public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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() { @@ -402,7 +402,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java index 8defd580f15..803aead4170 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -61,14 +61,14 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnTunnelAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnTunnelAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java index 66f5b6260ef..467d94bfe67 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -50,7 +50,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -67,7 +67,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnTunnelList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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) { @@ -155,7 +155,7 @@ public VpnTunnelList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java index a2ebc4201ae..d2d7f2d7532 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java @@ -30,25 +30,25 @@ public final class Wire extends com.google.api.client.json.GenericJson { /** - * [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. + * 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; /** - * Wire endpoints are specific Interconnect connections. + * 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] 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: + * 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. @@ -58,16 +58,16 @@ public final class Wire extends com.google.api.client.json.GenericJson { private java.lang.String label; /** - * [Output Only] Properties of the wire. + * 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] 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. + * 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() { @@ -75,9 +75,9 @@ public java.lang.Boolean getAdminEnabled() { } /** - * [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. + * 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) { @@ -86,7 +86,7 @@ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -94,7 +94,7 @@ public java.util.List getEndpoints() { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @param endpoints endpoints or {@code null} for none */ public Wire setEndpoints(java.util.List endpoints) { @@ -103,9 +103,9 @@ public Wire setEndpoints(java.util.List endpoints) { } /** - * [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: + * 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. @@ -116,9 +116,9 @@ public java.lang.String getLabel() { } /** - * [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: + * 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. @@ -130,7 +130,7 @@ public Wire setLabel(java.lang.String label) { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @return value or {@code null} for none */ public WireProperties getWireProperties() { @@ -138,7 +138,7 @@ public WireProperties getWireProperties() { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @param wireProperties wireProperties or {@code null} for none */ public Wire setWireProperties(WireProperties wireProperties) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java index 7bb670630d8..e2921011e39 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -39,7 +39,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.Boolean adminEnabled; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,15 +61,15 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.util.Map endpoints; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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 @@ -87,14 +87,14 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,14 +107,14 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String selfLinkWithId; /** - * Service level details determined for the wire group configuration. + * Output only. Service level details determined for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key private WireGroupServiceLevel serviceLevel; /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,7 +144,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private WireProperties wireProperties; /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -178,7 +178,7 @@ public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -186,7 +186,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -231,8 +231,8 @@ public WireGroup setEndpoints(java.util.Map endpoints } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -240,8 +240,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -250,7 +250,7 @@ public WireGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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() { @@ -258,7 +258,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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) { @@ -292,7 +292,7 @@ public WireGroup setName(java.lang.String name) { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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() { @@ -300,7 +300,7 @@ public java.lang.Boolean getReconciling() { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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) { @@ -309,7 +309,7 @@ public WireGroup setReconciling(java.lang.Boolean reconciling) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -317,7 +317,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -341,7 +341,7 @@ public WireGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Service level details determined for the wire group configuration. + * Output only. Service level details determined for the wire group configuration. * @return value or {@code null} for none */ public WireGroupServiceLevel getServiceLevel() { @@ -349,7 +349,7 @@ public WireGroupServiceLevel getServiceLevel() { } /** - * Service level details determined for the wire group configuration. + * Output only. Service level details determined for the wire group configuration. * @param serviceLevel serviceLevel or {@code null} for none */ public WireGroup setServiceLevel(WireGroupServiceLevel serviceLevel) { @@ -358,7 +358,7 @@ public WireGroup setServiceLevel(WireGroupServiceLevel serviceLevel) { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @return value or {@code null} for none */ public WireGroupTopology getTopology() { @@ -366,7 +366,7 @@ public WireGroupTopology getTopology() { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @param topology topology or {@code null} for none */ public WireGroup setTopology(WireGroupTopology topology) { @@ -430,7 +430,7 @@ public WireGroup setWireProperties(WireProperties wireProperties) { } /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * @return value or {@code null} for none */ public java.util.List getWires() { @@ -438,7 +438,7 @@ public java.util.List getWires() { } /** - * The single/redundant wire(s) managed by the wire group. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java index eae81afc621..b677fb9cd8a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -56,7 +56,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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 @@ -80,7 +80,8 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +144,7 @@ public WireGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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() { @@ -151,7 +152,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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) { @@ -200,7 +201,8 @@ public WireGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +210,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public WireGroupList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java index 76044a224e8..04529144b66 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java @@ -30,16 +30,18 @@ public final class WireGroupServiceLevel extends com.google.api.client.json.GenericJson { /** - * [Output Only] The availability SLA that the wire group qualifies for. One of the following: - * `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or `AVAILABILITY_9995`. + * Output only. [Output Only] The availability SLA that the wire group qualifies for. One of the + * following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or + * `AVAILABILITY_9995`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String availabilityClass; /** - * [Output Only] The availability SLA that the wire group qualifies for. One of the following: - * `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or `AVAILABILITY_9995`. + * Output only. [Output Only] The availability SLA that the wire group qualifies for. One of the + * following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or + * `AVAILABILITY_9995`. * @return value or {@code null} for none */ public java.lang.String getAvailabilityClass() { @@ -47,8 +49,9 @@ public java.lang.String getAvailabilityClass() { } /** - * [Output Only] The availability SLA that the wire group qualifies for. One of the following: - * `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or `AVAILABILITY_9995`. + * Output only. [Output Only] The availability SLA that the wire group qualifies for. One of the + * following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or + * `AVAILABILITY_9995`. * @param availabilityClass availabilityClass or {@code null} for none */ public WireGroupServiceLevel setAvailabilityClass(java.lang.String availabilityClass) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index bbe19b70c85..9af850296af 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -30,14 +30,14 @@ public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * Topology details for all endpoints in the wire group. + * 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; /** - * Topology details for all endpoints in the wire group. + * Output only. Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -45,7 +45,7 @@ public java.util.List getEndpoints() { } /** - * Topology details for all endpoints in the wire group. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index c871813ea31..78a82e14a9a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -30,23 +30,23 @@ public final class WireGroupTopologyEndpoint extends com.google.api.client.json.GenericJson { /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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; /** - * Endpoint label from the wire group. + * 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; /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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() { @@ -54,8 +54,8 @@ public java.lang.String getCity() { } /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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) { @@ -64,7 +64,7 @@ public WireGroupTopologyEndpoint setCity(java.lang.String city) { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @return value or {@code null} for none */ public java.lang.String getLabel() { @@ -72,7 +72,7 @@ public java.lang.String getLabel() { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @param label label or {@code null} for none */ public WireGroupTopologyEndpoint setLabel(java.lang.String label) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java index fdb831631b4..1d968742891 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -50,7 +50,8 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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 @@ -67,7 +68,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public XpnHostList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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) { @@ -155,7 +158,7 @@ public XpnHostList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java index 0675cfe1818..75ab725815c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java @@ -68,7 +68,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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 @@ -88,6 +88,12 @@ public final class Zone extends com.google.api.client.json.GenericJson { @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}. @@ -103,7 +109,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -195,7 +201,7 @@ public Zone setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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() { @@ -203,7 +209,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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) { @@ -245,6 +251,21 @@ public Zone setRegion(java.lang.String 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 @@ -280,7 +301,7 @@ public Zone setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -288,7 +309,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java index 5291d3e8c13..479ab946be8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -50,7 +50,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ZoneList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ZoneList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ZoneList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java new file mode 100644 index 00000000000..fa29c63261b --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.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 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/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index 23524aa4ddd..20c8d167515 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-rev20251110-2.0.0 - Compute Engine API alpha-rev20251110-2.0.0 + alpha-rev20260306-2.0.0 + Compute Engine API alpha-rev20260306-2.0.0 jar 2011 From fdc73ae1befe027733559249e61da0dfdfc4d69d Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 16 Mar 2026 12:09:47 -0400 Subject: [PATCH 3/5] chore: regenerate compute beta client --- .../beta/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 121158 ++++++++------- .../compute/model/AcceleratorType.java | 15 +- .../model/AcceleratorTypeAggregatedList.java | 24 +- .../compute/model/AcceleratorTypeList.java | 18 +- .../services/compute/model/AccessConfig.java | 6 +- .../api/services/compute/model/Address.java | 63 +- .../compute/model/AddressAggregatedList.java | 24 +- .../services/compute/model/AddressList.java | 12 +- .../model/AllocationAggregateReservation.java | 24 +- ...UAllocationReservedInstanceProperties.java | 2 +- .../AllocationSpecificSKUReservation.java | 12 +- .../services/compute/model/AttachedDisk.java | 120 +- .../model/AttachedDiskInitializeParams.java | 24 +- .../services/compute/model/Autoscaler.java | 75 +- .../model/AutoscalerAggregatedList.java | 27 +- .../compute/model/AutoscalerList.java | 15 +- .../api/services/compute/model/Backend.java | 24 + .../BackendBackendOrchestrationInfo.java | 66 + .../services/compute/model/BackendBucket.java | 30 +- .../model/BackendBucketAggregatedList.java | 12 +- .../compute/model/BackendBucketList.java | 12 +- .../model/BackendBucketListUsable.java | 18 +- .../compute/model/BackendBucketUsedBy.java | 6 +- .../compute/model/BackendService.java | 63 +- .../model/BackendServiceAggregatedList.java | 18 +- .../BackendServiceDynamicForwarding.java | 24 + ...dServiceDynamicForwardingForwardProxy.java | 90 + .../model/BackendServiceFailoverPolicy.java | 6 +- .../model/BackendServiceGroupHealth.java | 12 +- .../compute/model/BackendServiceIAP.java | 6 +- .../compute/model/BackendServiceList.java | 15 +- .../model/BackendServiceListUsable.java | 18 +- .../BackendServiceOrchestrationInfo.java | 66 + .../compute/model/BackendServiceUsedBy.java | 12 +- .../api/services/compute/model/BgpRoute.java | 30 +- .../compute/model/BgpRouteAsPath.java | 30 +- .../compute/model/BulkInsertDiskResource.java | 48 + .../model/BulkInsertInstanceResource.java | 24 + ...InstanceResourcePerInstanceProperties.java | 6 +- .../services/compute/model/CachePolicy.java | 405 + .../model/CachePolicyCacheKeyPolicy.java | 307 + .../CachePolicyNegativeCachingPolicy.java | 102 + .../services/compute/model/Commitment.java | 105 +- .../model/CommitmentAggregatedList.java | 24 +- .../compute/model/CommitmentList.java | 15 +- .../model/CommitmentResourceStatus.java | 18 +- .../compute/model/CompositeHealthCheck.java | 57 +- .../CompositeHealthCheckAggregatedList.java | 18 +- .../model/CompositeHealthCheckList.java | 12 +- .../compute/model/CrossSiteNetwork.java | 33 +- .../compute/model/CrossSiteNetworkList.java | 18 +- .../api/services/compute/model/Disk.java | 285 +- .../compute/model/DiskAggregatedList.java | 24 +- .../compute/model/DiskAsyncReplication.java | 54 +- .../api/services/compute/model/DiskList.java | 12 +- .../services/compute/model/DiskParams.java | 24 +- .../api/services/compute/model/DiskType.java | 6 +- .../compute/model/DiskTypeAggregatedList.java | 18 +- .../services/compute/model/DiskTypeList.java | 12 +- .../compute/model/DistributionPolicy.java | 18 +- .../model/ExchangedPeeringRoutesList.java | 18 +- .../compute/model/ExternalVpnGateway.java | 57 +- .../compute/model/ExternalVpnGatewayList.java | 12 +- .../model/ExternalVpnGatewayParams.java | 87 + .../api/services/compute/model/Firewall.java | 21 +- .../services/compute/model/FirewallList.java | 15 +- ...ewallPoliciesListAssociationsResponse.java | 6 +- .../compute/model/FirewallPolicy.java | 93 +- .../model/FirewallPolicyAssociation.java | 12 +- .../compute/model/FirewallPolicyList.java | 9 +- .../compute/model/FirewallPolicyRule.java | 18 +- .../model/FirewallPolicyRuleMatcher.java | 54 + .../model/FirewallPolicyRuleSecureTag.java | 12 +- .../compute/model/FixedOrPercent.java | 9 +- .../compute/model/FlexibleTimeRange.java | 3 +- .../compute/model/ForwardingRule.java | 105 +- .../model/ForwardingRuleAggregatedList.java | 24 +- .../compute/model/ForwardingRuleList.java | 12 +- .../compute/model/FutureReservation.java | 102 +- .../model/FutureReservationStatus.java | 81 +- ...vationStatusExistingMatchingUsageInfo.java | 12 +- ...reReservationStatusLastKnownGoodState.java | 45 +- ...tKnownGoodStateFutureReservationSpecs.java | 18 +- ...ureReservationsAggregatedListResponse.java | 27 +- .../model/FutureReservationsListResponse.java | 24 +- .../model/GetVersionOperationMetadata.java | 63 + .../GetVersionOperationMetadataSbomInfo.java | 96 + .../model/GlobalVmExtensionPolicy.java | 51 +- .../model/GlobalVmExtensionPolicyList.java | 18 +- ...obalVmExtensionPolicyRolloutOperation.java | 6 +- ...ionPolicyRolloutOperationRolloutInput.java | 99 +- ...onPolicyRolloutOperationRolloutStatus.java | 24 +- ...OperationRolloutStatusRolloutMetadata.java | 48 +- ...sRolloutMetadataLocationRolloutStatus.java | 67 + .../compute/model/GuestAttributes.java | 27 +- .../model/HealthAggregationPolicy.java | 57 +- ...HealthAggregationPolicyAggregatedList.java | 18 +- .../model/HealthAggregationPolicyList.java | 12 +- .../services/compute/model/HealthCheck.java | 21 +- .../compute/model/HealthCheckList.java | 12 +- .../compute/model/HealthCheckService.java | 48 +- .../HealthCheckServiceAggregatedList.java | 401 + .../model/HealthCheckServicesList.java | 54 +- .../model/HealthCheckServicesScopedList.java | 278 + .../model/HealthChecksAggregatedList.java | 18 +- .../services/compute/model/HealthSource.java | 51 +- .../model/HealthSourceAggregatedList.java | 18 +- .../compute/model/HealthSourceList.java | 6 +- .../compute/model/HttpHeaderMatch.java | 6 +- .../compute/model/HttpHealthCheck.java | 9 +- .../compute/model/HttpHealthCheckList.java | 12 +- .../model/HttpQueryParameterMatch.java | 6 +- .../compute/model/HttpRouteAction.java | 27 + .../compute/model/HttpRouteRuleMatch.java | 72 +- .../compute/model/HttpsHealthCheck.java | 6 +- .../compute/model/HttpsHealthCheckList.java | 12 +- .../api/services/compute/model/Image.java | 186 +- .../api/services/compute/model/ImageList.java | 12 +- .../services/compute/model/ImageParams.java | 24 +- .../api/services/compute/model/Instance.java | 156 +- .../compute/model/InstanceAggregatedList.java | 24 +- .../model/InstanceConsumptionData.java | 12 +- .../model/InstanceConsumptionInfo.java | 24 +- .../model/InstanceFlexibilityPolicy.java | 75 + ...nceFlexibilityPolicyInstanceSelection.java | 134 + .../services/compute/model/InstanceGroup.java | 98 +- .../model/InstanceGroupAggregatedList.java | 62 +- .../compute/model/InstanceGroupList.java | 56 +- .../compute/model/InstanceGroupManager.java | 99 +- .../InstanceGroupManagerActionsSummary.java | 215 +- .../InstanceGroupManagerAggregatedList.java | 65 +- .../model/InstanceGroupManagerList.java | 56 +- .../model/InstanceGroupManagerParams.java | 21 +- .../InstanceGroupManagerResizeRequest.java | 78 +- ...stanceGroupManagerResizeRequestStatus.java | 64 +- ...ManagerResizeRequestStatusLastAttempt.java | 8 +- ...roupManagerResizeRequestsListResponse.java | 56 +- .../model/InstanceGroupManagerStatus.java | 120 +- ...GroupManagerStatusAcceleratorTopology.java | 117 + ...pologyAcceleratorTopologyStateDetails.java | 370 + ...eGroupManagerStatusAllInstancesConfig.java | 24 +- ...oupManagerStatusBulkInstanceOperation.java | 12 +- ...ulkInstanceOperationLastProgressCheck.java | 20 +- ...oupManagerStatusInstanceStatusSummary.java | 404 + .../InstanceGroupManagerStatusStateful.java | 66 +- ...nagerStatusStatefulPerInstanceConfigs.java | 15 +- ...stanceGroupManagerStatusVersionTarget.java | 18 +- ...ConfigureAcceleratorTopologiesRequest.java | 102 + ...questAcceleratorTopologyConfiguration.java | 99 + ...vailableAcceleratorTopologiesResponse.java | 24 + ...logiesResponseAcceleratorTopologyInfo.java | 69 + ...ogiesResponseAcceleratorTopologyState.java | 420 + ...stanceGroupManagersListErrorsResponse.java | 30 +- ...pManagersListManagedInstancesResponse.java | 30 +- ...oupManagersListPerInstanceConfigsResp.java | 38 +- .../InstanceGroupManagersScopedList.java | 28 +- .../model/InstanceGroupsListInstances.java | 59 +- .../model/InstanceGroupsScopedList.java | 22 +- .../services/compute/model/InstanceList.java | 15 +- .../compute/model/InstanceListReferrers.java | 18 +- .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../compute/model/InstanceParams.java | 24 +- .../compute/model/InstanceProperties.java | 42 +- .../compute/model/InstanceSettings.java | 21 +- .../model/InstanceSettingsMetadata.java | 6 +- .../compute/model/InstanceTemplate.java | 51 +- .../model/InstanceTemplateAggregatedList.java | 12 +- .../compute/model/InstanceTemplateList.java | 18 +- .../compute/model/InstanceWithNamedPorts.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 9 +- .../compute/model/InstantSnapshot.java | 210 +- .../model/InstantSnapshotAggregatedList.java | 24 +- .../compute/model/InstantSnapshotGroup.java | 360 + .../model/InstantSnapshotGroupParameters.java | 78 + .../InstantSnapshotGroupResourceStatus.java | 90 + .../model/InstantSnapshotGroupSourceInfo.java | 84 + .../compute/model/InstantSnapshotList.java | 12 +- .../compute/model/InstantSnapshotParams.java | 78 + .../services/compute/model/Interconnect.java | 195 +- .../compute/model/InterconnectAttachment.java | 285 +- .../InterconnectAttachmentAggregatedList.java | 24 +- ...ectAttachmentConfigurationConstraints.java | 33 +- .../model/InterconnectAttachmentGroup.java | 30 +- ...redAvailabilitySLAIntendedSlaBlockers.java | 78 +- ...AttachmentGroupLogicalStructureRegion.java | 6 +- ...hmentGroupLogicalStructureRegionMetro.java | 12 +- ...upLogicalStructureRegionMetroFacility.java | 6 +- ...gicalStructureRegionMetroFacilityZone.java | 18 +- ...erconnectAttachmentGroupsListResponse.java | 9 +- ...nectAttachmentGroupsOperationalStatus.java | 12 +- ...oupsOperationalStatusAttachmentStatus.java | 42 +- .../model/InterconnectAttachmentList.java | 18 +- .../compute/model/InterconnectGroup.java | 30 +- ...yCapabilityIntendedCapabilityBlockers.java | 66 +- ...erconnectGroupPhysicalStructureMetros.java | 12 +- ...roupPhysicalStructureMetrosFacilities.java | 12 +- ...hysicalStructureMetrosFacilitiesZones.java | 24 +- .../model/InterconnectGroupsListResponse.java | 9 +- .../InterconnectGroupsOperationalStatus.java | 24 +- ...psOperationalStatusInterconnectStatus.java | 27 +- .../compute/model/InterconnectList.java | 15 +- .../compute/model/InterconnectLocation.java | 123 +- ...nectLocationCrossSiteInterconnectInfo.java | 15 +- .../model/InterconnectLocationList.java | 18 +- .../model/InterconnectLocationRegionInfo.java | 36 +- .../model/InterconnectRemoteLocation.java | 216 +- ...InterconnectRemoteLocationConstraints.java | 30 +- .../model/InterconnectRemoteLocationList.java | 18 +- ...ectRemoteLocationPermittedConnections.java | 12 +- .../api/services/compute/model/License.java | 57 +- .../services/compute/model/LicenseCode.java | 63 +- .../model/LicenseCodeLicenseAlias.java | 12 +- .../services/compute/model/LicenseParams.java | 78 + .../compute/model/LicensesListResponse.java | 6 +- .../model/ListInstantSnapshotGroups.java | 431 + .../compute/model/ListSnapshotGroups.java | 425 + .../compute/model/LocationPolicy.java | 48 +- .../LocationPolicyZoneConfiguration.java | 69 + .../services/compute/model/MachineImage.java | 102 +- .../compute/model/MachineImageList.java | 18 +- .../compute/model/MachineImageParams.java | 78 + .../services/compute/model/MachineType.java | 9 +- .../model/MachineTypeAggregatedList.java | 24 +- .../compute/model/MachineTypeList.java | 15 +- .../compute/model/ManagedInstance.java | 207 +- .../ManagedInstanceAllInstancesConfig.java | 12 +- .../model/ManagedInstanceInstanceHealth.java | 15 +- .../model/ManagedInstanceLastAttempt.java | 12 +- ...stancePropertiesFromFlexibilityPolicy.java | 12 +- .../model/ManagedInstanceScheduling.java | 12 +- .../compute/model/ManagedInstanceVersion.java | 18 +- .../api/services/compute/model/Metadata.java | 6 +- .../api/services/compute/model/MultiMig.java | 45 +- .../compute/model/MultiMigMember.java | 216 + .../compute/model/MultiMigMemberList.java | 386 + .../compute/model/MultiMigMemberStatus.java | 66 + .../compute/model/MultiMigStatus.java | 36 +- .../MultiMigStatusAcceleratorTopology.java | 24 +- ...logyAcceleratorTopologyStateLastCheck.java | 20 +- .../services/compute/model/MultiMigsList.java | 12 +- .../api/services/compute/model/NamedSet.java | 224 + .../api/services/compute/model/NatIpInfo.java | 12 +- .../model/NatIpInfoNatIpInfoMapping.java | 18 +- .../api/services/compute/model/Network.java | 39 +- .../compute/model/NetworkAttachment.java | 90 +- .../NetworkAttachmentConnectedEndpoint.java | 9 +- .../model/NetworkEdgeSecurityService.java | 45 +- ...workEdgeSecurityServiceAggregatedList.java | 27 +- .../compute/model/NetworkEndpointGroup.java | 57 +- .../NetworkEndpointGroupAggregatedList.java | 27 +- ...rkEndpointGroupLbNetworkEndpointGroup.java | 12 +- .../model/NetworkEndpointGroupList.java | 18 +- .../model/NetworkEndpointGroupPscData.java | 24 +- ...orkEndpointGroupsListNetworkEndpoints.java | 6 +- .../NetworkEndpointGroupsScopedList.java | 22 +- .../NetworkEndpointWithHealthStatus.java | 12 +- .../NetworkFirewallPolicyAggregatedList.java | 24 +- .../compute/model/NetworkInterface.java | 72 +- .../services/compute/model/NetworkList.java | 12 +- .../compute/model/NetworkPeering.java | 27 +- .../services/compute/model/NetworkPolicy.java | 66 +- .../model/NetworkPolicyAggregatedList.java | 24 +- .../compute/model/NetworkPolicyList.java | 9 +- ...etworkPolicyTrafficClassificationRule.java | 21 +- ...icyTrafficClassificationRuleSecureTag.java | 12 +- .../compute/model/NetworkProfile.java | 66 +- .../model/NetworkProfileNetworkFeatures.java | 156 +- ...workFeaturesPredefinedSubnetworkRange.java | 90 + .../model/NetworkProfilesListResponse.java | 24 +- .../compute/model/NetworkRoutingConfig.java | 12 +- ...orksCancelRequestRemovePeeringRequest.java | 66 + ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 12 +- .../api/services/compute/model/NodeGroup.java | 42 +- .../model/NodeGroupAggregatedList.java | 24 +- .../services/compute/model/NodeGroupList.java | 15 +- .../model/NodeGroupMaintenanceWindow.java | 12 +- .../services/compute/model/NodeGroupNode.java | 30 +- .../compute/model/NodeGroupsListNodes.java | 56 +- .../services/compute/model/NodeTemplate.java | 57 +- .../model/NodeTemplateAggregatedList.java | 24 +- .../compute/model/NodeTemplateList.java | 15 +- .../api/services/compute/model/NodeType.java | 27 +- .../compute/model/NodeTypeAggregatedList.java | 24 +- .../services/compute/model/NodeTypeList.java | 15 +- .../compute/model/NotificationEndpoint.java | 51 +- .../NotificationEndpointAggregatedList.java | 401 + .../model/NotificationEndpointList.java | 12 +- .../NotificationEndpointsScopedList.java | 278 + .../api/services/compute/model/Operation.java | 54 +- .../model/OperationAggregatedList.java | 18 +- .../services/compute/model/OperationList.java | 9 +- ...urityPoliciesListAssociationsResponse.java | 6 +- .../compute/model/PacketMirroring.java | 30 +- .../model/PacketMirroringAggregatedList.java | 18 +- .../PacketMirroringForwardingRuleInfo.java | 6 +- .../compute/model/PacketMirroringList.java | 15 +- ...oringMirroredResourceInfoInstanceInfo.java | 6 +- ...rroringMirroredResourceInfoSubnetInfo.java | 6 +- .../model/PacketMirroringNetworkInfo.java | 6 +- .../services/compute/model/PathMatcher.java | 21 +- .../compute/model/PreviewFeature.java | 42 +- .../compute/model/PreviewFeatureList.java | 15 +- .../compute/model/PreviewFeatureStatus.java | 12 +- .../PreviewFeatureStatusReleaseStatus.java | 6 +- .../api/services/compute/model/Project.java | 36 +- .../model/ProjectsGetXpnResources.java | 36 +- .../compute/model/PublicAdvertisedPrefix.java | 54 +- .../model/PublicAdvertisedPrefixList.java | 12 +- .../compute/model/PublicDelegatedPrefix.java | 84 +- .../PublicDelegatedPrefixAggregatedList.java | 21 +- .../model/PublicDelegatedPrefixList.java | 12 +- ...legatedPrefixPublicDelegatedSubPrefix.java | 42 +- .../api/services/compute/model/Reference.java | 6 +- .../api/services/compute/model/Region.java | 28 +- .../compute/model/RegionAutoscalerList.java | 12 +- .../compute/model/RegionDiskTypeList.java | 15 +- .../model/RegionInstanceGroupList.java | 50 +- .../model/RegionInstanceGroupManagerList.java | 56 +- ...roupManagerResizeRequestsListResponse.java | 65 +- ...nceGroupManagersAdoptInstancesRequest.java | 72 + ...stanceGroupManagersListErrorsResponse.java | 24 +- ...eGroupManagersListInstanceConfigsResp.java | 38 +- ...nceGroupManagersListInstancesResponse.java | 24 +- .../RegionInstanceGroupsListInstances.java | 50 +- .../services/compute/model/RegionList.java | 12 +- ...PoliciesGetEffectiveFirewallsResponse.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 39 +- .../services/compute/model/Reservation.java | 171 +- .../model/ReservationAggregatedList.java | 18 +- .../compute/model/ReservationBlock.java | 129 +- .../ReservationBlockPhysicalTopology.java | 6 +- ...ervationBlockPhysicalTopologyInstance.java | 6 +- .../compute/model/ReservationList.java | 15 +- .../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 | 114 +- ...ReservationSubBlocksGetVersionRequest.java | 66 + .../compute/model/ResourcePolicy.java | 42 +- .../model/ResourcePolicyAggregatedList.java | 18 +- .../model/ResourcePolicyDailyCycle.java | 12 +- .../model/ResourcePolicyHourlyCycle.java | 12 +- .../compute/model/ResourcePolicyList.java | 15 +- .../model/ResourcePolicyResourceStatus.java | 15 +- ...rceStatusInstanceSchedulePolicyStatus.java | 21 +- .../ResourcePolicyWeeklyCycleDayOfWeek.java | 12 +- .../compute/model/ResourceStatus.java | 60 +- ...sourceStatusEffectiveInstanceMetadata.java | 24 + ...ourceStatusReservationConsumptionInfo.java | 9 +- .../api/services/compute/model/Rollout.java | 38 +- .../services/compute/model/RolloutPlan.java | 39 +- .../model/RolloutPlansListResponse.java | 15 +- .../compute/model/RolloutsListResponse.java | 15 +- .../api/services/compute/model/Route.java | 156 +- .../api/services/compute/model/RouteList.java | 12 +- .../api/services/compute/model/Router.java | 12 +- .../compute/model/RouterAggregatedList.java | 18 +- .../services/compute/model/RouterBgpPeer.java | 36 +- .../compute/model/RouterInterface.java | 36 +- .../services/compute/model/RouterList.java | 12 +- .../model/RouterStatusBgpPeerStatus.java | 126 +- .../compute/model/RouterStatusNatStatus.java | 63 +- .../RouterStatusNatStatusNatRuleStatus.java | 39 +- .../compute/model/RouterStatusResponse.java | 6 +- .../model/RoutersGetNamedSetResponse.java | 87 + .../compute/model/RoutersListBgpRoutes.java | 21 +- .../compute/model/RoutersListNamedSets.java | 431 + .../model/RoutersListRoutePolicies.java | 24 +- .../compute/model/SavedAttachedDisk.java | 57 +- .../api/services/compute/model/SavedDisk.java | 48 +- .../services/compute/model/Scheduling.java | 30 + .../services/compute/model/Screenshot.java | 6 +- .../model/SecurityPoliciesAggregatedList.java | 24 +- .../compute/model/SecurityPolicy.java | 66 +- .../model/SecurityPolicyAssociation.java | 18 +- .../SecurityPolicyDdosProtectionConfig.java | 78 + .../compute/model/SecurityPolicyList.java | 9 +- .../compute/model/SecurityPolicyRule.java | 18 +- ...cyRulePreconfiguredWafConfigExclusion.java | 27 + .../compute/model/SerialPortOutput.java | 15 +- .../compute/model/ServiceAttachment.java | 69 +- .../ServiceAttachmentAggregatedList.java | 18 +- .../compute/model/ServiceAttachmentList.java | 9 +- .../model/ShieldedInstanceIdentity.java | 12 +- .../compute/model/ShieldedVmIdentity.java | 12 +- .../api/services/compute/model/Snapshot.java | 318 +- .../compute/model/SnapshotAggregatedList.java | 24 +- .../services/compute/model/SnapshotGroup.java | 330 + .../model/SnapshotGroupParameters.java | 132 + .../model/SnapshotGroupSourceInfo.java | 84 + ...otGroupSourceInstantSnapshotGroupInfo.java | 84 + .../services/compute/model/SnapshotList.java | 12 +- .../compute/model/SnapshotParams.java | 24 +- .../compute/model/SslCertificate.java | 36 +- .../model/SslCertificateAggregatedList.java | 24 +- .../compute/model/SslCertificateList.java | 12 +- .../SslCertificateManagedSslCertificate.java | 15 +- .../model/SslPoliciesAggregatedList.java | 24 +- .../compute/model/SslPoliciesList.java | 51 +- .../api/services/compute/model/SslPolicy.java | 72 +- .../services/compute/model/StoragePool.java | 126 +- .../model/StoragePoolAggregatedList.java | 24 +- .../compute/model/StoragePoolDisk.java | 66 +- ...oragePoolExapoolProvisionedCapacityGb.java | 114 + .../compute/model/StoragePoolList.java | 24 +- .../compute/model/StoragePoolListDisks.java | 65 +- .../compute/model/StoragePoolParams.java | 78 + .../model/StoragePoolResourceStatus.java | 102 +- .../compute/model/StoragePoolType.java | 15 +- .../model/StoragePoolTypeAggregatedList.java | 12 +- .../compute/model/StoragePoolTypeList.java | 15 +- .../services/compute/model/Subnetwork.java | 147 +- .../model/SubnetworkAggregatedList.java | 24 +- .../compute/model/SubnetworkList.java | 15 +- .../model/SubnetworkSecondaryRange.java | 57 +- .../compute/model/TargetGrpcProxy.java | 39 +- .../compute/model/TargetGrpcProxyList.java | 9 +- .../compute/model/TargetHttpProxy.java | 27 +- .../model/TargetHttpProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpProxyList.java | 15 +- .../compute/model/TargetHttpsProxy.java | 27 +- .../model/TargetHttpsProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpsProxyList.java | 15 +- .../compute/model/TargetInstance.java | 27 +- .../model/TargetInstanceAggregatedList.java | 18 +- .../compute/model/TargetInstanceList.java | 12 +- .../services/compute/model/TargetPool.java | 18 +- .../model/TargetPoolAggregatedList.java | 24 +- .../model/TargetPoolInstanceHealth.java | 12 +- .../compute/model/TargetPoolList.java | 15 +- .../compute/model/TargetSslProxy.java | 15 +- .../compute/model/TargetSslProxyList.java | 12 +- .../compute/model/TargetTcpProxy.java | 51 +- .../model/TargetTcpProxyAggregatedList.java | 24 +- .../compute/model/TargetTcpProxyList.java | 12 +- .../compute/model/TargetVpnGateway.java | 42 +- .../model/TargetVpnGatewayAggregatedList.java | 21 +- .../compute/model/TargetVpnGatewayList.java | 15 +- .../compute/model/TargetVpnGatewayParams.java | 87 + .../api/services/compute/model/UrlMap.java | 30 +- .../services/compute/model/UrlMapList.java | 12 +- .../compute/model/UrlMapsAggregatedList.java | 18 +- .../compute/model/UsableSubnetwork.java | 12 +- .../model/UsableSubnetworkSecondaryRange.java | 9 +- .../UsableSubnetworksAggregatedList.java | 30 +- .../compute/model/VmEndpointNatMappings.java | 6 +- ...dpointNatMappingsInterfaceNatMappings.java | 72 +- ...gsInterfaceNatMappingsNatRuleMappings.java | 66 +- .../model/VmEndpointNatMappingsList.java | 18 +- .../compute/model/VmExtensionPolicy.java | 72 +- ...ExtensionPolicyAggregatedListResponse.java | 24 +- .../compute/model/VmExtensionPolicyList.java | 74 +- .../services/compute/model/VpnGateway.java | 60 +- .../model/VpnGatewayAggregatedList.java | 18 +- .../compute/model/VpnGatewayList.java | 12 +- .../compute/model/VpnGatewayParams.java | 87 + .../compute/model/VpnGatewayStatus.java | 6 +- .../compute/model/VpnGatewayStatusTunnel.java | 24 +- .../model/VpnGatewayStatusVpnConnection.java | 24 +- .../model/VpnGatewayVpnGatewayInterface.java | 66 +- .../api/services/compute/model/VpnTunnel.java | 66 +- .../model/VpnTunnelAggregatedList.java | 18 +- .../services/compute/model/VpnTunnelList.java | 12 +- .../compute/model/VpnTunnelParams.java | 87 + .../api/services/compute/model/Wire.java | 48 +- .../api/services/compute/model/WireGroup.java | 48 +- .../services/compute/model/WireGroupList.java | 15 +- .../compute/model/WireGroupTopology.java | 6 +- .../model/WireGroupTopologyEndpoint.java | 18 +- .../compute/model/WorkloadIdentityConfig.java | 84 + .../services/compute/model/XpnHostList.java | 15 +- .../api/services/compute/model/Zone.java | 12 +- .../api/services/compute/model/ZoneList.java | 12 +- .../beta/2.0.0/pom.xml | 4 +- 483 files changed, 84554 insertions(+), 61747 deletions(-) create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NamedSet.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlot.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersGetNamedSetResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java 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 7e48e9f8f2f..145bd2e466d 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-rev20251110-2.0.0 + beta-rev20260306-2.0.0
      @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20251110-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260306-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 e1229f54a43..973e523cdcf 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 @@ -103,7 +103,7 @@ public class Compute extends com.google.api.client.googleapis.services.json.Abst * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -21212,8 +21212,7 @@ public TestIamPermissions set(String parameterName, Object 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. Only the following fields can be modified: - * user_license. + * selected fields included as part of update-mask. * * Create a request for the method "disks.update". * @@ -21247,8 +21246,7 @@ public class Update extends ComputeRequest { + public class ConfigureAcceleratorTopologies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/configureAcceleratorTopologies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Updates the accelerator topologies configuration. * - * Create a request for the method "instanceGroupManagers.createInstances". + * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". * * 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.

    + * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the + * remote operation.

    {@link ConfigureAcceleratorTopologies#initialize(com.google.api.client.go + * ogleapis.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 @@ -53790,10 +53794,10 @@ public class CreateInstances extends ComputeRequest { + public class CreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.delete". + * 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 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.

    + * 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. - * @param instanceGroupManager The name of the managed instance group to delete. + * @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 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); + 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(), @@ -54041,63 +54055,63 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54111,7 +54125,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -54122,37 +54136,43 @@ public Delete setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * 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. + /** 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. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ - public Delete setZone(java.lang.String zone) { + public CreateInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group to delete. */ + /** + * 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 to delete. + /** 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 to delete. */ - public Delete setInstanceGroupManager(java.lang.String 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; } @@ -54165,7 +54185,7 @@ public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -54178,8 +54198,7 @@ public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + 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). @@ -54196,91 +54215,70 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. * * 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) { + public CreateInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) 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. + * 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.deleteInstances". + * 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 DeleteInstances#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + * @param instanceGroupManager The name of the managed instance group to delete. * @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); + 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 DeleteInstances extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.deleteInstances". + * 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 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.

    + * 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. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + * @param instanceGroupManager The name of the managed instance group to delete. * @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); + 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(), @@ -54292,63 +54290,63 @@ protected DeleteInstances(java.lang.String project, java.lang.String zone, java. } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54362,7 +54360,258 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String project) { + 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; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 " + @@ -79586,6 +79835,26 @@ public Update setInstance(java.lang.String 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 @@ -81006,523 +81275,47 @@ public UpdateShieldedVmConfig set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InstantSnapshots collection. + * An accessor for creating requests from the InstantSnapshotGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InstantSnapshots.List request = compute.instantSnapshots().list(parameters ...)}
    +   *   {@code Compute.InstantSnapshotGroups.List request = compute.instantSnapshotGroups().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InstantSnapshots instantSnapshots() { - return new InstantSnapshots(); + public InstantSnapshotGroups instantSnapshotGroups() { + return new InstantSnapshotGroups(); } /** - * The "instantSnapshots" collection of methods. + * The "instantSnapshotGroups" collection of methods. */ - public class InstantSnapshots { + public class InstantSnapshotGroups { /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * deletes a Zonal InstantSnapshotGroup resource * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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". + * 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 instantSnapshot Name of the InstantSnapshot resource to delete. + * @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 instantSnapshot) throws java.io.IOException { - Delete result = new Delete(project, zone, instantSnapshot); + 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}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81530,18 +81323,13 @@ public class Delete extends ComputeRequest {@link @@ -81550,10 +81338,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81781,13 +81569,13 @@ public class Get extends ComputeRequest {@link @@ -81796,11 +81584,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81995,7 +81783,7 @@ public class GetIamPolicy extends ComputeRequest @@ -82185,19 +81973,19 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates an instant snapshot in the specified zone. + * inserts a Zonal InstantSnapshotGroup resource * - * Create a request for the method "instantSnapshots.insert". + * 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.InstantSnapshot} + * @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.InstantSnapshot content) throws java.io.IOException { + 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; @@ -82205,7 +81993,7 @@ public Insert insert(java.lang.String project, java.lang.String zone, com.google public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82214,9 +82002,9 @@ public class Insert extends ComputeRequest {@link @@ -82225,10 +82013,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82429,9 +82233,9 @@ public class List extends ComputeRequest {@link @@ -82443,7 +82247,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82875,7 +82679,7 @@ public class SetIamPolicy extends ComputeRequest @@ -83040,29 +82844,28 @@ public SetIamPolicy set(String parameterName, Object value) { } } /** - * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the - * Labeling Resources documentation. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instantSnapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * 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.ZoneSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -83074,25 +82877,24 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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.ZoneSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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); + 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(), @@ -83114,63 +82916,63 @@ protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.S } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83184,7 +82986,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -83205,7 +83007,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetLabels setZone(java.lang.String zone) { + 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 " + @@ -83226,7 +83028,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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 " + @@ -83236,190 +83038,156 @@ public SetLabels setResource(java.lang.String 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. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "instantSnapshots" collection of methods. + */ + public class InstantSnapshots { - @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); - } - } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves an aggregated list of instantSnapshots. * - * Create a request for the method "instantSnapshots.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/aggregated/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves an aggregated list of instantSnapshots. * - * Create a request for the method "instantSnapshots.testIamPermissions". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -83433,7 +83201,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -83443,108 +83211,378 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String filter; - /** The name of the zone for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - /** Name or id of the resource for this request. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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.String resource; + private java.lang.Boolean includeAllScopes; - /** Name or id of the resource for this request. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if 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.String getResource() { - return resource; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** 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; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - } - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + } - /** - * 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(); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** - * The "interconnectAttachmentGroups" collection of methods. - */ - public class InterconnectAttachmentGroups { + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 InterconnectAttachmentGroup in the given scope + * 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. * - * Create a request for the method "interconnectAttachmentGroups.delete". + * 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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @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 interconnectAttachmentGroup) throws java.io.IOException { - Delete result = new Delete(project, interconnectAttachmentGroup); + 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}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 InterconnectAttachmentGroup in the given scope + * 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. * - * Create a request for the method "interconnectAttachmentGroups.delete". + * 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 @@ -83552,10 +83590,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @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 interconnectAttachmentGroup) { + 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()) { @@ -83563,10 +83602,16 @@ protected Delete(java.lang.String project, java.lang.String interconnectAttachme "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -83652,24 +83697,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to delete. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the InterconnectAttachmentGroup resource to delete. + /** The name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the InterconnectAttachmentGroup resource to delete. */ - public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** The name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.instantSnapshot = instantSnapshot; return this; } @@ -83684,7 +83750,7 @@ public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttach * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -83698,7 +83764,7 @@ public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttach clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -83715,7 +83781,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -83728,37 +83794,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * Returns the specified InstantSnapshot resource in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.get". + * 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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @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 interconnectAttachmentGroup) throws java.io.IOException { - Get result = new Get(project, interconnectAttachmentGroup); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 InterconnectAttachmentGroup resource in the given scope. + * Returns the specified InstantSnapshot resource in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.get". + * 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 @@ -83766,21 +83836,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @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 interconnectAttachmentGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroup.class); + 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -83876,24 +83953,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to return. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the InterconnectAttachmentGroup resource to return. + /** The name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the InterconnectAttachmentGroup resource to return. */ - public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.instantSnapshot = instantSnapshot; return this; } @@ -83905,36 +84003,40 @@ public Get set(String parameterName, Object 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". + * 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 resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + 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". + * 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.

    @@ -83943,10 +84045,11 @@ public class GetIamPolicy extends ComputeRequest * * @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 resource) { + 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()) { @@ -83954,11 +84057,17 @@ protected GetIamPolicy(java.lang.String project, java.lang.String resource) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -84053,6 +84162,27 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public 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; @@ -84068,7 +84198,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -84096,135 +84226,123 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup - * resource. + * Creates an instant snapshot in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * 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 GetOperationalStatus#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @return the request */ - public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - GetOperationalStatus result = new GetOperationalStatus(project, interconnectAttachmentGroup); + 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 GetOperationalStatus extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup - * resource. + * Creates an instant snapshot in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * 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 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.

    + * 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 interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @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); + 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84238,7 +84356,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetOperationalStatus setProject(java.lang.String project) { + 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 " + @@ -84248,161 +84366,24 @@ public GetOperationalStatus setProject(java.lang.String project) { return this; } - /** Name of the interconnectAttachmentGroup resource to query. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the interconnectAttachmentGroup resource to query. + /** Name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the interconnectAttachmentGroup resource to query. */ - public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** Name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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; + this.zone = zone; return this; } @@ -84417,7 +84398,7 @@ public Insert setProject(java.lang.String project) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -84431,7 +84412,7 @@ public Insert setProject(java.lang.String project) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -84448,7 +84429,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -84461,33 +84442,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the InterconnectAttachmentGroups for a project in the given scope. + * Retrieves the list of InstantSnapshot resources contained within the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 the InterconnectAttachmentGroups for a project in the given scope. + * Retrieves the list of InstantSnapshot resources contained within the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.list". + * 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 @@ -84495,16 +84480,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.class); + 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])?"); + } } @Override @@ -84598,6 +84590,27 @@ public List setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -84868,126 +84881,135 @@ public List set(String parameterName, Object 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachmentGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachmentGroups.patch". + * 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 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.

    + * 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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @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 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); + 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85001,7 +85023,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -85011,216 +85033,185 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to patch. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the InterconnectAttachmentGroup resource to patch. + /** The name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the InterconnectAttachmentGroup resource to patch. */ - public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - 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; + this.zone = zone; return this; } - /** The list of fields to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** The list of fields to update. + /** Name or id of the resource for this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } - /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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 "interconnectAttachmentGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + 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. + * 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 "interconnectAttachmentGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} * @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); + 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85234,7 +85225,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -85244,6 +85235,27 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public 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; @@ -85255,54 +85267,107 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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}"); + "[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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + 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 "interconnectAttachmentGroups.testIamPermissions". + * 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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + 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}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + 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". + * 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 @@ -85311,11 +85376,12 @@ public class TestIamPermissions extends ComputeRequest * * @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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -85323,11 +85389,17 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -85412,6 +85484,27 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public 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; @@ -85427,7 +85520,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -85442,147 +85535,141 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectAttachments collection. + * An accessor for creating requests from the InterconnectAttachmentGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
    +   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InterconnectAttachments interconnectAttachments() { - return new InterconnectAttachments(); + public InterconnectAttachmentGroups interconnectAttachmentGroups() { + return new InterconnectAttachmentGroups(); } /** - * The "interconnectAttachments" collection of methods. + * The "interconnectAttachmentGroups" collection of methods. */ - public class InterconnectAttachments { + public class InterconnectAttachmentGroups { /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "interconnectAttachments.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "interconnectAttachments.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85596,7 +85683,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -85606,459 +85693,384 @@ public AggregatedList setProject(java.lang.String 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; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * 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 filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + private java.lang.String requestId; - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + 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; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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; + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @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; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class Get extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + 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}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Returns the specified InterconnectAttachmentGroup resource in the given scope. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "interconnectAttachmentGroups.get". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @since 1.13 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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}"); + } } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if 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; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Specifies 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; + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String project; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Project ID for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getProject() { + return project; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name of the InterconnectAttachmentGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String interconnectAttachmentGroup; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name of the InterconnectAttachmentGroup resource to return. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** - * 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; + /** 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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified interconnect attachment. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectAttachments.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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. + * @param resource Name or id of the resource for this request. * @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); + 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 Delete extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + private final java.util.regex.Pattern RESOURCE_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. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectAttachments.delete". + * 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 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.

    + * 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 Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @param resource Name or id of the resource for this request. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -86072,7 +86084,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -86082,167 +86094,106 @@ public Delete setProject(java.lang.String 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. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String resource; - /** Name of the interconnect attachment to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect attachment to delete. */ - public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + 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). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified interconnect attachment. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "interconnectAttachments.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#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. + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @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); + 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 Get extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 interconnect attachment. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "interconnectAttachments.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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}"); } } @@ -86258,63 +86209,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86328,7 +86279,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -86338,88 +86289,63 @@ public Get setProject(java.lang.String 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. */ + /** Name of the interconnectAttachmentGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectAttachmentGroup; - /** Name of the interconnect attachment to return. + /** Name of the interconnectAttachmentGroup resource to query. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the interconnect attachment to return. */ - public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** 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_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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.interconnectAttachment = interconnectAttachment; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); } } /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * 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 "interconnectAttachments.insert". + * 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 region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @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); + 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}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "interconnectAttachments.insert". + * 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 @@ -86427,11 +86353,10 @@ public class Insert extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + 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()) { @@ -86439,12 +86364,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -86528,27 +86447,6 @@ public Insert setProject(java.lang.String 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 @@ -86560,7 +86458,7 @@ public Insert setRegion(java.lang.String region) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -86574,7 +86472,7 @@ public Insert setRegion(java.lang.String region) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -86591,66 +86489,46 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ 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. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * 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 @@ -86658,23 +86536,16 @@ public class List extends ComputeRequest * * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -86768,27 +86639,6 @@ public List setProject(java.lang.String 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 @@ -87059,44 +86909,41 @@ public List set(String parameterName, Object 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. + * 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 "interconnectAttachments.patch". + * 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 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} + * @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 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); + 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}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * 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. + * 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 "interconnectAttachments.patch". + * 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 @@ -87104,12 +86951,11 @@ public class Patch extends ComputeRequest * * @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} + * @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 region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + 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()) { @@ -87117,16 +86963,10 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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}"); } } @@ -87212,45 +87052,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** Name of the InterconnectAttachmentGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectAttachmentGroup; - /** Name of the interconnect attachment to patch. + /** Name of the InterconnectAttachmentGroup resource to patch. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the interconnect attachment to patch. */ - public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** 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_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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.interconnectAttachment = interconnectAttachment; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @@ -87265,7 +87084,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -87279,7 +87098,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -87296,150 +87115,153 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (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 labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87453,7 +87275,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -87463,27 +87285,6 @@ public SetLabels setProject(java.lang.String 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; @@ -87495,107 +87296,54 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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}"); + "[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); + 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 "interconnectAttachments.testIamPermissions". + * 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 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); + 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}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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 "interconnectAttachments.testIamPermissions". + * 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 @@ -87604,12 +87352,11 @@ public class TestIamPermissions extends ComputeRequest * * @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) { + 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()) { @@ -87617,17 +87364,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -87712,27 +87453,6 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -87748,7 +87468,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -87763,144 +87483,147 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectGroups collection. + * An accessor for creating requests from the InterconnectAttachments collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
    +   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InterconnectGroups interconnectGroups() { - return new InterconnectGroups(); + public InterconnectAttachments interconnectAttachments() { + return new InterconnectAttachments(); } /** - * The "interconnectGroups" collection of methods. + * The "interconnectAttachments" collection of methods. */ - public class InterconnectGroups { + public class InterconnectAttachments { /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. + * Retrieves an aggregated list of interconnect attachments. * - * Create a request for the method "interconnectGroups.createMembers". + * 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 CreateMembers#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class CreateMembers extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; + private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Retrieves an aggregated list of interconnect attachments. * - * Create a request for the method "interconnectGroups.createMembers". + * 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 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. - *

    + * 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. - * @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); + 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])?))"); } - 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}"); - } } @Override - public CreateMembers set$Xgafv(java.lang.String $Xgafv) { - return (CreateMembers) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public CreateMembers setAccessToken(java.lang.String accessToken) { - return (CreateMembers) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public CreateMembers setAlt(java.lang.String alt) { - return (CreateMembers) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public CreateMembers setCallback(java.lang.String callback) { - return (CreateMembers) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public CreateMembers setFields(java.lang.String fields) { - return (CreateMembers) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public CreateMembers setKey(java.lang.String key) { - return (CreateMembers) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public CreateMembers setOauthToken(java.lang.String oauthToken) { - return (CreateMembers) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateMembers) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public CreateMembers setQuotaUser(java.lang.String quotaUser) { - return (CreateMembers) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public CreateMembers setUploadType(java.lang.String uploadType) { - return (CreateMembers) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateMembers) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public CreateMembers setUserIp(java.lang.String userIp) { - return (CreateMembers) super.setUserIp(userIp); + 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. */ @@ -87914,7 +87637,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateMembers setProject(java.lang.String project) { + 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 " + @@ -87924,64 +87647,368 @@ public CreateMembers setProject(java.lang.String project) { return this; } - /** Name of the group resource to create members for. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String filter; - /** Name of the group resource to create members for. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 CreateMembers set(String parameterName, Object value) { - return (CreateMembers) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Deletes the specified InterconnectGroup in the given scope + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.delete". + * 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 interconnectGroup Name of the InterconnectGroup resource to delete. + * @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 interconnectGroup) throws java.io.IOException { - Delete result = new Delete(project, interconnectGroup); + 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}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 InterconnectGroup in the given scope + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.delete". + * 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 @@ -87989,10 +88016,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to delete. + * @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 interconnectGroup) { + 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()) { @@ -88000,10 +88028,16 @@ protected Delete(java.lang.String project, java.lang.String interconnectGroup) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -88089,24 +88123,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the InterconnectGroup resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String region; - /** Name of the InterconnectGroup resource to delete. + /** Name of the region for this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the InterconnectGroup resource to delete. */ - public Delete setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.interconnectGroup = interconnectGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @@ -88121,7 +88176,7 @@ public Delete setInterconnectGroup(java.lang.String interconnectGroup) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -88135,7 +88190,7 @@ public Delete setInterconnectGroup(java.lang.String interconnectGroup) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -88152,7 +88207,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -88165,37 +88220,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified InterconnectGroup resource in the given scope. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.get". + * 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 interconnectGroup Name of the InterconnectGroup resource to return. + * @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 interconnectGroup) throws java.io.IOException { - Get result = new Get(project, interconnectGroup); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 InterconnectGroup resource in the given scope. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.get". + * 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 @@ -88203,21 +88262,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to return. + * @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 interconnectGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroup.class); + 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -88313,24 +88379,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the InterconnectGroup resource to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String region; - /** Name of the InterconnectGroup resource to return. + /** Name of the region for this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the InterconnectGroup resource to return. */ - public Get setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.interconnectGroup = interconnectGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @@ -88340,133 +88427,125 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnectGroups.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#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 region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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 GetIamPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 access control policy for a resource. May be empty if no such policy or resource - * exists. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnectGroups.getIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource 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 GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88480,7 +88559,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -88490,105 +88569,152 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String region; - /** Name or id of the resource for this request. + /** Name of the region for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRegion() { + return region; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.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 = resource; + this.region = region; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the interconnectStatuses for the specified InterconnectGroup. + * Retrieves the list of interconnect attachments contained within the specified region. * - * Create a request for the method "interconnectGroups.getOperationalStatus". + * 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 GetOperationalStatus#execute()} method to invoke the remote - * operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectGroup Name of the interconnectGroup resource to query. + * @param region Name of the region for this request. * @return the request */ - public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - GetOperationalStatus result = new GetOperationalStatus(project, interconnectGroup); + 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 GetOperationalStatus extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 interconnectStatuses for the specified InterconnectGroup. + * Retrieves the list of interconnect attachments contained within the specified region. * - * Create a request for the method "interconnectGroups.getOperationalStatus". + * 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 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.

    + * 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 interconnectGroup Name of the interconnectGroup resource to query. + * @param region Name of the region for this request. * @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); + 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -88603,63 +88729,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88673,7 +88799,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetOperationalStatus setProject(java.lang.String project) { + 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 " + @@ -88683,425 +88809,96 @@ public GetOperationalStatus setProject(java.lang.String project) { return this; } - /** Name of the interconnectGroup resource to query. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String region; - /** Name of the interconnectGroup resource to query. + /** Name of the region for this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnectGroup resource to query. */ - public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnectGroup = interconnectGroup; + this.region = region; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "interconnectGroups.insert". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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])?))"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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) ``` + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized @@ -89303,40 +89100,44 @@ public List set(String parameterName, Object 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. + * 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 "interconnectGroups.patch". + * 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 interconnectGroup Name of the InterconnectGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @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 interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { - Patch result = new Patch(project, interconnectGroup, content); + 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}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * 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. + * 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 "interconnectGroups.patch". + * 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 @@ -89344,11 +89145,12 @@ public class Patch extends ComputeRequest * * @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} + * @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 interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) { + 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()) { @@ -89356,10 +89158,16 @@ protected Patch(java.lang.String project, java.lang.String interconnectGroup, co "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -89445,24 +89253,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the InterconnectGroup resource to patch. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String region; - /** Name of the InterconnectGroup resource to patch. + /** Name of the region scoping this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the InterconnectGroup resource to patch. */ - public Patch setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.interconnectGroup = interconnectGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @@ -89477,7 +89306,7 @@ public Patch setInterconnectGroup(java.lang.String interconnectGroup) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -89491,7 +89320,7 @@ public Patch setInterconnectGroup(java.lang.String interconnectGroup) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -89508,153 +89337,150 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ 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. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnectGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnectGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @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); + 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89668,7 +89494,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -89678,6 +89504,27 @@ public SetIamPolicy setProject(java.lang.String 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; @@ -89689,54 +89536,107 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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}"); + "[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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + 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 "interconnectGroups.testIamPermissions". + * Create a request for the method "interconnectAttachments.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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + 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}/global/interconnectGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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". + * Create a request for the method "interconnectAttachments.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 @@ -89745,11 +89645,12 @@ public class TestIamPermissions extends ComputeRequest * * @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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -89757,11 +89658,17 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -89846,6 +89753,27 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -89861,7 +89789,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -89876,153 +89804,144 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectLocations collection. + * An accessor for creating requests from the InterconnectGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
    +   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InterconnectLocations interconnectLocations() { - return new InterconnectLocations(); + public InterconnectGroups interconnectGroups() { + return new InterconnectGroups(); } /** - * The "interconnectLocations" collection of methods. + * The "interconnectGroups" collection of methods. */ - public class InterconnectLocations { + public class InterconnectGroups { /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnectLocations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectLocation Name of the interconnect location to return. + * @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 Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { - Get result = new Get(project, interconnectLocation); + 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 Get extends ComputeRequest { + public class CreateMembers extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnectLocations.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 interconnectLocation Name of the interconnect location to return. + * @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 Get(java.lang.String project, java.lang.String interconnectLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocation.class); + 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.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); + 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_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90036,7 +89955,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -90046,147 +89965,148 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect location to return. */ + /** Name of the group resource to create members for. */ @com.google.api.client.util.Key - private java.lang.String interconnectLocation; + private java.lang.String interconnectGroup; - /** Name of the interconnect location to return. + /** Name of the group resource to create members for. */ - public java.lang.String getInterconnectLocation() { - return interconnectLocation; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect location to return. */ - public Get setInterconnectLocation(java.lang.String interconnectLocation) { + /** 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_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + + 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.interconnectLocation = interconnectLocation; + this.interconnectGroup = interconnectGroup; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect locations available to the specified project. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnectLocations.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves the list of interconnect locations available to the specified project. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnectLocations.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocationList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90200,7 +90120,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -90210,354 +90130,505 @@ public List setProject(java.lang.String 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; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * 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 filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + 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 getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. + * 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 List setFilter(java.lang.String filter) { - this.filter = filter; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + /** 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 List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * Create a request for the method "interconnectGroups.getIamPolicy". * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * 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 */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + 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}"); + } + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + @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 List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String resource; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name or id of the resource for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getResource() { + return resource; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.Integer optionsRequestedPolicyVersion; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Requested IAM Policy version. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "interconnectRemoteLocations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param interconnectRemoteLocation Name of the interconnect remote location to return. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { - Get result = new Get(project, interconnectRemoteLocation); + 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 Get extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making alist() request. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "interconnectRemoteLocations.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 interconnectRemoteLocation Name of the interconnect remote location to return. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @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); + 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.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); + 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_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + 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}"); } } @@ -90573,63 +90644,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90643,7 +90714,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -90653,36 +90724,222 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect remote location to return. */ + /** Name of the interconnectGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String interconnectRemoteLocation; + private java.lang.String interconnectGroup; - /** Name of the interconnect remote location to return. + /** Name of the interconnectGroup resource to query. */ - public java.lang.String getInterconnectRemoteLocation() { - return interconnectRemoteLocation; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect remote location to return. */ - public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { + /** Name of the interconnectGroup resource to query. */ + public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + 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.interconnectRemoteLocation = interconnectRemoteLocation; + this.interconnectGroup = interconnectGroup; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect remote locations available to the specified project. + * 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 "interconnectRemoteLocations.list". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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. @@ -90696,17 +90953,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "interconnectRemoteLocations.list". + * 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 @@ -90717,7 +90974,7 @@ public class List extends ComputeRequestThe 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. + * 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 "interconnects.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Delete result = new Delete(project, interconnect); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 Interconnect. + * 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 "interconnects.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @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); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + 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_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91238,7 +91476,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -91248,24 +91486,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the interconnect to delete. */ + /** Name of the InterconnectGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String interconnectGroup; - /** Name of the interconnect to delete. + /** Name of the InterconnectGroup resource to patch. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect to delete. */ - public Delete setInterconnect(java.lang.String interconnect) { + /** Name of the InterconnectGroup resource to patch. */ + public Patch setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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.interconnect = interconnect; + this.interconnectGroup = interconnectGroup; return this; } @@ -91280,7 +91518,7 @@ public Delete setInterconnect(java.lang.String interconnect) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -91294,7 +91532,7 @@ public Delete setInterconnect(java.lang.String interconnect) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -91311,146 +91549,153 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Delete setRequestId(java.lang.String requestId) { + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnects.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to return. + * @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 Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Get result = new Get(project, interconnect); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.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 the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnects.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 interconnect Name of the interconnect to return. + * @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 Get(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Interconnect.class); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91464,7 +91709,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -91474,171 +91719,151 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String resource; - /** Name of the interconnect to return. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect to return. */ - public Get setInterconnect(java.lang.String interconnect) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnects.getDiagnostics". + * 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 GetDiagnostics#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @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 GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetDiagnostics result = new GetDiagnostics(project, interconnect); + 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 GetDiagnostics extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.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 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnects.getDiagnostics". + * 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 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.

    + * 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 interconnect Name of the interconnect resource to query. + * @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 GetDiagnostics(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetDiagnosticsResponse.class); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { - return (GetDiagnostics) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetDiagnostics setAccessToken(java.lang.String accessToken) { - return (GetDiagnostics) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetDiagnostics setAlt(java.lang.String alt) { - return (GetDiagnostics) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetDiagnostics setCallback(java.lang.String callback) { - return (GetDiagnostics) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetDiagnostics setFields(java.lang.String fields) { - return (GetDiagnostics) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetDiagnostics setKey(java.lang.String key) { - return (GetDiagnostics) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetDiagnostics setOauthToken(java.lang.String oauthToken) { - return (GetDiagnostics) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetDiagnostics) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { - return (GetDiagnostics) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetDiagnostics setUploadType(java.lang.String uploadType) { - return (GetDiagnostics) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { - return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetDiagnostics setUserIp(java.lang.String userIp) { - return (GetDiagnostics) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91652,7 +91877,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetDiagnostics setProject(java.lang.String project) { + 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 " + @@ -91662,87 +91887,111 @@ public GetDiagnostics setProject(java.lang.String project) { return this; } - /** Name of the interconnect resource to query. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String resource; - /** Name of the interconnect resource to query. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect resource to query. */ - public GetDiagnostics setInterconnect(java.lang.String interconnect) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; + this.resource = resource; return this; } @Override - public GetDiagnostics set(String parameterName, Object value) { - return (GetDiagnostics) super.set(parameterName, value); + 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 interconnectMacsecConfig for the specified Interconnect. + * 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 "interconnects.getMacsecConfig". + * 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 GetMacsecConfig#execute()} method to invoke the remote operation. + * 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 resource to query. + * @param interconnectLocation Name of the interconnect location to return. * @return the request */ - public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetMacsecConfig result = new GetMacsecConfig(project, interconnect); + 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 GetMacsecConfig extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 interconnectMacsecConfig for the specified Interconnect. + * 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 "interconnects.getMacsecConfig". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource to query. + * @param interconnectLocation Name of the interconnect location to return. * @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); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + 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_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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}"); } } @@ -91758,63 +92007,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { - return (GetMacsecConfig) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetMacsecConfig setAccessToken(java.lang.String accessToken) { - return (GetMacsecConfig) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetMacsecConfig setAlt(java.lang.String alt) { - return (GetMacsecConfig) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetMacsecConfig setCallback(java.lang.String callback) { - return (GetMacsecConfig) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetMacsecConfig setFields(java.lang.String fields) { - return (GetMacsecConfig) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetMacsecConfig setKey(java.lang.String key) { - return (GetMacsecConfig) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { - return (GetMacsecConfig) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { - return (GetMacsecConfig) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetMacsecConfig setUploadType(java.lang.String uploadType) { - return (GetMacsecConfig) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetMacsecConfig setUserIp(java.lang.String userIp) { - return (GetMacsecConfig) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91828,7 +92077,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetMacsecConfig setProject(java.lang.String project) { + 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 " + @@ -91838,220 +92087,36 @@ public GetMacsecConfig setProject(java.lang.String project) { return this; } - /** Name of the interconnect resource to query. */ + /** Name of the interconnect location to return. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String interconnectLocation; - /** Name of the interconnect resource to query. + /** Name of the interconnect location to return. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getInterconnectLocation() { + return interconnectLocation; } - /** Name of the interconnect resource to query. */ - public GetMacsecConfig setInterconnect(java.lang.String interconnect) { + /** Name of the interconnect location to return. */ + public Get setInterconnectLocation(java.lang.String interconnectLocation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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.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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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; + this.interconnectLocation = interconnectLocation; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the list of Interconnects available to the specified project. + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "interconnects.list". + * 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. @@ -92065,17 +92130,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "interconnects.list". + * 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 @@ -92086,7 +92151,7 @@ public class List extends ComputeRequestThe 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 { + /** - * Updates the specified Interconnect with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * 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 "interconnects.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @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); + 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 Patch extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Updates the specified Interconnect with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * 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 "interconnects.patch". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @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); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + 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_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -92588,7 +92684,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -92598,202 +92694,147 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the interconnect to update. */ + /** Name of the interconnect remote location to return. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String interconnectRemoteLocation; - /** Name of the interconnect to update. + /** Name of the interconnect remote location to return. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getInterconnectRemoteLocation() { + return interconnectRemoteLocation; } - /** Name of the interconnect to update. */ - public Patch setInterconnect(java.lang.String interconnect) { + /** 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_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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.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; + this.interconnectRemoteLocation = interconnectRemoteLocation; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "interconnects.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "interconnects.setLabels". + * 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 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.

    + * 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 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); + 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])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + 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. */ @@ -92807,7 +92848,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -92817,629 +92858,330 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @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 "interconnects.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; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - public class TestIamPermissions extends ComputeRequest { + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "interconnects.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}"); - } - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @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. + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** Name or id of the resource for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Long maxResults; - /** Name or id of the resource for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getResource() { - return resource; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * @param project Project ID for this request. - * @param licenseCode Number corresponding to the License code resource to return. - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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}?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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; - } + private java.lang.String orderBy; - /** 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; - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Number corresponding to the License code resource to return. */ - @com.google.api.client.util.Key - private java.lang.String licenseCode; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Number corresponding to the License code resource to return. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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); + public java.lang.String getOrderBy() { + return orderBy; } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * 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.

    + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * @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 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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}"); - } - } - - @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); + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Licenses collection. + * An accessor for creating requests from the Interconnects collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
    +   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
        * 
    * * @return the resource collection */ - public Licenses licenses() { - return new Licenses(); + public Interconnects interconnects() { + return new Interconnects(); } /** - * The "licenses" collection of methods. + * The "interconnects" collection of methods. */ - public class Licenses { + public class Interconnects { /** - * Deletes the specified license. Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. + * Deletes the specified Interconnect. * - * Create a request for the method "licenses.delete". + * 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 license Name of the license resource to delete. + * @param interconnect Name of the interconnect 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); + 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/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 license. *Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. + * Deletes the specified Interconnect. * - * Create a request for the method "licenses.delete". + * 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 @@ -93447,10 +93189,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param license Name of the license resource to delete. + * @param interconnect Name of the interconnect to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String license) { + 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()) { @@ -93458,10 +93200,10 @@ protected Delete(java.lang.String project, java.lang.String license) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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}"); } } @@ -93547,24 +93289,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the license resource to delete. */ + /** Name of the interconnect to delete. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String interconnect; - /** Name of the license resource to delete. + /** Name of the interconnect to delete. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name of the license resource to delete. */ - public Delete setLicense(java.lang.String license) { + /** Name of the interconnect to delete. */ + public Delete setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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.license = license; + this.interconnect = interconnect; return this; } @@ -93623,39 +93365,39 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified License resource. Caution* This resource is intended for use only by third- - * party partners who are creatingCloud Marketplace images. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "licenses.get". + * 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 license Name of the License resource to return. + * @param interconnect Name of the interconnect 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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 License resource. *Caution* This resource is intended for use only by - * third-party partners who are creatingCloud Marketplace images. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "licenses.get". + * 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 @@ -93663,21 +93405,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param license Name of the License resource to return. + * @param interconnect Name of the interconnect 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); + 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + 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(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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}"); } } @@ -93773,24 +93515,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the License resource to return. */ + /** Name of the interconnect to return. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String interconnect; - /** Name of the License resource to return. + /** Name of the interconnect to return. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name of the License resource to return. */ - public Get setLicense(java.lang.String license) { + /** Name of the interconnect to return. */ + public Get setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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.license = license; + this.interconnect = interconnect; return this; } @@ -93800,65 +93542,73 @@ public Get set(String parameterName, Object 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. + * Returns the interconnectDiagnostics for the specified Interconnect. * - * Create a request for the method "licenses.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetDiagnostics#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 interconnect Name of the interconnect resource to query. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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 GetIamPolicy extends ComputeRequest { + public class GetDiagnostics extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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}"); /** - * 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. + * Returns the interconnectDiagnostics for the specified Interconnect. * - * Create a request for the method "licenses.getIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource for this request. + * @param interconnect Name of the interconnect resource to query. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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}"); } } @@ -93873,63 +93623,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { + return (GetDiagnostics) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public GetDiagnostics setAccessToken(java.lang.String accessToken) { + return (GetDiagnostics) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public GetDiagnostics setAlt(java.lang.String alt) { + return (GetDiagnostics) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public GetDiagnostics setCallback(java.lang.String callback) { + return (GetDiagnostics) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public GetDiagnostics setFields(java.lang.String fields) { + return (GetDiagnostics) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public GetDiagnostics setKey(java.lang.String key) { + return (GetDiagnostics) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public GetDiagnostics setOauthToken(java.lang.String oauthToken) { + return (GetDiagnostics) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetDiagnostics) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { + return (GetDiagnostics) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public GetDiagnostics setUploadType(java.lang.String uploadType) { + return (GetDiagnostics) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { + return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public GetDiagnostics setUserIp(java.lang.String userIp) { + return (GetDiagnostics) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93943,7 +93693,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -93953,62 +93703,221 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect resource to query. */ + public GetDiagnostics setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + this.interconnect = interconnect; return this; } - /** Requested IAM Policy version. */ + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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.Integer optionsRequestedPolicyVersion; + private java.lang.String project; - /** Requested IAM Policy version. + /** Project ID for this request. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getProject() { + return project; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public GetMacsecConfig set(String parameterName, Object value) { + return (GetMacsecConfig) 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. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "licenses.insert". + * 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.License} + * @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.License content) throws java.io.IOException { + 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; @@ -94016,16 +93925,15 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "licenses.insert". + * 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 @@ -94033,10 +93941,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @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.License content) { + 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()) { @@ -94182,14 +94090,9 @@ public Insert set(String parameterName, Object 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. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "licenses.list". + * 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. @@ -94203,22 +94106,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "licenses.list". + * 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 @@ -94229,7 +94127,7 @@ public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -94630,25 +94745,24 @@ public class SetIamPolicy extends ComputeRequest + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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(), @@ -94664,63 +94778,63 @@ protected SetIamPolicy(java.lang.String project, java.lang.String resource, com. } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94734,7 +94848,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -94755,7 +94869,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -94766,15 +94880,14 @@ public SetIamPolicy setResource(java.lang.String resource) { } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "licenses.testIamPermissions". + * Create a request for the method "interconnects.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. @@ -94792,7 +94905,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -94801,10 +94914,9 @@ public class TestIamPermissions extends ComputeRequestThe 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 { + /** - * 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. + * 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 "licenses.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param licenseCode Number corresponding to the License code resource to return. * @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); + 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 Update extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern LICENSE_CODE_PATTERN = + java.util.regex.Pattern.compile("[0-9]{0,61}?"); /** - * 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. + * 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 "licenses.update". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 The license name for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param licenseCode Number corresponding to the License code resource to return. * @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); + 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + 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_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}"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -95073,7 +95218,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -95083,153 +95228,259 @@ public Update setProject(java.lang.String project) { return this; } - /** The license name for this request. */ + /** Number corresponding to the License code resource to return. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String licenseCode; - /** The license name for this request. + /** Number corresponding to the License code resource to return. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getLicenseCode() { + return licenseCode; } - /** The license name for this request. */ - public Update setLicense(java.lang.String license) { + /** 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_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}"); + 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.license = license; + this.licenseCode = licenseCode; return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "licenseCodes.testIamPermissions". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 */ - @com.google.api.client.util.Key - private java.lang.String requestId; + 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}"); + } + } - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + @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 Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; } - /** update_mask indicates fields to be updated as part of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** update_mask indicates fields to be updated as part of this request. + /** Name or id of the resource for this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** 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 Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MachineImages collection. + * An accessor for creating requests from the Licenses collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
    +   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
        * 
    * * @return the resource collection */ - public MachineImages machineImages() { - return new MachineImages(); + public Licenses licenses() { + return new Licenses(); } /** - * The "machineImages" collection of methods. + * The "licenses" collection of methods. */ - public class MachineImages { + public class Licenses { /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * 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 "machineImages.delete". + * 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 machineImage The name of the machine image to delete. + * @param license Name of the license resource 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); + 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/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 machine image. Deleting a machine image is permanent and cannot be - * undone. + * 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 "machineImages.delete". + * 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 @@ -95237,10 +95488,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image to delete. + * @param license Name of the license resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String machineImage) { + 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()) { @@ -95248,10 +95499,10 @@ protected Delete(java.lang.String project, java.lang.String machineImage) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + 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}"); } } @@ -95337,24 +95588,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the machine image to delete. */ + /** Name of the license resource to delete. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String license; - /** The name of the machine image to delete. + /** Name of the license resource to delete. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getLicense() { + return license; } - /** The name of the machine image to delete. */ - public Delete setMachineImage(java.lang.String machineImage) { + /** Name of the license resource to delete. */ + public Delete setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + 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.machineImage = machineImage; + this.license = license; return this; } @@ -95413,37 +95664,39 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified machine image. + * 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 "machineImages.get". + * 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 machineImage The name of the machine image. + * @param license Name of the License resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Get result = new Get(project, machineImage); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 machine image. + * 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 "machineImages.get". + * 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 @@ -95451,21 +95704,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image. + * @param license Name of the License resource to return. * @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); + 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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + 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(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + 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}"); } } @@ -95561,24 +95814,24 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the machine image. */ + /** Name of the License resource to return. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String license; - /** The name of the machine image. + /** Name of the License resource to return. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getLicense() { + return license; } - /** The name of the machine image. */ - public Get setMachineImage(java.lang.String machineImage) { + /** Name of the License resource to return. */ + public Get setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + 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.machineImage = machineImage; + this.license = license; return this; } @@ -95589,8 +95842,10 @@ public Get set(String parameterName, Object 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 "machineImages.getIamPolicy". + * 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. @@ -95607,7 +95862,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String reso public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -95617,9 +95872,10 @@ public class GetIamPolicy extends ComputeRequest @@ -95781,20 +96037,19 @@ public GetIamPolicy set(String parameterName, Object 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 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 "machineImages.insert". + * 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.MachineImage} + * @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.MachineImage content) throws java.io.IOException { + 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; @@ -95802,18 +96057,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages"; + private static final String REST_PATH = "projects/{project}/global/licenses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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 "machineImages.insert". + * 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 @@ -95821,10 +96074,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.MachineImage} + * @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.MachineImage content) { + 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()) { @@ -95964,31 +96217,20 @@ public Insert setRequestId(java.lang.String 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. + * 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 "machineImages.list". + * 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. @@ -96002,17 +96244,22 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages"; + private static final String REST_PATH = "projects/{project}/global/licenses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "machineImages.list". + * 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 @@ -96023,7 +96270,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -96423,8 +96672,10 @@ public class SetIamPolicy extends ComputeRequest @@ -96561,28 +96812,28 @@ public SetIamPolicy set(String parameterName, Object value) { } } /** - * Sets the labels on a machine image. To learn more about labels, read theLabeling Resources - * documentation. + * 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 "machineImages.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * 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.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -96591,24 +96842,24 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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); + 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(), @@ -96624,63 +96875,63 @@ protected SetLabels(java.lang.String project, java.lang.String resource, com.goo } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96694,7 +96945,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -96715,7 +96966,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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 " + @@ -96726,129 +96977,130 @@ public SetLabels setResource(java.lang.String resource) { } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "machineImages.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#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} + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 permissions that a caller has on the specified resource. + * 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 "machineImages.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96862,7 +97114,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -96872,177 +97124,237 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** The license name for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String license; - /** Name or id of the resource for this request. + /** The license name for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getLicense() { + return license; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** The license name for this request. */ + public Update setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MachineTypes collection. + * An accessor for creating requests from the MachineImages collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
    +   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
        * 
    * * @return the resource collection */ - public MachineTypes machineTypes() { - return new MachineTypes(); + public MachineImages machineImages() { + return new MachineImages(); } /** - * The "machineTypes" collection of methods. + * The "machineImages" collection of methods. */ - public class MachineTypes { + public class MachineImages { /** - * Retrieves an aggregated list of machine types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. * - * Create a request for the method "machineTypes.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves an aggregated list of machine types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be + * undone. * - * Create a request for the method "machineTypes.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeAggregatedList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97056,7 +97368,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -97066,368 +97378,113 @@ public AggregatedList setProject(java.lang.String 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`) - */ + /** The name of the machine image to delete. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String machineImage; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** The name of the machine image to delete. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getMachineImage() { + return machineImage; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the specified machine type. + * Returns the specified machine image. * - * Create a request for the method "machineTypes.get". + * 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 zone The name of the zone for this request. - * @param machineType Name of the machine type to return. + * @param machineImage The name of the machine image. * @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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 type. + * Returns the specified machine image. * - * Create a request for the method "machineTypes.get". + * 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 @@ -97435,28 +97492,21 @@ public class Get extends ComputeRequest * * @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. + * @param machineImage The name of the machine image. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + 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}"); } } @@ -97552,45 +97602,24 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the machine type to return. */ + /** The name of the machine image. */ @com.google.api.client.util.Key - private java.lang.String machineType; + private java.lang.String machineImage; - /** Name of the machine type to return. + /** The name of the machine image. */ - public java.lang.String getMachineType() { - return machineType; + public java.lang.String getMachineImage() { + return machineImage; } - /** Name of the machine type to return. */ - public Get setMachineType(java.lang.String machineType) { + /** The name of the machine image. */ + public Get setMachineImage(java.lang.String machineImage) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.machineType = machineType; + this.machineImage = machineImage; return this; } @@ -97600,60 +97629,62 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of machine types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "machineTypes.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + 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 List extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); /** - * Retrieves a list of machine types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "machineTypes.list". + * 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 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.

    + * 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 List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); + protected 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -97668,63 +97699,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97738,7 +97769,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -97748,80 +97779,444 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.resource = resource; return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.Integer optionsRequestedPolicyVersion; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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`. @@ -98038,37 +98433,542 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 NetworkAttachments collection. + * An accessor for creating requests from the MachineTypes collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
    +   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
        * 
    * * @return the resource collection */ - public NetworkAttachments networkAttachments() { - return new NetworkAttachments(); + public MachineTypes machineTypes() { + return new MachineTypes(); } /** - * The "networkAttachments" collection of methods. + * The "machineTypes" collection of methods. */ - public class NetworkAttachments { + public class MachineTypes { /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. + * 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 "networkAttachments.aggregatedList". + * 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. @@ -98082,21 +98982,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; + private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. + * 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 "networkAttachments.aggregatedList". + * 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. @@ -98108,7 +99007,7 @@ public class AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 NETWORK_ATTACHMENT_PATTERN = + 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}"); /** - * Deletes the specified NetworkAttachment in the given scope + * Returns the specified machine type. * - * Create a request for the method "networkAttachments.delete". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 delete. + * @param zone The name of the zone for this request. + * @param machineType Name of the machine type to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override @@ -98940,45 +99593,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region of this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region of this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the NetworkAttachment resource to return. */ + /** Name of the machine type to return. */ @com.google.api.client.util.Key - private java.lang.String networkAttachment; + private java.lang.String machineType; - /** Name of the NetworkAttachment resource to return. + /** Name of the machine type to return. */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; + public java.lang.String getMachineType() { + return machineType; } - /** Name of the NetworkAttachment resource to return. */ - public Get setNetworkAttachment(java.lang.String networkAttachment) { + /** Name of the machine type to return. */ + public Get setMachineType(java.lang.String machineType) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + 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.networkAttachment = networkAttachment; + this.machineType = machineType; return this; } @@ -98988,74 +99641,61 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "networkAttachments.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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. - * @param resource Name or id of the resource for this request. + * @param zone The name of the zone 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); + 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 GetIamPolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "networkAttachments.getIamPolicy". + * 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 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.

    + * 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. - * @param resource Name or id of the resource for this request. + * @param zone The name of the zone 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); - } } @Override @@ -99069,63 +99709,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99139,7 +99779,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -99149,343 +99789,373 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @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; - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - public class Insert extends ComputeRequest { + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Creates a NetworkAttachment in the specified project in the given scope using the parameters - * that are included in the request. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "networkAttachments.insert". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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])?"); - } - } - - @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); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the region of this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** Name of the region of this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * 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 + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - 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 + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * 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 + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 { + /** - * Lists the NetworkAttachments for a project in the given scope. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. * - * Create a request for the method "networkAttachments.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. * - * Create a request for the method "networkAttachments.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -99499,63 +100169,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99569,7 +100239,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -99579,27 +100249,6 @@ public List setProject(java.lang.String 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 @@ -99731,11 +100380,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -99760,7 +100443,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -99804,7 +100487,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -99827,7 +100510,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -99859,38 +100542,59 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * 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; } - } - /** - * 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. + + /** + * 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.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; @@ -99904,24 +100608,22 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. * @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); + 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(), @@ -99943,63 +100645,63 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100013,7 +100715,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -100023,18 +100725,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -100044,18 +100746,18 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the NetworkAttachment resource to patch. */ + /** Name of the NetworkAttachment resource to delete. */ @com.google.api.client.util.Key private java.lang.String networkAttachment; - /** Name of the NetworkAttachment resource to patch. + /** Name of the NetworkAttachment resource to delete. */ public java.lang.String getNetworkAttachment() { return networkAttachment; } - /** Name of the NetworkAttachment resource to patch. */ - public Patch setNetworkAttachment(java.lang.String 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 " + @@ -100109,39 +100811,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified NetworkAttachment resource in the given scope. * - * Create a request for the method "networkAttachments.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -100149,28 +100850,26 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. * @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); + 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(), @@ -100183,72 +100882,82 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -100262,7 +100971,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -100272,18 +100981,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String 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 " + @@ -100293,55 +101002,54 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the NetworkAttachment resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkAttachment; - /** Name or id of the resource for this request. + /** Name of the NetworkAttachment resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the NetworkAttachment resource to return. */ + public Get setNetworkAttachment(java.lang.String networkAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.networkAttachment = networkAttachment; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 TestIamPermissions extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -100353,24 +101061,24 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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. - * @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); + 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(), @@ -100392,63 +101100,73 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -100462,7 +101180,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -100483,7 +101201,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + 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 " + @@ -100504,7 +101222,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + 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 " + @@ -100514,88 +101232,301 @@ public TestIamPermissions setResource(java.lang.String 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + 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 { - /** - * 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(); - } + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; - /** - * The "networkEdgeSecurityServices" collection of methods. - */ - public class NetworkEdgeSecurityServices { + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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); + } + } /** - * 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`. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param region Name of the region of this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 all NetworkEdgeSecurityService resources available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * 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 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.

    + * 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 Name of the project scoping this request. + * @param project Project ID for this request. + * @param region Name of the region of 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); + 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])?"); + } } @Override @@ -100609,77 +101540,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String 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 " + @@ -100689,6 +101620,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -100820,45 +101772,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -100883,7 +101801,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -100927,7 +101845,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -100950,7 +101868,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -100982,61 +101900,40 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified service. + * 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 "networkEdgeSecurityServices.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -101044,26 +101941,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @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 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); + 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(), @@ -101076,72 +101975,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101155,7 +102054,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -101165,18 +102064,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -101186,24 +102085,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the network edge security service to delete. */ + /** Name of the NetworkAttachment resource to patch. */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String networkAttachment; - /** Name of the network edge security service to delete. + /** Name of the NetworkAttachment resource to patch. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** Name of the network edge security service to delete. */ - public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + /** Name of the NetworkAttachment resource to patch. */ + public Patch setNetworkAttachment(java.lang.String networkAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + 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.networkEdgeSecurityService = networkEdgeSecurityService; + this.networkAttachment = networkAttachment; return this; } @@ -101218,7 +102117,7 @@ public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurity * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -101232,7 +102131,7 @@ public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurity clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -101249,40 +102148,41 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Delete setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Gets a specified NetworkEdgeSecurityService. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkEdgeSecurityServices.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -101290,26 +102190,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. + * @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 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); + 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(), @@ -101322,82 +102224,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101411,7 +102303,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -101421,18 +102313,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -101442,287 +102334,55 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the network edge security service to get. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String resource; - /** Name of the network edge security service to get. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getResource() { + return resource; } - /** Name of the network edge security service to get. */ - public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + /** 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(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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; + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkEdgeSecurityServices.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -101730,27 +102390,28 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -101763,72 +102424,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101842,7 +102503,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -101852,18 +102513,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -101873,147 +102534,68 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the network edge security service to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String resource; - /** Name of the network edge security service to update. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getResource() { + return resource; } - /** Name of the network edge security service to update. */ - public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + /** 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(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the NetworkEndpointGroups collection. + * An accessor for creating requests from the NetworkEdgeSecurityServices collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
    +   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
        * 
    * * @return the resource collection */ - public NetworkEndpointGroups networkEndpointGroups() { - return new NetworkEndpointGroups(); + public NetworkEdgeSecurityServices networkEdgeSecurityServices() { + return new NetworkEdgeSecurityServices(); } /** - * The "networkEndpointGroups" collection of methods. + * The "networkEdgeSecurityServices" collection of methods. */ - public class NetworkEndpointGroups { + public class NetworkEdgeSecurityServices { /** - * Retrieves the list of network endpoint groups and sorts them by zone. + * 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 "networkEndpointGroups.aggregatedList". + * 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 Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -102022,20 +102604,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "networkEndpointGroups.aggregatedList". + * 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. @@ -102043,11 +102626,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Project ID for this request. + * @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.NetworkEndpointGroupAggregatedList.class); + 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(), @@ -102126,17 +102709,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** 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(), @@ -102474,126 +103057,132 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Attach a list of network endpoints to the specified network endpoint group. + * Deletes the specified service. * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * 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 AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * 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 where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @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); + 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 AttachNetworkEndpoints extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Attach a list of network endpoints to the specified network endpoint group. + * Deletes the specified service. * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * 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 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.

    + * 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 where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @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); + 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.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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102607,7 +103196,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -102617,48 +103206,45 @@ public AttachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ + /** Name of the network edge security service to delete. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String networkEdgeSecurityService; - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. + /** Name of the network edge security service to delete. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** - * 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; + /** 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; } @@ -102706,135 +103292,153 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkEndpointGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 to delete. It should comply with - RFC1035. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @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); + 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 Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 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. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkEndpointGroups.delete". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 to delete. It should comply with - RFC1035. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @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); + 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.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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -102848,7 +103452,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -102858,154 +103462,98 @@ public Delete setProject(java.lang.String 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getRegion() { + return region; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the network edge security service to get. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String networkEdgeSecurityService; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the network edge security service to get. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Detach a list of network endpoints from the specified network endpoint group. + * Creates a new service in the specified project using the data included in the request. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * 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 DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * 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 - 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @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); + 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 DetachNetworkEndpoints extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Detach a list of network endpoints from the specified network endpoint group. + * Creates a new service in the specified project using the data included in the request. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * 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 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.

    + * 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 - 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @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) { + 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()) { @@ -103013,68 +103561,72 @@ protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); - } + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103088,7 +103640,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -103098,48 +103650,24 @@ public DetachNetworkEndpoints setProject(java.lang.String 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } @@ -103187,139 +103715,161 @@ public java.lang.String getRequestId() { * 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) { + 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 DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkEndpointGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 - 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. + * @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 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); + 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 Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Returns the specified network endpoint group. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkEndpointGroups.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 - 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. + * @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 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); + 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.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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103333,7 +103883,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -103343,208 +103893,60 @@ public Get setProject(java.lang.String 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. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group. It should comply with RFC1035. + /** Name of the region scoping this request. */ - 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); + public java.lang.String getRegion() { + return region; } - } - /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. - * - * 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."); + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - } - - @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); + this.region = region; + return this; } - /** Project ID for this request. */ + /** Name of the network edge security service to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String networkEdgeSecurityService; - /** Project ID for this request. + /** Name of the network edge security service to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.networkEdgeSecurityService = networkEdgeSecurityService; 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; + private java.util.List paths; + + /** - /** 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; + public java.util.List getPaths() { + return paths; } - /** - * 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; + public Patch setPaths(java.util.List paths) { + this.paths = paths; return this; } @@ -103592,67 +103994,107 @@ public java.lang.String getRequestId() { * 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) { + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 that are located in the specified project and zone. + * Retrieves the list of network endpoint groups and sorts them by zone. * - * Create a request for the method "networkEndpointGroups.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of network endpoint groups and sorts them by zone. * - * Create a request for the method "networkEndpointGroups.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override @@ -103666,63 +104108,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103736,7 +104178,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -103746,28 +104188,6 @@ public List setProject(java.lang.String 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 @@ -103899,11 +104319,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -103928,7 +104382,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -103972,7 +104426,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -103995,7 +104449,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -104027,69 +104481,92 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists the network endpoints in the specified network endpoint group. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * 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 ListNetworkEndpoints#execute()} method to invoke the remote + * 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 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} + * @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 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); + 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 ListNetworkEndpoints extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * 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 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 + * 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 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} + * @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 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); + 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(), @@ -104101,63 +104578,63 @@ protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104171,7 +104648,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -104198,433 +104675,207 @@ public java.lang.String getZone() { * The name of the zone where the network endpoint group is located. It should comply with * RFC1035. */ - public ListNetworkEndpoints setZone(java.lang.String zone) { + public AttachNetworkEndpoints 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. + * 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 from which you want to generate a list of included network - endpoints. It should comply with RFC1035. + /** 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 from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + public AttachNetworkEndpoints 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListNetworkEndpoints setFilter(java.lang.String filter) { - this.filter = filter; + public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @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; + } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; - } + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * 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. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * Create a request for the method "networkEndpointGroups.delete". * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * 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 */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + 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."); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104638,7 +104889,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -104648,122 +104899,154 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** + * 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 for this request. + /** 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 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])?"); - } + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkEndpointGroup; - /** Name or id of the resource for this request. + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** + * 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "networkFirewallPolicies" collection of methods. - */ - public class NetworkFirewallPolicies { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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); + } + } /** - * Inserts an association for the specified firewall policy. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * 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 AddAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link DetachNetworkEndpoints#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} + * @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 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); + 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 AddAssociation extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @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 AddAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { + 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()) { @@ -104771,72 +105054,68 @@ protected AddAssociation(java.lang.String project, java.lang.String firewallPoli "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); - } + 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."); } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104850,7 +105129,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + 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 " + @@ -104860,49 +105139,48 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** + * 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 firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to update. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** 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; + /** + * 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; } /** - * 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. + * 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.Boolean replaceExistingAssociation; + private java.lang.String networkEndpointGroup; - /** 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. + /** The name of the network endpoint group where you are removing network endpoints. It should comply + with RFC1035. */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } /** - * 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. + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -104950,136 +105228,139 @@ public java.lang.String getRequestId() { * 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) { + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); } } /** - * Inserts a packet mirroring rule into a firewall policy. + * Returns the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * 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 AddPacketMirroringRule#execute()} method to invoke the remote - * operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @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 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); + 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 AddPacketMirroringRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Returns the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @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 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); + 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.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}"); - } + 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."); } @Override - public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (AddPacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddPacketMirroringRule setAlt(java.lang.String alt) { - return (AddPacketMirroringRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddPacketMirroringRule setCallback(java.lang.String callback) { - return (AddPacketMirroringRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddPacketMirroringRule setFields(java.lang.String fields) { - return (AddPacketMirroringRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddPacketMirroringRule setKey(java.lang.String key) { - return (AddPacketMirroringRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (AddPacketMirroringRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (AddPacketMirroringRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddPacketMirroringRule setUserIp(java.lang.String userIp) { - return (AddPacketMirroringRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -105093,7 +105374,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -105103,173 +105384,109 @@ public AddPacketMirroringRule setProject(java.lang.String 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. + * 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.Integer minPriority; + private java.lang.String zone; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getZone() { + return zone; } /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ - public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + public Get 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). - */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String networkEndpointGroup; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 AddPacketMirroringRule set(String parameterName, Object value) { - return (AddPacketMirroringRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Inserts a rule into a firewall policy. + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "networkFirewallPolicies.addRule". + * 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 AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#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} + * @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 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); + 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 AddRule extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "networkFirewallPolicies.addRule". + * 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 AddRule#execute()} method to invoke the remote operation.

    - * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @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 AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + 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()) { @@ -105277,72 +105494,67 @@ protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105356,7 +105568,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -105366,70 +105578,26 @@ public AddRule setProject(java.lang.String 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. + * 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.Integer minPriority; + private java.lang.String zone; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The name of the zone where you want to create the network endpoint group. It should comply with + RFC1035. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getZone() { + return zone; } /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * The name of the zone where you want to create the network endpoint group. It should comply + * with RFC1035. */ - public AddRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + public Insert setZone(java.lang.String zone) { + this.zone = zone; return this; } @@ -105477,70 +105645,67 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * Retrieves the list of network endpoint groups that are located in the specified project and zone. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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`. + * Retrieves the list of network endpoint groups that are located in the specified project and + * zone. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.class); + 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."); } @Override @@ -105554,63 +105719,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105624,7 +105789,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -105634,6 +105799,28 @@ public AggregatedList setProject(java.lang.String 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 @@ -105765,53 +105952,19 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ @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; + private java.lang.Long maxResults; /** The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the @@ -105828,7 +105981,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -105872,7 +106025,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -105895,7 +106048,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -105927,156 +106080,137 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Copies rules to the specified firewall policy. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * 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 CloneRules#execute()} method to invoke the remote operation. + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @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 CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(project, firewallPolicy); + 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 CloneRules extends ComputeRequest { + public class ListNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to update. + * @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 CloneRules(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.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}"); - } + 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."); } @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); } @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); } @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106090,7 +106224,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CloneRules setProject(java.lang.String project) { + 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 " + @@ -106100,213 +106234,450 @@ public CloneRules setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** + * 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 firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to update. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** 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; + /** + * 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public CloneRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListNetworkEndpoints setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** The firewall policy from which to copy rules. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String sourceFirewallPolicy; + private java.lang.Long maxResults; - /** The firewall policy from which to copy rules. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getSourceFirewallPolicy() { - return sourceFirewallPolicy; + public java.lang.Long getMaxResults() { + return maxResults; } - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); } } /** - * Deletes the specified policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to delete. + * @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 Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(project, firewallPolicy); + 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 Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Deletes the specified policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.delete". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to delete. + * @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 Delete(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106320,7 +106691,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -106330,102 +106701,98 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to delete. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to delete. + /** The name of the zone for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to delete. */ - public Delete setFirewallPolicy(java.lang.String firewallPolicy) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = firewallPolicy; + 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + 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 { + /** - * Returns the specified network firewall policy. + * Inserts an association for the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 get. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @return the request */ - public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(project, firewallPolicy); + 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 Get extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -106434,21 +106801,23 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 get. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @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); + 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(), @@ -106464,73 +106833,63 @@ protected Get(java.lang.String project, java.lang.String firewallPolicy) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106544,7 +106903,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -106554,18 +106913,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to get. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to get. + /** Name of the firewall policy to update. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to get. */ - public Get setFirewallPolicy(java.lang.String 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 " + @@ -106575,32 +106934,108 @@ public Get setFirewallPolicy(java.lang.String 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); } } /** - * Gets an association with the specified name. + * Inserts a packet mirroring rule into a firewall policy. * - * Create a request for the method "networkFirewallPolicies.getAssociation". + * 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 GetAssociation#execute()} method to invoke the remote operation. + * 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 which the queried association belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, firewallPolicy); + 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 GetAssociation extends ComputeRequest { + public class AddPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -106609,22 +107044,23 @@ public class GetAssociation extends ComputeRequest {@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 which the queried association belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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(), @@ -106640,73 +107076,63 @@ protected GetAssociation(java.lang.String project, java.lang.String firewallPoli } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (AddPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public AddPacketMirroringRule setAlt(java.lang.String alt) { + return (AddPacketMirroringRule) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public AddPacketMirroringRule setCallback(java.lang.String callback) { + return (AddPacketMirroringRule) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public AddPacketMirroringRule setFields(java.lang.String fields) { + return (AddPacketMirroringRule) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public AddPacketMirroringRule setKey(java.lang.String key) { + return (AddPacketMirroringRule) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (AddPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (AddPacketMirroringRule) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public AddPacketMirroringRule setUserIp(java.lang.String userIp) { + return (AddPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106720,7 +107146,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetAssociation setProject(java.lang.String project) { + 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 " + @@ -106730,18 +107156,18 @@ public GetAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried association belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried association belongs. + /** Name of the firewall policy to update. */ 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) { + /** 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 " + @@ -106751,434 +107177,128 @@ public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The name of the association to get from the firewall policy. */ + /** + * 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.String name; + private java.lang.Integer maxPriority; - /** The name of the association to get from the firewall policy. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** + * 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; } - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. */ - 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; + private java.lang.Integer minPriority; - /** Name or id of the resource for this request. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - 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; + public java.lang.Integer getMinPriority() { + return minPriority; } - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. + /** + * 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 getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * 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.

    + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. - * @since 1.13 + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name of the firewall policy to which the queried rule belongs. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name of the firewall policy to which the queried rule belongs. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - 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; + public java.lang.String getRequestId() { + return requestId; } - /** 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; + public AddPacketMirroringRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetPacketMirroringRule set(String parameterName, Object value) { - return (GetPacketMirroringRule) super.set(parameterName, value); + public AddPacketMirroringRule set(String parameterName, Object value) { + return (AddPacketMirroringRule) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Inserts a rule into a firewall policy. * - * Create a request for the method "networkFirewallPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation. + * 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 which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, firewallPolicy); + 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 GetRule extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -107187,22 +107307,23 @@ public class GetRule extends ComputeRequest + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

    * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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(), @@ -107218,73 +107339,63 @@ protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -107298,7 +107409,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + 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 " + @@ -107308,18 +107419,18 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried rule belongs. + /** Name of the firewall policy to update. */ 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) { + /** 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 " + @@ -107329,154 +107440,49 @@ public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to get from the firewall policy. */ + /** + * 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 priority; + private java.lang.Integer maxPriority; - /** The priority of the rule to get from the firewall policy. + /** 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 getPriority() { - return priority; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * 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; } - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. */ - 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])?))"); - } - } - - @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; + private java.lang.Integer minPriority; - /** Project ID for this request. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getProject() { - return project; + public java.lang.Integer getMinPriority() { + return minPriority; } - /** 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; + /** + * 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; } @@ -107524,55 +107530,64 @@ public java.lang.String getRequestId() { * 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) { + public AddRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Lists all the policies that have been configured for the specified project. + * 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. * - * Create a request for the method "networkFirewallPolicies.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "networkFirewallPolicies.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyList.class); + 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(), @@ -107592,63 +107607,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -107662,7 +107677,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -107803,11 +107818,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -107832,7 +107881,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -107876,7 +107925,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -107899,7 +107948,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -107931,38 +107980,60 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Copies rules to the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 Patch extends ComputeRequest { + public class CloneRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -107971,22 +108042,22 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @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); + 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(), @@ -108002,63 +108073,63 @@ protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.g } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108072,7 +108143,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -108093,7 +108164,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public Patch setFirewallPolicy(java.lang.String firewallPolicy) { + 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 " + @@ -108147,39 +108218,53 @@ public java.lang.String getRequestId() { * 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) { + 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); } } /** - * Patches a packet mirroring rule of the specified priority. + * Deletes the specified policy. * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * 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 PatchPacketMirroringRule#execute()} method to invoke the remote - * operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to delete. * @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); + 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 PatchPacketMirroringRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108188,23 +108273,21 @@ public class PatchPacketMirroringRule extends ComputeRequest {@link PatchPacketMirroringRule#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to delete. * @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); + 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(), @@ -108220,63 +108303,63 @@ protected PatchPacketMirroringRule(java.lang.String project, java.lang.String fi } @Override - public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (PatchPacketMirroringRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PatchPacketMirroringRule setAlt(java.lang.String alt) { - return (PatchPacketMirroringRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PatchPacketMirroringRule setCallback(java.lang.String callback) { - return (PatchPacketMirroringRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PatchPacketMirroringRule setFields(java.lang.String fields) { - return (PatchPacketMirroringRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PatchPacketMirroringRule setKey(java.lang.String key) { - return (PatchPacketMirroringRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (PatchPacketMirroringRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { - return (PatchPacketMirroringRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108290,7 +108373,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -108300,18 +108383,18 @@ public PatchPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to delete. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to delete. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public PatchPacketMirroringRule setFirewallPolicy(java.lang.String 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 " + @@ -108321,22 +108404,6 @@ public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolic 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 @@ -108381,38 +108448,37 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchPacketMirroringRule set(String parameterName, Object value) { - return (PatchPacketMirroringRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Returns the specified network firewall policy. * - * Create a request for the method "networkFirewallPolicies.patchRule". + * 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 PatchRule#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to get. * @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); + 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 PatchRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108421,23 +108487,21 @@ public class PatchRule extends ComputeRequest - * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to get. * @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); + 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(), @@ -108453,63 +108517,73 @@ protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, c } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -108523,7 +108597,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + 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 " + @@ -108533,18 +108607,18 @@ public PatchRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to get. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to get. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public PatchRule setFirewallPolicy(java.lang.String 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 " + @@ -108554,97 +108628,32 @@ public PatchRule setFirewallPolicy(java.lang.String 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Removes an association for the specified firewall policy. + * Gets an association with the specified name. * - * Create a request for the method "networkFirewallPolicies.removeAssociation". + * 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 RemoveAssociation#execute()} method to invoke the remote operation. + * 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 update. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); + 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 RemoveAssociation extends ComputeRequest { + public class GetAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108653,22 +108662,22 @@ public class RemoveAssociation extends ComputeRequest {@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the + * 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 update. + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @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); + 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(), @@ -108684,63 +108693,73 @@ protected RemoveAssociation(java.lang.String project, java.lang.String firewallP } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + 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. */ @@ -108754,7 +108773,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + 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 " + @@ -108764,18 +108783,18 @@ public RemoveAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** 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 update. + /** Name of the firewall policy to which the queried association belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public RemoveAssociation setFirewallPolicy(java.lang.String 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 " + @@ -108785,194 +108804,155 @@ public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** Name for the attachment that will be removed. */ + /** The name of the association to get from the firewall policy. */ @com.google.api.client.util.Key private java.lang.String name; - /** Name for the attachment that will be removed. + /** The name of the association to get from the firewall policy. */ public java.lang.String getName() { return name; } - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { + /** The name of the association to get from the firewall policy. */ + public GetAssociation 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); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Deletes a packet mirroring rule of the specified priority. + * 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.removePacketMirroringRule". + * 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 RemovePacketMirroringRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param resource Name or id of the resource for this request. * @return the request */ - public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); + 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 RemovePacketMirroringRule extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern RESOURCE_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. + * 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.removePacketMirroringRule". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to update. + * @param resource Name or id of the resource for this request. * @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); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (RemovePacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemovePacketMirroringRule setAlt(java.lang.String alt) { - return (RemovePacketMirroringRule) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public RemovePacketMirroringRule setCallback(java.lang.String callback) { - return (RemovePacketMirroringRule) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public RemovePacketMirroringRule setFields(java.lang.String fields) { - return (RemovePacketMirroringRule) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public RemovePacketMirroringRule setKey(java.lang.String key) { - return (RemovePacketMirroringRule) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { - return (RemovePacketMirroringRule) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { - return (RemovePacketMirroringRule) super.setUserIp(userIp); + 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. */ @@ -108986,7 +108966,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -108996,118 +108976,70 @@ public RemovePacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String resource; - /** Name of the firewall policy to update. + /** Name or id of the resource for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the firewall policy to update. */ - public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + 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). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public RemovePacketMirroringRule set(String parameterName, Object value) { - return (RemovePacketMirroringRule) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * Gets a packet mirroring rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.removeRule". + * 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 RemoveRule#execute()} method to invoke the remote operation. + * 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 update. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @return the request */ - public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, firewallPolicy); + 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 RemoveRule extends ComputeRequest { + public class GetPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -109116,22 +109048,22 @@ public class RemoveRule extends ComputeRequest - * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 update. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @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); + 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(), @@ -109147,63 +109079,73 @@ protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (GetPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public GetPacketMirroringRule setAlt(java.lang.String alt) { + return (GetPacketMirroringRule) super.setAlt(alt); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public GetPacketMirroringRule setCallback(java.lang.String callback) { + return (GetPacketMirroringRule) super.setCallback(callback); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public GetPacketMirroringRule setFields(java.lang.String fields) { + return (GetPacketMirroringRule) super.setFields(fields); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public GetPacketMirroringRule setKey(java.lang.String key) { + return (GetPacketMirroringRule) super.setKey(key); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (GetPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + 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. */ @@ -109217,7 +109159,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -109227,18 +109169,18 @@ public RemoveRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** 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 update. + /** Name of the firewall policy to which the queried rule belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public RemoveRule setFirewallPolicy(java.lang.String 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 " + @@ -109248,195 +109190,154 @@ public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to remove from the firewall policy. */ + /** 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 remove from the firewall policy. + /** The priority of the rule to get 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) { + /** The priority of the rule to get from the firewall policy. */ + public GetPacketMirroringRule 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); + public GetPacketMirroringRule set(String parameterName, Object value) { + return (GetPacketMirroringRule) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Gets a rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRule#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} + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Gets a rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link GetRule#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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + 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. */ @@ -109450,7 +109351,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -109460,151 +109361,155 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to which the queried rule belongs. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "networkFirewallPolicies.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#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} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "networkFirewallPolicies.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @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); + 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])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -109618,7 +109523,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -109628,234 +109533,64 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of network profiles available to the specified project. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networkProfiles.list". + * 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. @@ -109869,17 +109604,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkProfiles"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networkProfiles.list". + * 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 @@ -109890,7 +109625,7 @@ public class List extends ComputeRequestThe 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. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networks.addPeering". + * 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 AddPeering#execute()} method to invoke the remote operation. + * 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 resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @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); + 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 AddPeering extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Adds a peering to the specified network. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networks.addPeering". + * 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 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.

    + * 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 resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + 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(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddPeering set$Xgafv(java.lang.String $Xgafv) { - return (AddPeering) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AddPeering setAccessToken(java.lang.String accessToken) { - return (AddPeering) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AddPeering setAlt(java.lang.String alt) { - return (AddPeering) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AddPeering setCallback(java.lang.String callback) { - return (AddPeering) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AddPeering setFields(java.lang.String fields) { - return (AddPeering) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AddPeering setKey(java.lang.String key) { - return (AddPeering) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AddPeering setOauthToken(java.lang.String oauthToken) { - return (AddPeering) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPeering) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AddPeering setQuotaUser(java.lang.String quotaUser) { - return (AddPeering) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AddPeering setUploadType(java.lang.String uploadType) { - return (AddPeering) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPeering) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AddPeering setUserIp(java.lang.String userIp) { - return (AddPeering) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110414,7 +110125,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPeering setProject(java.lang.String project) { + 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 " + @@ -110424,24 +110135,24 @@ public AddPeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to add peering to. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network resource to add peering to. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network resource to add peering to. */ - public AddPeering setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public Patch setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + 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.network = network; + this.firewallPolicy = firewallPolicy; return this; } @@ -110489,132 +110200,136 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddPeering set(String parameterName, Object value) { - return (AddPeering) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified network. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchPacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param network Name of the network to delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { - Delete result = new Delete(project, network); + 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 Delete extends ComputeRequest { + public class PatchPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.delete". + * 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 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.

    + * 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 network Name of the network to delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + 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(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (PatchPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public PatchPacketMirroringRule setAlt(java.lang.String alt) { + return (PatchPacketMirroringRule) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public PatchPacketMirroringRule setCallback(java.lang.String callback) { + return (PatchPacketMirroringRule) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public PatchPacketMirroringRule setFields(java.lang.String fields) { + return (PatchPacketMirroringRule) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public PatchPacketMirroringRule setKey(java.lang.String key) { + return (PatchPacketMirroringRule) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (PatchPacketMirroringRule) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { + return (PatchPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110628,7 +110343,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -110638,24 +110353,40 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the network to delete. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to delete. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to delete. */ - public Delete setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + 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.network = network; + 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; } @@ -110703,142 +110434,135 @@ public java.lang.String getRequestId() { * 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) { + public PatchPacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PatchPacketMirroringRule set(String parameterName, Object value) { + return (PatchPacketMirroringRule) super.set(parameterName, value); } } /** - * Returns the specified network. + * Patches a rule of the specified priority. * - * Create a request for the method "networks.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to return. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { - Get result = new Get(project, network); + 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 Get extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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. + * Patches a rule of the specified priority. * - * Create a request for the method "networks.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 network Name of the network to return. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + 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(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110852,7 +110576,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -110862,160 +110586,214 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the network to return. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to return. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to return. */ - public Get setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + 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.network = network; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Returns the effective firewalls on a given network. + * Removes an association for the specified firewall policy. * - * Create a request for the method "networks.getEffectiveFirewalls". + * 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 GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); + 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 GetEffectiveFirewalls extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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])?"); + 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 effective firewalls on a given network. + * Removes an association for the specified firewall policy. * - * Create a request for the method "networks.getEffectiveFirewalls". + * 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 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.

    + * 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 network Name of the network for this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + 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(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111029,7 +110807,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { + 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 " + @@ -111039,139 +110817,215 @@ public GetEffectiveFirewalls setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network for this request. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network for this request. */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { 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])?"); + 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.network = network; + 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 GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Creates a network in the specified project using the data included in the request. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePacketMirroringRule#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} + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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 Insert extends ComputeRequest { + public class RemovePacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Creates a network in the specified project using the data included in the request. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.Network} + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (RemovePacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RemovePacketMirroringRule setAlt(java.lang.String alt) { + return (RemovePacketMirroringRule) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RemovePacketMirroringRule setCallback(java.lang.String callback) { + return (RemovePacketMirroringRule) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RemovePacketMirroringRule setFields(java.lang.String fields) { + return (RemovePacketMirroringRule) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RemovePacketMirroringRule setKey(java.lang.String key) { + return (RemovePacketMirroringRule) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { + return (RemovePacketMirroringRule) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { + return (RemovePacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111185,7 +111039,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -111195,6 +111049,43 @@ public Insert setProject(java.lang.String 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 @@ -111239,131 +111130,133 @@ public java.lang.String getRequestId() { * 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) { + public RemovePacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public RemovePacketMirroringRule set(String parameterName, Object value) { + return (RemovePacketMirroringRule) super.set(parameterName, value); } } /** - * Retrieves the list of networks available to the specified project. + * Deletes a rule of the specified priority. * - * Create a request for the method "networks.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves the list of networks available to the specified project. + * Deletes a rule of the specified priority. * - * Create a request for the method "networks.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111377,7 +111270,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -111387,331 +111280,511 @@ public List setProject(java.lang.String 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; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "networkFirewallPolicies.setIamPolicy". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - @com.google.api.client.util.Key - private java.lang.String filter; + 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}"); + } + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. + @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 List setFilter(java.lang.String filter) { - this.filter = filter; + 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 maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String resource; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name or id of the resource for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getResource() { + return resource; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Returns permissions that a caller has on the specified resource. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * Create a request for the method "networkFirewallPolicies.testIamPermissions". * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * 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 */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + 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}"); + } + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + @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 pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + 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 { + /** - * Lists the peering routes exchanged over peering connection. + * Returns the specified network profile. * - * Create a request for the method "networks.listPeeringRoutes". + * 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 ListPeeringRoutes#execute()} method to invoke the remote operation. + * 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 for this request. + * @param networkProfile Name of the network profile to return. * @return the request */ - public ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { - ListPeeringRoutes result = new ListPeeringRoutes(project, network); + 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 ListPeeringRoutes extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; + private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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])?"); + 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}"); /** - * Lists the peering routes exchanged over peering connection. + * Returns the specified network profile. * - * Create a request for the method "networks.listPeeringRoutes". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 for this request. + * @param networkProfile Name of the network profile to return. * @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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + 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_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @@ -111726,63 +111799,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListPeeringRoutes) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { - return (ListPeeringRoutes) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListPeeringRoutes setAlt(java.lang.String alt) { - return (ListPeeringRoutes) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListPeeringRoutes setCallback(java.lang.String callback) { - return (ListPeeringRoutes) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListPeeringRoutes setFields(java.lang.String fields) { - return (ListPeeringRoutes) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListPeeringRoutes setKey(java.lang.String key) { - return (ListPeeringRoutes) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { - return (ListPeeringRoutes) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListPeeringRoutes) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListPeeringRoutes setUploadType(java.lang.String uploadType) { - return (ListPeeringRoutes) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public ListPeeringRoutes setUserIp(java.lang.String userIp) { - return (ListPeeringRoutes) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111796,7 +111869,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPeeringRoutes setProject(java.lang.String project) { + 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 " + @@ -111806,40 +111879,167 @@ public ListPeeringRoutes setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** Name of the network profile to return. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String networkProfile; - /** Name of the network for this request. + /** Name of the network profile to return. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getNetworkProfile() { + return networkProfile; } - /** Name of the network for this request. */ - public ListPeeringRoutes setNetwork(java.lang.String network) { + /** Name of the network profile to return. */ + public Get setNetworkProfile(java.lang.String networkProfile) { 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])?"); + 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.network = network; + this.networkProfile = networkProfile; return this; } - /** The direction of the exchanged routes. */ + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 direction; + private java.lang.String project; - /** The direction of the exchanged routes. + /** Project ID for this request. */ - public java.lang.String getDirection() { - return direction; + public java.lang.String getProject() { + return project; } - /** The direction of the exchanged routes. */ - public ListPeeringRoutes setDirection(java.lang.String direction) { - this.direction = direction; + /** 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; } @@ -111974,7 +112174,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListPeeringRoutes setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -112003,7 +112203,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -112047,7 +112247,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListPeeringRoutes setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -112070,50 +112270,11 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List 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; - } - /** * Opt-in for partial success behavior which provides partial results in case of failure. The * default value is false. @@ -112141,39 +112302,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListPeeringRoutes set(String parameterName, Object value) { - return (ListPeeringRoutes) super.set(parameterName, value); + 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 { + /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. + * Adds a peering to the specified network. * - * Create a request for the method "networks.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @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 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); + 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 Patch extends ComputeRequest { + public class AddPeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112182,23 +112365,23 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @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 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); + 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(), @@ -112214,63 +112397,63 @@ protected Patch(java.lang.String project, java.lang.String network, com.google.a } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public AddPeering set$Xgafv(java.lang.String $Xgafv) { + return (AddPeering) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public AddPeering setAccessToken(java.lang.String accessToken) { + return (AddPeering) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public AddPeering setAlt(java.lang.String alt) { + return (AddPeering) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public AddPeering setCallback(java.lang.String callback) { + return (AddPeering) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public AddPeering setFields(java.lang.String fields) { + return (AddPeering) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public AddPeering setKey(java.lang.String key) { + return (AddPeering) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public AddPeering setOauthToken(java.lang.String oauthToken) { + return (AddPeering) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPeering) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public AddPeering setQuotaUser(java.lang.String quotaUser) { + return (AddPeering) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public AddPeering setUploadType(java.lang.String uploadType) { + return (AddPeering) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPeering) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public AddPeering setUserIp(java.lang.String userIp) { + return (AddPeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112284,7 +112467,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -112294,18 +112477,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the network to update. */ + /** Name of the network resource to add peering to. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network to update. + /** Name of the network resource to add peering to. */ public java.lang.String getNetwork() { return network; } - /** Name of the network to update. */ - public Patch setNetwork(java.lang.String 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 " + @@ -112359,38 +112542,41 @@ public java.lang.String getRequestId() { * 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) { + public AddPeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AddPeering set(String parameterName, Object value) { + return (AddPeering) super.set(parameterName, value); } } /** - * Removes a peering from the specified network. + * 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.removePeering". + * 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 RemovePeering#execute()} method to invoke the remote operation. + * 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.NetworksRemovePeeringRequest} + * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} * @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); + 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 RemovePeering extends ComputeRequest { + public class CancelRequestRemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112399,22 +112585,24 @@ public class RemovePeering extends ComputeRequest - * {@link RemovePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

    + * 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.NetworksRemovePeeringRequest} + * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} * @since 1.13 */ - protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) { + 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()) { @@ -112431,63 +112619,63 @@ protected RemovePeering(java.lang.String project, java.lang.String network, com. } @Override - public RemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RemovePeering) super.set$Xgafv($Xgafv); + public CancelRequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (CancelRequestRemovePeering) super.set$Xgafv($Xgafv); } @Override - public RemovePeering setAccessToken(java.lang.String accessToken) { - return (RemovePeering) super.setAccessToken(accessToken); + public CancelRequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (CancelRequestRemovePeering) super.setAccessToken(accessToken); } @Override - public RemovePeering setAlt(java.lang.String alt) { - return (RemovePeering) super.setAlt(alt); + public CancelRequestRemovePeering setAlt(java.lang.String alt) { + return (CancelRequestRemovePeering) super.setAlt(alt); } @Override - public RemovePeering setCallback(java.lang.String callback) { - return (RemovePeering) super.setCallback(callback); + public CancelRequestRemovePeering setCallback(java.lang.String callback) { + return (CancelRequestRemovePeering) super.setCallback(callback); } @Override - public RemovePeering setFields(java.lang.String fields) { - return (RemovePeering) super.setFields(fields); + public CancelRequestRemovePeering setFields(java.lang.String fields) { + return (CancelRequestRemovePeering) super.setFields(fields); } @Override - public RemovePeering setKey(java.lang.String key) { - return (RemovePeering) super.setKey(key); + public CancelRequestRemovePeering setKey(java.lang.String key) { + return (CancelRequestRemovePeering) super.setKey(key); } @Override - public RemovePeering setOauthToken(java.lang.String oauthToken) { - return (RemovePeering) super.setOauthToken(oauthToken); + public CancelRequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (CancelRequestRemovePeering) super.setOauthToken(oauthToken); } @Override - public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePeering) super.setPrettyPrint(prettyPrint); + public CancelRequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CancelRequestRemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public RemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RemovePeering) super.setQuotaUser(quotaUser); + public CancelRequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (CancelRequestRemovePeering) super.setQuotaUser(quotaUser); } @Override - public RemovePeering setUploadType(java.lang.String uploadType) { - return (RemovePeering) super.setUploadType(uploadType); + public CancelRequestRemovePeering setUploadType(java.lang.String uploadType) { + return (CancelRequestRemovePeering) super.setUploadType(uploadType); } @Override - public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePeering) super.setUploadProtocol(uploadProtocol); + public CancelRequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (CancelRequestRemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public RemovePeering setUserIp(java.lang.String userIp) { - return (RemovePeering) super.setUserIp(userIp); + public CancelRequestRemovePeering setUserIp(java.lang.String userIp) { + return (CancelRequestRemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112501,7 +112689,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePeering setProject(java.lang.String project) { + 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 " + @@ -112522,7 +112710,7 @@ public java.lang.String getNetwork() { } /** Name of the network resource to remove peering from. */ - public RemovePeering setNetwork(java.lang.String network) { + 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 " + @@ -112576,40 +112764,37 @@ public java.lang.String getRequestId() { * 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) { + public CancelRequestRemovePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemovePeering set(String parameterName, Object value) { - return (RemovePeering) super.set(parameterName, value); + public CancelRequestRemovePeering set(String parameterName, Object value) { + return (CancelRequestRemovePeering) super.set(parameterName, value); } } /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. + * Deletes the specified network. * - * Create a request for the method "networks.requestRemovePeering". + * 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 RequestRemovePeering#execute()} method to invoke the remote - * operation. + * 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 resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @param network Name of the network to delete. * @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); + 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 RequestRemovePeering extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112618,24 +112803,21 @@ public class RequestRemovePeering extends ComputeRequest {@link RequestRemovePeering#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @param network Name of the network to delete. * @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); + 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(), @@ -112651,63 +112833,63 @@ protected RequestRemovePeering(java.lang.String project, java.lang.String networ } @Override - public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RequestRemovePeering) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public RequestRemovePeering setAccessToken(java.lang.String accessToken) { - return (RequestRemovePeering) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public RequestRemovePeering setAlt(java.lang.String alt) { - return (RequestRemovePeering) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public RequestRemovePeering setCallback(java.lang.String callback) { - return (RequestRemovePeering) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public RequestRemovePeering setFields(java.lang.String fields) { - return (RequestRemovePeering) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public RequestRemovePeering setKey(java.lang.String key) { - return (RequestRemovePeering) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { - return (RequestRemovePeering) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RequestRemovePeering) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public RequestRemovePeering setUploadType(java.lang.String uploadType) { - return (RequestRemovePeering) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public RequestRemovePeering setUserIp(java.lang.String userIp) { - return (RequestRemovePeering) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112721,7 +112903,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RequestRemovePeering setProject(java.lang.String project) { + 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 " + @@ -112731,18 +112913,18 @@ public RequestRemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** Name of the network to delete. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network resource to remove peering from. + /** Name of the network to delete. */ public java.lang.String getNetwork() { return network; } - /** Name of the network resource to remove peering from. */ - public RequestRemovePeering setNetwork(java.lang.String 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 " + @@ -112796,37 +112978,37 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RequestRemovePeering set(String parameterName, Object value) { - return (RequestRemovePeering) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Switches the network mode from auto subnet mode to custom subnet mode. + * Returns the specified network. * - * Create a request for the method "networks.switchToCustomMode". + * 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 SwitchToCustomMode#execute()} method to invoke the remote operation. + * 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 be updated. + * @param network Name of the network to return. * @return the request */ - public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { - SwitchToCustomMode result = new SwitchToCustomMode(project, network); + 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 SwitchToCustomMode extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112835,22 +113017,21 @@ public class SwitchToCustomMode extends ComputeRequest {@link SwitchToCustomMode#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 be updated. + * @param network Name of the network to return. * @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); + 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(), @@ -112866,63 +113047,73 @@ protected SwitchToCustomMode(java.lang.String project, java.lang.String network) } @Override - public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { - return (SwitchToCustomMode) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { - return (SwitchToCustomMode) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SwitchToCustomMode setAlt(java.lang.String alt) { - return (SwitchToCustomMode) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SwitchToCustomMode setCallback(java.lang.String callback) { - return (SwitchToCustomMode) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SwitchToCustomMode setFields(java.lang.String fields) { - return (SwitchToCustomMode) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SwitchToCustomMode setKey(java.lang.String key) { - return (SwitchToCustomMode) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { - return (SwitchToCustomMode) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { - return (SwitchToCustomMode) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SwitchToCustomMode setUploadType(java.lang.String uploadType) { - return (SwitchToCustomMode) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { - return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SwitchToCustomMode setUserIp(java.lang.String userIp) { - return (SwitchToCustomMode) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -112936,7 +113127,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SwitchToCustomMode setProject(java.lang.String project) { + 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 " + @@ -112946,18 +113137,18 @@ public SwitchToCustomMode setProject(java.lang.String project) { return this; } - /** Name of the network to be updated. */ + /** Name of the network to return. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network to be updated. + /** Name of the network to return. */ public java.lang.String getNetwork() { return network; } - /** Name of the network to be updated. */ - public SwitchToCustomMode setNetwork(java.lang.String 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 " + @@ -112967,350 +113158,139 @@ public SwitchToCustomMode setNetwork(java.lang.String 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the effective firewalls on a given network. * - * Create a request for the method "networks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetEffectiveFirewalls#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} + * @param network Name of the network for this request. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class GetEffectiveFirewalls extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Returns permissions that a caller has on the specified resource. + * Returns the effective firewalls on a given network. * - * Create a request for the method "networks.testIamPermissions". + * 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 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 + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param network Name of the network for this request. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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])?"); } } @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; + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePeering) super.set$Xgafv($Xgafv); + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } @Override - public UpdatePeering setAccessToken(java.lang.String accessToken) { - return (UpdatePeering) super.setAccessToken(accessToken); + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); } @Override - public UpdatePeering setAlt(java.lang.String alt) { - return (UpdatePeering) super.setAlt(alt); + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); } @Override - public UpdatePeering setCallback(java.lang.String callback) { - return (UpdatePeering) super.setCallback(callback); + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); } @Override - public UpdatePeering setFields(java.lang.String fields) { - return (UpdatePeering) super.setFields(fields); + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } @Override - public UpdatePeering setKey(java.lang.String key) { - return (UpdatePeering) super.setKey(key); + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); } @Override - public UpdatePeering setOauthToken(java.lang.String oauthToken) { - return (UpdatePeering) super.setOauthToken(oauthToken); + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); } @Override - public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePeering) super.setPrettyPrint(prettyPrint); + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); } @Override - public UpdatePeering setQuotaUser(java.lang.String quotaUser) { - return (UpdatePeering) super.setQuotaUser(quotaUser); + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); } @Override - public UpdatePeering setUploadType(java.lang.String uploadType) { - return (UpdatePeering) super.setUploadType(uploadType); + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); } @Override - public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePeering) super.setUploadProtocol(uploadProtocol); + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); } @Override - public UpdatePeering setUserIp(java.lang.String userIp) { - return (UpdatePeering) super.setUserIp(userIp); + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113324,7 +113304,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdatePeering setProject(java.lang.String project) { + 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 " + @@ -113334,155 +113314,72 @@ public UpdatePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource which the updated peering is belonging to. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network resource which the updated peering is belonging to. + /** Name of the network for this request. */ 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) { + /** 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])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } 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); + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) 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. + * Creates a network in the specified project using the data included in the request. * - * Create a request for the method "nodeGroups.addNodes". + * 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 AddNodes#execute()} method to invoke the remote operation. + * 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 nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @param content the {@link com.google.api.services.compute.model.Network} * @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); + 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 AddNodes extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; + private static final String REST_PATH = "projects/{project}/global/networks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Creates a network in the specified project using the data included in the request. * - * Create a request for the method "nodeGroups.addNodes". + * 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 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.

    + * 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 nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @param content the {@link com.google.api.services.compute.model.Network} * @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) { + 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()) { @@ -113490,78 +113387,66 @@ protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public AddNodes set$Xgafv(java.lang.String $Xgafv) { - return (AddNodes) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AddNodes setAccessToken(java.lang.String accessToken) { - return (AddNodes) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AddNodes setAlt(java.lang.String alt) { - return (AddNodes) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AddNodes setCallback(java.lang.String callback) { - return (AddNodes) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AddNodes setFields(java.lang.String fields) { - return (AddNodes) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AddNodes setKey(java.lang.String key) { - return (AddNodes) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AddNodes setOauthToken(java.lang.String oauthToken) { - return (AddNodes) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNodes) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AddNodes setQuotaUser(java.lang.String quotaUser) { - return (AddNodes) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AddNodes setUploadType(java.lang.String uploadType) { - return (AddNodes) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNodes) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AddNodes setUserIp(java.lang.String userIp) { - return (AddNodes) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113575,7 +113460,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddNodes setProject(java.lang.String project) { + 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 " + @@ -113585,48 +113470,6 @@ public AddNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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 @@ -113671,64 +113514,55 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddNodes set(String parameterName, Object value) { - return (AddNodes) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * Retrieves the list of networks available to the specified project. * - * Create a request for the method "nodeGroups.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/networks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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`. + * Retrieves the list of networks available to the specified project. * - * Create a request for the method "nodeGroups.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupAggregatedList.class); + 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(), @@ -113748,63 +113582,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113818,7 +113652,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -113959,45 +113793,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -114022,7 +113822,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -114066,7 +113866,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -114089,7 +113889,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -114121,166 +113921,143 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified NodeGroup resource. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "nodeGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPeeringRoutes#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. + * @param network Name of the network for this request. * @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); + 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 Delete extends ComputeRequest { + public class ListPeeringRoutes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern NETWORK_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. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "nodeGroups.delete". + * 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 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.

    + * 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 zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to delete. + * @param network Name of the network for this request. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListPeeringRoutes) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { + return (ListPeeringRoutes) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public ListPeeringRoutes setAlt(java.lang.String alt) { + return (ListPeeringRoutes) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public ListPeeringRoutes setCallback(java.lang.String callback) { + return (ListPeeringRoutes) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public ListPeeringRoutes setFields(java.lang.String fields) { + return (ListPeeringRoutes) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public ListPeeringRoutes setKey(java.lang.String key) { + return (ListPeeringRoutes) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { + return (ListPeeringRoutes) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListPeeringRoutes) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -114294,7 +114071,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -114304,232 +114081,471 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { + /** Name of the network for this request. */ + public ListPeeringRoutes setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + 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.zone = zone; + this.network = network; return this; } - /** Name of the NodeGroup resource to delete. */ + /** The direction of the exchanged routes. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String direction; - /** Name of the NodeGroup resource to delete. + /** The direction of the exchanged routes. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getDirection() { + return direction; } - /** 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; + /** The direction of the exchanged routes. */ + public ListPeeringRoutes setDirection(java.lang.String direction) { + this.direction = direction; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ListPeeringRoutes set(String parameterName, Object value) { + return (ListPeeringRoutes) super.set(parameterName, value); } } /** - * Deletes specified nodes from the node group. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "nodeGroups.deleteNodes". + * 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 DeleteNodes#execute()} method to invoke the remote operation. + * 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 whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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); + 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 DeleteNodes extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 specified nodes from the node group. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "nodeGroups.deleteNodes". + * 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 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.

    + * 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 whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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}"); } } @Override - public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNodes) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public DeleteNodes setAccessToken(java.lang.String accessToken) { - return (DeleteNodes) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public DeleteNodes setAlt(java.lang.String alt) { - return (DeleteNodes) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public DeleteNodes setCallback(java.lang.String callback) { - return (DeleteNodes) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public DeleteNodes setFields(java.lang.String fields) { - return (DeleteNodes) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public DeleteNodes setKey(java.lang.String key) { - return (DeleteNodes) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public DeleteNodes setOauthToken(java.lang.String oauthToken) { - return (DeleteNodes) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNodes) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public DeleteNodes setQuotaUser(java.lang.String quotaUser) { - return (DeleteNodes) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public DeleteNodes setUploadType(java.lang.String uploadType) { - return (DeleteNodes) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNodes) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteNodes setUserIp(java.lang.String userIp) { - return (DeleteNodes) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114543,7 +114559,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteNodes setProject(java.lang.String project) { + 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 " + @@ -114553,45 +114569,24 @@ public DeleteNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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. */ + /** Name of the network to update. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String network; - /** Name of the NodeGroup resource whose nodes will be deleted. + /** Name of the network to update. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetwork() { + return network; } - /** Name of the NodeGroup resource whose nodes will be deleted. */ - public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network to update. */ + public Patch setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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.nodeGroup = nodeGroup; + this.network = network; return this; } @@ -114639,155 +114634,135 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DeleteNodes set(String parameterName, Object value) { - return (DeleteNodes) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * Removes a peering from the specified network. * - * Create a request for the method "nodeGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePeering#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. + * @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 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); + 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 Get extends ComputeRequest { + public class RemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * Removes a peering from the specified network. * - * Create a request for the method "nodeGroups.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 zone The name of the zone for this request. - * @param nodeGroup Name of the node group to return. + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public RemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RemovePeering) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public RemovePeering setAccessToken(java.lang.String accessToken) { + return (RemovePeering) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public RemovePeering setAlt(java.lang.String alt) { + return (RemovePeering) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public RemovePeering setCallback(java.lang.String callback) { + return (RemovePeering) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public RemovePeering setFields(java.lang.String fields) { + return (RemovePeering) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public RemovePeering setKey(java.lang.String key) { + return (RemovePeering) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public RemovePeering setOauthToken(java.lang.String oauthToken) { + return (RemovePeering) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public RemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RemovePeering) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public RemovePeering setUploadType(java.lang.String uploadType) { + return (RemovePeering) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public RemovePeering setUserIp(java.lang.String userIp) { + return (RemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114801,7 +114776,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -114811,192 +114786,203 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network resource to remove peering from. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.zone = zone; + this.network = network; return this; } - /** Name of the node group to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String requestId; - /** Name of the node group to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public RemovePeering set(String parameterName, Object value) { + return (RemovePeering) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "nodeGroups.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link RequestRemovePeering#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 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class RequestRemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "nodeGroups.getIamPolicy". + * 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 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.

    + * 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 zone The name of the zone for this request. - * @param resource Name or id of the resource 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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RequestRemovePeering) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public RequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (RequestRemovePeering) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public RequestRemovePeering setAlt(java.lang.String alt) { + return (RequestRemovePeering) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public RequestRemovePeering setCallback(java.lang.String callback) { + return (RequestRemovePeering) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public RequestRemovePeering setFields(java.lang.String fields) { + return (RequestRemovePeering) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public RequestRemovePeering setKey(java.lang.String key) { + return (RequestRemovePeering) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (RequestRemovePeering) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RequestRemovePeering) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public RequestRemovePeering setUploadType(java.lang.String uploadType) { + return (RequestRemovePeering) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public RequestRemovePeering setUserIp(java.lang.String userIp) { + return (RequestRemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115010,7 +114996,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -115020,190 +115006,415 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network resource to remove peering from. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + /** 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.zone = zone; + this.network = network; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); } - this.resource = resource; + } + + @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; } - /** Requested IAM Policy version. */ + /** Name of the network to be updated. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String network; - /** Requested IAM Policy version. + /** Name of the network to be updated. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getNetwork() { + return network; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public SwitchToCustomMode set(String parameterName, Object value) { + return (SwitchToCustomMode) super.set(parameterName, value); } } /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.insert". + * Create a request for the method "networks.testIamPermissions". * * 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. + * 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 initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @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 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); + 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 Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.insert". + * Create a request for the method "networks.testIamPermissions". * * 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.

    + * 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 initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115217,7 +115428,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -115227,40 +115438,195 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + /** 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.resource = resource; return this; } - /** Initial count of nodes in the node group. */ + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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.Integer initialNodeCount; + private java.lang.String project; - /** Initial count of nodes in the node group. + /** Project ID for this request. */ - public java.lang.Integer getInitialNodeCount() { - return initialNodeCount; + public java.lang.String getProject() { + return project; } - /** Initial count of nodes in the node group. */ - public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { - this.initialNodeCount = initialNodeCount; + /** 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; } @@ -115308,38 +115674,62 @@ public java.lang.String getRequestId() { * 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) { + public UpdatePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 { + /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Adds specified number of nodes to the node group. * - * Create a request for the method "nodeGroups.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + 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 List extends ComputeRequest { + public class AddNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -115347,23 +115737,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); + 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(), @@ -115376,76 +115771,72 @@ protected List(java.lang.String project, java.lang.String zone) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public AddNodes set$Xgafv(java.lang.String $Xgafv) { + return (AddNodes) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AddNodes setAccessToken(java.lang.String accessToken) { + return (AddNodes) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AddNodes setAlt(java.lang.String alt) { + return (AddNodes) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AddNodes setCallback(java.lang.String callback) { + return (AddNodes) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AddNodes setFields(java.lang.String fields) { + return (AddNodes) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AddNodes setKey(java.lang.String key) { + return (AddNodes) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AddNodes setOauthToken(java.lang.String oauthToken) { + return (AddNodes) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNodes) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AddNodes setQuotaUser(java.lang.String quotaUser) { + return (AddNodes) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AddNodes setUploadType(java.lang.String uploadType) { + return (AddNodes) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNodes) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AddNodes setUserIp(java.lang.String userIp) { + return (AddNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115459,7 +115850,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -115480,7 +115871,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + 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 " + @@ -115490,6 +115881,228 @@ public List setZone(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 @@ -115621,11 +116234,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -115650,7 +116297,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -115694,7 +116341,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -115717,7 +116364,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -115749,38 +116396,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists nodes in the node group. + * Deletes the specified NodeGroup resource. * - * Create a request for the method "nodeGroups.listNodes". + * 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 ListNodes#execute()} method to invoke the remote operation. + * 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 whose nodes you want to list. + * @param nodeGroup Name of the NodeGroup resource to delete. * @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); + 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 ListNodes extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -115792,23 +116462,22 @@ public class ListNodes extends ComputeRequest - * {@link - * ListNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 whose nodes you want to list. + * @param nodeGroup Name of the NodeGroup resource to delete. * @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); + 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(), @@ -115830,63 +116499,63 @@ protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.S } @Override - public ListNodes set$Xgafv(java.lang.String $Xgafv) { - return (ListNodes) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public ListNodes setAccessToken(java.lang.String accessToken) { - return (ListNodes) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public ListNodes setAlt(java.lang.String alt) { - return (ListNodes) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public ListNodes setCallback(java.lang.String callback) { - return (ListNodes) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public ListNodes setFields(java.lang.String fields) { - return (ListNodes) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public ListNodes setKey(java.lang.String key) { - return (ListNodes) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public ListNodes setOauthToken(java.lang.String oauthToken) { - return (ListNodes) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNodes) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public ListNodes setQuotaUser(java.lang.String quotaUser) { - return (ListNodes) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public ListNodes setUploadType(java.lang.String uploadType) { - return (ListNodes) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNodes) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public ListNodes setUserIp(java.lang.String userIp) { - return (ListNodes) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115900,7 +116569,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNodes setProject(java.lang.String project) { + 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 " + @@ -115921,7 +116590,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public ListNodes setZone(java.lang.String zone) { + 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 " + @@ -115931,18 +116600,18 @@ public ListNodes setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource whose nodes you want to list. */ + /** Name of the NodeGroup resource to delete. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the NodeGroup resource whose nodes you want to list. + /** Name of the NodeGroup resource to delete. */ 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) { + /** 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 " + @@ -115953,297 +116622,82 @@ public ListNodes setNodeGroup(java.lang.String nodeGroup) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListNodes setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListNodes set(String parameterName, Object value) { - return (ListNodes) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates the specified node group. + * Deletes specified nodes from the node group. * - * Create a request for the method "nodeGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @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 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); + 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 Patch extends ComputeRequest { + public class DeleteNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116255,23 +116709,24 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @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 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); + 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(), @@ -116293,63 +116748,63 @@ protected Patch(java.lang.String project, java.lang.String zone, java.lang.Strin } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNodes) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public DeleteNodes setAccessToken(java.lang.String accessToken) { + return (DeleteNodes) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public DeleteNodes setAlt(java.lang.String alt) { + return (DeleteNodes) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public DeleteNodes setCallback(java.lang.String callback) { + return (DeleteNodes) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public DeleteNodes setFields(java.lang.String fields) { + return (DeleteNodes) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public DeleteNodes setKey(java.lang.String key) { + return (DeleteNodes) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public DeleteNodes setOauthToken(java.lang.String oauthToken) { + return (DeleteNodes) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNodes) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public DeleteNodes setQuotaUser(java.lang.String quotaUser) { + return (DeleteNodes) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public DeleteNodes setUploadType(java.lang.String uploadType) { + return (DeleteNodes) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNodes) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public DeleteNodes setUserIp(java.lang.String userIp) { + return (DeleteNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116363,7 +116818,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -116384,7 +116839,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Patch setZone(java.lang.String zone) { + 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 " + @@ -116394,18 +116849,18 @@ public Patch setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource to update. */ + /** 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 to update. + /** Name of the NodeGroup resource whose nodes will be deleted. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the NodeGroup resource to update. */ - public Patch setNodeGroup(java.lang.String 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 " + @@ -116459,39 +116914,39 @@ public java.lang.String getRequestId() { * 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) { + public DeleteNodes setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public DeleteNodes set(String parameterName, Object value) { + return (DeleteNodes) super.set(parameterName, value); } } /** - * Perform maintenance on a subset of nodes in the node group. + * 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.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param nodeGroup Name of the node group to return. * @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); + 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 PerformMaintenance extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116503,24 +116958,23 @@ public class PerformMaintenance extends ComputeRequest {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param nodeGroup Name of the node group to return. * @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); + 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(), @@ -116542,63 +116996,73 @@ protected PerformMaintenance(java.lang.String project, java.lang.String zone, ja } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -116612,7 +117076,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + 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 " + @@ -116633,7 +117097,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { + 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 " + @@ -116643,18 +117107,18 @@ public PerformMaintenance setZone(java.lang.String zone) { return this; } - /** Name of the node group scoping this request. */ + /** Name of the node group to return. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the node group scoping this request. + /** Name of the node group to return. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the node group scoping this request. */ - public PerformMaintenance setNodeGroup(java.lang.String 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 " + @@ -116664,83 +117128,33 @@ public PerformMaintenance setNodeGroup(java.lang.String 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116752,24 +117166,24 @@ public class SetIamPolicy extends ComputeRequest + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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. - * @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); + 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(), @@ -116791,63 +117205,73 @@ protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + 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. */ @@ -116861,7 +117285,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -116882,7 +117306,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + 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 " + @@ -116903,7 +117327,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -116913,34 +117337,50 @@ public SetIamPolicy setResource(java.lang.String 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Updates the node template of the node group. + * Creates a NodeGroup resource in the specified project using the data included in the request. * - * Create a request for the method "nodeGroups.setNodeTemplate". + * 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 SetNodeTemplate#execute()} method to invoke the remote operation. + * 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 nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @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 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); + 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 SetNodeTemplate extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116948,27 +117388,23 @@ public class SetNodeTemplate extends ComputeRequest {@link SetNodeTemplate#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @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 SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) { + 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()) { @@ -116982,72 +117418,67 @@ protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java. "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}"); - } + this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override - public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetNodeTemplate) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetNodeTemplate setAccessToken(java.lang.String accessToken) { - return (SetNodeTemplate) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetNodeTemplate setAlt(java.lang.String alt) { - return (SetNodeTemplate) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetNodeTemplate setCallback(java.lang.String callback) { - return (SetNodeTemplate) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetNodeTemplate setFields(java.lang.String fields) { - return (SetNodeTemplate) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetNodeTemplate setKey(java.lang.String key) { - return (SetNodeTemplate) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { - return (SetNodeTemplate) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetNodeTemplate) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetNodeTemplate setUploadType(java.lang.String uploadType) { - return (SetNodeTemplate) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetNodeTemplate setUserIp(java.lang.String userIp) { - return (SetNodeTemplate) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117061,7 +117492,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNodeTemplate setProject(java.lang.String project) { + 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 " + @@ -117082,7 +117513,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetNodeTemplate setZone(java.lang.String zone) { + 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 " + @@ -117092,24 +117523,19 @@ public SetNodeTemplate setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource to update. */ + /** Initial count of nodes in the node group. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.Integer initialNodeCount; - /** Name of the NodeGroup resource to update. + /** Initial count of nodes in the node group. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.Integer getInitialNodeCount() { + return initialNodeCount; } - /** 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; + /** Initial count of nodes in the node group. */ + public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { + this.initialNodeCount = initialNodeCount; return this; } @@ -117157,41 +117583,38 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNodeTemplate set(String parameterName, Object value) { - return (SetNodeTemplate) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Simulates maintenance event on specified nodes from the node group. + * 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.simulateMaintenanceEvent". + * 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 SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. + * 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. - * @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); + 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 SimulateMaintenanceEvent extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117199,29 +117622,23 @@ public class SimulateMaintenanceEvent extends ComputeRequest {@link SimulateMaintenanceEvent#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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. - * @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); + 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(), @@ -117234,72 +117651,76 @@ protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zo "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}"); - } } @Override - public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { - return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { - return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SimulateMaintenanceEvent setAlt(java.lang.String alt) { - return (SimulateMaintenanceEvent) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SimulateMaintenanceEvent setCallback(java.lang.String callback) { - return (SimulateMaintenanceEvent) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SimulateMaintenanceEvent setFields(java.lang.String fields) { - return (SimulateMaintenanceEvent) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SimulateMaintenanceEvent setKey(java.lang.String key) { - return (SimulateMaintenanceEvent) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { - return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { - return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { - return (SimulateMaintenanceEvent) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { - return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { - return (SimulateMaintenanceEvent) super.setUserIp(userIp); + 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. */ @@ -117313,7 +117734,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SimulateMaintenanceEvent setProject(java.lang.String project) { + 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 " + @@ -117334,7 +117755,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SimulateMaintenanceEvent setZone(java.lang.String zone) { + 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 " + @@ -117345,107 +117766,296 @@ public SimulateMaintenanceEvent setZone(java.lang.String zone) { } /** - * 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SimulateMaintenanceEvent set(String parameterName, Object value) { - return (SimulateMaintenanceEvent) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Lists nodes in the node group. * - * Create a request for the method "nodeGroups.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class ListNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117453,28 +118063,27 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @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); + 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(), @@ -117487,72 +118096,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ListNodes set$Xgafv(java.lang.String $Xgafv) { + return (ListNodes) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ListNodes setAccessToken(java.lang.String accessToken) { + return (ListNodes) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ListNodes setAlt(java.lang.String alt) { + return (ListNodes) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ListNodes setCallback(java.lang.String callback) { + return (ListNodes) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ListNodes setFields(java.lang.String fields) { + return (ListNodes) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ListNodes setKey(java.lang.String key) { + return (ListNodes) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ListNodes setOauthToken(java.lang.String oauthToken) { + return (ListNodes) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNodes) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ListNodes setQuotaUser(java.lang.String quotaUser) { + return (ListNodes) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ListNodes setUploadType(java.lang.String uploadType) { + return (ListNodes) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNodes) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ListNodes setUserIp(java.lang.String userIp) { + return (ListNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117566,7 +118175,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -117587,7 +118196,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + 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 " + @@ -117597,197 +118206,24 @@ public TestIamPermissions setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the NodeGroup resource whose nodes you want to list. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the NodeGroup resource whose nodes you want to list. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + this.nodeGroup = nodeGroup; return this; } @@ -117922,45 +118358,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListNodes 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 @@ -117985,7 +118387,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListNodes setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -118029,7 +118431,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListNodes setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -118052,7 +118454,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListNodes setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -118084,166 +118486,145 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public ListNodes set(String parameterName, Object value) { + return (ListNodes) super.set(parameterName, value); } } /** - * Deletes the specified NodeTemplate resource. + * Updates the specified node group. * - * Create a request for the method "nodeTemplates.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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_TEMPLATE_PATTERN = + 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 NodeTemplate resource. + * Updates the specified node group. * - * Create a request for the method "nodeTemplates.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 name of the region for this request. - * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118257,7 +118638,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -118267,45 +118648,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Patch setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the NodeTemplate resource to delete. */ + /** Name of the NodeGroup resource to update. */ @com.google.api.client.util.Key - private java.lang.String nodeTemplate; + private java.lang.String nodeGroup; - /** Name of the NodeTemplate resource to delete. + /** Name of the NodeGroup resource to update. */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name of the NodeTemplate resource to delete. */ - public Delete setNodeTemplate(java.lang.String nodeTemplate) { + /** Name of the NodeGroup resource to update. */ + public Patch setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + 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.nodeTemplate = nodeTemplate; + this.nodeGroup = nodeGroup; return this; } @@ -118353,153 +118734,146 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified node template. + * Perform maintenance on a subset of nodes in the node group. * - * Create a request for the method "nodeTemplates.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#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. + * @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 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); + 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 Get extends ComputeRequest { + public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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_TEMPLATE_PATTERN = + 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 node template. + * Perform maintenance on a subset of nodes in the node group. * - * Create a request for the method "nodeTemplates.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118513,7 +118887,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -118523,114 +118897,164 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public PerformMaintenance setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the node template to return. */ + /** Name of the node group scoping this request. */ @com.google.api.client.util.Key - private java.lang.String nodeTemplate; + private java.lang.String nodeGroup; - /** Name of the node template to return. + /** Name of the node group scoping this request. */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name of the node template to return. */ - public Get setNodeTemplate(java.lang.String nodeTemplate) { + /** 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_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + 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.nodeTemplate = nodeTemplate; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeTemplates.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeTemplates.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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."); @@ -118642,73 +119066,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @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); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118722,7 +119136,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -118732,24 +119146,24 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -118764,7 +119178,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -118774,73 +119188,62 @@ public GetIamPolicy setResource(java.lang.String 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); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a NodeTemplate resource in the specified project using the data included in the request. + * Updates the node template of the node group. * - * Create a request for the method "nodeTemplates.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetNodeTemplate#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class SetNodeTemplate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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}"); + /** - * Creates a NodeTemplate resource in the specified project using the data included in the - * request. + * Updates the node template of the node group. * - * Create a request for the method "nodeTemplates.insert". + * 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 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.

    + * 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 region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) { + 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()) { @@ -118848,72 +119251,78 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetNodeTemplate) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetNodeTemplate setAccessToken(java.lang.String accessToken) { + return (SetNodeTemplate) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetNodeTemplate setAlt(java.lang.String alt) { + return (SetNodeTemplate) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetNodeTemplate setCallback(java.lang.String callback) { + return (SetNodeTemplate) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetNodeTemplate setFields(java.lang.String fields) { + return (SetNodeTemplate) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetNodeTemplate setKey(java.lang.String key) { + return (SetNodeTemplate) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { + return (SetNodeTemplate) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetNodeTemplate) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetNodeTemplate setUploadType(java.lang.String uploadType) { + return (SetNodeTemplate) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetNodeTemplate setUserIp(java.lang.String userIp) { + return (SetNodeTemplate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118927,7 +119336,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -118937,24 +119346,45 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetNodeTemplate setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + 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; } @@ -119002,142 +119432,149 @@ public java.lang.String getRequestId() { * 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) { + public SetNodeTemplate setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetNodeTemplate set(String parameterName, Object value) { + return (SetNodeTemplate) super.set(parameterName, value); } } /** - * Retrieves a list of node templates available to the specified project. + * Simulates maintenance event on specified nodes from the node group. * - * Create a request for the method "nodeTemplates.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link SimulateMaintenanceEvent#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 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class SimulateMaintenanceEvent extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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}"); + /** - * Retrieves a list of node templates available to the specified project. + * Simulates maintenance event on specified nodes from the node group. * - * Create a request for the method "nodeTemplates.list". + * 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 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.

    + * 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 region The name of the region 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateList.class); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { + return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { + return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SimulateMaintenanceEvent setAlt(java.lang.String alt) { + return (SimulateMaintenanceEvent) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SimulateMaintenanceEvent setCallback(java.lang.String callback) { + return (SimulateMaintenanceEvent) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SimulateMaintenanceEvent setFields(java.lang.String fields) { + return (SimulateMaintenanceEvent) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SimulateMaintenanceEvent setKey(java.lang.String key) { + return (SimulateMaintenanceEvent) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { + return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { + return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { + return (SimulateMaintenanceEvent) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { + return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { + return (SimulateMaintenanceEvent) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -119151,7 +119588,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -119161,524 +119598,134 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SimulateMaintenanceEvent setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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; + this.zone = zone; return this; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String nodeGroup; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getNodeGroup() { + return nodeGroup; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public java.lang.String getRequestId() { + return requestId; } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * 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.

    + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @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}"); - } - } - - @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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; + public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + 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 "nodeTemplates.testIamPermissions". + * 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 region The name of the region 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 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); + 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}/regions/{region}/nodeTemplates/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 = @@ -119687,7 +119734,7 @@ public class TestIamPermissions extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region 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 region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -119709,10 +119756,10 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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."); @@ -119804,24 +119851,24 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -119855,32 +119902,32 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the NodeTypes collection. + * An accessor for creating requests from the NodeTemplates collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
    +   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
        * 
    * * @return the resource collection */ - public NodeTypes nodeTypes() { - return new NodeTypes(); + public NodeTemplates nodeTemplates() { + return new NodeTemplates(); } /** - * The "nodeTypes" collection of methods. + * The "nodeTemplates" collection of methods. */ - public class NodeTypes { + public class NodeTemplates { /** - * Retrieves an aggregated list of node types. + * 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 "nodeTypes.aggregatedList". + * 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. @@ -119894,20 +119941,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; + private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "nodeTypes.aggregatedList". + * 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. @@ -119919,7 +119966,7 @@ public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_TYPE_PATTERN = + 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 type. + * Deletes the specified NodeTemplate resource. * - * Create a request for the method "nodeTypes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 nodeType Name of the node type to return. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -120495,7 +120532,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -120505,45 +120542,301 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the node type to return. */ + /** Name of the NodeTemplate resource to delete. */ @com.google.api.client.util.Key - private java.lang.String nodeType; + private java.lang.String nodeTemplate; - /** Name of the node type to return. + /** Name of the NodeTemplate resource to delete. */ - public java.lang.String getNodeType() { - return nodeType; + public java.lang.String getNodeTemplate() { + return nodeTemplate; } - /** Name of the node type to return. */ - public Get setNodeType(java.lang.String nodeType) { + /** Name of the NodeTemplate resource to delete. */ + public Delete setNodeTemplate(java.lang.String nodeTemplate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + + 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.nodeType = nodeType; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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; } @@ -120553,37 +120846,479 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of node types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "nodeTypes.list". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 zone The name of the zone 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 zone) throws java.io.IOException { - List result = new List(project, zone); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + 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 types available to the specified project. + * Retrieves a list of node templates available to the specified project. * - * Create a request for the method "nodeTypes.list". + * 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 @@ -120591,21 +121326,21 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone 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 zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeList.class); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -120701,24 +121436,24 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } @@ -120991,389 +121726,10691 @@ 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "organizationSecurityPolicies.addAssociation". + * 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 AddAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @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 AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(securityPolicy, content); + 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 AddAssociation extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); /** - * 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "organizationSecurityPolicies.addAssociation". + * 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 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.

    + * 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @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 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."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + this.project = project; 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. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; + private java.lang.String region; - /** 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. + /** The name of the region for this request. */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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) { + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the 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 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}"); + } + } + + @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 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}"); + } + } + + @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 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}"); + } + } + + @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 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}"); + } + } + + @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 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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"; + + /** + * 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); + } + + @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"; + + /** + * 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); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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"; + + /** + * 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); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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"; + + /** + * 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); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 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}"); + } + } + + @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 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}"); + } + } + + @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; + } + + /** 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. + * + * 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 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}"); + } + } + + @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; + } + + /** 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; + } + + @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 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}"); + } + } + + @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 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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public GetXpnResources setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListXpnHosts setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public MoveInstance set(String parameterName, Object value) { + return (MoveInstance) super.set(parameterName, value); } } /** - * Inserts a rule into a security policy. + * 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. * - * 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 "projects.setCloudArmorTier". * - * 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 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link SetCommonInstanceMetadata#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} + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} * @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); + 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 AddRule extends ComputeRequest { + public class SetCommonInstanceMetadata extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/setCommonInstanceMetadata"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 a rule into a security policy. + * Sets metadata common to all instances within the specified project using 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.addRule instead. + * Create a request for the method "projects.setCommonInstanceMetadata". * - * 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 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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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.

    + * 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} * @since 1.13 */ - protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { + return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { + return (SetDefaultNetworkTier) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public SetDefaultNetworkTier setAlt(java.lang.String alt) { + return (SetDefaultNetworkTier) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public SetDefaultNetworkTier setCallback(java.lang.String callback) { + return (SetDefaultNetworkTier) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public SetDefaultNetworkTier setFields(java.lang.String fields) { + return (SetDefaultNetworkTier) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public SetDefaultNetworkTier setKey(java.lang.String key) { + return (SetDefaultNetworkTier) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { + return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { + return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { + return (SetDefaultNetworkTier) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { + return (SetDefaultNetworkTier) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public SetDefaultNetworkTier setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + this.project = project; return this; } @@ -121421,150 +132458,562 @@ public java.lang.String getRequestId() { * 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) { + 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); + } + } + /** + * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the + * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to + * Managed Protection Plus for more information. + * + * Create a request for the method "projects.setManagedProtectionTier". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @return the request + */ + public SetManagedProtectionTier setManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) throws java.io.IOException { + SetManagedProtectionTier result = new SetManagedProtectionTier(project, content); + initialize(result); + return result; + } + + public class SetManagedProtectionTier extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/setManagedProtectionTier"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 Managed Protection (CAMP) tier of the project. To set PLUS or above the + * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing + * to Managed Protection Plus for more information. + * + * Create a request for the method "projects.setManagedProtectionTier". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote + * operation.

    {@link SetManagedProtectionTier#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 content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @since 1.13 + */ + protected SetManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public SetManagedProtectionTier set$Xgafv(java.lang.String $Xgafv) { + return (SetManagedProtectionTier) super.set$Xgafv($Xgafv); + } + + @Override + public SetManagedProtectionTier setAccessToken(java.lang.String accessToken) { + return (SetManagedProtectionTier) super.setAccessToken(accessToken); + } + + @Override + public SetManagedProtectionTier setAlt(java.lang.String alt) { + return (SetManagedProtectionTier) super.setAlt(alt); + } + + @Override + public SetManagedProtectionTier setCallback(java.lang.String callback) { + return (SetManagedProtectionTier) super.setCallback(callback); + } + + @Override + public SetManagedProtectionTier setFields(java.lang.String fields) { + return (SetManagedProtectionTier) super.setFields(fields); + } + + @Override + public SetManagedProtectionTier setKey(java.lang.String key) { + return (SetManagedProtectionTier) super.setKey(key); + } + + @Override + public SetManagedProtectionTier setOauthToken(java.lang.String oauthToken) { + return (SetManagedProtectionTier) super.setOauthToken(oauthToken); + } + + @Override + public SetManagedProtectionTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetManagedProtectionTier) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetManagedProtectionTier setQuotaUser(java.lang.String quotaUser) { + return (SetManagedProtectionTier) super.setQuotaUser(quotaUser); + } + + @Override + public SetManagedProtectionTier setUploadType(java.lang.String uploadType) { + return (SetManagedProtectionTier) super.setUploadType(uploadType); + } + + @Override + public SetManagedProtectionTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetManagedProtectionTier) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetManagedProtectionTier setUserIp(java.lang.String userIp) { + return (SetManagedProtectionTier) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetManagedProtectionTier setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 SetManagedProtectionTier setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetManagedProtectionTier set(String parameterName, Object value) { + return (SetManagedProtectionTier) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } + @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 { + /** - * 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. + * Announces the specified PublicAdvertisedPrefix * - * Create a request for the method "organizationSecurityPolicies.copyRules". + * 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 CopyRules#execute()} method to invoke the remote operation. + * parameters, call the {@link Announce#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @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 CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { - CopyRules result = new CopyRules(securityPolicy); + 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 CopyRules extends ComputeRequest { + public class Announce extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * 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. + * Announces the specified PublicAdvertisedPrefix * - * Create a request for the method "organizationSecurityPolicies.copyRules". + * 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 CopyRules#execute()} method to invoke the remote operation.

    + * parameters, call the {@link Announce#execute()} method to invoke the remote operation.

    * {@link - * CopyRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * Announce#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 project Project ID for this request. + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. * @since 1.13 */ - protected CopyRules(java.lang.String securityPolicy) { + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); } @Override - public CopyRules set$Xgafv(java.lang.String $Xgafv) { - return (CopyRules) super.set$Xgafv($Xgafv); + public Announce set$Xgafv(java.lang.String $Xgafv) { + return (Announce) super.set$Xgafv($Xgafv); } @Override - public CopyRules setAccessToken(java.lang.String accessToken) { - return (CopyRules) super.setAccessToken(accessToken); + public Announce setAccessToken(java.lang.String accessToken) { + return (Announce) super.setAccessToken(accessToken); } @Override - public CopyRules setAlt(java.lang.String alt) { - return (CopyRules) super.setAlt(alt); + public Announce setAlt(java.lang.String alt) { + return (Announce) super.setAlt(alt); } @Override - public CopyRules setCallback(java.lang.String callback) { - return (CopyRules) super.setCallback(callback); + public Announce setCallback(java.lang.String callback) { + return (Announce) super.setCallback(callback); } @Override - public CopyRules setFields(java.lang.String fields) { - return (CopyRules) super.setFields(fields); + public Announce setFields(java.lang.String fields) { + return (Announce) super.setFields(fields); } @Override - public CopyRules setKey(java.lang.String key) { - return (CopyRules) super.setKey(key); + public Announce setKey(java.lang.String key) { + return (Announce) super.setKey(key); } @Override - public CopyRules setOauthToken(java.lang.String oauthToken) { - return (CopyRules) super.setOauthToken(oauthToken); + public Announce setOauthToken(java.lang.String oauthToken) { + return (Announce) super.setOauthToken(oauthToken); } @Override - public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CopyRules) super.setPrettyPrint(prettyPrint); + public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Announce) super.setPrettyPrint(prettyPrint); } @Override - public CopyRules setQuotaUser(java.lang.String quotaUser) { - return (CopyRules) super.setQuotaUser(quotaUser); + public Announce setQuotaUser(java.lang.String quotaUser) { + return (Announce) super.setQuotaUser(quotaUser); } @Override - public CopyRules setUploadType(java.lang.String uploadType) { - return (CopyRules) super.setUploadType(uploadType); + public Announce setUploadType(java.lang.String uploadType) { + return (Announce) super.setUploadType(uploadType); } @Override - public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CopyRules) super.setUploadProtocol(uploadProtocol); + public Announce setUploadProtocol(java.lang.String uploadProtocol) { + return (Announce) super.setUploadProtocol(uploadProtocol); } @Override - public CopyRules setUserIp(java.lang.String userIp) { - return (CopyRules) super.setUserIp(userIp); + public Announce setUserIp(java.lang.String userIp) { + return (Announce) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Announce setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + 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; } @@ -121612,84 +133061,71 @@ public java.lang.String getRequestId() { * 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) { + public Announce 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); + public Announce set(String parameterName, Object value) { + return (Announce) 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. + * Deletes the specified PublicAdvertisedPrefix * - * Create a request for the method "organizationSecurityPolicies.delete". + * 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 securityPolicy Name of the security policy to delete. + * @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 securityPolicy) throws java.io.IOException { - Delete result = new Delete(securityPolicy); + 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 = "locations/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 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. + * Deletes the specified PublicAdvertisedPrefix * - * Create a request for the method "organizationSecurityPolicies.delete". + * 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 securityPolicy Name of the security policy to delete. + * @param project Project ID for this request. + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. * @since 1.13 */ - protected Delete(java.lang.String securityPolicy) { + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); } } @@ -121753,24 +133189,45 @@ public Delete setUserIp(java.lang.String userIp) { return (Delete) super.setUserIp(userIp); } - /** Name of the security policy to delete. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to delete. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + 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; } @@ -121829,57 +133286,60 @@ public Delete set(String parameterName, Object 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. + * Returns the specified PublicAdvertisedPrefix resource. * - * Create a request for the method "organizationSecurityPolicies.get". + * 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 securityPolicy Name of the security policy to get. + * @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 securityPolicy) throws java.io.IOException { - Get result = new Get(securityPolicy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); /** - * 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. + * Returns the specified PublicAdvertisedPrefix resource. * - * Create a request for the method "organizationSecurityPolicies.get". + * 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 securityPolicy Name of the security policy to get. + * @param project Project ID for this request. + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. * @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."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); } } @@ -121953,412 +133413,102 @@ 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 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to which the queried rule belongs. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to which the queried rule belongs. */ - public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = 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; + this.project = project; 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 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ + /** Name of the PublicAdvertisedPrefix resource to return. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String publicAdvertisedPrefix; - /** Name of the security policy to which the queried rule belongs. + /** Name of the PublicAdvertisedPrefix resource to return. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; } - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the PublicAdvertisedPrefix resource to return. */ + public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { 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}"); + 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.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; + this.publicAdvertisedPrefix = publicAdvertisedPrefix; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "organizationSecurityPolicies.insert". + * 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 content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} * @return the request */ - public Insert insert(com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(content); + 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 = "locations/global/securityPolicies"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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. + * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "organizationSecurityPolicies.insert". + * 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 content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} * @since 1.13 */ - protected Insert(com.google.api.services.compute.model.SecurityPolicy content) { + 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])?))"); + } } @Override @@ -122421,26 +133571,24 @@ 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. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.String project; - /** 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. + /** Project ID for this request. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.String getProject() { + return project; } - /** - * 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; + /** 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; } @@ -122499,47 +133647,50 @@ public Insert set(String parameterName, Object 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. + * Lists the PublicAdvertisedPrefixes for a project. * - * Create a request for the method "organizationSecurityPolicies.list". + * 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() throws java.io.IOException { - List result = new List(); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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. + * Lists the PublicAdvertisedPrefixes for a project. * - * Create a request for the method "organizationSecurityPolicies.list". + * 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() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); + 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])?))"); + } } @Override @@ -122612,6 +133763,27 @@ 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 @@ -122844,235 +134016,538 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** Parent ID for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.Boolean returnPartialSuccess; - /** Parent ID for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * 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}"); + } + } + + @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, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * Withdraws the specified PublicAdvertisedPrefix * - * Create a request for the method "organizationSecurityPolicies.listAssociations". + * 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 ListAssociations#execute()} method to invoke the remote operation. + * 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 ListAssociations listAssociations() throws java.io.IOException { - ListAssociations result = new ListAssociations(); + 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 ListAssociations extends ComputeRequest { + public class Withdraw extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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. + * Withdraws the specified PublicAdvertisedPrefix * - * Create a request for the method "organizationSecurityPolicies.listAssociations". + * 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 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.

    + * 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 ListAssociations() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); + 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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Withdraw set$Xgafv(java.lang.String $Xgafv) { + return (Withdraw) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Withdraw setAccessToken(java.lang.String accessToken) { + return (Withdraw) super.setAccessToken(accessToken); } @Override - public ListAssociations set$Xgafv(java.lang.String $Xgafv) { - return (ListAssociations) super.set$Xgafv($Xgafv); + public Withdraw setAlt(java.lang.String alt) { + return (Withdraw) super.setAlt(alt); } @Override - public ListAssociations setAccessToken(java.lang.String accessToken) { - return (ListAssociations) super.setAccessToken(accessToken); + public Withdraw setCallback(java.lang.String callback) { + return (Withdraw) super.setCallback(callback); } @Override - public ListAssociations setAlt(java.lang.String alt) { - return (ListAssociations) super.setAlt(alt); + public Withdraw setFields(java.lang.String fields) { + return (Withdraw) super.setFields(fields); } @Override - public ListAssociations setCallback(java.lang.String callback) { - return (ListAssociations) super.setCallback(callback); + public Withdraw setKey(java.lang.String key) { + return (Withdraw) super.setKey(key); } @Override - public ListAssociations setFields(java.lang.String fields) { - return (ListAssociations) super.setFields(fields); + public Withdraw setOauthToken(java.lang.String oauthToken) { + return (Withdraw) super.setOauthToken(oauthToken); } @Override - public ListAssociations setKey(java.lang.String key) { - return (ListAssociations) super.setKey(key); + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); } @Override - public ListAssociations setOauthToken(java.lang.String oauthToken) { - return (ListAssociations) super.setOauthToken(oauthToken); + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); } @Override - public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAssociations) super.setPrettyPrint(prettyPrint); + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); } @Override - public ListAssociations setQuotaUser(java.lang.String quotaUser) { - return (ListAssociations) super.setQuotaUser(quotaUser); + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); } @Override - public ListAssociations setUploadType(java.lang.String uploadType) { - return (ListAssociations) super.setUploadType(uploadType); + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) super.setUserIp(userIp); } - @Override - public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAssociations) super.setUploadProtocol(uploadProtocol); + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; } - @Override - public ListAssociations setUserIp(java.lang.String userIp) { - return (ListAssociations) super.setUserIp(userIp); + /** 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; } /** - * The target resource to list associations. It is an organization, or a folder. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String targetResource; + private java.lang.String requestId; - /** The target resource to list associations. It is an organization, or a folder. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getTargetResource() { - return targetResource; + public java.lang.String getRequestId() { + return requestId; } /** - * The target resource to list associations. It is an organization, or a folder. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListAssociations setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; + public Withdraw setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListAssociations set(String parameterName, Object value) { - return (ListAssociations) super.set(parameterName, value); + 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 { + /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * 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 ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation. + * 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 ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { - ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListPreconfiguredExpressionSets extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; + private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * 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 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.

    + * 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 ListPreconfiguredExpressionSets() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); + 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])?))"); + } } @Override @@ -123086,63 +134561,84 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { - return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { - return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { - return (ListPreconfiguredExpressionSets) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { - return (ListPreconfiguredExpressionSets) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { - return (ListPreconfiguredExpressionSets) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListPreconfiguredExpressionSets setKey(java.lang.String key) { - return (ListPreconfiguredExpressionSets) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { - return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { - return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { - return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { - return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); + 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; } /** @@ -123276,11 +134772,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { + 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 @@ -123305,7 +134835,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -123349,7 +134879,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -123372,27 +134902,11 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList 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; - } - /** * Opt-in for partial success behavior which provides partial results in case of failure. The * default value is false. @@ -123420,357 +134934,211 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Announces the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "organizationSecurityPolicies.move". + * 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 Move#execute()} method to invoke the remote operation. + * parameters, call the {@link Announce#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @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 Move move(java.lang.String securityPolicy) throws java.io.IOException { - Move result = new Move(securityPolicy); + 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 Move extends ComputeRequest { + public class Announce extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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. + * Announces the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "organizationSecurityPolicies.move". + * 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 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.

    + * 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 securityPolicy Name of the security policy to update. + * @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 Move(java.lang.String securityPolicy) { + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); + public Announce set$Xgafv(java.lang.String $Xgafv) { + return (Announce) super.set$Xgafv($Xgafv); } @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); + public Announce setAccessToken(java.lang.String accessToken) { + return (Announce) super.setAccessToken(accessToken); } @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); + public Announce setAlt(java.lang.String alt) { + return (Announce) super.setAlt(alt); } @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); + public Announce setCallback(java.lang.String callback) { + return (Announce) super.setCallback(callback); } @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); + public Announce setFields(java.lang.String fields) { + return (Announce) super.setFields(fields); } @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); + public Announce setKey(java.lang.String key) { + return (Announce) super.setKey(key); } @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); + public Announce setOauthToken(java.lang.String oauthToken) { + return (Announce) super.setOauthToken(oauthToken); } @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); + public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Announce) super.setPrettyPrint(prettyPrint); } @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); + public Announce setQuotaUser(java.lang.String quotaUser) { + return (Announce) super.setQuotaUser(quotaUser); } @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + public Announce setUploadType(java.lang.String uploadType) { + return (Announce) super.setUploadType(uploadType); } @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + public Announce setUploadProtocol(java.lang.String uploadProtocol) { + return (Announce) super.setUploadProtocol(uploadProtocol); } @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); + public Announce setUserIp(java.lang.String userIp) { + return (Announce) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public Move setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Announce setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = 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; + 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). + * 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 requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String region; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getRegion() { + return region; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. */ - public Move setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public Announce setRegion(java.lang.String region) { + this.region = region; 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 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}"); - } - } - - @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. */ + /** The name of the public delegated prefix. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String publicDelegatedPrefix; - /** Name of the security policy to update. + /** The name of the public delegated prefix. It should comply with RFC1035. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** 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; + /** The name of the public delegated prefix. It should comply with RFC1035. */ + public Announce setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -123818,184 +135186,205 @@ public java.lang.String getRequestId() { * 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) { + public Announce 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); + public Announce set(String parameterName, Object value) { + return (Announce) 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. + * Deletes the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "organizationSecurityPolicies.patchRule". + * 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 PatchRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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} + * @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 PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(securityPolicy, content); + 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 PatchRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 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. + * Deletes the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "organizationSecurityPolicies.patchRule". + * 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 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.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @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 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."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + this.project = project; return this; } - /** The priority of the rule to patch. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String region; - /** The priority of the rule to patch. + /** Name of the region of this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRegion() { + return region; } - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** 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; } @@ -124040,392 +135429,387 @@ public java.lang.String getRequestId() { * original operation with the same request ID was received, and if so, will ignore the second * request. This prevents clients from accidentally creating duplicate 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; - } - - /** 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public String getUpdateMask() { - return updateMask; - } - - /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns the specified PublicDelegatedPrefix resource in the given region. * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * 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 RemoveAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @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 RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(securityPolicy); + 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 RemoveAssociation extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); /** - * 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. + * Returns the specified PublicDelegatedPrefix resource in the given region. * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. + * @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 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."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ + @Override + public 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 securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + this.project = project; return this; } - /** Name for the attachment that will be removed. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String region; - /** Name for the attachment that will be removed. + /** Name of the region of this request. */ - public java.lang.String getName() { - return name; + public java.lang.String getRegion() { + return region; } - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the PublicDelegatedPrefix resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String publicDelegatedPrefix; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the PublicDelegatedPrefix resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * 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 "organizationSecurityPolicies.removeRule". + * 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 RemoveRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @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 RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(securityPolicy); + 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 RemoveRule extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * 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 "organizationSecurityPolicies.removeRule". + * 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 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.

    + * 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 securityPolicy Name of the security policy to update. + * @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 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."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String project; - /** Name of the security policy to update. + /** Project ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = securityPolicy; + this.project = project; return this; } - /** The priority of the rule to remove from the security policy. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String region; - /** The priority of the rule to remove from the security policy. + /** Name of the region of this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRegion() { + return region; } - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** 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; } @@ -124473,91 +135857,72 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * Lists the PublicDelegatedPrefixes for a project in the given region. * - * Create a request for the method "packetMirrorings.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 an aggregated list of packetMirrorings. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists the PublicDelegatedPrefixes for a project in the given region. * - * Create a request for the method "packetMirrorings.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroringAggregatedList.class); + 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])?"); + } } @Override @@ -124571,63 +135936,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -124641,7 +136006,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -124651,6 +136016,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -124782,223 +136168,668 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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); + } - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if 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; + @Override + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + @Override + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) super.setUserIp(userIp); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * 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 pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Withdraw setRegion(java.lang.String region) { + this.region = region; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The name of the public delegated prefix. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String publicDelegatedPrefix; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The name of the public delegated prefix. It should comply with RFC1035. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** The name of the public delegated prefix. It should comply with RFC1035. */ + public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String requestId; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getRequestId() { + return requestId; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public Withdraw setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + 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 PacketMirroring resource. + * Deletes the specified autoscaler. * - * Create a request for the method "packetMirrorings.delete". + * 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 for this request. - * @param packetMirroring Name of the PacketMirroring resource to delete. + * @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 packetMirroring) throws java.io.IOException { - Delete result = new Delete(project, region, packetMirroring); + 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}/packetMirrorings/{packetMirroring}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -125006,13 +136837,13 @@ public class Delete extends ComputeRequest {@link @@ -125020,11 +136851,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 packetMirroring) { + 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()) { @@ -125038,10 +136869,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + 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}"); } } @@ -125127,17 +136958,17 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -125148,24 +136979,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the PacketMirroring resource to delete. */ + /** Name of the autoscaler to delete. */ @com.google.api.client.util.Key - private java.lang.String packetMirroring; + private java.lang.String autoscaler; - /** Name of the PacketMirroring resource to delete. + /** Name of the autoscaler to delete. */ - public java.lang.String getPacketMirroring() { - return packetMirroring; + public java.lang.String getAutoscaler() { + return autoscaler; } - /** Name of the PacketMirroring resource to delete. */ - public Delete setPacketMirroring(java.lang.String packetMirroring) { + /** Name of the autoscaler to delete. */ + public Delete setAutoscaler(java.lang.String autoscaler) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + 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.packetMirroring = packetMirroring; + this.autoscaler = autoscaler; return this; } @@ -125224,27 +137055,27 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified PacketMirroring resource. + * Returns the specified autoscaler. * - * Create a request for the method "packetMirrorings.get". + * 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 for this request. - * @param packetMirroring Name of the PacketMirroring resource to return. + * @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 packetMirroring) throws java.io.IOException { - Get result = new Get(project, region, packetMirroring); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -125252,13 +137083,13 @@ public class Get extends ComputeRequest {@link @@ -125266,12 +137097,12 @@ public class Get extends ComputeRequest * * @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. + * @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 packetMirroring) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PacketMirroring.class); + 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(), @@ -125284,10 +137115,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + 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}"); } } @@ -125383,17 +137214,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -125404,24 +137235,24 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the PacketMirroring resource to return. */ + /** Name of the autoscaler to return. */ @com.google.api.client.util.Key - private java.lang.String packetMirroring; + private java.lang.String autoscaler; - /** Name of the PacketMirroring resource to return. + /** Name of the autoscaler to return. */ - public java.lang.String getPacketMirroring() { - return packetMirroring; + public java.lang.String getAutoscaler() { + return autoscaler; } - /** Name of the PacketMirroring resource to return. */ - public Get setPacketMirroring(java.lang.String packetMirroring) { + /** Name of the autoscaler to return. */ + public Get setAutoscaler(java.lang.String autoscaler) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + 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.packetMirroring = packetMirroring; + this.autoscaler = autoscaler; return this; } @@ -125431,20 +137262,19 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a PacketMirroring resource in the specified project and region using the data included in - * the request. + * Creates an autoscaler in the specified project using the data included in the request. * - * Create a request for the method "packetMirrorings.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @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.PacketMirroring content) throws java.io.IOException { + 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; @@ -125452,7 +137282,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -125461,10 +137291,9 @@ public class Insert extends ComputeRequest {@link @@ -125472,11 +137301,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.PacketMirroring content) { + 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()) { @@ -125573,17 +137402,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -125649,15 +137478,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of PacketMirroring resources available to the specified project and region. + * Retrieves a list of autoscalers contained within the specified region. * - * Create a request for the method "packetMirrorings.list". + * 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 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 { @@ -125666,9 +137495,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -125677,9 +137506,9 @@ public class List extends ComputeRequest {@link @@ -125687,11 +137516,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.PacketMirroringList.class); + 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(), @@ -125797,17 +137626,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -126088,29 +137917,28 @@ public List set(String parameterName, Object 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. + * 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 "packetMirrorings.patch". + * 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 for this request. - * @param packetMirroring Name of the PacketMirroring resource to patch. - * @param content the {@link com.google.api.services.compute.model.PacketMirroring} + * @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, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) throws java.io.IOException { - Patch result = new Patch(project, region, packetMirroring, content); + 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}/packetMirrorings/{packetMirroring}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -126118,14 +137946,14 @@ public class Patch extends ComputeRequest {@link @@ -126133,12 +137961,11 @@ public class Patch extends ComputeRequest * * @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} + * @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, java.lang.String packetMirroring, com.google.api.services.compute.model.PacketMirroring content) { + 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()) { @@ -126152,12 +137979,6 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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}"); - } } @Override @@ -126241,17 +138062,17 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -126262,24 +138083,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the PacketMirroring resource to patch. */ + /** Name of the autoscaler to patch. */ @com.google.api.client.util.Key - private java.lang.String packetMirroring; + private java.lang.String autoscaler; - /** Name of the PacketMirroring resource to patch. + /** Name of the autoscaler to patch. */ - public java.lang.String getPacketMirroring() { - return packetMirroring; + public java.lang.String getAutoscaler() { + return autoscaler; } - /** Name of the PacketMirroring resource to patch. */ - public Patch setPacketMirroring(java.lang.String packetMirroring) { + /** Name of the autoscaler to patch. */ + public Patch setAutoscaler(java.lang.String autoscaler) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PACKET_MIRRORING_PATTERN.matcher(packetMirroring).matches(), - "Parameter packetMirroring must conform to the pattern " + + 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.packetMirroring = packetMirroring; + this.autoscaler = autoscaler; return this; } @@ -126340,7 +138161,7 @@ public Patch set(String parameterName, Object value) { /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "packetMirrorings.testIamPermissions". + * 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. @@ -126359,7 +138180,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -126373,7 +138194,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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")` + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the region for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. + * Updates an autoscaler in the specified project using the data included in the request. * - * Create a request for the method "previewFeatures.update". + * 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 previewFeature Name of the PreviewFeature for this request. - * @param content the {@link com.google.api.services.compute.model.PreviewFeature} + * @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 previewFeature, com.google.api.services.compute.model.PreviewFeature content) throws java.io.IOException { - Update result = new Update(project, previewFeature, content); + 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}/global/previewFeatures/{previewFeature}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. + * Updates an autoscaler in the specified project using the data included in the request. * - * Create a request for the method "previewFeatures.update". + * 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 @@ -127182,23 +138401,23 @@ public class Update extends ComputeRequest * * @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} + * @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 previewFeature, com.google.api.services.compute.model.PreviewFeature content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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.previewFeature = com.google.api.client.util.Preconditions.checkNotNull(previewFeature, "Required parameter previewFeature must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -127283,24 +138502,45 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the PreviewFeature for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String previewFeature; + private java.lang.String region; - /** Name of the PreviewFeature for this request. + /** Name of the region scoping this request. */ - public java.lang.String getPreviewFeature() { - return previewFeature; + public java.lang.String getRegion() { + return region; } - /** Name of the PreviewFeature for this request. */ - public Update setPreviewFeature(java.lang.String previewFeature) { + /** Name of the region scoping this request. */ + public Update setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PREVIEW_FEATURE_PATTERN.matcher(previewFeature).matches(), - "Parameter previewFeature must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.previewFeature = previewFeature; + this.autoscaler = autoscaler; return this; } @@ -127362,131 +138602,152 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Projects collection. + * An accessor for creating requests from the RegionBackendBuckets collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.Projects.List request = compute.projects().list(parameters ...)}
    +   *   {@code Compute.RegionBackendBuckets.List request = compute.regionBackendBuckets().list(parameters ...)}
        * 
    * * @return the resource collection */ - public Projects projects() { - return new Projects(); + public RegionBackendBuckets regionBackendBuckets() { + return new RegionBackendBuckets(); } /** - * The "projects" collection of methods. + * The "regionBackendBuckets" collection of methods. */ - public class Projects { + public class RegionBackendBuckets { /** - * Disable this project as a shared VPC host project. + * Deletes the specified regional BackendBucket resource. * - * Create a request for the method "projects.disableXpnHost". + * 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 DisableXpnHost#execute()} method to invoke the remote operation. + * 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 DisableXpnHost disableXpnHost(java.lang.String project) throws java.io.IOException { - DisableXpnHost result = new DisableXpnHost(project); + 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 DisableXpnHost extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/disableXpnHost"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Disable this project as a shared VPC host project. + * Deletes the specified regional BackendBucket resource. * - * Create a request for the method "projects.disableXpnHost". + * 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 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.

    + * 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 DisableXpnHost(java.lang.String project) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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}"); + } } @Override - public DisableXpnHost set$Xgafv(java.lang.String $Xgafv) { - return (DisableXpnHost) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DisableXpnHost setAccessToken(java.lang.String accessToken) { - return (DisableXpnHost) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DisableXpnHost setAlt(java.lang.String alt) { - return (DisableXpnHost) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DisableXpnHost setCallback(java.lang.String callback) { - return (DisableXpnHost) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DisableXpnHost setFields(java.lang.String fields) { - return (DisableXpnHost) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DisableXpnHost setKey(java.lang.String key) { - return (DisableXpnHost) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DisableXpnHost setOauthToken(java.lang.String oauthToken) { - return (DisableXpnHost) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DisableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DisableXpnHost) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DisableXpnHost setQuotaUser(java.lang.String quotaUser) { - return (DisableXpnHost) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DisableXpnHost setUploadType(java.lang.String uploadType) { - return (DisableXpnHost) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DisableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { - return (DisableXpnHost) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DisableXpnHost setUserIp(java.lang.String userIp) { - return (DisableXpnHost) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127500,7 +138761,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DisableXpnHost setProject(java.lang.String project) { + 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 " + @@ -127510,6 +138771,71 @@ public DisableXpnHost setProject(java.lang.String project) { return this; } + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.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; + } + + /** + * Force delete the backend bucket even if it is still in use by other resources. It's + * intended to be used internally only for requests from wipeout. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceDelete; + + /** Force delete the backend bucket even if it is still in use by other resources. It's intended to be + used internally only for requests from wipeout. + */ + public java.lang.Boolean getForceDelete() { + return forceDelete; + } + + /** + * Force delete the backend bucket even if it is still in use by other resources. It's + * intended to be used internally only for requests from wipeout. + */ + public Delete setForceDelete(java.lang.Boolean forceDelete) { + this.forceDelete = forceDelete; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -127521,7 +138847,7 @@ public DisableXpnHost setProject(java.lang.String project) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -127535,7 +138861,7 @@ public DisableXpnHost setProject(java.lang.String project) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -127552,126 +138878,155 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public DisableXpnHost setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DisableXpnHost set(String parameterName, Object value) { - return (DisableXpnHost) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Disable a service resource (also known as service project) associated with this host project. + * Returns the specified regional BackendBucket resource. * - * Create a request for the method "projects.disableXpnResource". + * 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 DisableXpnResource#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. * @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); + 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 DisableXpnResource extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/disableXpnResource"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Disable a service resource (also known as service project) associated with this host project. + * Returns the specified regional BackendBucket resource. * - * Create a request for the method "projects.disableXpnResource". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest} + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. * @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); + 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}"); + } } @Override - public DisableXpnResource set$Xgafv(java.lang.String $Xgafv) { - return (DisableXpnResource) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DisableXpnResource setAccessToken(java.lang.String accessToken) { - return (DisableXpnResource) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DisableXpnResource setAlt(java.lang.String alt) { - return (DisableXpnResource) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public DisableXpnResource setCallback(java.lang.String callback) { - return (DisableXpnResource) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public DisableXpnResource setFields(java.lang.String fields) { - return (DisableXpnResource) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public DisableXpnResource setKey(java.lang.String key) { - return (DisableXpnResource) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public DisableXpnResource setOauthToken(java.lang.String oauthToken) { - return (DisableXpnResource) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public DisableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DisableXpnResource) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public DisableXpnResource setQuotaUser(java.lang.String quotaUser) { - return (DisableXpnResource) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public DisableXpnResource setUploadType(java.lang.String uploadType) { - return (DisableXpnResource) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public DisableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { - return (DisableXpnResource) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public DisableXpnResource setUserIp(java.lang.String userIp) { - return (DisableXpnResource) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -127685,7 +139040,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DisableXpnResource setProject(java.lang.String project) { + 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 " + @@ -127695,166 +139050,192 @@ public DisableXpnResource setProject(java.lang.String 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). - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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 getRequestId() { - return requestId; + public java.lang.String getBackendBucket() { + return backendBucket; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 DisableXpnResource set(String parameterName, Object value) { - return (DisableXpnResource) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Enable this project as a shared VPC host project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "projects.enableXpnHost". + * 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 EnableXpnHost#execute()} method to invoke the remote operation. + * 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 EnableXpnHost enableXpnHost(java.lang.String project) throws java.io.IOException { - EnableXpnHost result = new EnableXpnHost(project); + 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 EnableXpnHost extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/enableXpnHost"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Enable this project as a shared VPC host project. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "projects.enableXpnHost". + * 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 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. - *

    + * 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 EnableXpnHost(java.lang.String project) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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}"); + } } @Override - public EnableXpnHost set$Xgafv(java.lang.String $Xgafv) { - return (EnableXpnHost) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public EnableXpnHost setAccessToken(java.lang.String accessToken) { - return (EnableXpnHost) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public EnableXpnHost setAlt(java.lang.String alt) { - return (EnableXpnHost) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public EnableXpnHost setCallback(java.lang.String callback) { - return (EnableXpnHost) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public EnableXpnHost setFields(java.lang.String fields) { - return (EnableXpnHost) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public EnableXpnHost setKey(java.lang.String key) { - return (EnableXpnHost) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public EnableXpnHost setOauthToken(java.lang.String oauthToken) { - return (EnableXpnHost) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public EnableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableXpnHost) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public EnableXpnHost setQuotaUser(java.lang.String quotaUser) { - return (EnableXpnHost) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public EnableXpnHost setUploadType(java.lang.String uploadType) { - return (EnableXpnHost) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public EnableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableXpnHost) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public EnableXpnHost setUserIp(java.lang.String userIp) { - return (EnableXpnHost) super.setUserIp(userIp); + 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. */ @@ -127868,7 +139249,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public EnableXpnHost setProject(java.lang.String project) { + 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 " + @@ -127878,103 +139259,116 @@ public EnableXpnHost setProject(java.lang.String 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). - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** 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 EnableXpnHost setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 EnableXpnHost set(String parameterName, Object value) { - return (EnableXpnHost) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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. + * 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 "projects.enableXpnResource". + * 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 EnableXpnResource#execute()} method to invoke the remote operation. + * 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.ProjectsEnableXpnResourceRequest} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} * @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); + 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 EnableXpnResource extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/enableXpnResource"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * 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 "projects.enableXpnResource". + * 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 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.

    + * 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.ProjectsEnableXpnResourceRequest} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} * @since 1.13 */ - protected EnableXpnResource(java.lang.String project, com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest content) { + 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()) { @@ -127982,66 +139376,72 @@ protected EnableXpnResource(java.lang.String project, com.google.api.services.co "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public EnableXpnResource set$Xgafv(java.lang.String $Xgafv) { - return (EnableXpnResource) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public EnableXpnResource setAccessToken(java.lang.String accessToken) { - return (EnableXpnResource) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public EnableXpnResource setAlt(java.lang.String alt) { - return (EnableXpnResource) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public EnableXpnResource setCallback(java.lang.String callback) { - return (EnableXpnResource) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public EnableXpnResource setFields(java.lang.String fields) { - return (EnableXpnResource) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public EnableXpnResource setKey(java.lang.String key) { - return (EnableXpnResource) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public EnableXpnResource setOauthToken(java.lang.String oauthToken) { - return (EnableXpnResource) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public EnableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableXpnResource) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public EnableXpnResource setQuotaUser(java.lang.String quotaUser) { - return (EnableXpnResource) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public EnableXpnResource setUploadType(java.lang.String uploadType) { - return (EnableXpnResource) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public EnableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableXpnResource) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public EnableXpnResource setUserIp(java.lang.String userIp) { - return (EnableXpnResource) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128055,7 +139455,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public EnableXpnResource setProject(java.lang.String project) { + 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 " + @@ -128065,6 +139465,27 @@ public EnableXpnResource setProject(java.lang.String 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 @@ -128109,73 +139530,74 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public EnableXpnResource set(String parameterName, Object value) { - return (EnableXpnResource) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. * - * Create a request for the method "projects.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 Get get(java.lang.String project) throws java.io.IOException { - Get result = new Get(project); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. * - * Create a request for the method "projects.get". + * 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 Get#execute()} method to invoke the remote operation.

    {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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 Get(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Project.class); + 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])?"); + } } @Override @@ -128189,63 +139611,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128259,7 +139681,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -128269,201 +139691,355 @@ public Get setProject(java.lang.String 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 { + /** Name of the region of this request. */ + @com.google.api.client.util.Key + private java.lang.String region; - private static final String REST_PATH = "projects/{project}/getXpnHost"; + /** Name of the region of this request. + */ + public java.lang.String getRegion() { + return region; + } - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** 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; + } /** - * Gets the shared VPC host project that this project links to. May be empty if no link exists. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "projects.getXpnHost". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

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

    + * 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 GetXpnResources(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ProjectsGetXpnResources.class); + 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])?"); + } } @Override @@ -128477,63 +140053,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetXpnResources set$Xgafv(java.lang.String $Xgafv) { - return (GetXpnResources) super.set$Xgafv($Xgafv); + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); } @Override - public GetXpnResources setAccessToken(java.lang.String accessToken) { - return (GetXpnResources) super.setAccessToken(accessToken); + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); } @Override - public GetXpnResources setAlt(java.lang.String alt) { - return (GetXpnResources) super.setAlt(alt); + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); } @Override - public GetXpnResources setCallback(java.lang.String callback) { - return (GetXpnResources) super.setCallback(callback); + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); } @Override - public GetXpnResources setFields(java.lang.String fields) { - return (GetXpnResources) super.setFields(fields); + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); } @Override - public GetXpnResources setKey(java.lang.String key) { - return (GetXpnResources) super.setKey(key); + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); } @Override - public GetXpnResources setOauthToken(java.lang.String oauthToken) { - return (GetXpnResources) super.setOauthToken(oauthToken); + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); } @Override - public GetXpnResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetXpnResources) super.setPrettyPrint(prettyPrint); + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); } @Override - public GetXpnResources setQuotaUser(java.lang.String quotaUser) { - return (GetXpnResources) super.setQuotaUser(quotaUser); + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); } @Override - public GetXpnResources setUploadType(java.lang.String uploadType) { - return (GetXpnResources) super.setUploadType(uploadType); + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); } @Override - public GetXpnResources setUploadProtocol(java.lang.String uploadProtocol) { - return (GetXpnResources) super.setUploadProtocol(uploadProtocol); + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); } @Override - public GetXpnResources setUserIp(java.lang.String userIp) { - return (GetXpnResources) super.setUserIp(userIp); + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128547,7 +140123,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetXpnResources setProject(java.lang.String project) { + 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 " + @@ -128557,6 +140133,34 @@ public GetXpnResources setProject(java.lang.String 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 @@ -128688,7 +140292,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public GetXpnResources setFilter(java.lang.String filter) { + public ListUsable setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -128717,7 +140321,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListUsable setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -128761,179 +140365,651 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public GetXpnResources setOrderBy(java.lang.String orderBy) { + 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. - */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the region for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public GetXpnResources setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 GetXpnResources set(String parameterName, Object value) { - return (GetXpnResources) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Lists all shared VPC host projects visible to the user in an organization. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "projects.listXpnHosts". + * 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 ListXpnHosts#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 ListXpnHosts listXpnHosts(java.lang.String project, com.google.api.services.compute.model.ProjectsListXpnHostsRequest content) throws java.io.IOException { - ListXpnHosts result = new ListXpnHosts(project, content); + 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 ListXpnHosts extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/listXpnHosts"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Lists all shared VPC host projects visible to the user in an organization. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "projects.listXpnHosts". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.ProjectsListXpnHostsRequest} + * @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 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); + 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}"); + } } @Override - public ListXpnHosts set$Xgafv(java.lang.String $Xgafv) { - return (ListXpnHosts) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ListXpnHosts setAccessToken(java.lang.String accessToken) { - return (ListXpnHosts) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ListXpnHosts setAlt(java.lang.String alt) { - return (ListXpnHosts) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ListXpnHosts setCallback(java.lang.String callback) { - return (ListXpnHosts) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ListXpnHosts setFields(java.lang.String fields) { - return (ListXpnHosts) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ListXpnHosts setKey(java.lang.String key) { - return (ListXpnHosts) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ListXpnHosts setOauthToken(java.lang.String oauthToken) { - return (ListXpnHosts) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ListXpnHosts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListXpnHosts) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ListXpnHosts setQuotaUser(java.lang.String quotaUser) { - return (ListXpnHosts) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ListXpnHosts setUploadType(java.lang.String uploadType) { - return (ListXpnHosts) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ListXpnHosts setUploadProtocol(java.lang.String uploadProtocol) { - return (ListXpnHosts) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ListXpnHosts setUserIp(java.lang.String userIp) { - return (ListXpnHosts) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128947,7 +141023,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListXpnHosts setProject(java.lang.String project) { + 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 " + @@ -128957,405 +141033,203 @@ public ListXpnHosts setProject(java.lang.String 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`) - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String region; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** The name of the region for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getRegion() { + return region; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String resource; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name or id of the resource for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getResource() { + return resource; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies 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 TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + } - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + /** + * 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(); + } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListXpnHosts setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + /** + * The "regionBackendServices" collection of methods. + */ + public class RegionBackendServices { - @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. + * Deletes the specified regional BackendService resource. * - * Create a request for the method "projects.moveDisk". + * 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 MoveDisk#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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} + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to delete. * @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); + 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 MoveDisk extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/moveDisk"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Deletes the specified regional BackendService resource. * - * Create a request for the method "projects.moveDisk". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.DiskMoveRequest} + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to delete. * @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); + 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}"); + } } @Override - public MoveDisk set$Xgafv(java.lang.String $Xgafv) { - return (MoveDisk) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public MoveDisk setAccessToken(java.lang.String accessToken) { - return (MoveDisk) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public MoveDisk setAlt(java.lang.String alt) { - return (MoveDisk) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public MoveDisk setCallback(java.lang.String callback) { - return (MoveDisk) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public MoveDisk setFields(java.lang.String fields) { - return (MoveDisk) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public MoveDisk setKey(java.lang.String key) { - return (MoveDisk) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public MoveDisk setOauthToken(java.lang.String oauthToken) { - return (MoveDisk) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public MoveDisk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MoveDisk) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public MoveDisk setQuotaUser(java.lang.String quotaUser) { - return (MoveDisk) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public MoveDisk setUploadType(java.lang.String uploadType) { - return (MoveDisk) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public MoveDisk setUploadProtocol(java.lang.String uploadProtocol) { - return (MoveDisk) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public MoveDisk setUserIp(java.lang.String userIp) { - return (MoveDisk) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -129369,7 +141243,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public MoveDisk setProject(java.lang.String project) { + 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 " + @@ -129379,6 +141253,48 @@ public MoveDisk setProject(java.lang.String project) { return this; } + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.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 @@ -129423,134 +141339,153 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public MoveDisk set(String parameterName, Object value) { - return (MoveDisk) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns the specified regional BackendService resource. * - * Create a request for the method "projects.moveInstance". + * 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 MoveInstance#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to return. * @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); + 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 MoveInstance extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/moveInstance"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Returns the specified regional BackendService resource. * - * Create a request for the method "projects.moveInstance". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.InstanceMoveRequest} + * @param region Name of the region scoping this request. + * @param backendService Name of the BackendService resource to return. * @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); + 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}"); + } } @Override - public MoveInstance set$Xgafv(java.lang.String $Xgafv) { - return (MoveInstance) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public MoveInstance setAccessToken(java.lang.String accessToken) { - return (MoveInstance) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public MoveInstance setAlt(java.lang.String alt) { - return (MoveInstance) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public MoveInstance setCallback(java.lang.String callback) { - return (MoveInstance) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public MoveInstance setFields(java.lang.String fields) { - return (MoveInstance) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public MoveInstance setKey(java.lang.String key) { - return (MoveInstance) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public MoveInstance setOauthToken(java.lang.String oauthToken) { - return (MoveInstance) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public MoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MoveInstance) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public MoveInstance setQuotaUser(java.lang.String quotaUser) { - return (MoveInstance) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public MoveInstance setUploadType(java.lang.String uploadType) { - return (MoveInstance) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public MoveInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (MoveInstance) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public MoveInstance setUserIp(java.lang.String userIp) { - return (MoveInstance) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -129564,7 +141499,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public MoveInstance setProject(java.lang.String project) { + 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 " + @@ -129574,186 +141509,196 @@ public MoveInstance setProject(java.lang.String 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). - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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 getRequestId() { - return requestId; + public java.lang.String getBackendService() { + return backendService; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 MoveInstance set(String parameterName, Object value) { - return (MoveInstance) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Gets the most recent health check results for this regional BackendService. * - * Create a request for the method "projects.setCloudArmorTier". + * 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 SetCloudArmorTier#execute()} method to invoke the remote operation. + * parameters, call the {@link GetHealth#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} + * @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 SetCloudArmorTier setCloudArmorTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest content) throws java.io.IOException { - SetCloudArmorTier result = new SetCloudArmorTier(project, content); + 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 SetCloudArmorTier extends ComputeRequest { + public class GetHealth extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setCloudArmorTier"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/getHealth"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Gets the most recent health check results for this regional BackendService. * - * Create a request for the method "projects.setCloudArmorTier". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest} + * @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 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); + 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}"); + } } @Override - public SetCloudArmorTier set$Xgafv(java.lang.String $Xgafv) { - return (SetCloudArmorTier) super.set$Xgafv($Xgafv); + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); } @Override - public SetCloudArmorTier setAccessToken(java.lang.String accessToken) { - return (SetCloudArmorTier) super.setAccessToken(accessToken); + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); } @Override - public SetCloudArmorTier setAlt(java.lang.String alt) { - return (SetCloudArmorTier) super.setAlt(alt); + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); } @Override - public SetCloudArmorTier setCallback(java.lang.String callback) { - return (SetCloudArmorTier) super.setCallback(callback); + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); } @Override - public SetCloudArmorTier setFields(java.lang.String fields) { - return (SetCloudArmorTier) super.setFields(fields); + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); } @Override - public SetCloudArmorTier setKey(java.lang.String key) { - return (SetCloudArmorTier) super.setKey(key); + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); } @Override - public SetCloudArmorTier setOauthToken(java.lang.String oauthToken) { - return (SetCloudArmorTier) super.setOauthToken(oauthToken); + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); } @Override - public SetCloudArmorTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCloudArmorTier) super.setPrettyPrint(prettyPrint); + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); } @Override - public SetCloudArmorTier setQuotaUser(java.lang.String quotaUser) { - return (SetCloudArmorTier) super.setQuotaUser(quotaUser); + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); } @Override - public SetCloudArmorTier setUploadType(java.lang.String uploadType) { - return (SetCloudArmorTier) super.setUploadType(uploadType); + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); } @Override - public SetCloudArmorTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCloudArmorTier) super.setUploadProtocol(uploadProtocol); + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); } @Override - public SetCloudArmorTier setUserIp(java.lang.String userIp) { - return (SetCloudArmorTier) super.setUserIp(userIp); + 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 SetCloudArmorTier setProject(java.lang.String 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 " + @@ -129763,171 +141708,192 @@ public SetCloudArmorTier setProject(java.lang.String 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). - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String region; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the region scoping this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getRegion() { + return region; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** 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 SetCloudArmorTier setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 SetCloudArmorTier set(String parameterName, Object value) { - return (SetCloudArmorTier) super.set(parameterName, value); + public GetHealth set(String parameterName, Object value) { + return (GetHealth) super.set(parameterName, value); } } /** - * Sets metadata common to all instances within the specified project using the data included in the - * request. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "projects.setCommonInstanceMetadata". + * 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 SetCommonInstanceMetadata#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#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} + * @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 SetCommonInstanceMetadata setCommonInstanceMetadata(java.lang.String project, com.google.api.services.compute.model.Metadata content) throws java.io.IOException { - SetCommonInstanceMetadata result = new SetCommonInstanceMetadata(project, content); + 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 SetCommonInstanceMetadata extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setCommonInstanceMetadata"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 metadata common to all instances within the specified project using the data included in - * the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "projects.setCommonInstanceMetadata". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.Metadata} + * @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 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); + 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}"); + } } @Override - public SetCommonInstanceMetadata set$Xgafv(java.lang.String $Xgafv) { - return (SetCommonInstanceMetadata) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetCommonInstanceMetadata setAccessToken(java.lang.String accessToken) { - return (SetCommonInstanceMetadata) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetCommonInstanceMetadata setAlt(java.lang.String alt) { - return (SetCommonInstanceMetadata) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetCommonInstanceMetadata setCallback(java.lang.String callback) { - return (SetCommonInstanceMetadata) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetCommonInstanceMetadata setFields(java.lang.String fields) { - return (SetCommonInstanceMetadata) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetCommonInstanceMetadata setKey(java.lang.String key) { - return (SetCommonInstanceMetadata) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetCommonInstanceMetadata setOauthToken(java.lang.String oauthToken) { - return (SetCommonInstanceMetadata) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetCommonInstanceMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetCommonInstanceMetadata) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetCommonInstanceMetadata setQuotaUser(java.lang.String quotaUser) { - return (SetCommonInstanceMetadata) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetCommonInstanceMetadata setUploadType(java.lang.String uploadType) { - return (SetCommonInstanceMetadata) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetCommonInstanceMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (SetCommonInstanceMetadata) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetCommonInstanceMetadata setUserIp(java.lang.String userIp) { - return (SetCommonInstanceMetadata) super.setUserIp(userIp); + 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. */ @@ -129941,7 +141907,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetCommonInstanceMetadata setProject(java.lang.String project) { + 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 " + @@ -129951,104 +141917,116 @@ public SetCommonInstanceMetadata setProject(java.lang.String 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). - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** 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 SetCommonInstanceMetadata setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 SetCommonInstanceMetadata set(String parameterName, Object value) { - return (SetCommonInstanceMetadata) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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. + * 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 "projects.setDefaultNetworkTier". + * 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 SetDefaultNetworkTier#execute()} method to invoke the remote - * operation. + * 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.ProjectsSetDefaultNetworkTierRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.BackendService} * @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); + 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 SetDefaultNetworkTier extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setDefaultNetworkTier"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * 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 "projects.setDefaultNetworkTier". + * 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 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.

    + * 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.ProjectsSetDefaultNetworkTierRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.BackendService} * @since 1.13 */ - protected SetDefaultNetworkTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest content) { + 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()) { @@ -130056,66 +142034,72 @@ protected SetDefaultNetworkTier(java.lang.String project, com.google.api.service "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { - return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { - return (SetDefaultNetworkTier) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetDefaultNetworkTier setAlt(java.lang.String alt) { - return (SetDefaultNetworkTier) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetDefaultNetworkTier setCallback(java.lang.String callback) { - return (SetDefaultNetworkTier) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetDefaultNetworkTier setFields(java.lang.String fields) { - return (SetDefaultNetworkTier) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetDefaultNetworkTier setKey(java.lang.String key) { - return (SetDefaultNetworkTier) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { - return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { - return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { - return (SetDefaultNetworkTier) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { - return (SetDefaultNetworkTier) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130129,7 +142113,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetDefaultNetworkTier setProject(java.lang.String project) { + 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 " + @@ -130139,6 +142123,27 @@ public SetDefaultNetworkTier setProject(java.lang.String project) { return this; } + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.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 @@ -130183,129 +142188,144 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetDefaultNetworkTier set(String parameterName, Object value) { - return (SetDefaultNetworkTier) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the - * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to - * Managed Protection Plus for more information. + * Retrieves the list of regional BackendService resources available to the specified project in the + * given region. * - * Create a request for the method "projects.setManagedProtectionTier". + * 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 SetManagedProtectionTier#execute()} method to invoke the remote - * operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @param region Name of the region scoping this request. * @return the request */ - public SetManagedProtectionTier setManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) throws java.io.IOException { - SetManagedProtectionTier result = new SetManagedProtectionTier(project, content); + 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 SetManagedProtectionTier extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setManagedProtectionTier"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the - * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing - * to Managed Protection Plus for more information. + * Retrieves the list of regional BackendService resources available to the specified project in + * the given region. * - * Create a request for the method "projects.setManagedProtectionTier". + * 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 SetManagedProtectionTier#execute()} method to invoke the remote - * operation.

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

    + * 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 content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @param region Name of the region scoping this request. * @since 1.13 */ - protected SetManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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])?"); + } } @Override - public SetManagedProtectionTier set$Xgafv(java.lang.String $Xgafv) { - return (SetManagedProtectionTier) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetManagedProtectionTier setAccessToken(java.lang.String accessToken) { - return (SetManagedProtectionTier) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetManagedProtectionTier setAlt(java.lang.String alt) { - return (SetManagedProtectionTier) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetManagedProtectionTier setCallback(java.lang.String callback) { - return (SetManagedProtectionTier) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetManagedProtectionTier setFields(java.lang.String fields) { - return (SetManagedProtectionTier) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetManagedProtectionTier setKey(java.lang.String key) { - return (SetManagedProtectionTier) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetManagedProtectionTier setOauthToken(java.lang.String oauthToken) { - return (SetManagedProtectionTier) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetManagedProtectionTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetManagedProtectionTier) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetManagedProtectionTier setQuotaUser(java.lang.String quotaUser) { - return (SetManagedProtectionTier) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetManagedProtectionTier setUploadType(java.lang.String uploadType) { - return (SetManagedProtectionTier) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetManagedProtectionTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetManagedProtectionTier) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetManagedProtectionTier setUserIp(java.lang.String userIp) { - return (SetManagedProtectionTier) super.setUserIp(userIp); + 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. */ @@ -130319,7 +142339,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetManagedProtectionTier setProject(java.lang.String project) { + 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 " + @@ -130329,171 +142349,417 @@ public SetManagedProtectionTier setProject(java.lang.String project) { return this; } + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.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; + } + /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public SetManagedProtectionTier setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetManagedProtectionTier set(String parameterName, Object value) { - return (SetManagedProtectionTier) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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. + * Retrieves a list of all usable backend services in the specified project in the given region. * - * Create a request for the method "projects.setUsageExportBucket". + * 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 SetUsageExportBucket#execute()} method to invoke the remote - * operation. + * parameters, call the {@link ListUsable#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} + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. * @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); + 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 SetUsageExportBucket extends ComputeRequest { + public class ListUsable extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/setUsageExportBucket"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/listUsable"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves a list of all usable backend services in the specified project in the given region. * - * Create a request for the method "projects.setUsageExportBucket". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. * @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); + 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."); } @Override - public SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { - return (SetUsageExportBucket) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { - return (SetUsageExportBucket) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetUsageExportBucket setAlt(java.lang.String alt) { - return (SetUsageExportBucket) super.setAlt(alt); + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); } @Override - public SetUsageExportBucket setCallback(java.lang.String callback) { - return (SetUsageExportBucket) super.setCallback(callback); + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); } @Override - public SetUsageExportBucket setFields(java.lang.String fields) { - return (SetUsageExportBucket) super.setFields(fields); + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); } @Override - public SetUsageExportBucket setKey(java.lang.String key) { - return (SetUsageExportBucket) super.setKey(key); + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); } @Override - public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { - return (SetUsageExportBucket) super.setOauthToken(oauthToken); + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); } @Override - public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); } @Override - public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { - return (SetUsageExportBucket) super.setQuotaUser(quotaUser); + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); } @Override - public SetUsageExportBucket setUploadType(java.lang.String uploadType) { - return (SetUsageExportBucket) super.setUploadType(uploadType); + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); } @Override - public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); } @Override - public SetUsageExportBucket setUserIp(java.lang.String userIp) { - return (SetUsageExportBucket) super.setUserIp(userIp); + 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. */ @@ -130507,7 +142773,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUsageExportBucket setProject(java.lang.String project) { + 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 " + @@ -130518,400 +142784,430 @@ public SetUsageExportBucket setProject(java.lang.String project) { } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String region; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the region scoping this request. It must be a string that meets the requirements in + RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getRegion() { + return region; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. */ - public SetUsageExportBucket setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListUsable setRegion(java.lang.String region) { + this.region = region; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "publicAdvertisedPrefixes.announce". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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."); - } + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Announce set$Xgafv(java.lang.String $Xgafv) { - return (Announce) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Announce setAlt(java.lang.String alt) { - return (Announce) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Announce setCallback(java.lang.String callback) { - return (Announce) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Announce setFields(java.lang.String fields) { - return (Announce) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public Announce setKey(java.lang.String key) { - return (Announce) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) super.setOauthToken(oauthToken); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Announce setUploadType(java.lang.String uploadType) { - return (Announce) super.setUploadType(uploadType); + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - @Override - public Announce setUploadProtocol(java.lang.String uploadProtocol) { - return (Announce) super.setUploadProtocol(uploadProtocol); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Announce setUserIp(java.lang.String userIp) { - return (Announce) super.setUserIp(userIp); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Project ID for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String orderBy; - /** Project ID for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String pageToken; - /** The name of the public advertised prefix. It should comply with RFC1035. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getPageToken() { + return pageToken; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Announce setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Announce setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Announce set(String parameterName, Object value) { - return (Announce) super.set(parameterName, value); + public ListUsable set(String parameterName, Object value) { + return (ListUsable) super.set(parameterName, value); } } /** - * Deletes the specified PublicAdvertisedPrefix + * 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 "publicAdvertisedPrefixes.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @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 Delete delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Delete result = new Delete(project, publicAdvertisedPrefix); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 PublicAdvertisedPrefix + * 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 "publicAdvertisedPrefixes.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @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 Delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130925,7 +143221,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -130935,24 +143231,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the PublicAdvertisedPrefix resource to delete. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** Name of the PublicAdvertisedPrefix resource to delete. + /** Name of the region scoping this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** Name of the PublicAdvertisedPrefix resource to delete. */ - public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_ADVERTISED_PREFIX_PATTERN.matcher(publicAdvertisedPrefix).matches(), - "Parameter publicAdvertisedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.publicAdvertisedPrefix = publicAdvertisedPrefix; + this.backendService = backendService; return this; } @@ -131000,142 +143317,146 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified PublicAdvertisedPrefix resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "publicAdvertisedPrefixes.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @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 Get get(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Get result = new Get(project, publicAdvertisedPrefix); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 the specified PublicAdvertisedPrefix resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "publicAdvertisedPrefixes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @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 Get(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefix.class); + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -131149,7 +143470,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -131159,745 +143480,432 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the PublicAdvertisedPrefix resource to return. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** Name of the PublicAdvertisedPrefix resource to return. + /** The name of the region for this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** Name of the PublicAdvertisedPrefix resource to return. */ - public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + this.region = region; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String resource; - /** Project ID for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getResource() { + return resource; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - 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; + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Lists the PublicAdvertisedPrefixes for a project. + * 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 "publicAdvertisedPrefixes.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 PublicAdvertisedPrefixes for a project. + * 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 "publicAdvertisedPrefixes.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicAdvertisedPrefixList.class); + 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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) 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; + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region scoping this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * 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 pageToken; + private java.lang.String backendService; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the BackendService resource to which the security policy should be set. The name should + conform to RFC1035. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getBackendService() { + return backendService; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * Name of the BackendService resource to which the security policy should be set. The name + * should conform to RFC1035. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public SetSecurityPolicy setBackendService(java.lang.String backendService) { + this.backendService = backendService; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public SetSecurityPolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "publicAdvertisedPrefixes.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * Patches the specified Router resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "publicAdvertisedPrefixes.patch". + * 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 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.

    + * 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 publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @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 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); + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -131911,7 +143919,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -131921,190 +143929,184 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the PublicAdvertisedPrefix resource to patch. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** Name of the PublicAdvertisedPrefix resource to patch. + /** The name of the region for this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** Name of the PublicAdvertisedPrefix resource to patch. */ - public Patch setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Withdraws the specified PublicAdvertisedPrefix + * 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 "publicAdvertisedPrefixes.withdraw". + * 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 Withdraw#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#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. + * @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 Withdraw withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Withdraw result = new Withdraw(project, publicAdvertisedPrefix); + 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 Withdraw extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Withdraws the specified PublicAdvertisedPrefix + * 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 "publicAdvertisedPrefixes.withdraw". + * 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 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.

    + * 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 publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @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 Withdraw(java.lang.String project, java.lang.String publicAdvertisedPrefix) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Withdraw set$Xgafv(java.lang.String $Xgafv) { - return (Withdraw) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Withdraw setAccessToken(java.lang.String accessToken) { - return (Withdraw) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Withdraw setAlt(java.lang.String alt) { - return (Withdraw) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Withdraw setCallback(java.lang.String callback) { - return (Withdraw) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Withdraw setUserIp(java.lang.String userIp) { - return (Withdraw) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -132118,7 +144120,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Withdraw setProject(java.lang.String project) { + 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 " + @@ -132128,19 +144130,45 @@ public Withdraw setProject(java.lang.String project) { return this; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String region; - /** The name of the public advertised prefix. It should comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getRegion() { + return region; } - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; + /** 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; } @@ -132188,51 +144216,51 @@ public java.lang.String getRequestId() { * 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) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the PublicDelegatedPrefixes collection. + * An accessor for creating requests from the RegionCommitments collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.PublicDelegatedPrefixes.List request = compute.publicDelegatedPrefixes().list(parameters ...)}
    +   *   {@code Compute.RegionCommitments.List request = compute.regionCommitments().list(parameters ...)}
        * 
    * * @return the resource collection */ - public PublicDelegatedPrefixes publicDelegatedPrefixes() { - return new PublicDelegatedPrefixes(); + public RegionCommitments regionCommitments() { + return new RegionCommitments(); } /** - * The "publicDelegatedPrefixes" collection of methods. + * The "regionCommitments" collection of methods. */ - public class PublicDelegatedPrefixes { + public class RegionCommitments { /** - * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. + * Retrieves an aggregated list of commitments by region. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "publicDelegatedPrefixes.aggregatedList". + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -132241,20 +144269,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; + private static final String REST_PATH = "projects/{project}/aggregated/commitments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves an aggregated list of commitments by region. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "publicDelegatedPrefixes.aggregatedList". + * 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. @@ -132262,11 +144290,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @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.PublicDelegatedPrefixAggregatedList.class); + 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(), @@ -132345,17 +144373,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** 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(), @@ -132693,502 +144721,27 @@ public AggregatedList set(String parameterName, Object 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * Returns the specified commitment resource. * - * Create a request for the method "publicDelegatedPrefixes.get". + * 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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @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 publicDelegatedPrefix) throws java.io.IOException { - Get result = new Get(project, region, publicDelegatedPrefix); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -133196,13 +144749,13 @@ public class Get extends ComputeRequest {@link @@ -133210,12 +144763,12 @@ public class Get extends ComputeRequest * * @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. + * @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 publicDelegatedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.class); + 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(), @@ -133228,10 +144781,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + 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}"); } } @@ -133327,17 +144880,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ + /** 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(), @@ -133348,24 +144901,24 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the PublicDelegatedPrefix resource to return. */ + /** Name of the commitment to return. */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String commitment; - /** Name of the PublicDelegatedPrefix resource to return. + /** Name of the commitment to return. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getCommitment() { + return commitment; } - /** Name of the PublicDelegatedPrefix resource to return. */ - public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + /** Name of the commitment to return. */ + public Get setCommitment(java.lang.String commitment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + 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.publicDelegatedPrefix = publicDelegatedPrefix; + this.commitment = commitment; return this; } @@ -133375,20 +144928,19 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters - * that are included in the request. + * Creates a commitment in the specified project using the data included in the request. * - * Create a request for the method "publicDelegatedPrefixes.insert". + * 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 of this request. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @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.PublicDelegatedPrefix content) throws java.io.IOException { + 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; @@ -133396,7 +144948,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -133405,10 +144957,9 @@ public class Insert extends ComputeRequest {@link @@ -133416,11 +144967,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.PublicDelegatedPrefix content) { + 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()) { @@ -133517,17 +145068,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ + /** 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(), @@ -133593,15 +145144,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the PublicDelegatedPrefixes for a project in the given region. + * Retrieves a list of commitments contained within the specified region. * - * Create a request for the method "publicDelegatedPrefixes.list". + * 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 of 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 { @@ -133610,9 +145161,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -133621,9 +145172,9 @@ public class List extends ComputeRequest {@link @@ -133631,11 +145182,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of 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.PublicDelegatedPrefixList.class); + 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(), @@ -133741,17 +145292,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ + /** 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(), @@ -134032,29 +145583,230 @@ public List set(String parameterName, Object 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "publicDelegatedPrefixes.patch". + * Create a request for the method "regionCommitments.testIamPermissions". * * 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. + * 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}/commitments/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 "regionCommitments.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}"); + } + } + + @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 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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @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 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); + 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 Patch extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134062,27 +145814,28 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @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 Patch(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) { + 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()) { @@ -134096,72 +145849,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -134175,7 +145928,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -134196,7 +145949,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { + 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 " + @@ -134206,24 +145959,39 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the PublicDelegatedPrefix resource to patch. */ + /** Name of the commitment that you want to update. */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String commitment; - /** Name of the PublicDelegatedPrefix resource to patch. + /** Name of the commitment that you want to update. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getCommitment() { + return commitment; } - /** Name of the PublicDelegatedPrefix resource to patch. */ - public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + /** 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(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + 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.publicDelegatedPrefix = publicDelegatedPrefix; + 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; } @@ -134271,62 +146039,85 @@ public java.lang.String getRequestId() { * 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) { + 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Withdraws the specified PublicDelegatedPrefix in the given region. + * Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment. * - * Create a request for the method "publicDelegatedPrefixes.withdraw". + * Create a request for the method "regionCommitments.updateReservations". * * 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. + * parameters, call the {@link UpdateReservations#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. + * @param region Name of the region for this request. + * @param commitment Name of the commitment for which the reservations are being updated. + * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} * @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); + public UpdateReservations updateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) throws java.io.IOException { + UpdateReservations result = new UpdateReservations(project, region, commitment, content); initialize(result); return result; } - public class Withdraw extends ComputeRequest { + public class UpdateReservations extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}/updateReservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Withdraws the specified PublicDelegatedPrefix in the given region. + * Transfers GPUs or Local SSD disks between reservations that are attached to the same + * commitment. * - * Create a request for the method "publicDelegatedPrefixes.withdraw". + * Create a request for the method "regionCommitments.updateReservations". * * 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.

    + * parameters, call the {@link UpdateReservations#execute()} method to invoke the remote + * operation.

    {@link UpdateReservations#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 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. + * @param region Name of the region for this request. + * @param commitment Name of the commitment for which the reservations are being updated. + * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} * @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); + protected UpdateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -134334,227 +146125,714 @@ protected Withdraw(java.lang.String project, java.lang.String region, java.lang. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Withdraw set$Xgafv(java.lang.String $Xgafv) { - return (Withdraw) super.set$Xgafv($Xgafv); + public UpdateReservations set$Xgafv(java.lang.String $Xgafv) { + return (UpdateReservations) super.set$Xgafv($Xgafv); } @Override - public Withdraw setAccessToken(java.lang.String accessToken) { - return (Withdraw) super.setAccessToken(accessToken); + public UpdateReservations setAccessToken(java.lang.String accessToken) { + return (UpdateReservations) super.setAccessToken(accessToken); } @Override - public Withdraw setAlt(java.lang.String alt) { - return (Withdraw) super.setAlt(alt); + public UpdateReservations setAlt(java.lang.String alt) { + return (UpdateReservations) super.setAlt(alt); } @Override - public Withdraw setCallback(java.lang.String callback) { - return (Withdraw) super.setCallback(callback); + public UpdateReservations setCallback(java.lang.String callback) { + return (UpdateReservations) super.setCallback(callback); } @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); + public UpdateReservations setFields(java.lang.String fields) { + return (UpdateReservations) super.setFields(fields); } @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); + public UpdateReservations setKey(java.lang.String key) { + return (UpdateReservations) super.setKey(key); } @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); + public UpdateReservations setOauthToken(java.lang.String oauthToken) { + return (UpdateReservations) super.setOauthToken(oauthToken); } @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); + public UpdateReservations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateReservations) super.setPrettyPrint(prettyPrint); } @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); + public UpdateReservations setQuotaUser(java.lang.String quotaUser) { + return (UpdateReservations) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateReservations setUploadType(java.lang.String uploadType) { + return (UpdateReservations) super.setUploadType(uploadType); + } + + @Override + public UpdateReservations setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateReservations) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateReservations setUserIp(java.lang.String userIp) { + return (UpdateReservations) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public UpdateReservations setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[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 UpdateReservations setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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 for which the reservations are being updated. */ + @com.google.api.client.util.Key + private java.lang.String commitment; + + /** Name of the commitment for which the reservations are being updated. + */ + public java.lang.String getCommitment() { + return commitment; + } + + /** Name of the commitment for which the reservations are being updated. */ + public UpdateReservations 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; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public UpdateReservations setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateReservations set(String parameterName, Object value) { + return (UpdateReservations) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; } - @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; } - @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Withdraw setUserIp(java.lang.String userIp) { - return (Withdraw) super.setUserIp(userIp); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Project ID for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String orderBy; - /** Project ID for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public Withdraw setRegion(java.lang.String region) { - this.region = region; + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.Boolean returnPartialSuccess; - /** The name of the public delegated prefix. It should comply with RFC1035. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - this.publicDelegatedPrefix = publicDelegatedPrefix; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Long serviceProjectNumber; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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.String getRequestId() { - return requestId; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified CompositeHealthCheck in the given region * - * Create a request for the method "regionAutoscalers.delete". + * 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 autoscaler Name of the autoscaler to delete. + * @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 autoscaler) throws java.io.IOException { - Delete result = new Delete(project, region, autoscaler); + 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}/autoscalers/{autoscaler}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134562,13 +146840,13 @@ public class Delete extends ComputeRequest {@link @@ -134577,10 +146855,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -134808,13 +147086,13 @@ public class Get extends ComputeRequest {@link @@ -134823,11 +147101,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -135016,9 +147295,10 @@ public class Insert extends ComputeRequest {@link @@ -135027,10 +147307,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -135231,9 +147511,9 @@ public class List extends ComputeRequest {@link @@ -135245,7 +147525,7 @@ public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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])?"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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])?"); - } - } - - @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; + this.orderBy = orderBy; return this; } - /** Name of the autoscaler to update. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String pageToken; - /** Name of the autoscaler to update. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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. + * 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 "regionBackendBuckets.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136375,26 +147955,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @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 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); + 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(), @@ -136407,72 +147989,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } + this.compositeHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(compositeHealthCheck, "Required parameter compositeHealthCheck must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136486,7 +148063,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -136507,7 +148084,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -136517,47 +148094,26 @@ public Delete setRegion(java.lang.String 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; - } - /** - * Force delete the backend bucket even if it is still in use by other resources. It's - * intended to be used internally only for requests from wipeout. + * 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.Boolean forceDelete; + private java.lang.String compositeHealthCheck; - /** Force delete the backend bucket even if it is still in use by other resources. It's intended to be - used internally only for requests from wipeout. + /** Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.Boolean getForceDelete() { - return forceDelete; + public java.lang.String getCompositeHealthCheck() { + return compositeHealthCheck; } /** - * Force delete the backend bucket even if it is still in use by other resources. It's - * intended to be used internally only for requests from wipeout. + * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and + * comply with RFC1035. */ - public Delete setForceDelete(java.lang.Boolean forceDelete) { - this.forceDelete = forceDelete; + public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { + this.compositeHealthCheck = compositeHealthCheck; return this; } @@ -136572,7 +148128,7 @@ public Delete setForceDelete(java.lang.Boolean forceDelete) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -136586,7 +148142,7 @@ public Delete setForceDelete(java.lang.Boolean forceDelete) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -136603,40 +148159,41 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified regional BackendBucket resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionBackendBuckets.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136644,26 +148201,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to return. + * @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 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); + 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(), @@ -136676,82 +148235,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136765,7 +148314,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -136775,18 +148324,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -136796,54 +148345,76 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the BackendBucket resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String backendBucket; + private java.lang.String resource; - /** Name of the BackendBucket resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getBackendBucket() { - return backendBucket; + public java.lang.String getResource() { + return resource; } - /** Name of the BackendBucket resource to return. */ - public Get setBackendBucket(java.lang.String backendBucket) { + /** 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(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.backendBucket = backendBucket; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RegionDiskSettings collection. + * + *

    The typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.RegionDiskSettings.List request = compute.regionDiskSettings().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public RegionDiskSettings regionDiskSettings() { + return new RegionDiskSettings(); + } + + /** + * The "regionDiskSettings" collection of methods. + */ + public class RegionDiskSettings { + /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Get Regional Disk Settings. * - * Create a request for the method "regionBackendBuckets.getIamPolicy". + * Create a request for the method "regionDiskSettings.get". * * 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. + * 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 resource Name or id of the resource for this request. + * @param region Name of the region 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); + 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 GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136851,28 +148422,22 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. + * @param region Name of the region 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); + protected Get(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskSettings.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -136885,12 +148450,6 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "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}"); - } } @Override @@ -136904,63 +148463,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136974,7 +148533,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -136984,18 +148543,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -137005,71 +148564,33 @@ public GetIamPolicy setRegion(java.lang.String 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a RegionBackendBucket in the specified project in the given scope using the parameters - * that are included in the request. + * Patch Regional Disk Settings * - * Create a request for the method "regionBackendBuckets.insert". + * Create a request for the method "regionDiskSettings.patch". * * 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. + * 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 of this request. - * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.DiskSettings} * @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); + public Patch patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DiskSettings content) throws java.io.IOException { + Patch result = new Patch(project, region, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137078,23 +148599,22 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 of this request. - * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.DiskSettings} * @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); + protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DiskSettings 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(), @@ -137110,63 +148630,63 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137180,7 +148700,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -137190,18 +148710,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -137255,38 +148775,77 @@ public java.lang.String getRequestId() { * 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) { + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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 { + /** - * Retrieves the list of BackendBucket resources available to the specified project in the given - * region. + * Returns the specified regional disk type. * - * Create a request for the method "regionBackendBuckets.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 region The name of the region for this request. + * @param diskType Name of the disk type to return. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137294,23 +148853,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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 region The name of the region for this request. + * @param diskType Name of the disk type to return. * @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); + 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(), @@ -137323,6 +148885,12 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override @@ -137336,398 +148904,154 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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; + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the region for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the disk type to return. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String diskType; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the disk type to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getDiskType() { + return diskType; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves a list of all usable backend buckets in the specified project in the given region. + * Retrieves a list of regional disk types available to the specified project. * - * Create a request for the method "regionBackendBuckets.listUsable". + * 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 ListUsable#execute()} method to invoke the remote operation. + * 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. - It must be a string that meets the requirements in RFC1035. + * @param region The name of the region for this request. * @return the request */ - public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { - ListUsable result = new ListUsable(project, region); + 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 ListUsable extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/listUsable"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137736,23 +149060,21 @@ public class ListUsable extends ComputeRequest - * {@link - * ListUsable#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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. - It must be a string that meets the requirements in RFC1035. + * @param region The name of the region for this request. * @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); + 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(), @@ -137778,63 +149100,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -137848,7 +149170,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListUsable setProject(java.lang.String project) { + 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 " + @@ -137858,25 +149180,18 @@ public ListUsable setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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) { + /** 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 " + @@ -138017,7 +149332,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListUsable setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -138046,7 +149361,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -138090,7 +149405,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListUsable setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -138113,7 +149428,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -138145,40 +149460,63 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); + 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 { + /** - * 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. + * 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 "regionBackendBuckets.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link AddResourcePolicies#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class AddResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138186,28 +149524,29 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -138220,72 +149559,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138299,7 +149638,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -138309,18 +149648,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -138330,24 +149669,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the BackendBucket resource to patch. */ + /** The disk name for this request. */ @com.google.api.client.util.Key - private java.lang.String backendBucket; + private java.lang.String disk; - /** Name of the BackendBucket resource to patch. + /** The disk name for this request. */ - public java.lang.String getBackendBucket() { - return backendBucket; + public java.lang.String getDisk() { + return disk; } - /** Name of the BackendBucket resource to patch. */ - public Patch setBackendBucket(java.lang.String backendBucket) { + /** The disk name for this request. */ + public AddResourcePolicies setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_BUCKET_PATTERN.matcher(backendBucket).matches(), - "Parameter backendBucket must conform to the pattern " + + 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.backendBucket = backendBucket; + this.disk = disk; return this; } @@ -138362,7 +149701,7 @@ public Patch setBackendBucket(java.lang.String backendBucket) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -138376,7 +149715,7 @@ public Patch setBackendBucket(java.lang.String backendBucket) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -138393,41 +149732,40 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public AddResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Bulk create a set of disks. * - * Create a request for the method "regionBackendBuckets.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138435,28 +149773,24 @@ public class SetIamPolicy extends ComputeRequest + * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} * @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); + 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(), @@ -138469,72 +149803,66 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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}"); - } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138548,7 +149876,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -138569,7 +149897,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + 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 " + @@ -138579,55 +149907,85 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "regionBackendBuckets.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateSnapshot#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class CreateSnapshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138635,28 +149993,30 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -138669,72 +150029,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { + return (CreateSnapshot) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138748,7 +150108,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -138758,18 +150118,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -138779,77 +150139,105 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the regional persistent disk to snapshot. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String disk; - /** Name or id of the resource for this request. + /** Name of the regional persistent disk to snapshot. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getDisk() { + return disk; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the regional persistent disk to snapshot. */ + public CreateSnapshot setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.disk = disk; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "regionBackendServices" collection of methods. - */ - public class RegionBackendServices { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 BackendService resource. + * 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 "regionBackendServices.delete". + * 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 scoping this request. - * @param backendService Name of the BackendService resource to delete. + * @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 backendService) throws java.io.IOException { - Delete result = new Delete(project, region, backendService); + 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}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138857,13 +150245,15 @@ public class Delete extends ComputeRequest {@link @@ -138871,11 +150261,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 backendService) { + 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()) { @@ -138889,11 +150279,11 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); } } @@ -138978,17 +150368,17 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -138999,24 +150389,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the BackendService resource to delete. */ + /** Name of the regional persistent disk to delete. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String disk; - /** Name of the BackendService resource to delete. + /** Name of the regional persistent disk to delete. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getDisk() { + return disk; } - /** Name of the BackendService resource to delete. */ - public Delete setBackendService(java.lang.String backendService) { + /** Name of the regional persistent disk to delete. */ + public Delete setDisk(java.lang.String disk) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), + "Parameter disk must conform to the pattern " + + "\\S{1,66}"); } - this.backendService = backendService; + this.disk = disk; return this; } @@ -139042,268 +150432,60 @@ public Delete setBackendService(java.lang.String backendService) { For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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; + clients from accidentally creating duplicate commitments. - /** Name of the BackendService resource to return. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the most recent health check results for this regional BackendService. + * Returns a specified regional persistent disk. * - * Create a request for the method "regionBackendServices.getHealth". + * 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 GetHealth#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @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 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); + 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 GetHealth extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/getHealth"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139311,28 +150493,26 @@ public class GetHealth extends ComputeRequest - * {@link - * GetHealth#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 - * @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} + * @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 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); + 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(), @@ -139345,85 +150525,96 @@ protected GetHealth(java.lang.String project, java.lang.String region, java.lang "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."); + 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(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + 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}"); } } @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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; } - public GetHealth setProject(java.lang.String 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 " + @@ -139433,18 +150624,18 @@ public GetHealth setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public GetHealth setRegion(java.lang.String 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 " + @@ -139454,36 +150645,36 @@ public GetHealth setRegion(java.lang.String region) { return this; } - /** Name of the BackendService resource for which to get health. */ + /** Name of the regional persistent disk to return. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String disk; - /** Name of the BackendService resource for which to get health. + /** Name of the regional persistent disk to return. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getDisk() { + return disk; } - /** Name of the BackendService resource for which to get health. */ - public GetHealth setBackendService(java.lang.String backendService) { + /** Name of the regional persistent disk to return. */ + public Get setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + 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.backendService = backendService; + this.disk = disk; return this; } @Override - public GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); + 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 "regionBackendServices.getIamPolicy". + * 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. @@ -139501,7 +150692,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String regi public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139516,7 +150707,7 @@ public class GetIamPolicy extends ComputeRequest @@ -139706,20 +150897,20 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a regional BackendService resource in the specified project using the data included in - * the request. For more information, see Backend services overview. + * Creates a persistent regional disk in the specified project using the data included in the + * request. * - * Create a request for the method "regionBackendServices.insert". + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.BackendService} + * @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.BackendService content) throws java.io.IOException { + 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; @@ -139727,7 +150918,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139736,10 +150927,10 @@ public class Insert extends ComputeRequest {@link @@ -139747,11 +150938,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.BackendService content) { + 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()) { @@ -139848,17 +151039,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -139918,22 +151109,37 @@ public Insert setRequestId(java.lang.String 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 regional BackendService resources available to the specified project in the - * given region. + * Retrieves the list of persistent disks contained within the specified region. * - * Create a request for the method "regionBackendServices.list". + * 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 scoping 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 { @@ -139942,9 +151148,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -139953,10 +151159,9 @@ public class List extends ComputeRequest {@link @@ -139964,11 +151169,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.BackendServiceList.class); + 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(), @@ -140074,17 +151279,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -140365,716 +151570,29 @@ public List set(String parameterName, Object value) { } } /** - * Retrieves a list of all usable backend services in the specified project in the given region. - * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 in the specified project in the given region. - * - * 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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * Removes resource policies from a regional disk. * - * Create a request for the method "regionBackendServices.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class RemoveResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -141082,28 +151600,28 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param disk The disk name for this request. + * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} * @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); + 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(), @@ -141116,72 +151634,72 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141195,7 +151713,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -141216,7 +151734,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + 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 " + @@ -141226,58 +151744,104 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** The disk name for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String disk; - /** Name or id of the resource for this request. + /** The disk name for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getDisk() { + return disk; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** The disk name for this request. */ + public RemoveResourcePolicies setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified backend service. For more - * information, seeGoogle Cloud Armor Overview + * Resizes the specified regional persistent disk. * - * Create a request for the method "regionBackendServices.setSecurityPolicy". + * 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 SetSecurityPolicy#execute()} method to invoke the remote operation. + * 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 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} + * @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 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); + 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 SetSecurityPolicy extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -141285,27 +151849,26 @@ public class SetSecurityPolicy extends ComputeRequest {@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 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} + * @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 SetSecurityPolicy(java.lang.String project, java.lang.String region, java.lang.String backendService, com.google.api.services.compute.model.SecurityPolicyReference content) { + 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()) { @@ -141319,81 +151882,86 @@ protected SetSecurityPolicy(java.lang.String project, java.lang.String region, j "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."); + 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}"); + } } @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public SetSecurityPolicy setProject(java.lang.String 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 " + @@ -141403,18 +151971,18 @@ public SetSecurityPolicy setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetSecurityPolicy setRegion(java.lang.String 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 " + @@ -141424,26 +151992,24 @@ public SetSecurityPolicy setRegion(java.lang.String region) { return this; } - /** - * Name of the BackendService resource to which the security policy should be set. The name - * should conform to RFC1035. - */ + /** Name of the regional persistent disk. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String disk; - /** Name of the BackendService resource to which the security policy should be set. The name should - conform to RFC1035. + /** Name of the regional persistent disk. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getDisk() { + return disk; } - /** - * 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; + /** 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; } @@ -141491,39 +152057,39 @@ public java.lang.String getRequestId() { * 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) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionBackendServices.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -141535,24 +152101,24 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @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); + 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(), @@ -141574,63 +152140,63 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141644,7 +152210,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -141665,7 +152231,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + 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 " + @@ -141686,7 +152252,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + 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 " + @@ -141697,34 +152263,33 @@ public TestIamPermissions setResource(java.lang.String resource) { } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Updates the specified regional BackendService resource with the data included in the request. For - * more information, see Backend services overview. + * Sets the labels on the target regional disk. * - * Create a request for the method "regionBackendServices.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 Update extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -141732,28 +152297,28 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -141766,72 +152331,72 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141845,7 +152410,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -141855,18 +152420,18 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String 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 " + @@ -141876,24 +152441,24 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the BackendService resource to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String resource; - /** Name of the BackendService resource to update. + /** Name or id of the resource for this request. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getResource() { + return resource; } - /** Name of the BackendService resource to update. */ - public Update setBackendService(java.lang.String backendService) { + /** 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(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.backendService = backendService; + this.resource = resource; return this; } @@ -141941,532 +152506,40 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Returns the specified commitment resource. + * Starts asynchronous replication. Must be invoked on the primary disk. * - * Create a request for the method "regionCommitments.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link StartAsyncReplication#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. + * @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 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); + 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 Get extends ComputeRequest { + public class StartAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -142474,26 +152547,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region for this request. - * @param commitment Name of the commitment to return. + * @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 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); + 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(), @@ -142506,82 +152581,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StartAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public StartAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StartAsyncReplication) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public StartAsyncReplication setAlt(java.lang.String alt) { + return (StartAsyncReplication) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public StartAsyncReplication setCallback(java.lang.String callback) { + return (StartAsyncReplication) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public StartAsyncReplication setFields(java.lang.String fields) { + return (StartAsyncReplication) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public StartAsyncReplication setKey(java.lang.String key) { + return (StartAsyncReplication) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StartAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StartAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public StartAsyncReplication setUploadType(java.lang.String uploadType) { + return (StartAsyncReplication) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public StartAsyncReplication setUserIp(java.lang.String userIp) { + return (StartAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -142595,7 +152660,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -142605,18 +152670,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -142626,54 +152691,104 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the commitment to return. */ + /** The name of the persistent disk. */ @com.google.api.client.util.Key - private java.lang.String commitment; + private java.lang.String disk; - /** Name of the commitment to return. + /** The name of the persistent disk. */ - public java.lang.String getCommitment() { - return commitment; + public java.lang.String getDisk() { + return disk; } - /** Name of the commitment to return. */ - public Get setCommitment(java.lang.String commitment) { + /** The name of the persistent disk. */ + public StartAsyncReplication setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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.commitment = commitment; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public StartAsyncReplication set(String parameterName, Object value) { + return (StartAsyncReplication) super.set(parameterName, value); } } /** - * Creates a commitment in the specified project using the data included in the request. + * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. * - * Create a request for the method "regionCommitments.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link StopAsyncReplication#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} + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. * @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); + 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 Insert extends ComputeRequest { + public class StopAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -142681,23 +152796,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.Commitment} + * @param region The name of the region for this request. + * @param disk The name of the persistent disk. * @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); + 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(), @@ -142710,66 +152829,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public StopAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopAsyncReplication) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public StopAsyncReplication setAlt(java.lang.String alt) { + return (StopAsyncReplication) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public StopAsyncReplication setCallback(java.lang.String callback) { + return (StopAsyncReplication) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public StopAsyncReplication setFields(java.lang.String fields) { + return (StopAsyncReplication) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public StopAsyncReplication setKey(java.lang.String key) { + return (StopAsyncReplication) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public StopAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopAsyncReplication) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public StopAsyncReplication setUserIp(java.lang.String userIp) { + return (StopAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -142783,7 +152908,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -142793,18 +152918,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -142814,6 +152939,27 @@ public Insert setRegion(java.lang.String 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 @@ -142858,37 +153004,42 @@ public java.lang.String getRequestId() { * 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) { + public StopAsyncReplication setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public StopAsyncReplication set(String parameterName, Object value) { + return (StopAsyncReplication) super.set(parameterName, value); } } /** - * Retrieves a list of commitments contained within the specified region. + * 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 "regionCommitments.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link StopGroupAsyncReplication#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class StopGroupAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -142897,21 +153048,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.CommitmentList.class); + 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(), @@ -142927,73 +153083,63 @@ protected List(java.lang.String project, java.lang.String region) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopGroupAsyncReplication) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StopGroupAsyncReplication setAlt(java.lang.String alt) { + return (StopGroupAsyncReplication) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StopGroupAsyncReplication setCallback(java.lang.String callback) { + return (StopGroupAsyncReplication) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StopGroupAsyncReplication setFields(java.lang.String fields) { + return (StopGroupAsyncReplication) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StopGroupAsyncReplication setKey(java.lang.String key) { + return (StopGroupAsyncReplication) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopGroupAsyncReplication) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { + return (StopGroupAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -143007,7 +153153,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -143017,18 +153163,25 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** + * 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; - /** Name of the region for this request. + /** 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; } - /** Name of the region for this request. */ - public List setRegion(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 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 " + @@ -143039,278 +153192,63 @@ public List setRegion(java.lang.String region) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StopGroupAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + 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 "regionCommitments.testIamPermissions". + * 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. @@ -143329,7 +153267,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -143343,7 +153281,7 @@ public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -143539,15 +153476,14 @@ public class Update extends ComputeRequest {@link @@ -143555,12 +153491,12 @@ public class Update extends ComputeRequest * * @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} + * @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 commitment, com.google.api.services.compute.model.Commitment content) { + 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()) { @@ -143574,10 +153510,10 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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}"); } } @@ -143663,17 +153599,17 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -143684,24 +153620,24 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the commitment that you want to update. */ + /** The disk name for this request. */ @com.google.api.client.util.Key - private java.lang.String commitment; + private java.lang.String disk; - /** Name of the commitment that you want to update. + /** The disk name for this request. */ - public java.lang.String getCommitment() { - return commitment; + public java.lang.String getDisk() { + return disk; } - /** Name of the commitment that you want to update. */ - public Update setCommitment(java.lang.String commitment) { + /** The disk name for this request. */ + public Update setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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.commitment = commitment; + this.disk = disk; return this; } @@ -143790,287 +153726,37 @@ public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } - /** - * Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment. - * - * Create a request for the method "regionCommitments.updateReservations". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateReservations#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 for which the reservations are being updated. - * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} - * @return the request - */ - public UpdateReservations updateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) throws java.io.IOException { - UpdateReservations result = new UpdateReservations(project, region, commitment, content); - initialize(result); - return result; - } - - public class UpdateReservations extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}/updateReservations"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - - /** - * Transfers GPUs or Local SSD disks between reservations that are attached to the same - * commitment. - * - * Create a request for the method "regionCommitments.updateReservations". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdateReservations#execute()} method to invoke the remote - * operation.

    {@link UpdateReservations#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 for this request. - * @param commitment Name of the commitment for which the reservations are being updated. - * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} - * @since 1.13 - */ - protected UpdateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public UpdateReservations set$Xgafv(java.lang.String $Xgafv) { - return (UpdateReservations) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateReservations setAccessToken(java.lang.String accessToken) { - return (UpdateReservations) super.setAccessToken(accessToken); - } - - @Override - public UpdateReservations setAlt(java.lang.String alt) { - return (UpdateReservations) super.setAlt(alt); - } - - @Override - public UpdateReservations setCallback(java.lang.String callback) { - return (UpdateReservations) super.setCallback(callback); - } - - @Override - public UpdateReservations setFields(java.lang.String fields) { - return (UpdateReservations) super.setFields(fields); - } - - @Override - public UpdateReservations setKey(java.lang.String key) { - return (UpdateReservations) super.setKey(key); - } - - @Override - public UpdateReservations setOauthToken(java.lang.String oauthToken) { - return (UpdateReservations) super.setOauthToken(oauthToken); - } - - @Override - public UpdateReservations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateReservations) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateReservations setQuotaUser(java.lang.String quotaUser) { - return (UpdateReservations) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateReservations setUploadType(java.lang.String uploadType) { - return (UpdateReservations) super.setUploadType(uploadType); - } - - @Override - public UpdateReservations setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateReservations) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateReservations setUserIp(java.lang.String userIp) { - return (UpdateReservations) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public UpdateReservations setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[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 UpdateReservations setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter 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 for which the reservations are being updated. */ - @com.google.api.client.util.Key - private java.lang.String commitment; - - /** Name of the commitment for which the reservations are being updated. - */ - public java.lang.String getCommitment() { - return commitment; - } - - /** Name of the commitment for which the reservations are being updated. */ - public UpdateReservations 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public UpdateReservations setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateReservations set(String parameterName, Object value) { - return (UpdateReservations) super.set(parameterName, value); - } - } } /** - * An accessor for creating requests from the RegionCompositeHealthChecks collection. + * An accessor for creating requests from the RegionHealthAggregationPolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionCompositeHealthChecks.List request = compute.regionCompositeHealthChecks().list(parameters ...)}
    +   *   {@code Compute.RegionHealthAggregationPolicies.List request = compute.regionHealthAggregationPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionCompositeHealthChecks regionCompositeHealthChecks() { - return new RegionCompositeHealthChecks(); + public RegionHealthAggregationPolicies regionHealthAggregationPolicies() { + return new RegionHealthAggregationPolicies(); } /** - * The "regionCompositeHealthChecks" collection of methods. + * The "regionHealthAggregationPolicies" collection of methods. */ - public class RegionCompositeHealthChecks { + public class RegionHealthAggregationPolicies { /** - * Retrieves the list of all CompositeHealthCheck resources (all regional) available to the - * specified project. + * 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 "regionCompositeHealthChecks.aggregatedList". + * 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. @@ -144084,21 +153770,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/compositeHealthChecks"; + private static final String REST_PATH = "projects/{project}/aggregated/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "regionCompositeHealthChecks.aggregatedList". + * 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. @@ -144110,7 +153796,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -144565,13 +154251,13 @@ public class Delete extends ComputeRequest {@link @@ -144580,10 +154266,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -144811,13 +154497,13 @@ public class Get extends ComputeRequest {@link @@ -144826,11 +154512,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -145020,10 +154706,10 @@ public class Insert extends ComputeRequest {@link @@ -145032,10 +154718,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -145236,9 +154922,9 @@ public class List extends ComputeRequest {@link @@ -145250,7 +154936,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -145681,11 +155367,11 @@ public class Patch extends ComputeRequest {@link @@ -145694,13 +155380,13 @@ public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -145932,7 +155618,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); + } + + @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 TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -146039,7 +156414,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -146049,18 +156424,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String 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 " + @@ -146070,76 +156445,107 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String healthCheckService; - /** Name or id of the resource for this request. + /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getHealthCheckService() { + return healthCheckService; } - /** 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; + /** + * 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * An accessor for creating requests from the RegionDiskSettings collection. - * - *

    The typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionDiskSettings.List request = compute.regionDiskSettings().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public RegionDiskSettings regionDiskSettings() { - return new RegionDiskSettings(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "regionDiskSettings" collection of methods. - */ - public class RegionDiskSettings { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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); + } + } /** - * Get Regional Disk Settings. + * Returns the specified regional HealthCheckService resource. * - * Create a request for the method "regionDiskSettings.get". + * 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 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) throws java.io.IOException { - Get result = new Get(project, region); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -146148,9 +156554,9 @@ public class Get extends ComputeRequest {@link @@ -146158,11 +156564,14 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskSettings.class); + 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(), @@ -146175,6 +156584,7 @@ protected Get(java.lang.String project, java.lang.String region) { "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."); } @Override @@ -146268,17 +156678,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -146289,33 +156699,57 @@ public Get setRegion(java.lang.String 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); } } /** - * Patch Regional Disk Settings + * Creates a regional HealthCheckService resource in the specified project and region using the data + * included in the request. * - * Create a request for the method "regionDiskSettings.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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.DiskSettings} + * @param region Name of the region scoping this request. + * @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, com.google.api.services.compute.model.DiskSettings content) throws java.io.IOException { - Patch result = new Patch(project, region, content); + 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 Patch extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -146324,22 +156758,23 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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.DiskSettings} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DiskSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -146355,63 +156790,63 @@ protected Patch(java.lang.String project, java.lang.String region, com.google.ap } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -146425,7 +156860,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -146435,18 +156870,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -146500,77 +156935,38 @@ public java.lang.String getRequestId() { * 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) { + public Insert 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); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Lists all the HealthCheckService resources that have been configured for the specified project in + * the given region. * - * Create a request for the method "regionDiskTypes.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. - * @param diskType Name of the disk type to return. + * @param region Name of the region scoping this request. * @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); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -146578,26 +156974,23 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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. - * @param diskType Name of the disk type to return. + * @param region Name of the region scoping this request. * @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); + 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(), @@ -146610,12 +157003,6 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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}"); - } } @Override @@ -146629,63 +157016,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -146699,7 +157086,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -146709,18 +157096,18 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -146730,53 +157117,301 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the disk type to return. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String diskType; + private java.lang.String filter; - /** Name of the disk type to return. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getDiskType() { - return diskType; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves a list of regional disk types available to the specified project. + * 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 "regionDiskTypes.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -146785,21 +157420,27 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 name of the region 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionDiskTypeList.class); + 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(), @@ -146812,76 +157453,67 @@ protected List(java.lang.String project, java.lang.String region) { "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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -146895,7 +157527,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -146905,18 +157537,18 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String 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 " + @@ -146927,321 +157559,327 @@ public List setRegion(java.lang.String region) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: + * 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. * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - @com.google.api.client.util.Key - private java.lang.String filter; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + @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; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + public class TestIamPermissions extends ComputeRequest { - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the region for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionDisks collection. + * An accessor for creating requests from the RegionHealthChecks collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionDisks.List request = compute.regionDisks().list(parameters ...)}
    +   *   {@code Compute.RegionHealthChecks.List request = compute.regionHealthChecks().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionDisks regionDisks() { - return new RegionDisks(); + public RegionHealthChecks regionHealthChecks() { + return new RegionHealthChecks(); } /** - * The "regionDisks" collection of methods. + * The "regionHealthChecks" collection of methods. */ - public class RegionDisks { + public class RegionHealthChecks { /** - * 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. + * Deletes the specified HealthCheck resource. * - * Create a request for the method "regionDisks.addResourcePolicies". + * 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 AddResourcePolicies#execute()} method to invoke the remote operation. + * 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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. * @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); + 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 AddResourcePolicies extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147249,29 +157887,26 @@ public class AddResourcePolicies extends ComputeRequest {@link AddResourcePolicies#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksAddResourcePoliciesRequest} + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. * @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); + 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(), @@ -147284,72 +157919,72 @@ protected AddResourcePolicies(java.lang.String project, java.lang.String region, "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -147363,7 +157998,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddResourcePolicies setProject(java.lang.String project) { + 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 " + @@ -147373,18 +158008,18 @@ public AddResourcePolicies setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public AddResourcePolicies setRegion(java.lang.String 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 " + @@ -147394,24 +158029,24 @@ public AddResourcePolicies setRegion(java.lang.String region) { return this; } - /** The disk name for this request. */ + /** Name of the HealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String healthCheck; - /** The disk name for this request. + /** Name of the HealthCheck resource to delete. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** The disk name for this request. */ - public AddResourcePolicies setDisk(java.lang.String disk) { + /** Name of the HealthCheck resource to delete. */ + public Delete setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + this.healthCheck = healthCheck; return this; } @@ -147459,38 +158094,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Bulk create a set of disks. + * Returns the specified HealthCheck resource. * - * Create a request for the method "regionDisks.bulkInsert". + * 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 BulkInsert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to return. * @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); + 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 BulkInsert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147498,24 +158133,26 @@ public class BulkInsert extends ComputeRequest - * {@link - * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to return. * @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); + 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(), @@ -147528,66 +158165,82 @@ protected BulkInsert(java.lang.String project, java.lang.String region, com.goog "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}"); + } } @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -147601,7 +158254,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public BulkInsert setProject(java.lang.String project) { + 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 " + @@ -147611,18 +158264,18 @@ public BulkInsert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public BulkInsert setRegion(java.lang.String 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 " + @@ -147632,85 +158285,54 @@ public BulkInsert setRegion(java.lang.String 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). - */ + /** Name of the HealthCheck resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String healthCheck; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the HealthCheck resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Creates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "regionDisks.createSnapshot". + * 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 CreateSnapshot#execute()} method to invoke the remote operation. + * 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 disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @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); + 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 CreateSnapshot extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147718,29 +158340,22 @@ public class CreateSnapshot extends ComputeRequest {@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 disk Name of the regional persistent disk to snapshot. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @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) { + 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()) { @@ -147754,72 +158369,66 @@ protected CreateSnapshot(java.lang.String project, java.lang.String region, java "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}"); - } } @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -147833,7 +158442,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateSnapshot setProject(java.lang.String project) { + 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 " + @@ -147843,18 +158452,18 @@ public CreateSnapshot setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public CreateSnapshot setRegion(java.lang.String 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 " + @@ -147864,27 +158473,6 @@ public CreateSnapshot setRegion(java.lang.String 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 @@ -147929,40 +158517,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateSnapshot set(String parameterName, Object value) { - return (CreateSnapshot) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves the list of HealthCheck resources available to the specified project. * - * Create a request for the method "regionDisks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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. - * @param disk Name of the regional persistent disk to delete. + * @param region Name of the region scoping this request. * @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); + 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 Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147970,28 +158555,22 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @param disk Name of the regional persistent disk to delete. + * @param region Name of the region scoping this request. * @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); + 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(), @@ -148004,72 +158583,76 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -148083,7 +158666,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -148093,124 +158676,320 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** 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 getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the regional persistent disk to delete. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String pageToken; - /** Name of the regional persistent disk to delete. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns a specified regional persistent disk. + * 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 "regionDisks.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 disk Name of the regional persistent disk to return. + * @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 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); + 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 Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148218,26 +158997,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 disk Name of the regional persistent disk to return. + * @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 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); + 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(), @@ -148250,82 +159031,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148339,7 +159110,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -148349,18 +159120,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -148370,54 +159141,104 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to return. */ + /** Name of the HealthCheck resource to patch. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String healthCheck; - /** Name of the regional persistent disk to return. + /** Name of the HealthCheck resource to patch. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** Name of the regional persistent disk to return. */ - public Get setDisk(java.lang.String disk) { + /** Name of the HealthCheck resource to patch. */ + public Patch setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionDisks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148429,24 +159250,24 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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); + 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(), @@ -148468,73 +159289,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148548,7 +159359,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -148569,7 +159380,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + 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 " + @@ -148590,7 +159401,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -148600,50 +159411,34 @@ public GetIamPolicy setResource(java.lang.String 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); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Creates a persistent regional disk in the specified project using the data included in the - * request. + * Updates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "regionDisks.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.Disk} + * @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 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); + 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 Insert extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148651,24 +159446,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 content the {@link com.google.api.services.compute.model.Disk} + * @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 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); + 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(), @@ -148681,66 +159479,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148754,7 +159558,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -148764,18 +159568,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -148785,6 +159589,27 @@ public Insert setRegion(java.lang.String 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 @@ -148829,88 +159654,93 @@ public java.lang.String getRequestId() { * 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) { + public Update 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); + 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 persistent disks contained within the specified region. + * Retrieves the list of all HealthSource resources (all regional) available to the specified + * project. * - * Create a request for the method "regionDisks.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param project Name of the project 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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of all HealthSource resources (all regional) available to the specified + * project. * - * Create a request for the method "regionDisks.list". + * 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 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.

    + * 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. - * @param region Name of the region for this request. + * @param project Name of the project 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.DiskList.class); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -148924,77 +159754,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -149004,27 +159834,6 @@ public List setProject(java.lang.String 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 @@ -149156,11 +159965,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -149185,7 +160028,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -149229,7 +160072,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -149252,7 +160095,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -149284,289 +160127,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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). + * 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.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Long serviceProjectNumber; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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.String getRequestId() { - return requestId; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public RemoveResourcePolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Resizes the specified regional persistent disk. + * Deletes the specified HealthSource in the given region * - * Create a request for the method "regionDisks.resize". + * 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 Resize#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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} + * @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 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); + 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 Resize extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -149574,27 +160189,26 @@ public class Resize extends ComputeRequest {@link - * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 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} + * @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 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); + 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(), @@ -149607,86 +160221,86 @@ protected Resize(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** 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) { + /** 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 " + @@ -149696,18 +160310,18 @@ public Resize setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Resize setRegion(java.lang.String 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 " + @@ -149717,24 +160331,24 @@ public Resize setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk. */ + /** Name of the HealthSource resource to delete. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String healthSource; - /** Name of the regional persistent disk. + /** Name of the HealthSource resource to delete. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getHealthSource() { + return healthSource; } - /** Name of the regional persistent disk. */ - public Resize setDisk(java.lang.String disk) { + /** Name of the HealthSource resource to delete. */ + public Delete setHealthSource(java.lang.String healthSource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + this.healthSource = healthSource; return this; } @@ -149782,39 +160396,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified HealthSource resource in the given region. * - * Create a request for the method "regionDisks.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to return. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -149822,28 +160435,26 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to return. * @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); + 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(), @@ -149856,72 +160467,82 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -149935,7 +160556,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -149945,18 +160566,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String 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 " + @@ -149966,55 +160587,55 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the HealthSource resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String healthSource; - /** Name or id of the resource for this request. + /** Name of the HealthSource resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getHealthSource() { + return healthSource; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the HealthSource resource to return. */ + public Get setHealthSource(java.lang.String healthSource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.healthSource = healthSource; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the labels on the target regional disk. + * 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 "regionDisks.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthSource} * @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); + 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 SetLabels extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150022,27 +160643,23 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthSource} * @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) { + 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()) { @@ -150056,72 +160673,66 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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}"); - } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -150135,7 +160746,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -150145,18 +160756,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String 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 " + @@ -150166,27 +160777,6 @@ public SetLabels setRegion(java.lang.String 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 @@ -150231,40 +160821,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Starts asynchronous replication. Must be invoked on the primary disk. + * Lists the HealthSources for a project in the given region. * - * Create a request for the method "regionDisks.startAsyncReplication". + * 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 StartAsyncReplication#execute()} method to invoke the remote - * operation. + * 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. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region scoping this request. * @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); + 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 StartAsyncReplication extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150272,28 +160859,22 @@ public class StartAsyncReplication extends ComputeRequest {@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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. - * @param disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region scoping this request. * @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); + 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(), @@ -150306,72 +160887,76 @@ protected StartAsyncReplication(java.lang.String project, java.lang.String regio "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}"); - } } @Override - public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StartAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StartAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StartAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StartAsyncReplication setAlt(java.lang.String alt) { - return (StartAsyncReplication) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public StartAsyncReplication setCallback(java.lang.String callback) { - return (StartAsyncReplication) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public StartAsyncReplication setFields(java.lang.String fields) { - return (StartAsyncReplication) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public StartAsyncReplication setKey(java.lang.String key) { - return (StartAsyncReplication) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StartAsyncReplication) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StartAsyncReplication) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public StartAsyncReplication setUploadType(java.lang.String uploadType) { - return (StartAsyncReplication) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public StartAsyncReplication setUserIp(java.lang.String userIp) { - return (StartAsyncReplication) super.setUserIp(userIp); + 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. */ @@ -150385,7 +160970,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -150395,18 +160980,18 @@ public StartAsyncReplication setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public StartAsyncReplication setRegion(java.lang.String 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 " + @@ -150416,355 +161001,300 @@ public StartAsyncReplication setRegion(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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. + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. * - * Create a request for the method "regionDisks.stopAsyncReplication". + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` * - * 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.

    + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: * - * @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 + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopAsyncReplication) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public StopAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopAsyncReplication) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public StopAsyncReplication setAlt(java.lang.String alt) { - return (StopAsyncReplication) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public StopAsyncReplication setCallback(java.lang.String callback) { - return (StopAsyncReplication) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public StopAsyncReplication setFields(java.lang.String fields) { - return (StopAsyncReplication) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public StopAsyncReplication setKey(java.lang.String key) { - return (StopAsyncReplication) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopAsyncReplication) super.setOauthToken(oauthToken); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopAsyncReplication) super.setQuotaUser(quotaUser); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public StopAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopAsyncReplication) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public StopAsyncReplication setUserIp(java.lang.String userIp) { - return (StopAsyncReplication) 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. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** The name of the region for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** The name of the region for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** The name of the persistent disk. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String pageToken; - /** The name of the persistent disk. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public StopAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public StopAsyncReplication set(String parameterName, Object value) { - return (StopAsyncReplication) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. + * 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 "regionDisks.stopGroupAsyncReplication". + * 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 StopGroupAsyncReplication#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Patch#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} + * @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 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); + 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 StopGroupAsyncReplication extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150773,26 +161303,25 @@ public class StopGroupAsyncReplication extends ComputeRequest {@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * 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 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} + * @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 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); + */ + 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(), @@ -150805,66 +161334,67 @@ protected StopGroupAsyncReplication(java.lang.String project, java.lang.String r "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."); } @Override - public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopGroupAsyncReplication) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public StopGroupAsyncReplication setAlt(java.lang.String alt) { - return (StopGroupAsyncReplication) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public StopGroupAsyncReplication setCallback(java.lang.String callback) { - return (StopGroupAsyncReplication) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public StopGroupAsyncReplication setFields(java.lang.String fields) { - return (StopGroupAsyncReplication) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public StopGroupAsyncReplication setKey(java.lang.String key) { - return (StopGroupAsyncReplication) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopGroupAsyncReplication) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { - return (StopGroupAsyncReplication) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -150878,7 +161408,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopGroupAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -150888,25 +161418,18 @@ public StopGroupAsyncReplication setProject(java.lang.String 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. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** 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 " + @@ -150916,6 +161439,28 @@ public StopGroupAsyncReplication setRegion(java.lang.String 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 @@ -150960,20 +161505,20 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public StopGroupAsyncReplication set(String parameterName, Object value) { - return (StopGroupAsyncReplication) super.set(parameterName, value); + 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 "regionDisks.testIamPermissions". + * 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. @@ -150992,7 +161537,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -151006,7 +161551,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 { + /** - * Update the specified disk 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 modified: - * user_license. + * 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 "regionDisks.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.Disk} + * @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 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); + 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 Update extends ComputeRequest { + public class Cancel extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. Only the following fields can be modified: - * user_license. + * 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 "regionDisks.update". + * 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 Update#execute()} method to invoke the remote operation.

    {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 for this request. - * @param disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.Disk} + * @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 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); + 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(), @@ -151232,77 +161798,68 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -151316,7 +161873,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -151326,60 +161883,65 @@ public Update setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 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])?"); - } + /** + * 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 disk name for this request. */ + /** + * 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 disk; + private java.lang.String instanceGroupManager; - /** The disk name for this request. + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** + * 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; } - @com.google.api.client.util.Key - private java.util.List paths; - /** + * 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.util.List getPaths() { - return paths; + public java.lang.String getResizeRequest() { + return resizeRequest; } - public Update setPaths(java.util.List paths) { - this.paths = paths; + /** + * 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; } @@ -151427,564 +161989,52 @@ public java.lang.String getRequestId() { * 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) { + public Cancel 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 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Deletes the specified HealthAggregationPolicy in the given region. + * 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 "regionHealthAggregationPolicies.delete". + * 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 Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to delete. + * @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 healthAggregationPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, healthAggregationPolicy); + 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}/healthAggregationPolicies/{healthAggregationPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionHealthAggregationPolicies.delete". + * 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 @@ -151992,11 +162042,15 @@ public class Delete extends ComputeRequest * * @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. + * @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 healthAggregationPolicy) { + 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()) { @@ -152005,17 +162059,8 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override @@ -152099,45 +162144,65 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * The 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. + /** The 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. */ + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ 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. */ + /** + * 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 healthAggregationPolicy; + private java.lang.String instanceGroupManager; - /** Name of the HealthAggregationPolicy resource to delete. + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getHealthAggregationPolicy() { - return healthAggregationPolicy; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** + * 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; } @@ -152196,41 +162261,39 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified HealthAggregationPolicy resource in the given region. + * Returns all of the details about the specified resize request. * - * Create a request for the method "regionHealthAggregationPolicies.get". + * 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 Name of the region scoping this request. - * @param healthAggregationPolicy Name of the HealthAggregationPolicy resource to return. + * @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 healthAggregationPolicy) throws java.io.IOException { - Get result = new Get(project, region, healthAggregationPolicy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Returns all of the details about the specified resize request. * - * Create a request for the method "regionHealthAggregationPolicies.get". + * 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 @@ -152238,12 +162301,16 @@ public class Get extends ComputeRequest * * @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. + * @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 healthAggregationPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicy.class); + 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(), @@ -152251,17 +162318,8 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override @@ -152355,45 +162413,63 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * The 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. + /** The 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. */ + /** + * The name of the region scoping this request. Name should conform to RFC1035. + */ 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. */ + /** + * 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 healthAggregationPolicy; + private java.lang.String resizeRequest; - /** Name of the HealthAggregationPolicy resource to return. + /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getHealthAggregationPolicy() { - return healthAggregationPolicy; + public java.lang.String getResizeRequest() { + return resizeRequest; } - /** 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; + /** + * 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; } @@ -152403,40 +162479,39 @@ public Get set(String parameterName, Object value) { } } /** - * Create a HealthAggregationPolicy in the specified project in the given region using the - * parameters that are included in the request. + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. * - * Create a request for the method "regionHealthAggregationPolicies.insert". + * 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. - * @param content the {@link com.google.api.services.compute.model.HealthAggregationPolicy} + * @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, com.google.api.services.compute.model.HealthAggregationPolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + 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}/healthAggregationPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. * - * Create a request for the method "regionHealthAggregationPolicies.insert". + * 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 @@ -152444,11 +162519,15 @@ public class Insert extends ComputeRequest * * @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} + * @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, com.google.api.services.compute.model.HealthAggregationPolicy content) { + 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()) { @@ -152457,11 +162536,7 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override @@ -152545,27 +162620,49 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 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 of the region scoping this request. Name should conform to RFC1035. + */ 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; } + /** + * 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 @@ -152621,37 +162718,36 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the HealthAggregationPolicies for a project in the given region. + * Retrieves a list of Resize Requests that are contained in the managed instance group. * - * Create a request for the method "regionHealthAggregationPolicies.list". + * 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. + * @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) throws java.io.IOException { - List result = new List(project, region); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves a list of Resize Requests that are contained in the managed instance group. * - * Create a request for the method "regionHealthAggregationPolicies.list". + * 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 @@ -152659,11 +162755,13 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthAggregationPolicyList.class); + 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(), @@ -152671,11 +162769,7 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override @@ -152769,27 +162863,42 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 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 of the region scoping this request. Name should conform to RFC1035. + */ 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; } + /** 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 @@ -153059,529 +163168,99 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * An accessor for creating requests from the RegionInstanceGroupManagers collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionHealthCheckServices.List request = compute.regionHealthCheckServices().list(parameters ...)}
    +   *   {@code Compute.RegionInstanceGroupManagers.List request = compute.regionInstanceGroupManagers().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionHealthCheckServices regionHealthCheckServices() { - return new RegionHealthCheckServices(); + public RegionInstanceGroupManagers regionInstanceGroupManagers() { + return new RegionInstanceGroupManagers(); } /** - * The "regionHealthCheckServices" collection of methods. + * The "regionInstanceGroupManagers" collection of methods. */ - public class RegionHealthCheckServices { + public class RegionInstanceGroupManagers { /** - * Deletes the specified regional HealthCheckService. + * 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. * - * Create a request for the method "regionHealthCheckServices.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} * @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); + 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 Delete extends ComputeRequest { + public class AbandonInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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. * - * Create a request for the method "regionHealthCheckServices.delete". + * 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 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.

    + * 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 healthCheckService Name of the HealthCheckService to delete. The name - must be 1-63 characters long, and comply with - * RFC1035. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} * @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); + 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(), @@ -153589,72 +163268,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { + return (AbandonInstances) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AbandonInstances setAccessToken(java.lang.String accessToken) { + return (AbandonInstances) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AbandonInstances setAlt(java.lang.String alt) { + return (AbandonInstances) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AbandonInstances setCallback(java.lang.String callback) { + return (AbandonInstances) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AbandonInstances setFields(java.lang.String fields) { + return (AbandonInstances) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AbandonInstances setKey(java.lang.String key) { + return (AbandonInstances) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AbandonInstances setOauthToken(java.lang.String oauthToken) { + return (AbandonInstances) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AbandonInstances) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AbandonInstances setQuotaUser(java.lang.String quotaUser) { + return (AbandonInstances) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AbandonInstances setUploadType(java.lang.String uploadType) { + return (AbandonInstances) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AbandonInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AbandonInstances setUserIp(java.lang.String userIp) { + return (AbandonInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -153668,7 +163342,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -153689,36 +163363,24 @@ public java.lang.String getRegion() { } /** 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])?"); - } + public AbandonInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String instanceGroupManager; - /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name of the managed instance group. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * 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; + /** Name of the managed instance group. */ + public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -153766,268 +163428,73 @@ public java.lang.String getRequestId() { * 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) { + public AbandonInstances 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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); + public AbandonInstances set(String parameterName, Object value) { + return (AbandonInstances) super.set(parameterName, value); } } /** - * Creates a regional HealthCheckService resource in the specified project and region using the data - * included in the request. + * Flags the specified instances to be adopted to the managed instance group. Adopting an instance + * does not change the instance status, but it adds the instance to any target pools that are + * applied by the managed instance group. This method increases the targetSize of the managed + * instance group by the number of instances that you adopt. This operation is marked as DONE when + * the action is scheduled even if the instances have not been adopted to the group yet. You must + * separately verify the status of the adopting action with the listManagedInstances method. * - * Create a request for the method "regionHealthCheckServices.insert". + * Create a request for the method "regionInstanceGroupManagers.adoptInstances". * * 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. + * parameters, call the {@link AdoptInstances#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} + * @param region Name of the region scoping this request. It should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a + resource ID. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} * @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); + public AdoptInstances adoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) throws java.io.IOException { + AdoptInstances result = new AdoptInstances(project, region, instanceGroupManager, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class AdoptInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/adoptInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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". + * Flags the specified instances to be adopted to the managed instance group. Adopting an instance + * does not change the instance status, but it adds the instance to any target pools that are + * applied by the managed instance group. This method increases the targetSize of the managed + * instance group by the number of instances that you adopt. This operation is marked as DONE when + * the action is scheduled even if the instances have not been adopted to the group yet. You must + * separately verify the status of the adopting action with the listManagedInstances method. * - * 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.

    + * Create a request for the method "regionInstanceGroupManagers.adoptInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AdoptInstances#execute()} method to invoke the remote operation. + *

    {@link AdoptInstances#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 content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param region Name of the region scoping this request. It should conform to RFC1035. + * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a + resource ID. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheckService content) { + protected AdoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -154036,71 +163503,67 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public AdoptInstances set$Xgafv(java.lang.String $Xgafv) { + return (AdoptInstances) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public AdoptInstances setAccessToken(java.lang.String accessToken) { + return (AdoptInstances) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public AdoptInstances setAlt(java.lang.String alt) { + return (AdoptInstances) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public AdoptInstances setCallback(java.lang.String callback) { + return (AdoptInstances) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public AdoptInstances setFields(java.lang.String fields) { + return (AdoptInstances) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public AdoptInstances setKey(java.lang.String key) { + return (AdoptInstances) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public AdoptInstances setOauthToken(java.lang.String oauthToken) { + return (AdoptInstances) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public AdoptInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AdoptInstances) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public AdoptInstances setQuotaUser(java.lang.String quotaUser) { + return (AdoptInstances) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public AdoptInstances setUploadType(java.lang.String uploadType) { + return (AdoptInstances) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public AdoptInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AdoptInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public AdoptInstances setUserIp(java.lang.String userIp) { + return (AdoptInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -154114,7 +163577,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public AdoptInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -154124,27 +163587,42 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region scoping this request. It should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region scoping this request. It should conform to RFC1035. */ 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])?"); - } + /** Name of the region scoping this request. It should conform to RFC1035. */ + public AdoptInstances setRegion(java.lang.String region) { this.region = region; return this; } + /** + * Name of the managed instance group. It 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. It should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * Name of the managed instance group. It should conform to RFC1035 or be a resource ID. + */ + public AdoptInstances 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 @@ -154189,62 +163667,63 @@ public java.lang.String getRequestId() { * 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) { + public AdoptInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public AdoptInstances set(String parameterName, Object value) { + return (AdoptInstances) super.set(parameterName, value); } } /** - * Lists all the HealthCheckService resources that have been configured for the specified project in - * the given region. + * Apply updates to selected instances the managed instance group. * - * Create a request for the method "regionHealthCheckServices.list". + * 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 List#execute()} method to invoke the remote operation. + * 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. + * @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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class ApplyUpdatesToInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Apply updates to selected instances the managed instance group. * - * Create a request for the method "regionHealthCheckServices.list". + * 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 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.

    + * 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. + * @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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckServicesList.class); + 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(), @@ -154252,81 +163731,67 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { + return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { + return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ApplyUpdatesToInstances setAlt(java.lang.String alt) { + return (ApplyUpdatesToInstances) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ApplyUpdatesToInstances setCallback(java.lang.String callback) { + return (ApplyUpdatesToInstances) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ApplyUpdatesToInstances setFields(java.lang.String fields) { + return (ApplyUpdatesToInstances) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ApplyUpdatesToInstances setKey(java.lang.String key) { + return (ApplyUpdatesToInstances) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { + return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { + return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { + return (ApplyUpdatesToInstances) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { + return (ApplyUpdatesToInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -154340,7 +163805,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -154350,351 +163815,332 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** 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. + /** 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. */ - 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])?"); - } + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * 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. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionInstanceGroupManagers.createInstances". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - @com.google.api.client.util.Key - private java.lang.String filter; + 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."); + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + @Override + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) super.setUserIp(userIp); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * 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 orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** The name of theregion where the managed instance group is located. It should conform to RFC1035. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The name of theregion where the managed instance group is located. It should conform to + * RFC1035. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public CreateInstances setRegion(java.lang.String region) { + this.region = region; return this; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * The name of the managed instance group. It should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String instanceGroupManager; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * The name of the managed instance group. It should conform to RFC1035. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same 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.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same 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.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public CreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) 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. + * Deletes the specified managed instance group and all of the instances in that group. * - * Create a request for the method "regionHealthCheckServices.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param instanceGroupManager Name of the managed instance group to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Deletes the specified managed instance group and all of the instances in that group. * - * Create a request for the method "regionHealthCheckServices.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. The name - must be 1-63 characters long, and comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.HealthCheckService} + * @param instanceGroupManager Name of the managed instance group to delete. * @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); + 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(), @@ -154702,72 +164148,67 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -154781,7 +164222,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -154802,36 +164243,24 @@ public java.lang.String getRegion() { } /** 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])?"); - } + public Delete setRegion(java.lang.String region) { this.region = region; return this; } - /** - * Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name of the managed instance group to delete. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String instanceGroupManager; - /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name of the managed instance group to delete. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * 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; + /** Name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -154879,68 +164308,84 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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. * - * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link DeleteInstances#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class DeleteInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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. * - * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -154948,77 +164393,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -155032,7 +164467,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -155042,125 +164477,139 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public DeleteInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** Name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** Name of the managed instance group. */ + public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "regionHealthChecks" collection of methods. - */ - public class RegionHealthChecks { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 the specified HealthCheck resource. + * Deletes selected per-instance configurations for the managed instance group. * - * Create a request for the method "regionHealthChecks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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. - * @param healthCheck Name of the HealthCheck resource to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class DeletePerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Deletes selected per-instance configurations for the managed instance group. * - * Create a request for the method "regionHealthChecks.delete". + * 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 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.

    + * 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. - * @param healthCheck Name of the HealthCheck resource to delete. + * @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 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); + 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(), @@ -155168,77 +164617,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + @Override + public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public DeletePerInstanceConfigs setAlt(java.lang.String alt) { + return (DeletePerInstanceConfigs) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public DeletePerInstanceConfigs setCallback(java.lang.String callback) { + return (DeletePerInstanceConfigs) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public DeletePerInstanceConfigs setFields(java.lang.String fields) { + return (DeletePerInstanceConfigs) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public DeletePerInstanceConfigs setKey(java.lang.String key) { + return (DeletePerInstanceConfigs) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (DeletePerInstanceConfigs) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (DeletePerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -155252,7 +164691,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -155262,138 +164701,73 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** 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. + /** 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. */ - 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])?"); - } + /** Name of the region scoping this request, should conform to RFC1035. */ + public DeletePerInstanceConfigs setRegion(java.lang.String region) { 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). - */ + /** The name of the managed instance group. It should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String instanceGroupManager; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public DeletePerInstanceConfigs set(String parameterName, Object value) { + return (DeletePerInstanceConfigs) super.set(parameterName, value); } } /** - * Returns the specified HealthCheck resource. + * Returns all of the details about the specified managed instance group. * - * Create a request for the method "regionHealthChecks.get". + * 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 healthCheck Name of the HealthCheck resource to return. + * @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 healthCheck) throws java.io.IOException { - Get result = new Get(project, region, healthCheck); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Returns all of the details about the specified managed instance group. * - * Create a request for the method "regionHealthChecks.get". + * 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 @@ -155402,11 +164776,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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. * - * Create a request for the method "regionHealthChecks.insert". + * 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 @@ -155606,10 +164969,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of managed instance groups that are contained within the specified region. * - * Create a request for the method "regionHealthChecks.list". + * 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 @@ -155824,7 +165174,7 @@ public class List extends ComputeRequest { + public class ListErrors extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionHealthChecks.patch". + * 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 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.

    + * 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. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + 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 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); + 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(), @@ -156280,77 +165623,77 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public ListErrors set$Xgafv(java.lang.String $Xgafv) { + return (ListErrors) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public ListErrors setAccessToken(java.lang.String accessToken) { + return (ListErrors) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public ListErrors setAlt(java.lang.String alt) { + return (ListErrors) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public ListErrors setCallback(java.lang.String callback) { + return (ListErrors) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public ListErrors setFields(java.lang.String fields) { + return (ListErrors) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public ListErrors setKey(java.lang.String key) { + return (ListErrors) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public ListErrors setOauthToken(java.lang.String oauthToken) { + return (ListErrors) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListErrors) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public ListErrors setQuotaUser(java.lang.String quotaUser) { + return (ListErrors) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + 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. */ @@ -156364,7 +165707,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -156374,154 +165717,372 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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. + /** 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. */ - 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])?"); - } + /** + * Name of the region scoping this request. This should conform to RFC1035. + */ + public ListErrors setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the HealthCheck resource to patch. */ + /** + * 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 healthCheck; + private java.lang.String instanceGroupManager; - /** Name of the HealthCheck resource to patch. + /** 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 getHealthCheck() { - return healthCheck; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** + * 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListErrors setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public ListErrors set(String parameterName, Object value) { + return (ListErrors) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "regionHealthChecks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link ListManagedInstances#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} + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class ListManagedInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionHealthChecks.testIamPermissions". + * 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 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 + * 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 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} + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. * @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); + 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(), @@ -156529,77 +166090,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListManagedInstances) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ListManagedInstances setAccessToken(java.lang.String accessToken) { + return (ListManagedInstances) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ListManagedInstances setAlt(java.lang.String alt) { + return (ListManagedInstances) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ListManagedInstances setCallback(java.lang.String callback) { + return (ListManagedInstances) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ListManagedInstances setFields(java.lang.String fields) { + return (ListManagedInstances) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ListManagedInstances setKey(java.lang.String key) { + return (ListManagedInstances) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ListManagedInstances setOauthToken(java.lang.String oauthToken) { + return (ListManagedInstances) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListManagedInstances) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { + return (ListManagedInstances) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ListManagedInstances setUploadType(java.lang.String uploadType) { + return (ListManagedInstances) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ListManagedInstances setUserIp(java.lang.String userIp) { + return (ListManagedInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -156613,7 +166164,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -156623,462 +166174,436 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public ListManagedInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** The name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** The name of the managed instance group. */ + public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionHealthChecks.update". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) 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. + */ + public ListManagedInstances setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region scoping this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region scoping this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the HealthCheck resource to update. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String pageToken; - /** Name of the HealthCheck resource to update. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListManagedInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public ListManagedInstances set(String parameterName, Object value) { + return (ListManagedInstances) 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`. + * 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 "regionHealthSources.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation. * - * @param project Name of the project scoping this request. + * @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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class ListPerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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`. + * 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 "regionHealthSources.aggregatedList". + * 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 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.

    + * 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 Name of the project scoping this request. + * @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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSourceAggregatedList.class); + 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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (ListPerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListPerInstanceConfigs setAlt(java.lang.String alt) { + return (ListPerInstanceConfigs) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListPerInstanceConfigs setCallback(java.lang.String callback) { + return (ListPerInstanceConfigs) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListPerInstanceConfigs setFields(java.lang.String fields) { + return (ListPerInstanceConfigs) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListPerInstanceConfigs setKey(java.lang.String key) { + return (ListPerInstanceConfigs) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (ListPerInstanceConfigs) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (ListPerInstanceConfigs) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String 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 " + @@ -157088,6 +166613,38 @@ public AggregatedList setProject(java.lang.String 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 @@ -157219,45 +166776,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListPerInstanceConfigs 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 @@ -157282,7 +166805,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListPerInstanceConfigs setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -157326,7 +166849,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListPerInstanceConfigs setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -157349,7 +166872,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListPerInstanceConfigs setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -157381,88 +166904,79 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListPerInstanceConfigs setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public ListPerInstanceConfigs set(String parameterName, Object value) { + return (ListPerInstanceConfigs) super.set(parameterName, value); } } /** - * Deletes the specified HealthSource in the given region + * 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. * - * Create a request for the method "regionHealthSources.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 resource to delete. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 + * 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. * - * Create a request for the method "regionHealthSources.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 resource to delete. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @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); + 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(), @@ -157470,77 +166984,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -157554,7 +167058,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -157575,34 +167079,24 @@ public java.lang.String getRegion() { } /** 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])?"); - } + public Patch setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the HealthSource resource to delete. */ + /** The name of the instance group manager. */ @com.google.api.client.util.Key - private java.lang.String healthSource; + private java.lang.String instanceGroupManager; - /** Name of the HealthSource resource to delete. + /** The name of the instance group manager. */ - public java.lang.String getHealthSource() { - return healthSource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** The name of the instance group manager. */ + public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -157650,65 +167144,67 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified HealthSource resource in the given region. + * 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 "regionHealthSources.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. - * @param healthSource Name of the HealthSource resource to return. + * @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 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); + 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 Get extends ComputeRequest { + public class PatchPerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionHealthSources.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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. - * @param healthSource Name of the HealthSource resource to return. + * @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 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); + 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(), @@ -157716,87 +167212,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchPerInstanceConfigs setAlt(java.lang.String alt) { + return (PatchPerInstanceConfigs) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchPerInstanceConfigs setCallback(java.lang.String callback) { + return (PatchPerInstanceConfigs) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchPerInstanceConfigs setFields(java.lang.String fields) { + return (PatchPerInstanceConfigs) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchPerInstanceConfigs setKey(java.lang.String key) { + return (PatchPerInstanceConfigs) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (PatchPerInstanceConfigs) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (PatchPerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -157810,7 +167286,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -157820,100 +167296,161 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** 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. + /** 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. */ - 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])?"); - } + /** Name of the region scoping this request, should conform to RFC1035. */ + public PatchPerInstanceConfigs setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the HealthSource resource to return. */ + /** + * The name of the managed instance group. It should conform to RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String healthSource; + private java.lang.String instanceGroupManager; - /** Name of the HealthSource resource to return. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getHealthSource() { - return healthSource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public PatchPerInstanceConfigs set(String parameterName, Object value) { + return (PatchPerInstanceConfigs) super.set(parameterName, value); } } /** - * Create a HealthSource in the specified project in the given region using the parameters that are - * included in the request. + * 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. * - * Create a request for the method "regionHealthSources.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.HealthSource} + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} * @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); + 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 Insert extends ComputeRequest { + public class RecreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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. * - * Create a request for the method "regionHealthSources.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.HealthSource} + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthSource content) { + 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()) { @@ -157922,71 +167459,67 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (RecreateInstances) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RecreateInstances setAccessToken(java.lang.String accessToken) { + return (RecreateInstances) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RecreateInstances setAlt(java.lang.String alt) { + return (RecreateInstances) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RecreateInstances setCallback(java.lang.String callback) { + return (RecreateInstances) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RecreateInstances setFields(java.lang.String fields) { + return (RecreateInstances) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RecreateInstances setKey(java.lang.String key) { + return (RecreateInstances) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RecreateInstances setOauthToken(java.lang.String oauthToken) { + return (RecreateInstances) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RecreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RecreateInstances setQuotaUser(java.lang.String quotaUser) { + return (RecreateInstances) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RecreateInstances setUploadType(java.lang.String uploadType) { + return (RecreateInstances) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RecreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RecreateInstances setUserIp(java.lang.String userIp) { + return (RecreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158000,7 +167533,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -158021,16 +167554,27 @@ public java.lang.String getRegion() { } /** 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])?"); - } + 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; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -158075,60 +167619,85 @@ public java.lang.String getRequestId() { * 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) { + public RecreateInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public RecreateInstances set(String parameterName, Object value) { + return (RecreateInstances) super.set(parameterName, value); } } /** - * Lists the HealthSources for a project in the given region. + * 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. * - * Create a request for the method "regionHealthSources.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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. * - * Create a request for the method "regionHealthSources.list". + * 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 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.

    + * 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSourceList.class); + 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(), @@ -158136,81 +167705,68 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + 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."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158224,7 +167780,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -158245,337 +167801,177 @@ public java.lang.String getRegion() { } /** 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])?"); - } + public Resize 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. - */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String instanceGroupManager; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the managed instance group. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + /** Name of the managed instance group. */ + public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Number of instances that should exist in this instance group manager. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Integer size; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Number of instances that should exist in this instance group manager. + + [minimum: 0] */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Integer getSize() { + return size; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Number of instances that should exist in this instance group manager. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public Resize setSize(java.lang.Integer size) { + this.size = size; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Resize setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) 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. + * Resizes the regional managed instance group with advanced configuration options like disabling + * creation retries. This is an extended version of theresize method. * - * Create a request for the method "regionHealthSources.patch". + * 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 the get orlistmanagedinstances 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.resizeAdvanced". * * 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. + * parameters, call the {@link ResizeAdvanced#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} + It must be a string that meets the requirements in RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} * @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); + public ResizeAdvanced resizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) throws java.io.IOException { + ResizeAdvanced result = new ResizeAdvanced(project, region, instanceGroupManager, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class ResizeAdvanced extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Resizes the regional managed instance group with advanced configuration options like disabling + * creation retries. This is an extended version of theresize method. * - * Create a request for the method "regionHealthSources.patch". + * 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 the get orlistmanagedinstances 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.resizeAdvanced". * * 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.

    + * parameters, call the {@link ResizeAdvanced#execute()} method to invoke the remote operation. + *

    {@link ResizeAdvanced#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 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} + It must be a string that meets the requirements in RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} * @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); + protected ResizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -158583,72 +167979,67 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public ResizeAdvanced set$Xgafv(java.lang.String $Xgafv) { + return (ResizeAdvanced) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public ResizeAdvanced setAccessToken(java.lang.String accessToken) { + return (ResizeAdvanced) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public ResizeAdvanced setAlt(java.lang.String alt) { + return (ResizeAdvanced) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public ResizeAdvanced setCallback(java.lang.String callback) { + return (ResizeAdvanced) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public ResizeAdvanced setFields(java.lang.String fields) { + return (ResizeAdvanced) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public ResizeAdvanced setKey(java.lang.String key) { + return (ResizeAdvanced) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public ResizeAdvanced setOauthToken(java.lang.String oauthToken) { + return (ResizeAdvanced) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public ResizeAdvanced setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResizeAdvanced) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public ResizeAdvanced setQuotaUser(java.lang.String quotaUser) { + return (ResizeAdvanced) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public ResizeAdvanced setUploadType(java.lang.String uploadType) { + return (ResizeAdvanced) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public ResizeAdvanced setUploadProtocol(java.lang.String uploadProtocol) { + return (ResizeAdvanced) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public ResizeAdvanced setUserIp(java.lang.String userIp) { + return (ResizeAdvanced) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158662,7 +168053,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public ResizeAdvanced setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -158672,46 +168063,48 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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. + /** 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. */ - 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])?"); - } + /** + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. + */ + public ResizeAdvanced setRegion(java.lang.String region) { this.region = region; return this; } /** - * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with + * The name of the managed instance group. It must be a string that meets the requirements in * RFC1035. */ @com.google.api.client.util.Key - private java.lang.String healthSource; + private java.lang.String instanceGroupManager; - /** Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. + /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035. */ - public java.lang.String getHealthSource() { - return healthSource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } /** - * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with + * The name of the managed instance group. It must be a string that meets the requirements in * RFC1035. */ - public Patch setHealthSource(java.lang.String healthSource) { - this.healthSource = healthSource; + public ResizeAdvanced setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -158759,68 +168152,88 @@ public java.lang.String getRequestId() { * 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) { + public ResizeAdvanced setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public ResizeAdvanced set(String parameterName, Object value) { + return (ResizeAdvanced) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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. * - * Create a request for the method "regionHealthSources.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link ResumeInstances#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class ResumeInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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. * - * Create a request for the method "regionHealthSources.testIamPermissions". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -158828,77 +168241,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { + return (ResumeInstances) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ResumeInstances setAccessToken(java.lang.String accessToken) { + return (ResumeInstances) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ResumeInstances setAlt(java.lang.String alt) { + return (ResumeInstances) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ResumeInstances setCallback(java.lang.String callback) { + return (ResumeInstances) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ResumeInstances setFields(java.lang.String fields) { + return (ResumeInstances) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ResumeInstances setKey(java.lang.String key) { + return (ResumeInstances) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ResumeInstances setOauthToken(java.lang.String oauthToken) { + return (ResumeInstances) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResumeInstances) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ResumeInstances setQuotaUser(java.lang.String quotaUser) { + return (ResumeInstances) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ResumeInstances setUploadType(java.lang.String uploadType) { + return (ResumeInstances) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ResumeInstances) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ResumeInstances setUserIp(java.lang.String userIp) { + return (ResumeInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158912,7 +168315,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -158922,129 +168325,141 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public ResumeInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** Name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** Name of the managed instance group. */ + public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "regionInstanceGroupManagerResizeRequests" collection of methods. - */ - public class RegionInstanceGroupManagerResizeRequests { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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); + } + } /** - * 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. + * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] + * This method is deprecated. UseregionInstanceGroupManagers.patch instead. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". + * Create a request for the method "regionInstanceGroupManagers.setAutoHealingPolicies". * * 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. + * parameters, call the {@link SetAutoHealingPolicies#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. + * @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.RegionInstanceGroupManagersSetAutoHealingRequest} * @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); + public SetAutoHealingPolicies setAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) throws java.io.IOException { + SetAutoHealingPolicies result = new SetAutoHealingPolicies(project, region, instanceGroupManager, content); initialize(result); return result; } - public class Cancel extends ComputeRequest { + public class SetAutoHealingPolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] + * This method is deprecated. UseregionInstanceGroupManagers.patch instead. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". + * Create a request for the method "regionInstanceGroupManagers.setAutoHealingPolicies". * * 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.

    + * parameters, call the {@link SetAutoHealingPolicies#execute()} method to invoke the remote + * operation.

    {@link SetAutoHealingPolicies#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 - 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. + * @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.RegionInstanceGroupManagersSetAutoHealingRequest} * @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); + protected SetAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -159053,67 +168468,66 @@ protected Cancel(java.lang.String project, java.lang.String region, java.lang.St } 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."); } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public SetAutoHealingPolicies set$Xgafv(java.lang.String $Xgafv) { + return (SetAutoHealingPolicies) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public SetAutoHealingPolicies setAccessToken(java.lang.String accessToken) { + return (SetAutoHealingPolicies) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public SetAutoHealingPolicies setAlt(java.lang.String alt) { + return (SetAutoHealingPolicies) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public SetAutoHealingPolicies setCallback(java.lang.String callback) { + return (SetAutoHealingPolicies) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public SetAutoHealingPolicies setFields(java.lang.String fields) { + return (SetAutoHealingPolicies) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public SetAutoHealingPolicies setKey(java.lang.String key) { + return (SetAutoHealingPolicies) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public SetAutoHealingPolicies setOauthToken(java.lang.String oauthToken) { + return (SetAutoHealingPolicies) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public SetAutoHealingPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetAutoHealingPolicies) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public SetAutoHealingPolicies setQuotaUser(java.lang.String quotaUser) { + return (SetAutoHealingPolicies) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public SetAutoHealingPolicies setUploadType(java.lang.String uploadType) { + return (SetAutoHealingPolicies) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public SetAutoHealingPolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (SetAutoHealingPolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) super.setUserIp(userIp); + public SetAutoHealingPolicies setUserIp(java.lang.String userIp) { + return (SetAutoHealingPolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -159127,7 +168541,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Cancel setProject(java.lang.String project) { + public SetAutoHealingPolicies setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -159137,68 +168551,38 @@ public Cancel setProject(java.lang.String project) { return this; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** Name of the region scoping this request. */ + public SetAutoHealingPolicies 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. - */ + /** Name of the managed instance group. */ @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. + /** Name of the managed instance group. */ 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) { + /** Name of the managed instance group. */ + public SetAutoHealingPolicies 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 @@ -159243,69 +168627,64 @@ public java.lang.String getRequestId() { * 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) { + public SetAutoHealingPolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public SetAutoHealingPolicies set(String parameterName, Object value) { + return (SetAutoHealingPolicies) 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. + * 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 "regionInstanceGroupManagerResizeRequests.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link SetInstanceTemplate#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 region Name of the region scoping this request. * @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. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest} * @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); + 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 Delete extends ComputeRequest { + public class SetInstanceTemplate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "regionInstanceGroupManagerResizeRequests.delete". + * 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 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.

    + * 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 The name of the region - scoping this request. Name should conform to RFC1035. + * @param region Name of the region scoping this request. * @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. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest} * @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); + 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(), @@ -159314,67 +168693,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } 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."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetInstanceTemplate) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { + return (SetInstanceTemplate) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetInstanceTemplate setAlt(java.lang.String alt) { + return (SetInstanceTemplate) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetInstanceTemplate setCallback(java.lang.String callback) { + return (SetInstanceTemplate) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetInstanceTemplate setFields(java.lang.String fields) { + return (SetInstanceTemplate) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetInstanceTemplate setKey(java.lang.String key) { + return (SetInstanceTemplate) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { + return (SetInstanceTemplate) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetInstanceTemplate) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetInstanceTemplate setUploadType(java.lang.String uploadType) { + return (SetInstanceTemplate) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetInstanceTemplate setUserIp(java.lang.String userIp) { + return (SetInstanceTemplate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -159388,7 +168766,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -159398,68 +168776,38 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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. Name should conform to RFC1035 or be a resource ID. - */ + /** 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. Name should conform to RFC1035 or be a resource ID. + /** The name of the managed instance group. */ 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) { + /** The name of the managed instance group. */ + public SetInstanceTemplate 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 @@ -159504,67 +168852,64 @@ public java.lang.String getRequestId() { * 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) { + public SetInstanceTemplate setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetInstanceTemplate set(String parameterName, Object value) { + return (SetInstanceTemplate) super.set(parameterName, value); } } /** - * Returns all of the details about the specified resize request. + * 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 "regionInstanceGroupManagerResizeRequests.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetTargetPools#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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetTargetPools extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "regionInstanceGroupManagerResizeRequests.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 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. + * @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 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); + 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(), @@ -159573,77 +168918,66 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin } 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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { + return (SetTargetPools) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetTargetPools setAccessToken(java.lang.String accessToken) { + return (SetTargetPools) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetTargetPools setAlt(java.lang.String alt) { + return (SetTargetPools) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetTargetPools setCallback(java.lang.String callback) { + return (SetTargetPools) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetTargetPools setFields(java.lang.String fields) { + return (SetTargetPools) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetTargetPools setKey(java.lang.String key) { + return (SetTargetPools) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetTargetPools setOauthToken(java.lang.String oauthToken) { + return (SetTargetPools) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTargetPools) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetTargetPools setQuotaUser(java.lang.String quotaUser) { + return (SetTargetPools) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetTargetPools setUploadType(java.lang.String uploadType) { + return (SetTargetPools) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTargetPools) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetTargetPools setUserIp(java.lang.String userIp) { + return (SetTargetPools) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -159657,7 +168991,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -159667,121 +169001,163 @@ public Get setProject(java.lang.String project) { return this; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** Name of the region scoping this request. */ + public SetTargetPools 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. - */ + /** Name of the managed instance group. */ @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. + /** Name of the managed instance group. */ 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) { + /** Name of the managed instance group. */ + public SetTargetPools 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String resizeRequest; + private java.lang.String requestId; - /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResizeRequest() { - return resizeRequest; + public java.lang.String getRequestId() { + return requestId; } /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public Get setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; + public SetTargetPools setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetTargetPools set(String parameterName, Object value) { + return (SetTargetPools) super.set(parameterName, value); } } /** - * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * 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. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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. 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} + * @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 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); + 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 Insert extends ComputeRequest { + public class StartInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.insert". + * 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 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.

    + * 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. 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} + * @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 Insert(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) { + 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()) { @@ -159794,63 +169170,63 @@ protected Insert(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public StartInstances set$Xgafv(java.lang.String $Xgafv) { + return (StartInstances) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public StartInstances setAccessToken(java.lang.String accessToken) { + return (StartInstances) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public StartInstances setAlt(java.lang.String alt) { + return (StartInstances) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public StartInstances setCallback(java.lang.String callback) { + return (StartInstances) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public StartInstances setFields(java.lang.String fields) { + return (StartInstances) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public StartInstances setKey(java.lang.String key) { + return (StartInstances) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public StartInstances setOauthToken(java.lang.String oauthToken) { + return (StartInstances) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartInstances) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public StartInstances setQuotaUser(java.lang.String quotaUser) { + return (StartInstances) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public StartInstances setUploadType(java.lang.String uploadType) { + return (StartInstances) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StartInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public StartInstances setUserIp(java.lang.String userIp) { + return (StartInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -159864,7 +169240,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -159874,45 +169250,34 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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 to which the resize request is scoped. Name should - * conform to RFC1035 or be a resource ID. - */ + /** Name of the managed instance group. */ @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. + /** Name of the managed instance group. */ 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) { + /** Name of the managed instance group. */ + public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -159961,61 +169326,99 @@ public java.lang.String getRequestId() { * 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) { + public StartInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public StartInstances set(String parameterName, Object value) { + return (StartInstances) super.set(parameterName, value); } } /** - * Retrieves a list of Resize Requests that are contained in the managed instance group. + * 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. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.list". + * 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 List#execute()} method to invoke the remote operation. + * 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. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @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 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); + 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 List extends ComputeRequest { + public class StopInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.list". + * 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 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.

    + * 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. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @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 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); + 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(), @@ -160027,73 +169430,63 @@ protected List(java.lang.String project, java.lang.String region, java.lang.Stri } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public StopInstances set$Xgafv(java.lang.String $Xgafv) { + return (StopInstances) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StopInstances setAccessToken(java.lang.String accessToken) { + return (StopInstances) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StopInstances setAlt(java.lang.String alt) { + return (StopInstances) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StopInstances setCallback(java.lang.String callback) { + return (StopInstances) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StopInstances setFields(java.lang.String fields) { + return (StopInstances) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StopInstances setKey(java.lang.String key) { + return (StopInstances) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StopInstances setOauthToken(java.lang.String oauthToken) { + return (StopInstances) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopInstances) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StopInstances setQuotaUser(java.lang.String quotaUser) { + return (StopInstances) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StopInstances setUploadType(java.lang.String uploadType) { + return (StopInstances) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StopInstances) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StopInstances setUserIp(java.lang.String userIp) { + return (StopInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -160107,7 +169500,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -160117,403 +169510,175 @@ public List setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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. The name should conform to RFC1035. */ + /** 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. The name should conform to RFC1035. + /** The name of the managed instance group. */ 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) { + /** The name of the managed instance group. */ + public StopInstances 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StopInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public StopInstances set(String parameterName, Object value) { + return (StopInstances) 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. + * 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 removed - * or deleted. + * 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.abandonInstances". + * 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 AbandonInstances#execute()} method to invoke the remote operation. + * 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.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest} * @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); + 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 AbandonInstances extends ComputeRequest { + public class SuspendInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 - * removed or deleted. + * 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.abandonInstances". + * 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 AbandonInstances#execute()} method to invoke the remote operation. - *

    {@link AbandonInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * 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.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest} * @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) { + 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()) { @@ -160526,63 +169691,63 @@ protected AbandonInstances(java.lang.String project, java.lang.String region, ja } @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); + public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { + return (SuspendInstances) super.set$Xgafv($Xgafv); } @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); + public SuspendInstances setAccessToken(java.lang.String accessToken) { + return (SuspendInstances) super.setAccessToken(accessToken); } @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); + public SuspendInstances setAlt(java.lang.String alt) { + return (SuspendInstances) super.setAlt(alt); } @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); + public SuspendInstances setCallback(java.lang.String callback) { + return (SuspendInstances) super.setCallback(callback); } @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); + public SuspendInstances setFields(java.lang.String fields) { + return (SuspendInstances) super.setFields(fields); } @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); + public SuspendInstances setKey(java.lang.String key) { + return (SuspendInstances) super.setKey(key); } @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); + public SuspendInstances setOauthToken(java.lang.String oauthToken) { + return (SuspendInstances) super.setOauthToken(oauthToken); } @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); + public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SuspendInstances) super.setPrettyPrint(prettyPrint); } @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); + public SuspendInstances setQuotaUser(java.lang.String quotaUser) { + return (SuspendInstances) super.setQuotaUser(quotaUser); } @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); + public SuspendInstances setUploadType(java.lang.String uploadType) { + return (SuspendInstances) super.setUploadType(uploadType); } @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (SuspendInstances) super.setUploadProtocol(uploadProtocol); } @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) super.setUserIp(userIp); + public SuspendInstances setUserIp(java.lang.String userIp) { + return (SuspendInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -160596,7 +169761,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AbandonInstances setProject(java.lang.String project) { + 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 " + @@ -160617,7 +169782,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public AbandonInstances setRegion(java.lang.String region) { + public SuspendInstances setRegion(java.lang.String region) { this.region = region; return this; } @@ -160633,7 +169798,7 @@ public java.lang.String getInstanceGroupManager() { } /** Name of the managed instance group. */ - public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -160682,63 +169847,68 @@ public java.lang.String getRequestId() { * 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) { + public SuspendInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); + public SuspendInstances set(String parameterName, Object value) { + return (SuspendInstances) super.set(parameterName, value); } } /** - * Apply updates to selected instances the managed instance group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * Create a request for the method "regionInstanceGroupManagers.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 ApplyUpdatesToInstances extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Apply updates to selected instances the managed instance group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * Create a request for the method "regionInstanceGroupManagers.testIamPermissions". * * 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 + * 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 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} + * @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 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); + 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(), @@ -160746,67 +169916,77 @@ protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String reg "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { - return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { - return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ApplyUpdatesToInstances setAlt(java.lang.String alt) { - return (ApplyUpdatesToInstances) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ApplyUpdatesToInstances setCallback(java.lang.String callback) { - return (ApplyUpdatesToInstances) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ApplyUpdatesToInstances setFields(java.lang.String fields) { - return (ApplyUpdatesToInstances) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ApplyUpdatesToInstances setKey(java.lang.String key) { - return (ApplyUpdatesToInstances) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { - return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { - return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { - return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { - return (ApplyUpdatesToInstances) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -160820,7 +170000,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ApplyUpdatesToInstances setProject(java.lang.String project) { + 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 " + @@ -160830,103 +170010,114 @@ public ApplyUpdatesToInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** The name of the region for this request. */ 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) { + /** 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; } - /** The name of the managed instance group, should conform to RFC1035. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** The name of the managed instance group, should conform to RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** The name of the managed instance group, should conform to RFC1035. */ - public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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 ApplyUpdatesToInstances set(String parameterName, Object value) { - return (ApplyUpdatesToInstances) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is updated even if the instances in the group have not + * yet been updated. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. * - * Create a request for the method "regionInstanceGroupManagers.createInstances". + * 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.update". * * 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. + * parameters, call the {@link Update#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} + * @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 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); + public Update update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Update result = new Update(project, region, instanceGroupManager, content); initialize(result); return result; } - public class CreateInstances extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is updated even if the instances in the group have + * not yet been updated. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. * - * Create a request for the method "regionInstanceGroupManagers.createInstances". + * 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.update". * * 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.

    + * 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 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} + * @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 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); + protected Update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager 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(), @@ -160938,63 +170129,63 @@ protected CreateInstances(java.lang.String project, java.lang.String region, jav } @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -161008,7 +170199,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateInstances setProject(java.lang.String project) { + 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 " + @@ -161018,44 +170209,34 @@ public CreateInstances setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** Name of the region scoping this request. */ + public Update setRegion(java.lang.String region) { this.region = region; return this; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ + /** The name of the instance group manager. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. It should conform to RFC1035. + /** The name of the instance group manager. */ 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) { + /** The name of the instance group manager. */ + public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -161068,7 +170249,7 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -161081,7 +170262,8 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -161098,64 +170280,72 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * 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) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Deletes the specified managed instance group and all of the instances in that group. + * 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.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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. - * @param instanceGroupManager Name of the managed instance group to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class UpdatePerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.delete". + * 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 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.

    + * 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. - * @param instanceGroupManager Name of the managed instance group to delete. + * @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 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); + 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(), @@ -161167,63 +170357,63 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { + return (UpdatePerInstanceConfigs) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { + return (UpdatePerInstanceConfigs) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public UpdatePerInstanceConfigs setFields(java.lang.String fields) { + return (UpdatePerInstanceConfigs) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public UpdatePerInstanceConfigs setKey(java.lang.String key) { + return (UpdatePerInstanceConfigs) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (UpdatePerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -161237,7 +170427,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -161247,34 +170437,38 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** 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. + /** 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. */ - public Delete setRegion(java.lang.String region) { + /** Name of the region scoping this request, should conform to RFC1035. */ + public UpdatePerInstanceConfigs setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the managed instance group to delete. */ + /** + * The name of the managed instance group. It should conform to RFC1035. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** Name of the managed instance group to delete. + /** The name of the managed instance group. It should conform to RFC1035. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** Name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String 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; } @@ -161323,84 +170517,82 @@ public java.lang.String getRequestId() { * 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) { + public UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + 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 { + /** - * 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. + * Returns the specified instance group resource. * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * 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 DeleteInstances#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} + * @param instanceGroup Name of the instance group resource to return. * @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); + 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 DeleteInstances extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Returns the specified instance group resource. * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} + * @param instanceGroup Name of the instance group resource to return. * @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); + 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(), @@ -161408,67 +170600,77 @@ protected DeleteInstances(java.lang.String project, java.lang.String region, jav "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -161482,7 +170684,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String project) { + 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 " + @@ -161503,128 +170705,73 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public DeleteInstances setRegion(java.lang.String region) { + public Get 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the instance group resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String instanceGroup; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the instance group resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Name of the instance group resource to return. */ + public Get setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; return this; } @Override - public DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes selected per-instance configurations for the managed instance group. + * Retrieves the list of instance group resources contained within the specified region. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * 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 DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region Name of the region scoping this request. * @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); + 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 DeletePerInstanceConfigs extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of instance group resources contained within the specified region. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * 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 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.

    + * 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, 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} + * @param region Name of the region scoping this request. * @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); + 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(), @@ -161632,67 +170779,76 @@ protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String re "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) super.setUserIp(userIp); + 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. */ @@ -161706,7 +170862,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeletePerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -161716,86 +170872,343 @@ public DeletePerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { this.region = region; return this; } - /** The name of the managed instance group. It should conform to RFC1035. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** The name of the managed instance group. It should conform to RFC1035. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getFilter() { + return filter; } - /** The name of the managed instance group. It should conform to RFC1035. */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns all of the details about the specified managed instance group. + * 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 "regionInstanceGroupManagers.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 instanceGroupManager Name of the managed instance group to return. + * @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 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); + 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 Get extends ComputeRequest { + public class ListInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "regionInstanceGroupManagers.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 instanceGroupManager Name of the managed instance group to return. + * @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 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); + 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(), @@ -161803,77 +171216,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListInstances) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListInstances setAccessToken(java.lang.String accessToken) { + return (ListInstances) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListInstances setAlt(java.lang.String alt) { + return (ListInstances) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListInstances setCallback(java.lang.String callback) { + return (ListInstances) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListInstances setFields(java.lang.String fields) { + return (ListInstances) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListInstances setKey(java.lang.String key) { + return (ListInstances) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListInstances setOauthToken(java.lang.String oauthToken) { + return (ListInstances) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListInstances) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListInstances setQuotaUser(java.lang.String quotaUser) { + return (ListInstances) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListInstances setUploadType(java.lang.String uploadType) { + return (ListInstances) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListInstances setUserIp(java.lang.String userIp) { + return (ListInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -161887,7 +171290,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -161908,86 +171311,345 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + public ListInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the managed instance group to return. */ + /** + * Name of the regional instance group for which we want to list the instances. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String instanceGroup; - /** Name of the managed instance group to return. + /** Name of the regional instance group for which we want to list the instances. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** Name of the managed instance group to return. */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListInstances set(String parameterName, Object value) { + return (ListInstances) 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. + * Sets the named ports for the specified regional instance group. * - * Create a request for the method "regionInstanceGroupManagers.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @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 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); + 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 Insert extends ComputeRequest { + public class SetNamedPorts extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Sets the named ports for the specified regional instance group. * - * Create a request for the method "regionInstanceGroupManagers.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstanceGroupManager content) { + 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()) { @@ -161996,66 +171658,67 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { + return (SetNamedPorts) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetNamedPorts setAccessToken(java.lang.String accessToken) { + return (SetNamedPorts) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetNamedPorts setAlt(java.lang.String alt) { + return (SetNamedPorts) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetNamedPorts setCallback(java.lang.String callback) { + return (SetNamedPorts) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetNamedPorts setFields(java.lang.String fields) { + return (SetNamedPorts) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetNamedPorts setKey(java.lang.String key) { + return (SetNamedPorts) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetNamedPorts setOauthToken(java.lang.String oauthToken) { + return (SetNamedPorts) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNamedPorts) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { + return (SetNamedPorts) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetNamedPorts setUploadType(java.lang.String uploadType) { + return (SetNamedPorts) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetNamedPorts setUserIp(java.lang.String userIp) { + return (SetNamedPorts) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -162069,7 +171732,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -162090,11 +171753,27 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + 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 @@ -162139,57 +171818,68 @@ public java.lang.String getRequestId() { * 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) { + public SetNamedPorts setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetNamedPorts set(String parameterName, Object value) { + return (SetNamedPorts) super.set(parameterName, value); } } /** - * Retrieves the list of managed instance groups that are contained within the specified region. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Retrieves the list of managed instance groups that are contained within the specified region. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.list". + * 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 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.

    + * 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 Name of the region scoping 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupManagerList.class); + 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(), @@ -162197,76 +171887,77 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -162280,7 +171971,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -162290,347 +171981,373 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String 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; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String resource; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** 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; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** + * 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(); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + /** + * The "regionInstanceTemplates" collection of methods. + */ + public class RegionInstanceTemplates { - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + /** + * 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; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class Delete extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.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}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Deletes the specified instance template. Deleting an instance template is permanent and cannot + * be undone. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionInstanceTemplates.delete". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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}"); + } } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + @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.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** The name of the region for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the instance template to delete. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String instanceTemplate; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the instance template to delete. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getInstanceTemplate() { + return instanceTemplate; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns the specified instance template. * - * Create a request for the method "regionInstanceGroupManagers.listErrors". + * 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 ListErrors#execute()} method to invoke the remote operation. + * 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. - 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}. + * @param region The name of the region for this request. + * @param instanceTemplate The name of the instance template. * @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); + 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 ListErrors extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Lists all errors thrown by actions on instances for a given regional managed instance group. - * The filter andorderBy query parameters are not supported. + * Returns the specified instance template. * - * Create a request for the method "regionInstanceGroupManagers.listErrors". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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. - 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}. + * @param region The name of the region for this request. + * @param instanceTemplate The name of the instance template. * @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); + 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(), @@ -162638,7 +172355,17 @@ protected ListErrors(java.lang.String project, java.lang.String region, java.lan "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -162652,63 +172379,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -162722,7 +172449,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListErrors setProject(java.lang.String project) { + 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 " + @@ -162732,372 +172459,117 @@ public ListErrors setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. This should conform to RFC1035. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. This should conform to RFC1035. + /** The name of the region for this request. */ 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) { + /** 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 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. - */ + /** The name of the instance template. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String instanceTemplate; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the instance template. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getInstanceTemplate() { + return instanceTemplate; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** View of the instance template. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String view; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** View of the instance template. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getView() { + return view; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListErrors setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** View of the instance template. */ + public Get setView(java.lang.String view) { + this.view = view; return this; } @Override - public ListErrors set(String parameterName, Object value) { - return (ListErrors) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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`. + * 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 "regionInstanceGroupManagers.listManagedInstances". + * 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 ListManagedInstances#execute()} method to invoke the remote - * operation. + * 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 instanceGroupManager The name of the managed instance group. + * @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 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); + 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 ListManagedInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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`. + * 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 "regionInstanceGroupManagers.listManagedInstances". + * 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 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.

    + * 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 instanceGroupManager The name of the managed instance group. + * @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 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); + 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(), @@ -163105,67 +172577,71 @@ protected ListManagedInstances(java.lang.String project, java.lang.String region "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListManagedInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public ListManagedInstances setAccessToken(java.lang.String accessToken) { - return (ListManagedInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public ListManagedInstances setAlt(java.lang.String alt) { - return (ListManagedInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public ListManagedInstances setCallback(java.lang.String callback) { - return (ListManagedInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public ListManagedInstances setFields(java.lang.String fields) { - return (ListManagedInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public ListManagedInstances setKey(java.lang.String key) { - return (ListManagedInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public ListManagedInstances setOauthToken(java.lang.String oauthToken) { - return (ListManagedInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListManagedInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { - return (ListManagedInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public ListManagedInstances setUploadType(java.lang.String uploadType) { - return (ListManagedInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public ListManagedInstances setUserIp(java.lang.String userIp) { - return (ListManagedInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -163179,7 +172655,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListManagedInstances setProject(java.lang.String project) { + 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 " + @@ -163189,354 +172665,127 @@ public ListManagedInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public ListManagedInstances setRegion(java.lang.String 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; } - /** 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListManagedInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListManagedInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListManagedInstances set(String parameterName, Object value) { - return (ListManagedInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy - * query parameter is not supported. + * Retrieves a list of instance templates that are contained within the specified project and + * region. * - * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". + * 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 ListPerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param region The name of the regions for this request. * @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); + 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 ListPerInstanceConfigs extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 per-instance configurations defined for the managed instance group. The - * orderBy query parameter is not supported. + * Retrieves a list of instance templates that are contained within the specified project and + * region. * - * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". + * 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 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.

    + * 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, should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param region The name of the regions for this request. * @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); + 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(), @@ -163544,67 +172793,81 @@ protected ListPerInstanceConfigs(java.lang.String project, java.lang.String regi "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (ListPerInstanceConfigs) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ListPerInstanceConfigs setAlt(java.lang.String alt) { - return (ListPerInstanceConfigs) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListPerInstanceConfigs setCallback(java.lang.String callback) { - return (ListPerInstanceConfigs) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListPerInstanceConfigs setFields(java.lang.String fields) { - return (ListPerInstanceConfigs) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListPerInstanceConfigs setKey(java.lang.String key) { - return (ListPerInstanceConfigs) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (ListPerInstanceConfigs) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (ListPerInstanceConfigs) super.setUserIp(userIp); + 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. */ @@ -163618,7 +172881,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -163628,35 +172891,24 @@ public ListPerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** The name of the regions for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** The name of the regions for this request. */ 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; + /** 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; } @@ -163791,7 +173043,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListPerInstanceConfigs setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -163820,7 +173072,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -163864,7 +173116,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListPerInstanceConfigs setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -163887,7 +173139,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -163919,79 +173171,345 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListPerInstanceConfigs setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + @Override - public ListPerInstanceConfigs set(String parameterName, Object value) { - return (ListPerInstanceConfigs) super.set(parameterName, value); + 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 { + /** - * 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. + * Creates multiple instances in a given region. Count specifies the number of instances to create. * - * Create a request for the method "regionInstanceGroupManagers.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link BulkInsert#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instances/bulkInsert"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * Creates multiple instances in a given region. Count specifies the number of instances to + * create. * - * 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 "regionInstances.bulkInsert". * - * 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 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])?"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. * @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); + 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(), @@ -163999,67 +173517,77 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -164073,7 +173601,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -164083,35 +173611,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String 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 group manager. */ + /** Name of the InstantSnapshotGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String instantSnapshotGroup; - /** The name of the instance group manager. + /** Name of the InstantSnapshotGroup resource to delete. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; } - /** The name of the instance group manager. */ - public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } @@ -164159,67 +173697,65 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * returns the specified InstantSnapshotGroup resource in the specified region. * - * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". + * 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 PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. * @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); + 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 PatchPerInstanceConfigs extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * returns the specified InstantSnapshotGroup resource in the specified region. * - * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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, 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} + * @param region The name of the region for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. * @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); + 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(), @@ -164227,67 +173763,87 @@ protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String reg "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchPerInstanceConfigs setAlt(java.lang.String alt) { - return (PatchPerInstanceConfigs) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchPerInstanceConfigs setCallback(java.lang.String callback) { - return (PatchPerInstanceConfigs) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchPerInstanceConfigs setFields(java.lang.String fields) { - return (PatchPerInstanceConfigs) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchPerInstanceConfigs setKey(java.lang.String key) { - return (PatchPerInstanceConfigs) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (PatchPerInstanceConfigs) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (PatchPerInstanceConfigs) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -164301,7 +173857,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -164311,39 +173867,437 @@ public PatchPerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** The name of the region for this request. */ 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) { + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * The name of the managed instance group. It should conform to RFC1035. + * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 instanceGroupManager; + private java.lang.String region; - /** The name of the managed instance group. It should conform to RFC1035. + /** The name of the region for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * The name of the managed instance group. It should conform to RFC1035. + * 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 */ - public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + 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])?"); + } + } + + @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; } @@ -164391,82 +174345,76 @@ public java.lang.String getRequestId() { * 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) { + 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 PatchPerInstanceConfigs set(String parameterName, Object value) { - return (PatchPerInstanceConfigs) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * retrieves the list of InstantSnapshotGroup resources contained within the specified region. * - * Create a request for the method "regionInstanceGroupManagers.recreateInstances". + * 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 RecreateInstances#execute()} method to invoke the remote operation. + * 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. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} + * @param region The name of the region for this request. * @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); + 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 RecreateInstances extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * retrieves the list of InstantSnapshotGroup resources contained within the specified region. * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "regionInstanceGroupManagers.recreateInstances". + * 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 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.

    + * 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. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} + * @param region The name of the region for this request. * @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); + 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(), @@ -164474,67 +174422,81 @@ protected RecreateInstances(java.lang.String project, java.lang.String region, j "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (RecreateInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RecreateInstances setAccessToken(java.lang.String accessToken) { - return (RecreateInstances) super.setAccessToken(accessToken); + 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 RecreateInstances setAlt(java.lang.String alt) { - return (RecreateInstances) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public RecreateInstances setCallback(java.lang.String callback) { - return (RecreateInstances) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public RecreateInstances setFields(java.lang.String fields) { - return (RecreateInstances) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public RecreateInstances setKey(java.lang.String key) { - return (RecreateInstances) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public RecreateInstances setOauthToken(java.lang.String oauthToken) { - return (RecreateInstances) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RecreateInstances) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public RecreateInstances setQuotaUser(java.lang.String quotaUser) { - return (RecreateInstances) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public RecreateInstances setUploadType(java.lang.String uploadType) { - return (RecreateInstances) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RecreateInstances) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public RecreateInstances setUserIp(java.lang.String userIp) { - return (RecreateInstances) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -164548,7 +174510,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RecreateInstances setProject(java.lang.String project) { + 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 " + @@ -164558,161 +174520,348 @@ public RecreateInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public RecreateInstances setRegion(java.lang.String 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; } - /** Name of the managed instance group. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** Name of the managed instance group. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getFilter() { + return filter; } - /** Name of the managed instance group. */ - public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public RecreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public RecreateInstances set(String parameterName, Object value) { - return (RecreateInstances) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionInstanceGroupManagers.resize". + * 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 Resize#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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] + * @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 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); + 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 Resize extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionInstanceGroupManagers.resize". + * 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 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.

    + * 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 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] + * @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 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); + 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(), @@ -164720,68 +174869,77 @@ protected Resize(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -164795,7 +174953,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Resize setProject(java.lang.String project) { + 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 " + @@ -164805,188 +174963,105 @@ public Resize setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Resize setRegion(java.lang.String 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 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Resizes the regional managed instance group with advanced configuration options like disabling - * creation retries. This is an extended version of theresize method. - * - * 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 the get orlistmanagedinstances 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.resizeAdvanced". + * 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 ResizeAdvanced#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} + * @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 ResizeAdvanced resizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) throws java.io.IOException { - ResizeAdvanced result = new ResizeAdvanced(project, region, instanceGroupManager, content); + 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 ResizeAdvanced extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Resizes the regional managed instance group with advanced configuration options like disabling - * creation retries. This is an extended version of theresize method. - * - * 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 the get orlistmanagedinstances 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.resizeAdvanced". + * 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 ResizeAdvanced#execute()} method to invoke the remote operation. - *

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

    + * 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 Name of the region scoping this request. - It must be a string that meets the requirements in RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} + * @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 ResizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -164994,67 +175069,77 @@ protected ResizeAdvanced(java.lang.String project, java.lang.String region, java "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ResizeAdvanced set$Xgafv(java.lang.String $Xgafv) { - return (ResizeAdvanced) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ResizeAdvanced setAccessToken(java.lang.String accessToken) { - return (ResizeAdvanced) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ResizeAdvanced setAlt(java.lang.String alt) { - return (ResizeAdvanced) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ResizeAdvanced setCallback(java.lang.String callback) { - return (ResizeAdvanced) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ResizeAdvanced setFields(java.lang.String fields) { - return (ResizeAdvanced) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ResizeAdvanced setKey(java.lang.String key) { - return (ResizeAdvanced) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ResizeAdvanced setOauthToken(java.lang.String oauthToken) { - return (ResizeAdvanced) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ResizeAdvanced setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResizeAdvanced) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ResizeAdvanced setQuotaUser(java.lang.String quotaUser) { - return (ResizeAdvanced) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ResizeAdvanced setUploadType(java.lang.String uploadType) { - return (ResizeAdvanced) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ResizeAdvanced setUploadProtocol(java.lang.String uploadProtocol) { - return (ResizeAdvanced) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ResizeAdvanced setUserIp(java.lang.String userIp) { - return (ResizeAdvanced) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -165068,7 +175153,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ResizeAdvanced setProject(java.lang.String project) { + 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 " + @@ -165078,177 +175163,135 @@ public ResizeAdvanced setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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 ResizeAdvanced setRegion(java.lang.String 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; } - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035. - */ - public ResizeAdvanced setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public ResizeAdvanced setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } + /** + * The "regionInstantSnapshots" collection of methods. + */ + public class RegionInstantSnapshots { - @Override - public ResizeAdvanced set(String parameterName, Object value) { - return (ResizeAdvanced) 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. + * 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. * - * You can specify a maximum of 1000 instances with this method per request. + * For more information, seeDeleting instantSnapshots. * - * Create a request for the method "regionInstanceGroupManagers.resumeInstances". + * 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 ResumeInstances#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResumeInstancesRequest} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. * @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); + 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 ResumeInstances extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * 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. * - * You can specify a maximum of 1000 instances with this method per request. + * For more information, seeDeleting instantSnapshots. * - * Create a request for the method "regionInstanceGroupManagers.resumeInstances". + * 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 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.

    + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResumeInstancesRequest} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. * @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); + 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(), @@ -165256,67 +175299,77 @@ protected ResumeInstances(java.lang.String project, java.lang.String region, jav "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { - return (ResumeInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public ResumeInstances setAccessToken(java.lang.String accessToken) { - return (ResumeInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public ResumeInstances setAlt(java.lang.String alt) { - return (ResumeInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public ResumeInstances setCallback(java.lang.String callback) { - return (ResumeInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public ResumeInstances setFields(java.lang.String fields) { - return (ResumeInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public ResumeInstances setKey(java.lang.String key) { - return (ResumeInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public ResumeInstances setOauthToken(java.lang.String oauthToken) { - return (ResumeInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResumeInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public ResumeInstances setQuotaUser(java.lang.String quotaUser) { - return (ResumeInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public ResumeInstances setUploadType(java.lang.String uploadType) { - return (ResumeInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ResumeInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public ResumeInstances setUserIp(java.lang.String userIp) { - return (ResumeInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -165330,7 +175383,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ResumeInstances setProject(java.lang.String project) { + 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 " + @@ -165340,35 +175393,45 @@ public ResumeInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public ResumeInstances setRegion(java.lang.String 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 managed instance group. */ + /** Name of the InstantSnapshot resource to delete. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String instantSnapshot; - /** Name of the managed instance group. + /** Name of the InstantSnapshot resource to delete. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getInstantSnapshot() { + return instantSnapshot; } - /** Name of the managed instance group. */ - public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } @@ -165416,65 +175479,65 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public ResumeInstances set(String parameterName, Object value) { - return (ResumeInstances) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] - * This method is deprecated. UseregionInstanceGroupManagers.patch instead. + * Returns the specified InstantSnapshot resource in the specified region. * - * Create a request for the method "regionInstanceGroupManagers.setAutoHealingPolicies". + * 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 SetAutoHealingPolicies#execute()} method to invoke the remote - * operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. * @return the request */ - public SetAutoHealingPolicies setAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) throws java.io.IOException { - SetAutoHealingPolicies result = new SetAutoHealingPolicies(project, region, instanceGroupManager, content); + 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 SetAutoHealingPolicies extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] - * This method is deprecated. UseregionInstanceGroupManagers.patch instead. + * Returns the specified InstantSnapshot resource in the specified region. * - * Create a request for the method "regionInstanceGroupManagers.setAutoHealingPolicies". + * 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 SetAutoHealingPolicies#execute()} method to invoke the remote - * operation.

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

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. * @since 1.13 */ - protected SetAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -165482,67 +175545,87 @@ protected SetAutoHealingPolicies(java.lang.String project, java.lang.String regi "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public SetAutoHealingPolicies set$Xgafv(java.lang.String $Xgafv) { - return (SetAutoHealingPolicies) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetAutoHealingPolicies setAccessToken(java.lang.String accessToken) { - return (SetAutoHealingPolicies) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetAutoHealingPolicies setAlt(java.lang.String alt) { - return (SetAutoHealingPolicies) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetAutoHealingPolicies setCallback(java.lang.String callback) { - return (SetAutoHealingPolicies) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetAutoHealingPolicies setFields(java.lang.String fields) { - return (SetAutoHealingPolicies) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetAutoHealingPolicies setKey(java.lang.String key) { - return (SetAutoHealingPolicies) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetAutoHealingPolicies setOauthToken(java.lang.String oauthToken) { - return (SetAutoHealingPolicies) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetAutoHealingPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetAutoHealingPolicies) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetAutoHealingPolicies setQuotaUser(java.lang.String quotaUser) { - return (SetAutoHealingPolicies) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetAutoHealingPolicies setUploadType(java.lang.String uploadType) { - return (SetAutoHealingPolicies) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetAutoHealingPolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (SetAutoHealingPolicies) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetAutoHealingPolicies setUserIp(java.lang.String userIp) { - return (SetAutoHealingPolicies) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -165556,7 +175639,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetAutoHealingPolicies setProject(java.lang.String project) { + 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 " + @@ -165566,140 +175649,104 @@ public SetAutoHealingPolicies setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetAutoHealingPolicies setRegion(java.lang.String 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 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 SetAutoHealingPolicies 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). - */ + /** Name of the InstantSnapshot resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String instantSnapshot; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the InstantSnapshot resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getInstantSnapshot() { + return instantSnapshot; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public SetAutoHealingPolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** 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 SetAutoHealingPolicies set(String parameterName, Object value) { - return (SetAutoHealingPolicies) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionInstanceGroupManagers.setInstanceTemplate". + * 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 SetInstanceTemplate#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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} + * @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 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); + 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 SetInstanceTemplate extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 instance template to use when creating new instances or recreating instances in this - * group. Existing instances are not affected. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "regionInstanceGroupManagers.setInstanceTemplate". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -165707,67 +175754,87 @@ protected SetInstanceTemplate(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetInstanceTemplate) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { - return (SetInstanceTemplate) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetInstanceTemplate setAlt(java.lang.String alt) { - return (SetInstanceTemplate) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetInstanceTemplate setCallback(java.lang.String callback) { - return (SetInstanceTemplate) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetInstanceTemplate setFields(java.lang.String fields) { - return (SetInstanceTemplate) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetInstanceTemplate setKey(java.lang.String key) { - return (SetInstanceTemplate) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { - return (SetInstanceTemplate) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetInstanceTemplate) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetInstanceTemplate setUploadType(java.lang.String uploadType) { - return (SetInstanceTemplate) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetInstanceTemplate setUserIp(java.lang.String userIp) { - return (SetInstanceTemplate) super.setUserIp(userIp); + 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. */ @@ -165781,7 +175848,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetInstanceTemplate setProject(java.lang.String project) { + 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 " + @@ -165791,139 +175858,114 @@ public SetInstanceTemplate setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetInstanceTemplate setRegion(java.lang.String 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; } - /** The name of the managed instance group. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** The name of the managed instance group. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** The name of the managed instance group. */ - public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public SetInstanceTemplate set(String parameterName, Object value) { - return (SetInstanceTemplate) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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. + * Creates an instant snapshot in the specified region. * - * Create a request for the method "regionInstanceGroupManagers.setTargetPools". + * 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 SetTargetPools#execute()} method to invoke the remote operation. + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @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); + 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 SetTargetPools extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * Creates an instant snapshot in the specified region. * - * Create a request for the method "regionInstanceGroupManagers.setTargetPools". + * 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 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.

    + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @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) { + 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()) { @@ -165932,67 +175974,71 @@ protected SetTargetPools(java.lang.String project, java.lang.String region, java "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { - return (SetTargetPools) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetTargetPools setAccessToken(java.lang.String accessToken) { - return (SetTargetPools) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetTargetPools setAlt(java.lang.String alt) { - return (SetTargetPools) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetTargetPools setCallback(java.lang.String callback) { - return (SetTargetPools) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetTargetPools setFields(java.lang.String fields) { - return (SetTargetPools) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetTargetPools setKey(java.lang.String key) { - return (SetTargetPools) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetTargetPools setOauthToken(java.lang.String oauthToken) { - return (SetTargetPools) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTargetPools) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetTargetPools setQuotaUser(java.lang.String quotaUser) { - return (SetTargetPools) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetTargetPools setUploadType(java.lang.String uploadType) { - return (SetTargetPools) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTargetPools) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetTargetPools setUserIp(java.lang.String userIp) { - return (SetTargetPools) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -166006,7 +176052,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetTargetPools setProject(java.lang.String project) { + 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 " + @@ -166016,38 +176062,27 @@ public SetTargetPools setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetTargetPools setRegion(java.lang.String 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; } - /** 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 @@ -166092,88 +176127,60 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetTargetPools set(String parameterName, Object value) { - return (SetTargetPools) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves the list of InstantSnapshot resources contained within the specified region. * - * Create a request for the method "regionInstanceGroupManagers.startInstances". + * 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 StartInstances#execute()} method to invoke the remote operation. + * 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. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest} + * @param region The name of the region for this request. * @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); + 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 StartInstances extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * Retrieves the list of InstantSnapshot resources contained within the specified region. * - * Create a request for the method "regionInstanceGroupManagers.startInstances". + * 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 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.

    + * 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. - * @param instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest} + * @param region The name of the region for this request. * @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); + 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(), @@ -166181,67 +176188,81 @@ protected StartInstances(java.lang.String project, java.lang.String region, java "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public StartInstances set$Xgafv(java.lang.String $Xgafv) { - return (StartInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StartInstances setAccessToken(java.lang.String accessToken) { - return (StartInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StartInstances setAlt(java.lang.String alt) { - return (StartInstances) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public StartInstances setCallback(java.lang.String callback) { - return (StartInstances) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public StartInstances setFields(java.lang.String fields) { - return (StartInstances) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public StartInstances setKey(java.lang.String key) { - return (StartInstances) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public StartInstances setOauthToken(java.lang.String oauthToken) { - return (StartInstances) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartInstances) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public StartInstances setQuotaUser(java.lang.String quotaUser) { - return (StartInstances) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public StartInstances setUploadType(java.lang.String uploadType) { - return (StartInstances) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StartInstances) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public StartInstances setUserIp(java.lang.String userIp) { - return (StartInstances) super.setUserIp(userIp); + 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. */ @@ -166255,7 +176276,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartInstances setProject(java.lang.String project) { + 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 " + @@ -166265,175 +176286,348 @@ public StartInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public StartInstances setRegion(java.lang.String 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; } - /** Name of the managed instance group. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** Name of the managed instance group. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getFilter() { + return filter; } - /** Name of the managed instance group. */ - public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public StartInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public StartInstances set(String parameterName, Object value) { - return (StartInstances) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionInstanceGroupManagers.stopInstances". + * 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 StopInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @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 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); + 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 StopInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class SetIamPolicy extends ComputeRequest { - /** - * 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. + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 "regionInstanceGroupManagers.stopInstances". + * 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 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. - *

    + * 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 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} + * @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 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); + 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(), @@ -166441,67 +176635,77 @@ protected StopInstances(java.lang.String project, java.lang.String region, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public StopInstances set$Xgafv(java.lang.String $Xgafv) { - return (StopInstances) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public StopInstances setAccessToken(java.lang.String accessToken) { - return (StopInstances) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public StopInstances setAlt(java.lang.String alt) { - return (StopInstances) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public StopInstances setCallback(java.lang.String callback) { - return (StopInstances) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public StopInstances setFields(java.lang.String fields) { - return (StopInstances) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public StopInstances setKey(java.lang.String key) { - return (StopInstances) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public StopInstances setOauthToken(java.lang.String oauthToken) { - return (StopInstances) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopInstances) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public StopInstances setQuotaUser(java.lang.String quotaUser) { - return (StopInstances) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public StopInstances setUploadType(java.lang.String uploadType) { - return (StopInstances) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StopInstances) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public StopInstances setUserIp(java.lang.String userIp) { - return (StopInstances) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -166515,7 +176719,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopInstances setProject(java.lang.String project) { + 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 " + @@ -166525,175 +176729,106 @@ public StopInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public StopInstances setRegion(java.lang.String 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; } - /** 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 StopInstances set(String parameterName, Object value) { - return (StopInstances) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) 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. + * 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 "regionInstanceGroupManagers.suspendInstances". + * 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 SuspendInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 SuspendInstances extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * 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 "regionInstanceGroupManagers.suspendInstances". + * 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 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.

    + * 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 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} + * @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 SuspendInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSuspendInstancesRequest content) { + 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()) { @@ -166702,67 +176837,77 @@ protected SuspendInstances(java.lang.String project, java.lang.String region, ja "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { - return (SuspendInstances) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SuspendInstances setAccessToken(java.lang.String accessToken) { - return (SuspendInstances) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SuspendInstances setAlt(java.lang.String alt) { - return (SuspendInstances) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SuspendInstances setCallback(java.lang.String callback) { - return (SuspendInstances) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SuspendInstances setFields(java.lang.String fields) { - return (SuspendInstances) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SuspendInstances setKey(java.lang.String key) { - return (SuspendInstances) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SuspendInstances setOauthToken(java.lang.String oauthToken) { - return (SuspendInstances) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SuspendInstances) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SuspendInstances setQuotaUser(java.lang.String quotaUser) { - return (SuspendInstances) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SuspendInstances setUploadType(java.lang.String uploadType) { - return (SuspendInstances) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (SuspendInstances) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SuspendInstances setUserIp(java.lang.String userIp) { - return (SuspendInstances) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -166776,7 +176921,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SuspendInstances setProject(java.lang.String project) { + 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 " + @@ -166786,35 +176931,45 @@ public SuspendInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SuspendInstances setRegion(java.lang.String 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 of the managed instance group. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** Name of the managed instance group. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** Name of the managed instance group. */ - public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } @@ -166862,20 +177017,20 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SuspendInstances set(String parameterName, Object value) { - return (SuspendInstances) super.set(parameterName, value); + 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 "regionInstanceGroupManagers.testIamPermissions". + * 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. @@ -166894,7 +177049,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -166908,7 +177063,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.RegionMultiMigMembers.List request = compute.regionMultiMigMembers().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public RegionMultiMigMembers regionMultiMigMembers() { + return new RegionMultiMigMembers(); + } + + /** + * The "regionMultiMigMembers" collection of methods. + */ + public class RegionMultiMigMembers { + /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is updated even if the instances in the group have not - * yet been updated. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * 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. + * Retrieves information about the specified multi-MIG member. * - * Create a request for the method "regionInstanceGroupManagers.update". + * Create a request for the method "regionMultiMigMembers.get". * * 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. + * 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 The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param region Name of the region for this request. Region name should conform to RFC1035. + * @param multiMig The name of the multi-MIG. + Name should conform to RFC1035 or be a resource ID. + * @param multiMigMember The name of the multi-MIG member. + Name should conform to RFC1035 or be a resource ID. * @return the request */ - public Update update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { - Update result = new Update(project, region, instanceGroupManager, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String multiMig, java.lang.String multiMigMember) throws java.io.IOException { + Get result = new Get(project, region, multiMig, multiMigMember); initialize(result); return result; } - public class Update extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers/{multiMigMember}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern MULTI_MIG_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 MULTI_MIG_MEMBER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is updated even if the instances in the group have - * not yet been updated. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * 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. + * Retrieves information about the specified multi-MIG member. * - * Create a request for the method "regionInstanceGroupManagers.update". + * Create a request for the method "regionMultiMigMembers.get". * * 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param region Name of the region for this request. Region name should conform to RFC1035. + * @param multiMig The name of the multi-MIG. + Name should conform to RFC1035 or be a resource ID. + * @param multiMigMember The name of the multi-MIG member. + Name should conform to RFC1035 or be a resource ID. * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String multiMig, java.lang.String multiMigMember) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigMember.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -167140,67 +177315,93 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), + "Parameter multiMig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.multiMigMember = com.google.api.client.util.Preconditions.checkNotNull(multiMigMember, "Required parameter multiMigMember must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_MEMBER_PATTERN.matcher(multiMigMember).matches(), + "Parameter multiMigMember must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -167214,7 +177415,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -167224,143 +177425,602 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. Region name should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. Region name should conform to RFC1035. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + /** Name of the region for this request. Region name should conform to RFC1035. */ + 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 group manager. */ + /** + * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String multiMig; - /** The name of the instance group manager. + /** The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getMultiMig() { + return multiMig; } - /** The name of the instance group manager. */ - public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. + */ + public Get setMultiMig(java.lang.String multiMig) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), + "Parameter multiMig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.multiMig = multiMig; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The name of the multi-MIG member. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String multiMigMember; + + /** The name of the multi-MIG member. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getMultiMigMember() { + return multiMigMember; + } + + /** + * The name of the multi-MIG member. Name should conform to RFC1035 or be a resource ID. + */ + public Get setMultiMigMember(java.lang.String multiMigMember) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_MEMBER_PATTERN.matcher(multiMigMember).matches(), + "Parameter multiMigMember must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.multiMigMember = multiMigMember; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of members of a specific multi-MIG. + * + * Create a request for the method "regionMultiMigMembers.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. Region name should conform to RFC1035. + * @param multiMig The name of the multi-MIG. + Name should conform to RFC1035 or be a resource ID. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { + List result = new List(project, region, multiMig); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers"; + + 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 members of a specific multi-MIG. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "regionMultiMigMembers.list". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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. Region name should conform to RFC1035. + * @param multiMig The name of the multi-MIG. + Name should conform to RFC1035 or be a resource ID. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region, java.lang.String multiMig) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigMemberList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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 region for this request. Region name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the region for this request. Region name should conform to RFC1035. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Name of the region for this request. Region name should conform to RFC1035. */ + 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** + * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getRequestId() { - return requestId; + @com.google.api.client.util.Key + private java.lang.String multiMig; + + /** The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getMultiMig() { + return multiMig; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. + */ + public List setMultiMig(java.lang.String multiMig) { + this.multiMig = multiMig; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the RegionMultiMigs collection. + * + *

    The typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.RegionMultiMigs.List request = compute.regionMultiMigs().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public RegionMultiMigs regionMultiMigs() { + return new RegionMultiMigs(); + } + + /** + * The "regionMultiMigs" collection of methods. + */ + public class RegionMultiMigs { + /** - * 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. + * Deletes a multi-MIG in the specified project. * - * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". + * Create a request for the method "regionMultiMigs.delete". * * 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. + * 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, 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} + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG to delete. * @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); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { + Delete result = new Delete(project, region, multiMig); initialize(result); return result; } - public class UpdatePerInstanceConfigs extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * Deletes a multi-MIG in the specified project. * - * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". + * Create a request for the method "regionMultiMigs.delete". * * 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.

    + * 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, 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} + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG to delete. * @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); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) { + 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(), @@ -167368,67 +178028,72 @@ protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String re "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); } @Override - public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { - return (UpdatePerInstanceConfigs) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { - return (UpdatePerInstanceConfigs) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public UpdatePerInstanceConfigs setFields(java.lang.String fields) { - return (UpdatePerInstanceConfigs) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public UpdatePerInstanceConfigs setKey(java.lang.String key) { - return (UpdatePerInstanceConfigs) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (UpdatePerInstanceConfigs) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -167442,7 +178107,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdatePerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -167452,39 +178117,40 @@ public UpdatePerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region for this request. */ 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) { + /** 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 managed instance group. It should conform to RFC1035. - */ + /** Name of the multi-MIG to delete. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String multiMig; - /** The name of the managed instance group. It should conform to RFC1035. + /** Name of the multi-MIG to delete. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getMultiMig() { + return multiMig; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** Name of the multi-MIG to delete. */ + public Delete setMultiMig(java.lang.String multiMig) { + this.multiMig = multiMig; return this; } @@ -167532,69 +178198,52 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdatePerInstanceConfigs set(String parameterName, Object value) { - return (UpdatePerInstanceConfigs) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns all the details of a specific multi-MIG. * - * Create a request for the method "regionInstanceGroups.get". + * Create a request for the method "regionMultiMigs.get". * * This request holds the 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. + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG 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); + public Get get(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { + Get result = new Get(project, region, multiMig); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern MULTI_MIG_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 group resource. + * Returns all the details of a specific multi-MIG. * - * Create a request for the method "regionInstanceGroups.get". + * Create a request for the method "regionMultiMigs.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

    {@link @@ -167602,12 +178251,12 @@ public class Get extends ComputeRequest * * @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. + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG 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); + protected Get(java.lang.String project, java.lang.String region, java.lang.String multiMig) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMig.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -167615,7 +178264,17 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), + "Parameter multiMig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -167709,35 +178368,45 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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 instance group resource to return. */ + /** Name of the multi-MIG resource to return. */ @com.google.api.client.util.Key - private java.lang.String instanceGroup; + private java.lang.String multiMig; - /** Name of the instance group resource to return. + /** Name of the multi-MIG resource to return. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getMultiMig() { + return multiMig; } - /** Name of the instance group resource to return. */ - public Get setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** Name of the multi-MIG resource to return. */ + public Get setMultiMig(java.lang.String multiMig) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), + "Parameter multiMig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.multiMig = multiMig; return this; } @@ -167747,46 +178416,51 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves the list of instance group resources contained within the specified region. + * Creates a multi-MIG in the specified project. * - * Create a request for the method "regionInstanceGroups.list". + * Create a request for the method "regionMultiMigs.insert". * * 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. + * 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 region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.MultiMig} * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.MultiMig content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 instance group resources contained within the specified region. + * Creates a multi-MIG in the specified project. * - * Create a request for the method "regionInstanceGroups.list". + * Create a request for the method "regionMultiMigs.insert". * * 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.

    + * 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 region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.MultiMig} * @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); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.MultiMig content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -167794,76 +178468,71 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -167877,7 +178546,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -167887,343 +178556,125 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String 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; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents you from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents you + from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents you from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves a list of multi-MIGs in a project and region. * - * Create a request for the method "regionInstanceGroups.listInstances". + * Create a request for the method "regionMultiMigs.list". * * 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. + * 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. - * @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} + * @param region Name of the region for this request. * @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); + 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 ListInstances extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * Retrieves a list of multi-MIGs in a project and region. * - * Create a request for the method "regionInstanceGroups.listInstances". + * Create a request for the method "regionMultiMigs.list". * * 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. - *

    + * 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. - * @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} + * @param region Name of the region for this request. * @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); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigsList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -168231,67 +178682,81 @@ protected ListInstances(java.lang.String project, java.lang.String region, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public ListInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ListInstances setAccessToken(java.lang.String accessToken) { - return (ListInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ListInstances setAlt(java.lang.String alt) { - return (ListInstances) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListInstances setCallback(java.lang.String callback) { - return (ListInstances) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListInstances setFields(java.lang.String fields) { - return (ListInstances) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListInstances setKey(java.lang.String key) { - return (ListInstances) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListInstances setOauthToken(java.lang.String oauthToken) { - return (ListInstances) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListInstances) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListInstances setQuotaUser(java.lang.String quotaUser) { - return (ListInstances) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListInstances setUploadType(java.lang.String uploadType) { - return (ListInstances) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListInstances) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListInstances setUserIp(java.lang.String userIp) { - return (ListInstances) super.setUserIp(userIp); + 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. */ @@ -168305,7 +178770,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListInstances setProject(java.lang.String project) { + 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 " + @@ -168315,42 +178780,27 @@ public ListInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public ListInstances setRegion(java.lang.String 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; } - /** - * 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 @@ -168482,7 +178932,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListInstances setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -168511,7 +178961,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -168555,7 +179005,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListInstances setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -168578,7 +179028,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -168610,61 +179060,93 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListInstances set(String parameterName, Object value) { - return (ListInstances) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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 { + /** - * Sets the named ports for the specified regional instance group. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "regionInstanceGroups.setNamedPorts". + * 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 SetNamedPorts#execute()} method to invoke the remote operation. + * parameters, call the {@link AttachNetworkEndpoints#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} + * @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 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); + 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 SetNamedPorts extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "regionInstanceGroups.setNamedPorts". + * 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 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. - *

    + * 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 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} + * @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 SetNamedPorts(java.lang.String project, java.lang.String region, java.lang.String instanceGroup, com.google.api.services.compute.model.RegionInstanceGroupsSetNamedPortsRequest content) { + 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()) { @@ -168673,67 +179155,67 @@ protected SetNamedPorts(java.lang.String project, java.lang.String region, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { - return (SetNamedPorts) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public SetNamedPorts setAccessToken(java.lang.String accessToken) { - return (SetNamedPorts) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public SetNamedPorts setAlt(java.lang.String alt) { - return (SetNamedPorts) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public SetNamedPorts setCallback(java.lang.String callback) { - return (SetNamedPorts) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public SetNamedPorts setFields(java.lang.String fields) { - return (SetNamedPorts) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public SetNamedPorts setKey(java.lang.String key) { - return (SetNamedPorts) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public SetNamedPorts setOauthToken(java.lang.String oauthToken) { - return (SetNamedPorts) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNamedPorts) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { - return (SetNamedPorts) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public SetNamedPorts setUploadType(java.lang.String uploadType) { - return (SetNamedPorts) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public SetNamedPorts setUserIp(java.lang.String userIp) { - return (SetNamedPorts) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -168747,7 +179229,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNamedPorts setProject(java.lang.String project) { + 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 " + @@ -168757,35 +179239,49 @@ public SetNamedPorts setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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; - /** Name of the region scoping this request. + /** 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; } - /** Name of the region scoping this request. */ - public SetNamedPorts setRegion(java.lang.String 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 regional instance group where the named ports are updated. */ + /** + * 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 instanceGroup; + private java.lang.String networkEndpointGroup; - /** The name of the regional instance group where the named ports are updated. + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** The name of the regional instance group where the named ports are updated. */ - public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** + * 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; } @@ -168833,68 +179329,65 @@ public java.lang.String getRequestId() { * 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) { + public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNamedPorts set(String parameterName, Object value) { - return (SetNamedPorts) super.set(parameterName, value); + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "regionInstanceGroups.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionInstanceGroups.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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(), @@ -168902,77 +179395,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -168986,7 +179469,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -168996,127 +179479,157 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 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])?"); - } + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkEndpointGroup; - /** Name or id of the resource for this request. + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** + * 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "regionInstanceTemplates" collection of methods. - */ - public class RegionInstanceTemplates { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 the specified instance template. Deleting an instance template is permanent and cannot be - * undone. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "regionInstanceTemplates.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 for this request. - * @param instanceTemplate The name of the instance template to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "regionInstanceTemplates.delete". + * 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 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.

    + * 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 for this request. - * @param instanceTemplate The name of the instance template to delete. + * @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 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); + 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(), @@ -169124,77 +179637,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -169208,7 +179711,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -169218,45 +179721,48 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 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])?"); - } + /** + * 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 instance template to delete. */ + /** + * 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 instanceTemplate; + private java.lang.String networkEndpointGroup; - /** The name of the instance template to delete. + /** The name of the network endpoint group you are detaching network endpoints from. It should comply + with RFC1035. */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** + * 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; } @@ -169271,7 +179777,7 @@ public Delete setInstanceTemplate(java.lang.String instanceTemplate) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -169285,7 +179791,7 @@ public Delete setInstanceTemplate(java.lang.String instanceTemplate) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -169302,54 +179808,49 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Delete setRequestId(java.lang.String requestId) { + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); } } /** - * Returns the specified instance template. + * Returns the specified network endpoint group. * - * Create a request for the method "regionInstanceTemplates.get". + * 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 for this request. - * @param instanceTemplate The name of the instance template. + * @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 instanceTemplate) throws java.io.IOException { - Get result = new Get(project, region, instanceTemplate); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Returns the specified network endpoint group. * - * Create a request for the method "regionInstanceTemplates.get". + * 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 @@ -169357,12 +179858,13 @@ public class Get extends ComputeRequest * * @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. + * @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 instanceTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplate.class); + 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(), @@ -169370,17 +179872,7 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override @@ -169474,61 +179966,41 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 for this request. */ + /** + * The name of the region where the network endpoint group is located. It should comply with + * RFC1035. + */ 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; - } - - /** View of the instance template. */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String networkEndpointGroup; - /** View of the instance template. + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getView() { - return view; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** View of the instance template. */ - public Get setView(java.lang.String view) { - this.view = view; + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -169538,20 +180010,28 @@ public Get set(String parameterName, Object value) { } } /** - * Creates an instance template in the specified project and region using the global instance - * template whose URL is included in the request. + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "regionInstanceTemplates.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @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.InstanceTemplate content) throws java.io.IOException { + 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; @@ -169559,19 +180039,22 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "regionInstanceTemplates.insert". + * 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 @@ -169579,11 +180062,13 @@ public class Insert extends ComputeRequest * * @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} + * @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.InstanceTemplate content) { + 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()) { @@ -169592,11 +180077,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -169680,23 +180160,25 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 for this request. */ + /** + * 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) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.region = region; return this; } @@ -169756,16 +180238,17 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of instance templates that are contained within the specified project and - * region. + * Retrieves the list of regional network endpoint groups available to the specified project in the + * given region. * - * Create a request for the method "regionInstanceTemplates.list". + * 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 the regions 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 { @@ -169774,21 +180257,18 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of regional network endpoint groups available to the specified project in + * the given region. * - * Create a request for the method "regionInstanceTemplates.list". + * 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 @@ -169796,11 +180276,12 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the regions 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.InstanceTemplateList.class); + 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(), @@ -169808,11 +180289,6 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -169906,27 +180382,484 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the regions for this request. */ + /** + * 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 the regions for this request. + /** 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 the regions for this request. */ + /** + * 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + } + + @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 @@ -170058,7 +180991,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListNetworkEndpoints setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -170087,7 +181020,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -170131,7 +181064,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -170154,7 +181087,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListNetworkEndpoints setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -170186,77 +181119,62 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** View of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** View of the instance template. - */ - public java.lang.String getView() { - return view; - } - - /** View of the instance template. */ - public List setView(java.lang.String view) { - this.view = view; - return this; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionInstances collection. + * An accessor for creating requests from the RegionNetworkFirewallPolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionInstances.List request = compute.regionInstances().list(parameters ...)}
    +   *   {@code Compute.RegionNetworkFirewallPolicies.List request = compute.regionNetworkFirewallPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionInstances regionInstances() { - return new RegionInstances(); + public RegionNetworkFirewallPolicies regionNetworkFirewallPolicies() { + return new RegionNetworkFirewallPolicies(); } /** - * The "regionInstances" collection of methods. + * The "regionNetworkFirewallPolicies" collection of methods. */ - public class RegionInstances { + public class RegionNetworkFirewallPolicies { /** - * Creates multiple instances in a given region. Count specifies the number of instances to create. + * Inserts an association for the specified network firewall policy. * - * Create a request for the method "regionInstances.bulkInsert". + * 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 BulkInsert#execute()} method to invoke the remote operation. + * parameters, call the {@link AddAssociation#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} + * @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 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); + 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 BulkInsert extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instances/bulkInsert"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -170264,24 +181182,30 @@ public class BulkInsert extends ComputeRequest - * {@link - * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @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 BulkInsert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BulkInsertInstanceResource content) { + 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()) { @@ -170295,66 +181219,72 @@ protected BulkInsert(java.lang.String project, java.lang.String region, com.goog "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170368,7 +181298,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public BulkInsert setProject(java.lang.String project) { + 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 " + @@ -170378,18 +181308,18 @@ public BulkInsert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public BulkInsert setRegion(java.lang.String 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 " + @@ -170399,6 +181329,78 @@ public BulkInsert setRegion(java.lang.String 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 @@ -170443,66 +181445,39 @@ public java.lang.String getRequestId() { * 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) { + public AddAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) 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. + * Inserts a rule into a network firewall policy. * - * Create a request for the method "regionInstantSnapshots.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link AddRule#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -170510,31 +181485,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 The name of the region for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @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 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); + 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(), @@ -170547,72 +181519,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170626,7 +181598,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -170636,18 +181608,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -170657,24 +181629,70 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the InstantSnapshot resource to delete. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshot; + private java.lang.String firewallPolicy; - /** Name of the InstantSnapshot resource to delete. + /** Name of the firewall policy to update. */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshot(java.lang.String instantSnapshot) { + /** Name of the firewall policy to update. */ + public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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.instantSnapshot = instantSnapshot; + 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; } @@ -170722,245 +181740,38 @@ public java.lang.String getRequestId() { * 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) { + public AddRule 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Copies rules to the specified network firewall policy. * - * Create a request for the method "regionInstantSnapshots.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link CloneRules#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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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 GetIamPolicy extends ComputeRequest { + public class CloneRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -170968,28 +181779,27 @@ public class GetIamPolicy extends ComputeRequest + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

    * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 The name of the region for this request. - * @param resource Name or id of the resource 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 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); + 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(), @@ -171002,82 +181812,72 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -171091,7 +181891,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -171101,18 +181901,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String 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 " + @@ -171122,207 +181922,24 @@ public GetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the firewall policy to update. */ + public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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; + this.firewallPolicy = firewallPolicy; return this; } @@ -171370,37 +181987,54 @@ public java.lang.String getRequestId() { * 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) { + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); } } /** - * Retrieves the list of InstantSnapshot resources contained within the specified region. + * Deletes the specified network firewall policy. * - * Create a request for the method "regionInstantSnapshots.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to delete. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -171408,22 +182042,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to delete. * @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); + 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(), @@ -171436,76 +182074,72 @@ protected List(java.lang.String project, java.lang.String region) { "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -171519,7 +182153,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -171529,18 +182163,18 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String 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 " + @@ -171550,298 +182184,103 @@ public List setRegion(java.lang.String 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`) - */ + /** Name of the firewall policy to delete. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String firewallPolicy; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the firewall policy to delete. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified network firewall policy. * - * Create a request for the method "regionInstantSnapshots.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to get. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -171849,28 +182288,26 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to get. * @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); + 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(), @@ -171883,72 +182320,82 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -171962,7 +182409,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -171972,18 +182419,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String 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 " + @@ -171993,56 +182440,54 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to get. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to get. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the firewall policy to get. */ + public Get setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.firewallPolicy = firewallPolicy; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the - * Labeling Resources documentation. + * Gets an association with the specified name. * - * Create a request for the method "regionInstantSnapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link GetAssociation#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} + * @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 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); + 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 SetLabels extends ComputeRequest { + public class GetAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -172050,29 +182495,27 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -172085,72 +182528,82 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + 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. */ @@ -172164,7 +182617,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -172174,18 +182627,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String 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 " + @@ -172195,104 +182648,71 @@ public SetLabels setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to which the queried association belongs. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to which the queried association belongs. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + 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). - */ + /** The name of the association to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String name; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the association to get from the firewall policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getName() { + return name; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the effective firewalls on a given network. * - * Create a request for the method "regionInstantSnapshots.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetEffectiveFirewalls#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} + * @param region Name of the region scoping this request. + * @param network Network reference * @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); + 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 TestIamPermissions extends ComputeRequest { + public class GetEffectiveFirewalls extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -172300,28 +182720,24 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * 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 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} + * @param region Name of the region scoping this request. + * @param network Network reference * @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); + 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(), @@ -172334,72 +182750,77 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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}"); - } + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -172413,7 +182834,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -172423,18 +182844,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String 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 " + @@ -172444,77 +182865,49 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Network reference */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String network; - /** Name or id of the resource for this request. + /** Network reference */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetwork() { + return network; } - /** 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; + /** Network reference */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { + this.network = network; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionMultiMigs collection. - * - *

    The typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionMultiMigs.List request = compute.regionMultiMigs().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public RegionMultiMigs regionMultiMigs() { - return new RegionMultiMigs(); - } - - /** - * The "regionMultiMigs" collection of methods. - */ - public class RegionMultiMigs { - /** - * Deletes a multi-MIG in the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionMultiMigs.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param multiMig Name of the multi-MIG to delete. + * @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 Delete delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { - Delete result = new Delete(project, region, multiMig); + 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 Delete extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -172522,23 +182915,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region for this request. - * @param multiMig Name of the multi-MIG to delete. + * @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 Delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -172551,67 +182949,82 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -172625,7 +183038,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -172635,18 +183048,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -172656,98 +183069,70 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the multi-MIG to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String multiMig; + private java.lang.String resource; - /** Name of the multi-MIG to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getMultiMig() { - return multiMig; + public java.lang.String getResource() { + return resource; } - /** Name of the multi-MIG to delete. */ - public Delete setMultiMig(java.lang.String multiMig) { - this.multiMig = multiMig; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns all the details of a specific multi-MIG. + * Gets a rule of the specified priority. * - * Create a request for the method "regionMultiMigs.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 for this request. - * @param multiMig Name of the multi-MIG resource to return. + * @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 Get get(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { - Get result = new Get(project, region, multiMig); + 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 Get extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -172755,26 +183140,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 for this request. - * @param multiMig Name of the multi-MIG resource to return. + * @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 Get(java.lang.String project, java.lang.String region, java.lang.String multiMig) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMig.class); + 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(), @@ -172787,10 +183173,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); + 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(MULTI_MIG_PATTERN.matcher(multiMig).matches(), - "Parameter multiMig must conform to the pattern " + + 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}"); } } @@ -172806,63 +183192,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -172876,7 +183262,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -172886,18 +183272,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -172907,46 +183293,62 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the multi-MIG resource to return. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String multiMig; + private java.lang.String firewallPolicy; - /** Name of the multi-MIG resource to return. + /** Name of the firewall policy to which the queried rule belongs. */ - public java.lang.String getMultiMig() { - return multiMig; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the multi-MIG resource to return. */ - public Get setMultiMig(java.lang.String multiMig) { + /** 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(MULTI_MIG_PATTERN.matcher(multiMig).matches(), - "Parameter multiMig must conform to the pattern " + + 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.multiMig = multiMig; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Creates a multi-MIG in the specified project. + * Creates a new network firewall policy in the specified project and region. * - * Create a request for the method "regionMultiMigs.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.MultiMig} + * @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.MultiMig content) throws java.io.IOException { + 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; @@ -172954,7 +183356,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -172963,9 +183365,9 @@ public class Insert extends ComputeRequest {@link @@ -172973,11 +183375,11 @@ public class Insert extends ComputeRequest * * @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.MultiMig} + * @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.MultiMig content) { + 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()) { @@ -173074,17 +183476,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -173103,7 +183505,7 @@ public Insert setRegion(java.lang.String region) { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents you from accidentally creating duplicate commitments. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -173116,8 +183518,8 @@ public Insert setRegion(java.lang.String region) { For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents you - from accidentally creating duplicate commitments. + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -173134,7 +183536,7 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents you from accidentally creating duplicate commitments. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -173150,15 +183552,16 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of multi-MIGs in a project and region. + * Lists all the network firewall policies that have been configured for the specified project in + * the given region. * - * Create a request for the method "regionMultiMigs.list". + * 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 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 { @@ -173167,9 +183570,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -173178,9 +183581,10 @@ public class List extends ComputeRequest {@link @@ -173188,11 +183592,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.MultiMigsList.class); + 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(), @@ -173298,17 +183702,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -173588,83 +183992,305 @@ 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 { - /** - * 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(); - } + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; - /** - * The "regionNetworkEndpointGroups" collection of methods. - */ - public class RegionNetworkEndpointGroups { + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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); + } + } /** - * Attach a list of network endpoints to the specified network endpoint group. + * Updates an association for the specified network firewall policy. * - * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". + * 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 AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link PatchAssociation#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} + * @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 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); + 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 AttachNetworkEndpoints extends ComputeRequest { + public class PatchAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Attach a list of network endpoints to the specified network endpoint group. + * Updates an association for the specified network firewall policy. * - * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". + * 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 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.

    + * 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 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} + * @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 AttachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.RegionNetworkEndpointGroupsAttachEndpointsRequest content) { + 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()) { @@ -173673,67 +184299,77 @@ protected AttachNetworkEndpoints(java.lang.String project, java.lang.String regi "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { + return (PatchAssociation) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public PatchAssociation setAccessToken(java.lang.String accessToken) { + return (PatchAssociation) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public PatchAssociation setAlt(java.lang.String alt) { + return (PatchAssociation) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public PatchAssociation setCallback(java.lang.String callback) { + return (PatchAssociation) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public PatchAssociation setFields(java.lang.String fields) { + return (PatchAssociation) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public PatchAssociation setKey(java.lang.String key) { + return (PatchAssociation) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public PatchAssociation setOauthToken(java.lang.String oauthToken) { + return (PatchAssociation) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchAssociation) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public PatchAssociation setQuotaUser(java.lang.String quotaUser) { + return (PatchAssociation) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public PatchAssociation setUploadType(java.lang.String uploadType) { + return (PatchAssociation) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public PatchAssociation setUserIp(java.lang.String userIp) { + return (PatchAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -173747,7 +184383,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -173757,49 +184393,310 @@ public AttachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** 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; + } + /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String requestId; - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getRequestId() { + return requestId; } /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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; } @@ -173847,65 +184744,66 @@ public java.lang.String getRequestId() { * 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) { + public PatchRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) 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. + * Removes an association for the specified network firewall policy. * - * Create a request for the method "regionNetworkEndpointGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveAssociation#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. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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 Delete extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 endpoint group. Note that the NEG cannot be deleted if it is - * configured as a backend of a backend service. + * Removes an association for the specified network firewall policy. * - * Create a request for the method "regionNetworkEndpointGroups.delete". + * 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 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.

    + * 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 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. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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(), @@ -173913,67 +184811,77 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -173987,7 +184895,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -173997,45 +184905,61 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String firewallPolicy; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** Name of the firewall policy to update. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. + /** 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 Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + 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; } @@ -174083,71 +185007,66 @@ public java.lang.String getRequestId() { * 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) { + public RemoveAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Detach the network endpoint from the specified network endpoint group. + * Deletes a rule of the specified priority. * - * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". + * 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 DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link RemoveRule#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} + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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 DetachNetworkEndpoints extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Detach the network endpoint from the specified network endpoint group. + * Deletes a rule of the specified priority. * - * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". + * 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 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.

    + * 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 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} + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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(), @@ -174155,67 +185074,77 @@ protected DetachNetworkEndpoints(java.lang.String project, java.lang.String regi "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -174229,7 +185158,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -174239,48 +185168,61 @@ public DetachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** - * The name of the network endpoint group you are detaching network endpoints from. It should - * comply with RFC1035. - */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String firewallPolicy; - /** The name of the network endpoint group you are detaching network endpoints from. It should comply - with RFC1035. + /** Name of the firewall policy to update. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * The name of the network endpoint group you are detaching network endpoints from. It should - * comply with RFC1035. + /** 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 DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + 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; } @@ -174295,7 +185237,7 @@ public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEn * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -174309,7 +185251,7 @@ public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEn clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -174326,63 +185268,70 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + public RemoveRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionNetworkEndpointGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 the specified network endpoint group. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionNetworkEndpointGroups.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 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. + * @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 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); + 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(), @@ -174390,77 +185339,77 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -174474,7 +185423,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -174484,98 +185433,105 @@ public Get setProject(java.lang.String project) { return this; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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) { + /** 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; } - /** The name of the network endpoint group. It should comply with RFC1035. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String resource; - /** The name of the network endpoint group. It should comply with RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getResource() { + return resource; } - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionNetworkEndpointGroups.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 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} + * @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 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); + 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 Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionNetworkEndpointGroups.insert". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -174583,66 +185539,77 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -174656,7 +185623,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -174666,128 +185633,128 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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) { + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RegionNetworkPolicies collection. + * + *

    The typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.RegionNetworkPolicies.List request = compute.regionNetworkPolicies().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public RegionNetworkPolicies regionNetworkPolicies() { + return new RegionNetworkPolicies(); + } + + /** + * The "regionNetworkPolicies" collection of methods. + */ + public class RegionNetworkPolicies { + /** - * Retrieves the list of regional network endpoint groups available to the specified project in the - * given region. + * Inserts an association for the specified network policy. * - * Create a request for the method "regionNetworkEndpointGroups.list". + * Create a request for the method "regionNetworkPolicies.addAssociation". * * 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. + * parameters, call the {@link AddAssociation#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 region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public AddAssociation addAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(project, region, networkPolicy, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of regional network endpoint groups available to the specified project in - * the given region. + * Inserts an association for the specified network policy. * - * Create a request for the method "regionNetworkEndpointGroups.list". + * Create a request for the method "regionNetworkPolicies.addAssociation". * * 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.

    + * 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 The name of theregion - where the network endpoint group is located. It should comply with RFC1035. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} * @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); + protected AddAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -174795,76 +185762,77 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -174878,7 +185846,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -174888,416 +185856,473 @@ public List setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region of this request. */ @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. + /** Name of the region of this request. */ 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) { + /** Name of the region of 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 network policy resource to update. */ + @com.google.api.client.util.Key + private java.lang.String networkPolicy; + + /** Name of the network policy resource to update. + */ + public java.lang.String getNetworkPolicy() { + return networkPolicy; + } + + /** Name of the network policy resource to update. */ + public AddAssociation setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; + return this; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + private java.lang.String requestId; - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a network policy. + * + * Create a request for the method "regionNetworkPolicies.addTrafficClassificationRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddTrafficClassificationRule#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @return the request + */ + public AddTrafficClassificationRule addTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { + AddTrafficClassificationRule result = new AddTrafficClassificationRule(project, region, networkPolicy, content); + initialize(result); + return result; + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + public class AddTrafficClassificationRule extends ComputeRequest { - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addTrafficClassificationRule"; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern NETWORK_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Inserts a rule into a network policy. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionNetworkPolicies.addTrafficClassificationRule". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddTrafficClassificationRule#execute()} method to invoke the remote + * operation.

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

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @since 1.13 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected AddTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public AddTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (AddTrafficClassificationRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (AddTrafficClassificationRule) super.setAccessToken(accessToken); + } + + @Override + public AddTrafficClassificationRule setAlt(java.lang.String alt) { + return (AddTrafficClassificationRule) super.setAlt(alt); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + @Override + public AddTrafficClassificationRule setCallback(java.lang.String callback) { + return (AddTrafficClassificationRule) super.setCallback(callback); + } + + @Override + public AddTrafficClassificationRule setFields(java.lang.String fields) { + return (AddTrafficClassificationRule) super.setFields(fields); + } + + @Override + public AddTrafficClassificationRule setKey(java.lang.String key) { + return (AddTrafficClassificationRule) super.setKey(key); + } + + @Override + public AddTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (AddTrafficClassificationRule) super.setOauthToken(oauthToken); + } + + @Override + public AddTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (AddTrafficClassificationRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (AddTrafficClassificationRule) super.setUploadType(uploadType); + } + + @Override + public AddTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (AddTrafficClassificationRule) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** Project ID for this request. */ + public AddTrafficClassificationRule setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region of this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** Name of the region of this request. */ + public AddTrafficClassificationRule setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String networkPolicy; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the network policy resource to update. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** - * Specifies 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; + /** Name of the network policy resource to update. */ + public AddTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public AddTrafficClassificationRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AddTrafficClassificationRule set(String parameterName, Object value) { + return (AddTrafficClassificationRule) super.set(parameterName, value); } } /** - * Lists the network endpoints in the specified network endpoint group. + * Retrieves an aggregated list of network policies. * - * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "regionNetworkPolicies.aggregatedList". * * 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. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListNetworkEndpoints extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/aggregated/networkPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves an aggregated list of network policies. * - * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionNetworkPolicies.aggregatedList". * * 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.

    + * 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. - * @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); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + 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. */ @@ -175311,7 +186336,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -175321,51 +186346,6 @@ public ListNetworkEndpoints setProject(java.lang.String 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 @@ -175497,11 +186477,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListNetworkEndpoints setFilter(java.lang.String filter) { + 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 @@ -175526,7 +186540,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -175570,7 +186584,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -175593,7 +186607,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -175625,62 +186639,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); - } - } - - } + /** + * 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; - /** - * 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 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 "regionNetworkFirewallPolicies" collection of methods. - */ - public class RegionNetworkFirewallPolicies { + /** + * 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); + } + } /** - * Inserts an association for the specified network firewall policy. + * Deletes the specified policy. * - * Create a request for the method "regionNetworkFirewallPolicies.addAssociation". + * Create a request for the method "regionNetworkPolicies.delete". * * 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. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to delete. * @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); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, networkPolicy); initialize(result); return result; } - public class AddAssociation extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -175688,31 +186701,26 @@ public class AddAssociation extends ComputeRequest {@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to delete. * @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); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + 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(), @@ -175725,72 +186733,72 @@ protected AddAssociation(java.lang.String project, java.lang.String region, java "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -175804,7 +186812,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + 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 " + @@ -175814,18 +186822,18 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public AddAssociation setRegion(java.lang.String 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 " + @@ -175835,75 +186843,24 @@ public AddAssociation setRegion(java.lang.String 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'. - */ + /** Name of the network policy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String associatedPolicyToBeReplaced; + private java.lang.String networkPolicy; - /** Name of the firewall policy associated with the target network to swap association with. This field - is mutually exclusive with 'replace_existing_association'. + /** Name of the network policy resource to delete. */ - public java.lang.String getAssociatedPolicyToBeReplaced() { - return associatedPolicyToBeReplaced; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** - * 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) { + /** Name of the network policy resource to delete. */ + public Delete setNetworkPolicy(java.lang.String networkPolicy) { 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy 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; + this.networkPolicy = networkPolicy; return this; } @@ -175951,39 +186908,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts a rule into a network firewall policy. + * Returns the specified network policy. * - * Create a request for the method "regionNetworkFirewallPolicies.addRule". + * Create a request for the method "regionNetworkPolicies.get". * * 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. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to return. * @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); + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + Get result = new Get(project, region, networkPolicy); initialize(result); return result; } - public class AddRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -175991,28 +186947,26 @@ public class AddRule extends ComputeRequest - * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to return. * @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); + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -176025,72 +186979,82 @@ protected AddRule(java.lang.String project, java.lang.String region, java.lang.S "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -176104,7 +187068,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -176114,18 +187078,18 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public AddRule setRegion(java.lang.String 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 " + @@ -176135,149 +187099,279 @@ public AddRule setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the network policy resource to return. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String networkPolicy; - /** Name of the firewall policy to update. + /** Name of the network policy resource to return. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the firewall policy to update. */ - public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the network policy resource to return. */ + public Get setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.firewallPolicy = firewallPolicy; + this.networkPolicy = networkPolicy; 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 "regionNetworkPolicies.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 of this request. + * @param networkPolicy Name of the network policy to which the queried association belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(project, region, networkPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getAssociation"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * Gets an association with the specified name. + * + * Create a request for the method "regionNetworkPolicies.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 of this request. + * @param networkPolicy Name of the network policy to which the queried association belongs. + * @since 1.13 */ + protected GetAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAssociation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public 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.Integer maxPriority; + private java.lang.String project; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Project ID for this request. */ - public java.lang.Integer getMaxPriority() { - return maxPriority; + public java.lang.String getProject() { + return project; } - /** - * 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; + /** 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; } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.Integer minPriority; + private java.lang.String region; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Name of the region of this request. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** Name of the region of 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the network policy to which the queried association belongs. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String networkPolicy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the network policy to which the queried association belongs. + */ + public java.lang.String getNetworkPolicy() { + return networkPolicy; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Name of the network policy to which the queried association belongs. */ + public GetAssociation setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; + return this; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the association to get from the network policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the network policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getName() { + return name; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** The name of the association to get from the network policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Copies rules to the specified network firewall policy. + * Gets a rule of the specified priority. * - * Create a request for the method "regionNetworkFirewallPolicies.cloneRules". + * Create a request for the method "regionNetworkPolicies.getTrafficClassificationRule". * * 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. + * parameters, call the {@link GetTrafficClassificationRule#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 region Name of the region of this request. + * @param networkPolicy Name of the network policy to which the queried rule belongs. * @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); + public GetTrafficClassificationRule getTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + GetTrafficClassificationRule result = new GetTrafficClassificationRule(project, region, networkPolicy); initialize(result); return result; } - public class CloneRules extends ComputeRequest { + public class GetTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -176285,27 +187379,27 @@ public class CloneRules extends ComputeRequest - * {@link - * CloneRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link GetTrafficClassificationRule#execute()} method to invoke the remote + * operation.

    {@link GetTrafficClassificationRule#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize 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 region Name of the region of this request. + * @param networkPolicy Name of the network policy to which the queried rule belongs. * @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); + protected GetTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -176318,72 +187412,82 @@ protected CloneRules(java.lang.String project, java.lang.String region, java.lan "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); + public GetTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (GetTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); + public GetTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (GetTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); + public GetTrafficClassificationRule setAlt(java.lang.String alt) { + return (GetTrafficClassificationRule) super.setAlt(alt); } @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); + public GetTrafficClassificationRule setCallback(java.lang.String callback) { + return (GetTrafficClassificationRule) super.setCallback(callback); } @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); + public GetTrafficClassificationRule setFields(java.lang.String fields) { + return (GetTrafficClassificationRule) super.setFields(fields); } @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); + public GetTrafficClassificationRule setKey(java.lang.String key) { + return (GetTrafficClassificationRule) super.setKey(key); } @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); + public GetTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (GetTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); + public GetTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); + public GetTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (GetTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); + public GetTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (GetTrafficClassificationRule) super.setUploadType(uploadType); + } + + @Override + public GetTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (GetTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176397,7 +187501,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CloneRules setProject(java.lang.String project) { + public GetTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -176407,18 +187511,18 @@ public CloneRules setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public CloneRules setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public GetTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -176428,119 +187532,70 @@ public CloneRules setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the network policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String networkPolicy; - /** Name of the firewall policy to update. + /** Name of the network policy to which the queried rule belongs. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the firewall policy to update. */ - public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the network policy to which the queried rule belongs. */ + public GetTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy 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; + this.networkPolicy = networkPolicy; return this; } - /** The firewall policy from which to copy rules. */ + /** The priority of the rule to get from the network policy. */ @com.google.api.client.util.Key - private java.lang.String sourceFirewallPolicy; + private java.lang.Integer priority; - /** The firewall policy from which to copy rules. + /** The priority of the rule to get from the network policy. */ - public java.lang.String getSourceFirewallPolicy() { - return sourceFirewallPolicy; + public java.lang.Integer getPriority() { + return priority; } - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; + /** The priority of the rule to get from the network policy. */ + public GetTrafficClassificationRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); + public GetTrafficClassificationRule set(String parameterName, Object value) { + return (GetTrafficClassificationRule) super.set(parameterName, value); } } /** - * Deletes the specified network firewall policy. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "regionNetworkFirewallPolicies.delete". + * Create a request for the method "regionNetworkPolicies.insert". * * 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. + * 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 firewallPolicy Name of the firewall policy to delete. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -176548,26 +187603,23 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 firewallPolicy Name of the firewall policy to delete. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkPolicy content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -176580,72 +187632,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176659,7 +187705,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -176669,18 +187715,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -176690,27 +187736,6 @@ public Delete setRegion(java.lang.String 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 @@ -176755,38 +187780,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified network firewall policy. + * Lists all the policies that have been configured for the specified project in the given region. * - * Create a request for the method "regionNetworkFirewallPolicies.get". + * Create a request for the method "regionNetworkPolicies.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * 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. - * @param firewallPolicy Name of the firewall policy to get. + * @param region Name of the region of this request. * @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); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -176794,26 +187818,22 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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. - * @param firewallPolicy Name of the firewall policy to get. + * @param region Name of the region of this request. * @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); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -176826,12 +187846,6 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -176845,63 +187859,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176915,7 +187929,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -176925,18 +187939,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -176946,279 +187960,298 @@ public Get setRegion(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionNetworkFirewallPolicies.getAssociation". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) 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. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region scoping this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region scoping this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the firewall policy to which the queried association belongs. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String pageToken; - /** Name of the firewall policy to which the queried association belongs. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** The name of the association to get from the firewall policy. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Boolean returnPartialSuccess; - /** The name of the association to get from the firewall policy. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getName() { - return name; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the effective firewalls on a given network. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "regionNetworkFirewallPolicies.getEffectiveFirewalls". + * Create a request for the method "regionNetworkPolicies.patch". * * 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. + * 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 network Network reference + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, networkPolicy, content); initialize(result); return result; } - public class GetEffectiveFirewalls extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -177226,24 +188259,27 @@ public class GetEffectiveFirewalls extends ComputeRequest {@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 network Network reference + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy 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(), @@ -177256,77 +188292,72 @@ protected GetEffectiveFirewalls(java.lang.String project, java.lang.String regio "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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -177340,7 +188371,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { + 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 " + @@ -177350,70 +188381,126 @@ public GetEffectiveFirewalls setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of 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; - } + /** Name of the region of 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 policy resource to update. */ + @com.google.api.client.util.Key + private java.lang.String networkPolicy; + + /** Name of the network policy resource to update. + */ + public java.lang.String getNetworkPolicy() { + return networkPolicy; + } + + /** Name of the network policy resource to update. */ + public Patch setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Network reference */ - @com.google.api.client.util.Key - private java.lang.String network; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Network reference + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getRequestId() { + return requestId; } - /** Network reference */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { - this.network = network; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Patches a rule of the specified priority. * - * Create a request for the method "regionNetworkFirewallPolicies.getIamPolicy". + * Create a request for the method "regionNetworkPolicies.patchTrafficClassificationRule". * * 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. + * parameters, call the {@link PatchTrafficClassificationRule#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 region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} * @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); + public PatchTrafficClassificationRule patchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { + PatchTrafficClassificationRule result = new PatchTrafficClassificationRule(project, region, networkPolicy, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class PatchTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/patchTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -177421,28 +188508,28 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link PatchTrafficClassificationRule#execute()} method to invoke the + * remote operation.

    {@link PatchTrafficClassificationRule#initialize(com.google.api.client.go + * ogleapis.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 region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} * @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); + protected PatchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -177455,82 +188542,72 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public PatchTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public PatchTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (PatchTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public PatchTrafficClassificationRule setAlt(java.lang.String alt) { + return (PatchTrafficClassificationRule) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public PatchTrafficClassificationRule setCallback(java.lang.String callback) { + return (PatchTrafficClassificationRule) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public PatchTrafficClassificationRule setFields(java.lang.String fields) { + return (PatchTrafficClassificationRule) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public PatchTrafficClassificationRule setKey(java.lang.String key) { + return (PatchTrafficClassificationRule) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public PatchTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (PatchTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public PatchTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public PatchTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (PatchTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public PatchTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (PatchTrafficClassificationRule) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public PatchTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public PatchTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (PatchTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -177544,7 +188621,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public PatchTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -177554,18 +188631,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public PatchTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -177575,70 +188652,126 @@ public GetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkPolicy; - /** Name or id of the resource for this request. + /** Name of the network policy resource to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the network policy resource to update. */ + public PatchTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.networkPolicy = networkPolicy; return this; } - /** Requested IAM Policy version. */ + /** + * The priority of the traffic classification rule to patch. Only rules with a priority value + * between 1 and 2147482647 (inclusive) can be patched. + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.Integer priority; - /** Requested IAM Policy version. + /** The priority of the traffic classification rule to patch. Only rules with a priority value between + 1 and 2147482647 (inclusive) can be patched. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Integer getPriority() { + return priority; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * The priority of the traffic classification rule to patch. Only rules with a priority value + * between 1 and 2147482647 (inclusive) can be patched. + */ + public PatchTrafficClassificationRule 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 PatchTrafficClassificationRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public PatchTrafficClassificationRule set(String parameterName, Object value) { + return (PatchTrafficClassificationRule) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Removes an association for the specified network policy. * - * Create a request for the method "regionNetworkFirewallPolicies.getRule". + * Create a request for the method "regionNetworkPolicies.removeAssociation". * * 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. + * 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 which the queried rule belongs. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(project, region, networkPolicy); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -177646,27 +188779,27 @@ public class GetRule extends ComputeRequest - * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 which the queried rule belongs. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + protected RemoveAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + 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(), @@ -177679,82 +188812,72 @@ protected GetRule(java.lang.String project, java.lang.String region, java.lang.S "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -177768,7 +188891,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + 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 " + @@ -177778,18 +188901,18 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public GetRule setRegion(java.lang.String region) { + /** Name of the region of 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 " + @@ -177799,70 +188922,120 @@ public GetRule setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String networkPolicy; - /** Name of the firewall policy to which the queried rule belongs. + /** Name of the network policy resource to update. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the network policy resource to update. */ + public RemoveAssociation setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.firewallPolicy = firewallPolicy; + this.networkPolicy = networkPolicy; return this; } - /** The priority of the rule to get from the firewall policy. */ + /** Name for the association that will be removed. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String name; - /** The priority of the rule to get from the firewall policy. + /** Name for the association that will be removed. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getName() { + return name; } - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** 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 GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Creates a new network firewall policy in the specified project and region. + * Deletes a rule of the specified priority. * - * Create a request for the method "regionNetworkFirewallPolicies.insert". + * Create a request for the method "regionNetworkPolicies.removeTrafficClassificationRule". * * 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. + * parameters, call the {@link RemoveTrafficClassificationRule#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} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + public RemoveTrafficClassificationRule removeTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + RemoveTrafficClassificationRule result = new RemoveTrafficClassificationRule(project, region, networkPolicy); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class RemoveTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -177870,23 +189043,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link RemoveTrafficClassificationRule#execute()} method to invoke the + * remote operation.

    {@link RemoveTrafficClassificationRule#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. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + protected RemoveTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + 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(), @@ -177899,66 +189076,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RemoveTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RemoveTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (RemoveTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RemoveTrafficClassificationRule setAlt(java.lang.String alt) { + return (RemoveTrafficClassificationRule) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RemoveTrafficClassificationRule setCallback(java.lang.String callback) { + return (RemoveTrafficClassificationRule) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RemoveTrafficClassificationRule setFields(java.lang.String fields) { + return (RemoveTrafficClassificationRule) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RemoveTrafficClassificationRule setKey(java.lang.String key) { + return (RemoveTrafficClassificationRule) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RemoveTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (RemoveTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RemoveTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RemoveTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RemoveTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (RemoveTrafficClassificationRule) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RemoveTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RemoveTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (RemoveTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -177972,7 +189155,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public RemoveTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -177982,18 +189165,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public RemoveTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -178003,6 +189186,43 @@ public Insert setRegion(java.lang.String region) { return this; } + /** Name of the network policy resource to update. */ + @com.google.api.client.util.Key + private java.lang.String networkPolicy; + + /** Name of the network policy resource to update. + */ + public java.lang.String getNetworkPolicy() { + return networkPolicy; + } + + /** Name of the network policy resource to update. */ + public RemoveTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; + return this; + } + + /** The priority of the rule to remove from the network policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the network policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the network policy. */ + public RemoveTrafficClassificationRule 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 @@ -178047,74 +189267,87 @@ public java.lang.String getRequestId() { * 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) { + public RemoveTrafficClassificationRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public RemoveTrafficClassificationRule set(String parameterName, Object value) { + return (RemoveTrafficClassificationRule) 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 { + /** - * Lists all the network firewall policies that have been configured for the specified project in - * the given region. + * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the + * specified project. * - * Create a request for the method "regionNetworkFirewallPolicies.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param project Name of the project 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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/notificationEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of all NotificationEndpoint resources, regional and global, available to the + * specified project. * - * Create a request for the method "regionNetworkFirewallPolicies.list". + * 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 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.

    + * 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. - * @param region Name of the region scoping this request. + * @param project Name of the project 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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -178128,77 +189361,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -178208,27 +189441,6 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -178360,11 +189572,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -178389,7 +189635,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -178433,7 +189679,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -178456,7 +189702,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -178488,287 +189734,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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). + * 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.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Long serviceProjectNumber; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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.String getRequestId() { - return requestId; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Updates an association for the specified network firewall policy. + * Deletes the specified NotificationEndpoint in the given region * - * Create a request for the method "regionNetworkFirewallPolicies.patchAssociation". + * 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 PatchAssociation#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. * @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); + 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 PatchAssociation extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -178776,28 +189796,26 @@ public class PatchAssociation extends ComputeRequest {@link PatchAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogle - * ClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. * @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); + 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(), @@ -178810,72 +189828,72 @@ protected PatchAssociation(java.lang.String project, java.lang.String region, ja "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."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { - return (PatchAssociation) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PatchAssociation setAccessToken(java.lang.String accessToken) { - return (PatchAssociation) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PatchAssociation setAlt(java.lang.String alt) { - return (PatchAssociation) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PatchAssociation setCallback(java.lang.String callback) { - return (PatchAssociation) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PatchAssociation setFields(java.lang.String fields) { - return (PatchAssociation) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PatchAssociation setKey(java.lang.String key) { - return (PatchAssociation) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PatchAssociation setOauthToken(java.lang.String oauthToken) { - return (PatchAssociation) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchAssociation) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PatchAssociation setQuotaUser(java.lang.String quotaUser) { - return (PatchAssociation) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PatchAssociation setUploadType(java.lang.String uploadType) { - return (PatchAssociation) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchAssociation) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PatchAssociation setUserIp(java.lang.String userIp) { - return (PatchAssociation) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -178889,7 +189907,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchAssociation setProject(java.lang.String project) { + 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 " + @@ -178910,7 +189928,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public PatchAssociation setRegion(java.lang.String region) { + 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 " + @@ -178920,24 +189938,24 @@ public PatchAssociation setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the NotificationEndpoint resource to delete. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String notificationEndpoint; - /** Name of the firewall policy to update. + /** Name of the NotificationEndpoint resource to delete. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNotificationEndpoint() { + return notificationEndpoint; } - /** Name of the firewall policy to update. */ - public PatchAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the NotificationEndpoint resource to delete. */ + public Delete setNotificationEndpoint(java.lang.String notificationEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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.firewallPolicy = firewallPolicy; + this.notificationEndpoint = notificationEndpoint; return this; } @@ -178985,39 +190003,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchAssociation set(String parameterName, Object value) { - return (PatchAssociation) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Returns the specified NotificationEndpoint resource in the given region. * - * Create a request for the method "regionNetworkFirewallPolicies.patchRule". + * 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 PatchRule#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param notificationEndpoint Name of the NotificationEndpoint resource to return. * @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); + 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 PatchRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -179025,28 +190042,26 @@ public class PatchRule extends ComputeRequest - * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param notificationEndpoint Name of the NotificationEndpoint resource to return. * @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); + 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(), @@ -179059,72 +190074,82 @@ protected PatchRule(java.lang.String project, java.lang.String region, java.lang "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."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -179138,7 +190163,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + 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 " + @@ -179159,7 +190184,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public PatchRule setRegion(java.lang.String region) { + 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 " + @@ -179169,119 +190194,55 @@ public PatchRule setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the NotificationEndpoint resource to return. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String notificationEndpoint; - /** Name of the firewall policy to update. + /** Name of the NotificationEndpoint resource to return. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNotificationEndpoint() { + return notificationEndpoint; } - /** Name of the firewall policy to update. */ - public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the NotificationEndpoint resource to return. */ + public Get setNotificationEndpoint(java.lang.String notificationEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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.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; + this.notificationEndpoint = notificationEndpoint; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Removes an association for the specified network firewall policy. + * 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 "regionNetworkFirewallPolicies.removeAssociation". + * 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 RemoveAssociation#execute()} method to invoke the remote operation. + * 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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.NotificationEndpoint} * @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); + 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 RemoveAssociation extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -179289,27 +190250,24 @@ public class RemoveAssociation extends ComputeRequest {@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.NotificationEndpoint} * @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); + 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(), @@ -179322,72 +190280,66 @@ protected RemoveAssociation(java.lang.String project, java.lang.String region, j "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -179401,7 +190353,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + 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 " + @@ -179422,7 +190374,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public RemoveAssociation setRegion(java.lang.String region) { + 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 " + @@ -179432,43 +190384,6 @@ public RemoveAssociation setRegion(java.lang.String 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 @@ -179513,38 +190428,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * Lists the NotificationEndpoints for a project in the given region. * - * Create a request for the method "regionNetworkFirewallPolicies.removeRule". + * 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 RemoveRule#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 RemoveRule extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -179552,27 +190466,22 @@ public class RemoveRule extends ComputeRequest - * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @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); + 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(), @@ -179585,72 +190494,76 @@ protected RemoveRule(java.lang.String project, java.lang.String region, java.lan "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + 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. */ @@ -179664,7 +190577,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -179685,7 +190598,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public RemoveRule setRegion(java.lang.String region) { + 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 " + @@ -179695,301 +190608,279 @@ public RemoveRule setRegion(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @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; - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - public class SetIamPolicy extends ComputeRequest { + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy"; + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } - - @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); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** The name of the region for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of the region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + 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 "regionNetworkFirewallPolicies.testIamPermissions". + * 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. @@ -180008,7 +190899,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -180022,7 +190913,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionNetworkPolicies.List request = compute.regionNetworkPolicies().list(parameters ...)}
    +   *   {@code Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionNetworkPolicies regionNetworkPolicies() { - return new RegionNetworkPolicies(); + public RegionOperations regionOperations() { + return new RegionOperations(); } /** - * The "regionNetworkPolicies" collection of methods. + * The "regionOperations" collection of methods. */ - public class RegionNetworkPolicies { + public class RegionOperations { /** - * Inserts an association for the specified network policy. + * Deletes the specified region-specific Operations resource. * - * Create a request for the method "regionNetworkPolicies.addAssociation". + * 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 AddAssociation#execute()} method to invoke the remote operation. + * 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 networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} + * @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 AddAssociation addAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(project, region, networkPolicy, content); + 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 AddAssociation extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -180239,28 +191130,27 @@ public class AddAssociation extends ComputeRequest {@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} + * @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 AddAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -180273,72 +191163,72 @@ protected AddAssociation(java.lang.String project, java.lang.String region, java "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -180352,7 +191242,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + 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 " + @@ -180362,18 +191252,18 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public AddAssociation setRegion(java.lang.String 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 " + @@ -180383,105 +191273,59 @@ public AddAssociation setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ - @com.google.api.client.util.Key - private java.lang.String networkPolicy; - - /** Name of the network policy resource to update. - */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; - } - - /** Name of the network policy resource to update. */ - public AddAssociation setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; - return this; - } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to delete, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the Operations resource to delete, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to delete, or its unique numeric identifier. */ - public AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts a rule into a network policy. + * Retrieves the specified region-specific Operations resource. * - * Create a request for the method "regionNetworkPolicies.addTrafficClassificationRule". + * 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 AddTrafficClassificationRule#execute()} method to invoke the remote - * operation. + * 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 networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @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 AddTrafficClassificationRule addTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { - AddTrafficClassificationRule result = new AddTrafficClassificationRule(project, region, networkPolicy, content); + 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 AddTrafficClassificationRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -180489,28 +191333,27 @@ public class AddTrafficClassificationRule extends ComputeRequest {@link AddTrafficClassificationRule#initialize(com.google.api.client.googleapis. - * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @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 AddTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -180523,72 +191366,82 @@ protected AddTrafficClassificationRule(java.lang.String project, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @Override - public AddTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (AddTrafficClassificationRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (AddTrafficClassificationRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddTrafficClassificationRule setAlt(java.lang.String alt) { - return (AddTrafficClassificationRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddTrafficClassificationRule setCallback(java.lang.String callback) { - return (AddTrafficClassificationRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddTrafficClassificationRule setFields(java.lang.String fields) { - return (AddTrafficClassificationRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddTrafficClassificationRule setKey(java.lang.String key) { - return (AddTrafficClassificationRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (AddTrafficClassificationRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (AddTrafficClassificationRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (AddTrafficClassificationRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (AddTrafficClassificationRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -180602,7 +191455,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -180612,18 +191465,18 @@ public AddTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public AddTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -180633,132 +191486,92 @@ public AddTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ - @com.google.api.client.util.Key - private java.lang.String networkPolicy; - - /** Name of the network policy resource to update. - */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; - } - - /** Name of the network policy resource to update. */ - public AddTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; - return this; - } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to return, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to return, or its unique numeric identifier. */ - public AddTrafficClassificationRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 AddTrafficClassificationRule set(String parameterName, Object value) { - return (AddTrafficClassificationRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of network policies. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves a list of Operation resources contained within the specified region. * - * Create a request for the method "regionNetworkPolicies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 an aggregated list of network policies. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves a list of Operation resources contained within the specified region. * - * Create a request for the method "regionNetworkPolicies.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAggregatedList.class); + 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])?"); + } } @Override @@ -180772,63 +191585,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -180842,7 +191655,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -180852,6 +191665,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -180983,45 +191817,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -181046,7 +191846,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -181090,7 +191890,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -181113,7 +191913,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -181145,61 +191945,283 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * 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}"); + } + } + + @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.Long serviceProjectNumber; + private java.lang.String region; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name of the region for this request. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + 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; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * Name of the Operations resource to return, or its unique numeric identifier. */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + @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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + 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 { + /** - * Deletes the specified policy. + * Inserts a rule into a security policy. * - * Create a request for the method "regionNetworkPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkPolicy Name of the network policy resource to delete. + * @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 Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, networkPolicy); + 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 Delete extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181207,26 +192229,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 of this request. - * @param networkPolicy Name of the network policy resource to delete. + * @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 Delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -181239,72 +192263,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -181318,7 +192342,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -181328,18 +192352,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -181349,103 +192373,70 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to delete. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String securityPolicy; - /** Name of the network policy resource to delete. + /** Name of the security policy to update. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the network policy resource to delete. */ - public Delete setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + 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). - */ + /** If true, the request will not be committed. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Boolean validateOnly; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** If true, the request will not be committed. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getValidateOnly() { + return validateOnly; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** If true, the request will not be committed. */ + public AddRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Returns the specified network policy. + * Deletes the specified policy. * - * Create a request for the method "regionNetworkPolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 networkPolicy Name of the network policy resource to return. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - Get result = new Get(project, region, networkPolicy); + 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 Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181453,26 +192444,26 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 networkPolicy Name of the network policy resource to return. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicy.class); + 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(), @@ -181485,82 +192476,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -181574,7 +192555,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -181584,18 +192565,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Get setRegion(java.lang.String 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 " + @@ -181605,54 +192586,103 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to return. */ + /** Name of the security policy to delete. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String securityPolicy; - /** Name of the network policy resource to return. + /** Name of the security policy to delete. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the network policy resource to return. */ - public Get setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets an association with the specified name. + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "regionNetworkPolicies.getAssociation". + * 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 GetAssociation#execute()} method to invoke the remote operation. + * 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 networkPolicy Name of the network policy to which the queried association belongs. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to get. * @return the request */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, region, networkPolicy); + 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 GetAssociation extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181660,27 +192690,26 @@ public class GetAssociation extends ComputeRequest {@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 networkPolicy Name of the network policy to which the queried association belongs. + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to get. * @since 1.13 */ - protected GetAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAssociation.class); + 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(), @@ -181693,10 +192722,10 @@ protected GetAssociation(java.lang.String project, java.lang.String region, java "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @@ -181712,63 +192741,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -181782,7 +192811,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetAssociation setProject(java.lang.String project) { + 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 " + @@ -181792,18 +192821,18 @@ public GetAssociation setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public GetAssociation setRegion(java.lang.String 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 " + @@ -181813,71 +192842,54 @@ public GetAssociation setRegion(java.lang.String region) { return this; } - /** Name of the network policy to which the queried association belongs. */ + /** Name of the security policy to get. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String securityPolicy; - /** Name of the network policy to which the queried association belongs. + /** Name of the security policy to get. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the network policy to which the queried association belongs. */ - public GetAssociation setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; - return this; - } - - /** The name of the association to get from the network policy. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the association to get from the network policy. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the association to get from the network policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + this.securityPolicy = securityPolicy; return this; } @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Gets a rule at the specified priority. * - * Create a request for the method "regionNetworkPolicies.getTrafficClassificationRule". + * 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 GetTrafficClassificationRule#execute()} method to invoke the remote - * operation. + * 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 of this request. - * @param networkPolicy Name of the network policy to which the queried rule belongs. + * @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 GetTrafficClassificationRule getTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - GetTrafficClassificationRule result = new GetTrafficClassificationRule(project, region, networkPolicy); + 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 GetTrafficClassificationRule extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181885,27 +192897,27 @@ public class GetTrafficClassificationRule extends ComputeRequest {@link GetTrafficClassificationRule#initialize(com.google.api.client.googleapis. - * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy to which the queried rule belongs. + * @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 GetTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule.class); + 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(), @@ -181918,10 +192930,10 @@ protected GetTrafficClassificationRule(java.lang.String project, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @@ -181937,63 +192949,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (GetTrafficClassificationRule) super.set$Xgafv($Xgafv); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public GetTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (GetTrafficClassificationRule) super.setAccessToken(accessToken); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public GetTrafficClassificationRule setAlt(java.lang.String alt) { - return (GetTrafficClassificationRule) super.setAlt(alt); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public GetTrafficClassificationRule setCallback(java.lang.String callback) { - return (GetTrafficClassificationRule) super.setCallback(callback); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public GetTrafficClassificationRule setFields(java.lang.String fields) { - return (GetTrafficClassificationRule) super.setFields(fields); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public GetTrafficClassificationRule setKey(java.lang.String key) { - return (GetTrafficClassificationRule) super.setKey(key); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public GetTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (GetTrafficClassificationRule) super.setOauthToken(oauthToken); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public GetTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public GetTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (GetTrafficClassificationRule) super.setQuotaUser(quotaUser); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public GetTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (GetTrafficClassificationRule) super.setUploadType(uploadType); + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); } @Override - public GetTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (GetTrafficClassificationRule) super.setUserIp(userIp); + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -182007,7 +193019,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -182017,18 +193029,18 @@ public GetTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public GetTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -182038,62 +193050,62 @@ public GetTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy to which the queried rule belongs. */ + /** Name of the security policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String securityPolicy; - /** Name of the network policy to which the queried rule belongs. + /** Name of the security policy to which the queried rule belongs. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the network policy to which the queried rule belongs. */ - public GetTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + /** 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + this.securityPolicy = securityPolicy; return this; } - /** The priority of the rule to get from the network policy. */ + /** 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 network policy. + /** 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 network policy. */ - public GetTrafficClassificationRule setPriority(java.lang.Integer 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 GetTrafficClassificationRule set(String parameterName, Object value) { - return (GetTrafficClassificationRule) super.set(parameterName, value); + 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 "regionNetworkPolicies.insert". + * 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 of this request. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @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.NetworkPolicy content) throws java.io.IOException { + 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; @@ -182101,7 +193113,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182112,7 +193124,7 @@ public class Insert extends ComputeRequest {@link @@ -182120,11 +193132,11 @@ public class Insert extends ComputeRequest * * @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.NetworkPolicy} + * @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.NetworkPolicy content) { + 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()) { @@ -182221,17 +193233,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ + /** 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(), @@ -182291,21 +193303,37 @@ public Insert setRequestId(java.lang.String 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); } } /** - * Lists all the policies that have been configured for the specified project in the given region. + * List all the policies that have been configured for the specified project and region. * - * Create a request for the method "regionNetworkPolicies.list". + * 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 of 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 { @@ -182314,9 +193342,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182325,9 +193353,9 @@ public class List extends ComputeRequest {@link @@ -182335,11 +193363,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of 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.NetworkPolicyList.class); + 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(), @@ -182445,17 +193473,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ + /** 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(), @@ -182675,89 +193703,608 @@ public List setOrderBy(java.lang.String orderBy) { return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 java.lang.String pageToken; + private String updateMask; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Indicates fields to be cleared as part of this request. */ - public java.lang.String getPageToken() { - return pageToken; + public String getUpdateMask() { + return updateMask; } - /** - * Specifies 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; + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** If true, the request will not be committed. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.Boolean validateOnly; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** If true, the request will not be committed. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Boolean getValidateOnly() { + return validateOnly; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** If true, the request will not be committed. */ + public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Deletes a rule at the specified priority. * - * Create a request for the method "regionNetworkPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, networkPolicy, content); + 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 Patch extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182765,27 +194312,27 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @param region Name of the region scoping this request. + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -182798,72 +194345,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -182877,7 +194424,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -182887,18 +194434,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -182908,105 +194455,72 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String securityPolicy; - /** Name of the network policy resource to update. + /** Name of the security policy to update. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the network policy resource to update. */ - public Patch setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + 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). - */ + /** The priority of the rule to remove from the security policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer priority; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The priority of the rule to remove from the security policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPriority() { + return priority; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "regionNetworkPolicies.patchTrafficClassificationRule". + * 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 PatchTrafficClassificationRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @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 PatchTrafficClassificationRule patchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { - PatchTrafficClassificationRule result = new PatchTrafficClassificationRule(project, region, networkPolicy, content); + 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 PatchTrafficClassificationRule extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/patchTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183014,27 +194528,28 @@ public class PatchTrafficClassificationRule extends ComputeRequest {@link PatchTrafficClassificationRule#initialize(com.google.api.client.go - * ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

    + * 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 Name of the region of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @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 PatchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { + 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()) { @@ -183048,72 +194563,72 @@ protected PatchTrafficClassificationRule(java.lang.String project, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public PatchTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchTrafficClassificationRule) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public PatchTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (PatchTrafficClassificationRule) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public PatchTrafficClassificationRule setAlt(java.lang.String alt) { - return (PatchTrafficClassificationRule) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public PatchTrafficClassificationRule setCallback(java.lang.String callback) { - return (PatchTrafficClassificationRule) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public PatchTrafficClassificationRule setFields(java.lang.String fields) { - return (PatchTrafficClassificationRule) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public PatchTrafficClassificationRule setKey(java.lang.String key) { - return (PatchTrafficClassificationRule) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public PatchTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (PatchTrafficClassificationRule) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public PatchTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public PatchTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (PatchTrafficClassificationRule) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public PatchTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (PatchTrafficClassificationRule) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public PatchTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public PatchTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (PatchTrafficClassificationRule) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -183127,7 +194642,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -183137,18 +194652,18 @@ public PatchTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public PatchTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -183158,47 +194673,24 @@ public PatchTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String resource; - /** Name of the network policy resource to update. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the network policy resource to update. */ - public PatchTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + /** 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkPolicy = networkPolicy; - return this; - } - - /** - * The priority of the traffic classification rule to patch. Only rules with a priority value - * between 1 and 2147482647 (inclusive) can be patched. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the traffic classification rule to patch. Only rules with a priority value between - 1 and 2147482647 (inclusive) can be patched. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * The priority of the traffic classification rule to patch. Only rules with a priority value - * between 1 and 2147482647 (inclusive) can be patched. - */ - public PatchTrafficClassificationRule setPriority(java.lang.Integer priority) { - this.priority = priority; + this.resource = resource; return this; } @@ -183246,38 +194738,60 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public PatchTrafficClassificationRule setRequestId(java.lang.String requestId) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchTrafficClassificationRule set(String parameterName, Object value) { - return (PatchTrafficClassificationRule) super.set(parameterName, value); + 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 { + /** - * Removes an association for the specified network policy. + * Get region snapshot settings. * - * Create a request for the method "regionNetworkPolicies.removeAssociation". + * 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 RemoveAssociation#execute()} method to invoke the remote operation. + * 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 networkPolicy Name of the network policy resource to update. + * @param region Name of the region for this request. * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, region, networkPolicy); + 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 RemoveAssociation extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183285,27 +194799,22 @@ public class RemoveAssociation extends ComputeRequest {@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 networkPolicy Name of the network policy resource to update. + * @param region Name of the region for this request. * @since 1.13 */ - protected RemoveAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -183318,72 +194827,76 @@ protected RemoveAssociation(java.lang.String project, java.lang.String region, j "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -183397,7 +194910,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + 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 " + @@ -183407,18 +194920,18 @@ public RemoveAssociation setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public RemoveAssociation setRegion(java.lang.String 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 " + @@ -183428,40 +194941,170 @@ public RemoveAssociation setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 networkPolicy; + private java.lang.String project; - /** Name of the network policy resource to update. + /** Project ID for this request. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getProject() { + return project; } - /** Name of the network policy resource to update. */ - public RemoveAssociation setNetworkPolicy(java.lang.String networkPolicy) { + /** Project ID for this request. */ + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.networkPolicy = networkPolicy; + this.project = project; return this; } - /** Name for the association that will be removed. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String region; - /** Name for the association that will be removed. + /** Name of the region for this request. */ - public java.lang.String getName() { - return name; + public java.lang.String getRegion() { + return region; } - /** Name for the association that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + /** 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; } @@ -183509,39 +195152,82 @@ public java.lang.String getRequestId() { * 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) { + 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 RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + 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 a rule of the specified priority. + * 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. * - * Create a request for the method "regionNetworkPolicies.removeTrafficClassificationRule". + * 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 RemoveTrafficClassificationRule#execute()} method to invoke the - * remote operation. + * 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 networkPolicy Name of the network policy resource to update. + * @param region The name of the region for this request. + * @param snapshot Name of the snapshot resource to delete. * @return the request */ - public RemoveTrafficClassificationRule removeTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - RemoveTrafficClassificationRule result = new RemoveTrafficClassificationRule(project, region, networkPolicy); + 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 RemoveTrafficClassificationRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183549,27 +195235,31 @@ public class RemoveTrafficClassificationRule extends ComputeRequest {@link RemoveTrafficClassificationRule#initialize(com.google.api.client.g - * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

    + * 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 networkPolicy Name of the network policy resource to update. + * @param region The name of the region for this request. + * @param snapshot Name of the snapshot resource to delete. * @since 1.13 */ - protected RemoveTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -183582,72 +195272,72 @@ protected RemoveTrafficClassificationRule(java.lang.String project, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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}"); } } @Override - public RemoveTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveTrafficClassificationRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public RemoveTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (RemoveTrafficClassificationRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public RemoveTrafficClassificationRule setAlt(java.lang.String alt) { - return (RemoveTrafficClassificationRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public RemoveTrafficClassificationRule setCallback(java.lang.String callback) { - return (RemoveTrafficClassificationRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public RemoveTrafficClassificationRule setFields(java.lang.String fields) { - return (RemoveTrafficClassificationRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public RemoveTrafficClassificationRule setKey(java.lang.String key) { - return (RemoveTrafficClassificationRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public RemoveTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (RemoveTrafficClassificationRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public RemoveTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public RemoveTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveTrafficClassificationRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public RemoveTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (RemoveTrafficClassificationRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public RemoveTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (RemoveTrafficClassificationRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -183661,7 +195351,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -183671,18 +195361,18 @@ public RemoveTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public RemoveTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -183692,40 +195382,24 @@ public RemoveTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ + /** Name of the snapshot resource to delete. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String snapshot; - /** Name of the network policy resource to update. + /** Name of the snapshot resource to delete. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getSnapshot() { + return snapshot; } - /** Name of the network policy resource to update. */ - public RemoveTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the snapshot resource to delete. */ + public Delete setSnapshot(java.lang.String snapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; - return this; - } - - /** The priority of the rule to remove from the network policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the network policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the network policy. */ - public RemoveTrafficClassificationRule setPriority(java.lang.Integer priority) { - this.priority = priority; + this.snapshot = snapshot; return this; } @@ -183773,61 +195447,38 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public RemoveTrafficClassificationRule setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveTrafficClassificationRule set(String parameterName, Object value) { - return (RemoveTrafficClassificationRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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 { - /** - * Deletes the specified NotificationEndpoint in the given region + * Returns the specified Snapshot resource. * - * Create a request for the method "regionNotificationEndpoints.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param region Name of the region for this request. + * @param snapshot Name of the Snapshot resource to return. * @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); + 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 Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183835,26 +195486,26 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 delete. + * @param region Name of the region for this request. + * @param snapshot Name of the Snapshot resource to return. * @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); + 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(), @@ -183867,72 +195518,82 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -183946,7 +195607,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -183956,18 +195617,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -183977,103 +195638,54 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the NotificationEndpoint resource to delete. */ + /** Name of the Snapshot resource to return. */ @com.google.api.client.util.Key - private java.lang.String notificationEndpoint; + private java.lang.String snapshot; - /** Name of the NotificationEndpoint resource to delete. + /** Name of the Snapshot resource to return. */ - public java.lang.String getNotificationEndpoint() { - return notificationEndpoint; + public java.lang.String getSnapshot() { + return snapshot; } - /** Name of the NotificationEndpoint resource to delete. */ - public Delete setNotificationEndpoint(java.lang.String notificationEndpoint) { + /** Name of the Snapshot resource to return. */ + public Get setSnapshot(java.lang.String snapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + 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.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; + this.snapshot = snapshot; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns the specified NotificationEndpoint resource in the given region. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionNotificationEndpoints.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -184081,26 +195693,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param notificationEndpoint Name of the NotificationEndpoint resource to return. + * @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 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); + 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(), @@ -184113,10 +195727,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -184132,63 +195746,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -184202,7 +195816,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -184212,18 +195826,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -184233,47 +195847,62 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the NotificationEndpoint resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String notificationEndpoint; + private java.lang.String resource; - /** Name of the NotificationEndpoint resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getNotificationEndpoint() { - return notificationEndpoint; + public java.lang.String getResource() { + return resource; } - /** Name of the NotificationEndpoint resource to return. */ - public Get setNotificationEndpoint(java.lang.String notificationEndpoint) { + /** 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(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.notificationEndpoint = notificationEndpoint; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Create a NotificationEndpoint in the specified project in the given region using the parameters - * that are included in the request. + * Creates a snapshot in the specified region using the data included in the request. * - * Create a request for the method "regionNotificationEndpoints.insert". + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.NotificationEndpoint} + * @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.NotificationEndpoint content) throws java.io.IOException { + 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; @@ -184281,7 +195910,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -184290,10 +195919,9 @@ public class Insert extends ComputeRequest {@link @@ -184301,11 +195929,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.NotificationEndpoint content) { + 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()) { @@ -184402,17 +196030,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -184478,15 +196106,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the NotificationEndpoints for a project in the given region. + * Retrieves the list of Snapshot resources contained within the specified region. * - * Create a request for the method "regionNotificationEndpoints.list". + * 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 scoping 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 { @@ -184495,9 +196123,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -184506,9 +196134,9 @@ public class List extends ComputeRequest {@link @@ -184516,11 +196144,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.NotificationEndpointList.class); + 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(), @@ -184626,17 +196254,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -184916,10 +196544,461 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 "regionNotificationEndpoints.testIamPermissions". + * 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. @@ -184938,7 +197017,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -184952,7 +197031,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)}
    +   *   {@code Compute.RegionSslCertificates.List request = compute.regionSslCertificates().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionOperations regionOperations() { - return new RegionOperations(); + public RegionSslCertificates regionSslCertificates() { + return new RegionSslCertificates(); } /** - * The "regionOperations" collection of methods. + * The "regionSslCertificates" collection of methods. */ - public class RegionOperations { + public class RegionSslCertificates { /** - * Deletes the specified region-specific Operations resource. + * Deletes the specified SslCertificate resource in the region. * - * Create a request for the method "regionOperations.delete". + * 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 for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @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 operation) throws java.io.IOException { - Delete result = new Delete(project, region, operation); + 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 { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -185169,27 +197247,274 @@ public class Delete extends ComputeRequest { private final java.util.regex.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 = + 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 region-specific Operations resource. + * 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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 "regionOperations.delete". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 delete, or its unique numeric - identifier. + * @param region Name of the region scoping this request. + * @param sslCertificate Name of the SslCertificate resource to return. * @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); + 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(), @@ -185202,72 +197527,82 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -185281,7 +197616,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -185291,18 +197626,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -185312,59 +197647,55 @@ public Delete setRegion(java.lang.String region) { return this; } - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ + /** Name of the SslCertificate resource to return. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String sslCertificate; - /** Name of the Operations resource to delete, or its unique numeric identifier. + /** Name of the SslCertificate resource to return. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getSslCertificate() { + return sslCertificate; } - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { + /** Name of the SslCertificate resource to return. */ + public Get setSslCertificate(java.lang.String sslCertificate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + + 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.operation = operation; + this.sslCertificate = sslCertificate; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the specified region-specific Operations resource. + * Creates a SslCertificate resource in the specified project and region using the data included in + * the request * - * Create a request for the method "regionOperations.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} * @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); + 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 Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -185372,27 +197703,24 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.SslCertificate} * @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); + 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(), @@ -185405,82 +197733,66 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -185494,7 +197806,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -185504,18 +197816,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -185526,45 +197838,70 @@ public Get setRegion(java.lang.String region) { } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String requestId; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of Operation resources contained within the specified region. + * Retrieves the list of SslCertificate resources available to the specified project in the + * specified region. * - * Create a request for the method "regionOperations.list". + * 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 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 { @@ -185573,9 +197910,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -185584,9 +197921,10 @@ public class List extends ComputeRequest {@link @@ -185594,11 +197932,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.OperationList.class); + 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(), @@ -185704,17 +198042,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -185995,37 +198333,28 @@ public List set(String parameterName, Object 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`. + * Returns permissions that a caller has on the specified resource and region. * - * Create a request for the method "regionOperations.wait". + * Create a request for the method "regionSslCertificates.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 Wait extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}/wait"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -186033,36 +198362,28 @@ public class Wait extends ComputeRequest {@link - * Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. + * @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 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); + 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(), @@ -186075,72 +198396,72 @@ protected Wait(java.lang.String project, java.lang.String region, java.lang.Stri "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -186154,7 +198475,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Wait setProject(java.lang.String project) { + 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 " + @@ -186164,18 +198485,18 @@ public Wait setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -186185,297 +198506,79 @@ public Wait setRegion(java.lang.String region) { return this; } - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String resource; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** Name or id of the resource for this request. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getResource() { + return resource; } - /** - * Name of the Operations resource to return, or its unique numeric identifier. - */ - public Wait setOperation(java.lang.String operation) { + /** 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(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.operation = operation; + this.resource = resource; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionSecurityPolicies collection. + * An accessor for creating requests from the RegionSslPolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionSecurityPolicies.List request = compute.regionSecurityPolicies().list(parameters ...)}
    +   *   {@code Compute.RegionSslPolicies.List request = compute.regionSslPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionSecurityPolicies regionSecurityPolicies() { - return new RegionSecurityPolicies(); + public RegionSslPolicies regionSslPolicies() { + return new RegionSslPolicies(); } /** - * The "regionSecurityPolicies" collection of methods. + * The "regionSslPolicies" 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; - } + public class RegionSslPolicies { - @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); - } - } /** - * Deletes the specified policy. + * 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 "regionSecurityPolicies.delete". + * 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 securityPolicy Name of the security policy to delete. + * @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 securityPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, securityPolicy); + 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}/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -186483,13 +198586,11 @@ public class Delete extends ComputeRequest {@link @@ -186498,10 +198599,11 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -186729,13 +198828,10 @@ public class Get extends ComputeRequest {@link @@ -186744,11 +198840,12 @@ public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ + * 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.Integer priority; + private java.lang.String sslPolicy; - /** The priority of the rule to get from the security policy. + /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getSslPolicy() { + return sslPolicy; } - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * 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 GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project using the data included in the request. + * Creates a new policy in the specified project and region using the data included in the request. * - * Create a request for the method "regionSecurityPolicies.insert". + * 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.SecurityPolicy} + * @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.SecurityPolicy content) throws java.io.IOException { + 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; @@ -187152,7 +199021,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -187161,9 +199030,10 @@ public class Insert extends ComputeRequest {@link @@ -187172,10 +199042,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -187392,9 +199246,9 @@ public class List extends ComputeRequest {@link @@ -187406,7 +199260,7 @@ public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @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 securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, securityPolicy, content); + 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}/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -187835,16 +200128,10 @@ public class Patch extends ComputeRequest {@link @@ -187853,11 +200140,12 @@ public class Patch extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188103,29 +200370,28 @@ public class PatchRule extends ComputeRequest - * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -188138,72 +200404,72 @@ protected PatchRule(java.lang.String project, java.lang.String region, java.lang "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -188217,7 +200483,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + 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 " + @@ -188227,18 +200493,18 @@ public PatchRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public PatchRule setRegion(java.lang.String 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 " + @@ -188248,102 +200514,323 @@ public PatchRule setRegion(java.lang.String region) { return this; } - /** Name of the security policy to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String resource; - /** Name of the security policy to update. + /** Name or id of the resource for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + /** 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.securityPolicy = securityPolicy; + this.resource = resource; return this; } - /** The priority of the rule to patch. */ + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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.Integer priority; + private java.lang.String project; - /** The priority of the rule to patch. + /** Project ID for this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getProject() { + return project; } - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** 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; } - /** Indicates fields to be cleared as part of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String region; - /** Indicates fields to be cleared as part of this request. + /** Name of the region scoping this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getRegion() { + return region; } - /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** 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; } - /** If true, the request will not be committed. */ + /** Name of the TargetHttpProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.String targetHttpProxy; - /** If true, the request will not be committed. + /** Name of the TargetHttpProxy resource to delete. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; } - /** If true, the request will not be committed. */ - public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + /** 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 PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes a rule at the specified priority. + * Returns the specified TargetHttpProxy resource in the specified region. * - * Create a request for the method "regionSecurityPolicies.removeRule". + * 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 RemoveRule#execute()} method to invoke the remote operation. + * 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 update. + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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); + 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 RemoveRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188351,27 +200838,26 @@ public class RemoveRule extends ComputeRequest - * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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); + 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(), @@ -188384,72 +200870,82 @@ protected RemoveRule(java.lang.String project, java.lang.String region, java.lan "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."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + 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}"); } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -188463,7 +200959,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -188484,7 +200980,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public RemoveRule setRegion(java.lang.String region) { + 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 " + @@ -188494,72 +200990,55 @@ public RemoveRule setRegion(java.lang.String region) { return this; } - /** Name of the security policy to update. */ + /** Name of the TargetHttpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String targetHttpProxy; - /** Name of the security policy to update. + /** Name of the TargetHttpProxy resource to return. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; } - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the TargetHttpProxy resource to return. */ + public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + 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.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; + this.targetHttpProxy = targetHttpProxy; return this; } @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. + * Creates a TargetHttpProxy resource in the specified project and region using the data included in + * the request. * - * Create a request for the method "regionSecurityPolicies.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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); + 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 SetLabels extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188567,28 +201046,23 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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) { + 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()) { @@ -188602,72 +201076,66 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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}"); - } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -188681,7 +201149,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -188691,18 +201159,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String 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 " + @@ -188712,27 +201180,6 @@ public SetLabels setRegion(java.lang.String 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 @@ -188777,60 +201224,38 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves the list of TargetHttpProxy resources available to the specified project in the + * specified region. * - * Create a request for the method "regionSnapshotSettings.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. + * @param region Name of the region scoping 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); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188839,21 +201264,22 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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. + * @param region Name of the region scoping 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); + 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(), @@ -188879,63 +201305,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -188949,7 +201375,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -188959,18 +201385,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -188980,33 +201406,298 @@ public Get setRegion(java.lang.String region) { return this; } + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Patch region snapshot settings. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "regionSnapshotSettings.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} + * @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 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); + 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 Patch extends ComputeRequest { + public class SetUrlMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -189014,23 +201705,28 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} + * @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 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); + 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(), @@ -189043,66 +201739,72 @@ protected Patch(java.lang.String project, java.lang.String region, com.google.ap "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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -189116,7 +201818,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -189126,18 +201828,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -189147,6 +201849,27 @@ public Patch setRegion(java.lang.String 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 @@ -189191,82 +201914,261 @@ public java.lang.String getRequestId() { * 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) { + public SetUrlMap setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** update_mask indicates fields to be updated as part of this request. */ + @Override + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "regionTargetHttpProxies.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}/targetHttpProxies/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 "regionTargetHttpProxies.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}"); + } + } + + @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 String updateMask; + private java.lang.String project; - /** update_mask indicates fields to be updated as part of this request. + /** Project ID for this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getProject() { + return project; } - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionSnapshots collection. + * An accessor for creating requests from the RegionTargetHttpsProxies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionSnapshots.List request = compute.regionSnapshots().list(parameters ...)}
    +   *   {@code Compute.RegionTargetHttpsProxies.List request = compute.regionTargetHttpsProxies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionSnapshots regionSnapshots() { - return new RegionSnapshots(); + public RegionTargetHttpsProxies regionTargetHttpsProxies() { + return new RegionTargetHttpsProxies(); } /** - * The "regionSnapshots" collection of methods. + * The "regionTargetHttpsProxies" collection of methods. */ - public class RegionSnapshots { + public class RegionTargetHttpsProxies { /** - * 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. + * Deletes the specified TargetHttpsProxy resource. * - * Create a request for the method "regionSnapshots.delete". + * 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 The name of the region for this request. - * @param snapshot Name of the snapshot resource to delete. + * @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 snapshot) throws java.io.IOException { - Delete result = new Delete(project, region, snapshot); + 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}/snapshots/{snapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -189274,18 +202176,13 @@ public class Delete extends ComputeRequest {@link @@ -189293,11 +202190,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 snapshot) { + 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()) { @@ -189311,10 +202208,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + 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}"); } } @@ -189400,17 +202297,17 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ + /** 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(), @@ -189421,24 +202318,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the snapshot resource to delete. */ + /** Name of the TargetHttpsProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String snapshot; + private java.lang.String targetHttpsProxy; - /** Name of the snapshot resource to delete. + /** Name of the TargetHttpsProxy resource to delete. */ - public java.lang.String getSnapshot() { - return snapshot; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the snapshot resource to delete. */ - public Delete setSnapshot(java.lang.String snapshot) { + /** Name of the TargetHttpsProxy resource to delete. */ + public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + 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.snapshot = snapshot; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -189497,27 +202394,27 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified Snapshot resource. + * Returns the specified TargetHttpsProxy resource in the specified region. * - * Create a request for the method "regionSnapshots.get". + * 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 for this request. - * @param snapshot Name of the Snapshot resource to return. + * @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 snapshot) throws java.io.IOException { - Get result = new Get(project, region, snapshot); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -189525,13 +202422,13 @@ public class Get extends ComputeRequest {@link @@ -189539,12 +202436,12 @@ public class Get extends ComputeRequest * * @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. + * @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 snapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Snapshot.class); + 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(), @@ -189557,10 +202454,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + 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}"); } } @@ -189656,17 +202553,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -189677,24 +202574,24 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the Snapshot resource to return. */ + /** Name of the TargetHttpsProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String snapshot; + private java.lang.String targetHttpsProxy; - /** Name of the Snapshot resource to return. + /** Name of the TargetHttpsProxy resource to return. */ - public java.lang.String getSnapshot() { - return snapshot; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name of the Snapshot resource to return. */ - public Get setSnapshot(java.lang.String snapshot) { + /** Name of the TargetHttpsProxy resource to return. */ + public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + 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.snapshot = snapshot; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -189704,244 +202601,20 @@ public Get set(String parameterName, Object 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. + * Creates a TargetHttpsProxy resource in the specified project and region using the data included + * in the request. * - * Create a request for the method "regionSnapshots.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @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.Snapshot content) throws java.io.IOException { + 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; @@ -189949,7 +202622,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -189958,9 +202631,10 @@ public class Insert extends ComputeRequest {@link @@ -189968,11 +202642,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.Snapshot content) { + 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()) { @@ -190069,17 +202743,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -190145,15 +202819,16 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of Snapshot resources contained within the specified region. + * Retrieves the list of TargetHttpsProxy resources available to the specified project in the + * specified region. * - * Create a request for the method "regionSnapshots.list". + * 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 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 { @@ -190162,9 +202837,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190173,9 +202848,10 @@ public class List extends ComputeRequest {@link @@ -190183,11 +202859,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.SnapshotList.class); + 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(), @@ -190293,17 +202969,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -190584,28 +203260,29 @@ public List set(String parameterName, Object value) { } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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 "regionSnapshots.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190613,28 +203290,28 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -190647,72 +203324,72 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -190726,7 +203403,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -190736,18 +203413,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -190757,56 +203434,105 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the TargetHttpsProxy resource to patch. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetHttpsProxy; - /** Name or id of the resource for this request. + /** Name of the TargetHttpsProxy resource to patch. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the TargetHttpsProxy resource to patch. */ + public Patch setTargetHttpsProxy(java.lang.String targetHttpsProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources - * documentation. + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "regionSnapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSslCertificates#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} + * @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 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); + 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 SetLabels extends ComputeRequest { + public class SetSslCertificates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190814,28 +203540,281 @@ public class SetLabels extends ComputeRequest + * 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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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 - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @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 SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { + 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()) { @@ -190849,72 +203828,72 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -190928,7 +203907,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -190938,18 +203917,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String 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 " + @@ -190959,24 +203938,24 @@ public SetLabels setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the TargetHttpsProxy to set a URL map for. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetHttpsProxy; - /** Name or id of the resource for this request. + /** Name of the TargetHttpsProxy to set a URL map for. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.targetHttpsProxy = targetHttpsProxy; return this; } @@ -191024,20 +204003,20 @@ public java.lang.String getRequestId() { * 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) { + public SetUrlMap setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionSnapshots.testIamPermissions". + * Create a request for the method "regionTargetHttpsProxies.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. @@ -191056,7 +204035,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191070,7 +204049,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionSslCertificates.List request = compute.regionSslCertificates().list(parameters ...)}
    +   *   {@code Compute.RegionTargetTcpProxies.List request = compute.regionTargetTcpProxies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionSslCertificates regionSslCertificates() { - return new RegionSslCertificates(); + public RegionTargetTcpProxies regionTargetTcpProxies() { + return new RegionTargetTcpProxies(); } /** - * The "regionSslCertificates" collection of methods. + * The "regionTargetTcpProxies" collection of methods. */ - public class RegionSslCertificates { + public class RegionTargetTcpProxies { /** - * Deletes the specified SslCertificate resource in the region. + * Deletes the specified TargetTcpProxy resource. * - * Create a request for the method "regionSslCertificates.delete". + * 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 sslCertificate Name of the SslCertificate resource to delete. + * @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 sslCertificate) throws java.io.IOException { - Delete result = new Delete(project, region, sslCertificate); + 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}/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191286,13 +204265,13 @@ public class Delete extends ComputeRequest {@link @@ -191301,10 +204280,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191533,14 +204511,13 @@ public class Get extends ComputeRequest {@link @@ -191549,11 +204526,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191743,10 +204720,10 @@ public class Insert extends ComputeRequest {@link @@ -191755,10 +204732,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191960,10 +204937,10 @@ public class List extends ComputeRequest {@link @@ -191975,7 +204952,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192405,9 +205382,9 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionSslPolicies.List request = compute.regionSslPolicies().list(parameters ...)}
    +   *   {@code Compute.RegionUrlMaps.List request = compute.regionUrlMaps().list(parameters ...)}
        * 
    * * @return the resource collection - */ - public RegionSslPolicies regionSslPolicies() { - return new RegionSslPolicies(); + */ + public RegionUrlMaps regionUrlMaps() { + return new RegionUrlMaps(); } /** - * The "regionSslPolicies" collection of methods. + * The "regionUrlMaps" collection of methods. */ - public class RegionSslPolicies { + public class RegionUrlMaps { /** - * 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. + * Deletes the specified UrlMap resource. * - * Create a request for the method "regionSslPolicies.delete". + * 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 sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. + * @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 sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, sslPolicy); + 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}/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192625,11 +205600,13 @@ public class Delete extends ComputeRequest {@link @@ -192638,11 +205615,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192867,10 +205817,13 @@ public class Get extends ComputeRequest {@link @@ -192879,12 +205832,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -193069,10 +206025,9 @@ public class Insert extends ComputeRequest {@link @@ -193081,10 +206036,10 @@ public class Insert extends ComputeRequest { + public class InvalidateCache extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -193284,22 +206215,31 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 region Name of the region scoping 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesList.class); + protected InvalidateCache(java.lang.String project, java.lang.String region, 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(), @@ -193312,76 +206252,72 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { + return (InvalidateCache) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public InvalidateCache setAccessToken(java.lang.String accessToken) { + return (InvalidateCache) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public InvalidateCache setAlt(java.lang.String alt) { + return (InvalidateCache) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public InvalidateCache setCallback(java.lang.String callback) { + return (InvalidateCache) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public InvalidateCache setFields(java.lang.String fields) { + return (InvalidateCache) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public InvalidateCache setKey(java.lang.String key) { + return (InvalidateCache) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public InvalidateCache setOauthToken(java.lang.String oauthToken) { + return (InvalidateCache) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvalidateCache) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public InvalidateCache setQuotaUser(java.lang.String quotaUser) { + return (InvalidateCache) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public InvalidateCache setUploadType(java.lang.String uploadType) { + return (InvalidateCache) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { + return (InvalidateCache) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public InvalidateCache setUserIp(java.lang.String userIp) { + return (InvalidateCache) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -193395,7 +206331,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -193416,7 +206352,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + public InvalidateCache setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -193426,297 +206362,74 @@ public List setRegion(java.lang.String 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. - */ + /** Name of the UrlMap scoping this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String urlMap; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the UrlMap scoping this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getUrlMap() { + return urlMap; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String requestId; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public InvalidateCache setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public InvalidateCache set(String parameterName, Object value) { + return (InvalidateCache) super.set(parameterName, value); } } /** - * Lists all features that can be specified in the SSL policy when using custom profile. + * Retrieves the list of UrlMap resources available to the specified project in the specified + * region. * - * Create a request for the method "regionSslPolicies.listAvailableFeatures". + * 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 ListAvailableFeatures#execute()} method to invoke the remote - * operation. + * 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 ListAvailableFeatures listAvailableFeatures(java.lang.String project, java.lang.String region) throws java.io.IOException { - ListAvailableFeatures result = new ListAvailableFeatures(project, region); + 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 ListAvailableFeatures extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -193725,22 +206438,22 @@ public class ListAvailableFeatures extends ComputeRequest {@link ListAvailableFeatures#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 ListAvailableFeatures(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SslPoliciesListAvailableFeaturesResponse.class); + 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(), @@ -193766,63 +206479,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { - return (ListAvailableFeatures) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { - return (ListAvailableFeatures) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListAvailableFeatures setAlt(java.lang.String alt) { - return (ListAvailableFeatures) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListAvailableFeatures setCallback(java.lang.String callback) { - return (ListAvailableFeatures) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListAvailableFeatures setFields(java.lang.String fields) { - return (ListAvailableFeatures) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListAvailableFeatures setKey(java.lang.String key) { - return (ListAvailableFeatures) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { - return (ListAvailableFeatures) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { - return (ListAvailableFeatures) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListAvailableFeatures setUploadType(java.lang.String uploadType) { - return (ListAvailableFeatures) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public ListAvailableFeatures setUserIp(java.lang.String userIp) { - return (ListAvailableFeatures) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -193836,7 +206549,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListAvailableFeatures setProject(java.lang.String project) { + 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 " + @@ -193857,7 +206570,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public ListAvailableFeatures setRegion(java.lang.String region) { + 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 " + @@ -193998,7 +206711,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListAvailableFeatures setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -194027,7 +206740,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -194071,7 +206784,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListAvailableFeatures setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -194094,7 +206807,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -194126,40 +206839,40 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListAvailableFeatures set(String parameterName, Object value) { - return (ListAvailableFeatures) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Patches the specified SSL policy with the data included in the request. + * 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 "regionSslPolicies.patch". + * 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 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} + * @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 sslPolicy, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, sslPolicy, content); + 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}/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194167,10 +206880,14 @@ public class Patch extends ComputeRequest {@link @@ -194179,12 +206896,11 @@ public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194415,7 +207106,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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); + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194742,7 +207213,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -194752,18 +207223,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -194773,103 +207244,55 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the TargetHttpProxy resource to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String resource; - /** Name of the TargetHttpProxy resource to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getResource() { + return resource; } - /** Name of the TargetHttpProxy resource to delete. */ - public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** 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(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Returns the specified TargetHttpProxy resource in the specified region. + * Updates the specified UrlMap resource with the data included in the request. * - * Create a request for the method "regionTargetHttpProxies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @param urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} * @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); + 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 Get extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194877,26 +207300,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @param urlMap Name of the UrlMap resource to update. + * @param content the {@link com.google.api.services.compute.model.UrlMap} * @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); + 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(), @@ -194909,82 +207333,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194998,7 +207412,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -195019,7 +207433,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + 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 " + @@ -195029,55 +207443,76 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the TargetHttpProxy resource to return. */ + /** Name of the UrlMap resource to update. */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String urlMap; - /** Name of the TargetHttpProxy resource to return. + /** Name of the UrlMap resource to update. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name of the TargetHttpProxy resource to return. */ - public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** Name of the UrlMap resource to update. */ + public Update setUrlMap(java.lang.String urlMap) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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.targetHttpProxy = targetHttpProxy; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Creates a TargetHttpProxy resource in the specified project and region using the data included in - * the request. + * 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 "regionTargetHttpProxies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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 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); + 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 Insert extends ComputeRequest { + public class Validate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/validate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -195085,24 +207520,29 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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 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); + 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(), @@ -195115,66 +207555,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Validate setUserIp(java.lang.String userIp) { + return (Validate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195188,7 +207634,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -195209,7 +207655,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + 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 " + @@ -195219,71 +207665,66 @@ public Insert setRegion(java.lang.String 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). - */ + /** Name of the UrlMap resource to be validated as. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String urlMap; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the UrlMap resource to be validated as. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getUrlMap() { + return urlMap; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 TargetHttpProxy resources available to the specified project in the - * specified region. + * Retrieves the list of Zone resources under the specific region available to the specified + * project. * - * Create a request for the method "regionTargetHttpProxies.list". + * 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 Name of the region scoping 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 { @@ -195292,9 +207733,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/zones"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -195303,10 +207744,10 @@ public class List extends ComputeRequest {@link @@ -195314,11 +207755,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.TargetHttpProxyList.class); + 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(), @@ -195424,17 +207865,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -195714,58 +208155,98 @@ 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 { + /** - * Changes the URL map for TargetHttpProxy. + * Returns the specified Region resource. * - * Create a request for the method "regionTargetHttpProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation. + * 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 to set a URL map for. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @param region Name of the region resource to return. * @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); + 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 SetUrlMap extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/regions/{region}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); private final java.util.regex.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. + * Returns the specified Region resource. * - * Create a request for the method "regionTargetHttpProxies.setUrlMap". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 to set a URL map for. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @param region Name of the region resource to return. * @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); + 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(), @@ -195776,74 +208257,78 @@ protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.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}"); } } @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -195857,7 +208342,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUrlMap setProject(java.lang.String project) { + 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 " + @@ -195867,232 +208352,172 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region resource to return. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region resource to return. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetUrlMap setRegion(java.lang.String 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])?"); - } - 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; + this.region = region; return this; } @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of region resources available to the specified project. * - * Create a request for the method "regionTargetHttpProxies.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Retrieves the list of region resources available to the specified project. * - * Create a request for the method "regionTargetHttpProxies.testIamPermissions". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -196106,7 +208531,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -196116,358 +208541,328 @@ public TestIamPermissions setProject(java.lang.String 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 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionTargetHttpsProxies.delete". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region scoping this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region scoping this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the TargetHttpsProxy resource to delete. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String pageToken; - /** Name of the TargetHttpsProxy resource to delete. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + 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 { + /** - * Returns the specified TargetHttpsProxy resource in the specified region. + * Retrieves information about the specified reservation block. * - * Create a request for the method "regionTargetHttpsProxies.get". + * 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 region Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @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 region, java.lang.String targetHttpsProxy) throws java.io.IOException { - Get result = new Get(project, region, targetHttpsProxy); + 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}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + public class Get extends ComputeRequest { - 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}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}"; /** - * Returns the specified TargetHttpsProxy resource in the specified region. + * Retrieves information about the specified reservation block. * - * Create a request for the method "regionTargetHttpsProxies.get". + * 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 @@ -196475,30 +208870,19 @@ public class Get extends ComputeRequest * * @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. + * @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 region, java.lang.String targetHttpsProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.class); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override @@ -196583,54 +208967,79 @@ public java.lang.String getProject() { /** 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. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } - /** Name of the TargetHttpsProxy resource to return. */ + /** + * 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 targetHttpsProxy; + private java.lang.String reservation; - /** Name of the TargetHttpsProxy resource to return. + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getReservation() { + return reservation; } - /** 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; + /** + * 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; } @@ -196640,125 +209049,155 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetHttpsProxy resource in the specified project and region using the data included - * in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionTargetHttpsProxies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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}"); + /** - * Creates a TargetHttpsProxy resource in the specified project and region using the data included - * in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "regionTargetHttpsProxies.insert". + * 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 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.

    + * 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 Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -196772,7 +209211,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -196782,115 +209221,118 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public GetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + 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). - */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String parentResource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project in the - * specified region. + * Retrieves a list of reservation blocks under a single reservation. * - * Create a request for the method "regionTargetHttpsProxies.list". + * 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 region Name of the region scoping 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 region) throws java.io.IOException { - List result = new List(project, region); + 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}/regions/{region}/targetHttpsProxies"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class List extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks"; /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project in the - * specified region. + * Retrieves a list of reservation blocks under a single reservation. * - * Create a request for the method "regionTargetHttpsProxies.list". + * 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 @@ -196898,23 +209340,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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 region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxyList.class); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-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.reservation = com.google.api.client.util.Preconditions.checkNotNull(reservation, "Required parameter reservation must be specified."); } @Override @@ -196999,33 +209434,43 @@ public java.lang.String getProject() { /** 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 of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } @@ -197252,434 +209697,165 @@ public java.lang.String getPageToken() { return pageToken; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Replaces SslCertificates for TargetHttpsProxy. + * Allows customers to perform maintenance on a reservation block * - * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". + * 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 SetSslCertificates#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#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} + * @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 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); + 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 SetSslCertificates extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + public class PerformMaintenance extends ComputeRequest { - 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}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance"; /** - * Replaces SslCertificates for TargetHttpsProxy. + * Allows customers to perform maintenance on a reservation block * - * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". + * 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 SetSslCertificates#execute()} method to invoke the remote - * operation.

    {@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A + * 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 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} + * @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 SetSslCertificates(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.RegionTargetHttpsProxiesSetSslCertificatesRequest content) { + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -197693,59 +209869,64 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public PerformMaintenance setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + * 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 targetHttpsProxy; + private java.lang.String reservation; - /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getReservation() { + return reservation; } /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + * The name of the reservation. Name should conform to RFC1035 or be a resource ID. */ - 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; + 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; } @@ -197793,146 +209974,157 @@ public java.lang.String getRequestId() { * 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) { + public PerformMaintenance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpsProxy. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionTargetHttpsProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @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 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); + 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 SetUrlMap extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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_HTTPS_PROXY_PATTERN = + 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}"); /** - * Changes the URL map for TargetHttpsProxy. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionTargetHttpsProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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}"); } } @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -197946,7 +210138,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUrlMap setProject(java.lang.String project) { + 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 " + @@ -197956,139 +210148,115 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public SetUrlMap setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the TargetHttpsProxy to set a URL map for. */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String parentResource; - /** Name of the TargetHttpsProxy to set a URL map for. + /** Name or id of parent resource of the resource for this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getParentResource() { + return parentResource; } - /** Name of the TargetHttpsProxy to set a URL map for. */ - public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** 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(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}"); + 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.targetHttpsProxy = targetHttpsProxy; + this.parentResource = parentResource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); + 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 "regionTargetHttpsProxies.testIamPermissions". + * 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 region The name of the region 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 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); + 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}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 "regionTargetHttpsProxies.testIamPermissions". + * 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 @@ -198097,12 +210265,13 @@ public class TestIamPermissions extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region 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 region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -198110,12 +210279,18 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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(), @@ -198205,24 +210380,45 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + 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; } @@ -198256,338 +210452,85 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the RegionTargetTcpProxies collection. + * An accessor for creating requests from the ReservationSlots collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionTargetTcpProxies.List request = compute.regionTargetTcpProxies().list(parameters ...)}
    +   *   {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionTargetTcpProxies regionTargetTcpProxies() { - return new RegionTargetTcpProxies(); + public ReservationSlots reservationSlots() { + return new ReservationSlots(); } /** - * The "regionTargetTcpProxies" collection of methods. + * The "reservationSlots" 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; - } + public class ReservationSlots { - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Returns the specified TargetTcpProxy resource. + * Retrieves information about the specified reservation slot. * - * Create a request for the method "regionTargetTcpProxies.get". + * 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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to return. + * @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 region, java.lang.String targetTcpProxy) throws java.io.IOException { - Get result = new Get(project, region, targetTcpProxy); + 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}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class Get extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; - 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}"); + 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})"); /** - * Returns the specified TargetTcpProxy resource. + * Retrieves information about the specified reservation slot. * - * Create a request for the method "regionTargetTcpProxies.get". + * 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 Project ID for this request. - * @param region Name of the region scoping this request. - * @param targetTcpProxy Name of the TargetTcpProxy resource to return. + * @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 region, java.lang.String targetTcpProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxy.class); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + 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."); } @Override @@ -198660,66 +210603,85 @@ public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** The 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. */ + /** The name of the zone for this request, formatted as RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request, formatted as RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** The name of the zone for this request, formatted as RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** Name of the TargetTcpProxy resource to return. */ + /** + * 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 targetTcpProxy; + private java.lang.String parentName; - /** Name of the TargetTcpProxy resource to return. + /** 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 getTargetTcpProxy() { - return targetTcpProxy; + public java.lang.String getParentName() { + return parentName; } - /** Name of the TargetTcpProxy resource to return. */ - public Get setTargetTcpProxy(java.lang.String targetTcpProxy) { + /** + * 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(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}"); + 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.targetTcpProxy = targetTcpProxy; + 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; } @@ -198729,125 +210691,130 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetTcpProxy resource in the specified project and region using the data included in - * the request. + * Allows customers to get SBOM versions of a reservation slot. * - * Create a request for the method "regionTargetTcpProxies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetVersion#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} + * @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 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); + 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 Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; + public class GetVersion extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getVersion"; - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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})"); /** - * Creates a TargetTcpProxy resource in the specified project and region using the data included - * in the request. + * Allows customers to get SBOM versions of a reservation slot. * - * Create a request for the method "regionTargetTcpProxies.insert". + * 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 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.

    + * 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 region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetTcpProxy content) { + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -198861,34 +210828,74 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public GetVersion setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + 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; } @@ -198936,73 +210943,70 @@ public java.lang.String getRequestId() { * 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) { + public GetVersion setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); } } /** - * Retrieves a list of TargetTcpProxy resources available to the specified project in a given - * region. + * Retrieves a list of reservation slots under a single reservation. * - * Create a request for the method "regionTargetTcpProxies.list". + * 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 Project ID for this request. - * @param region Name of the region scoping this request. + * @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 region) throws java.io.IOException { - List result = new List(project, region); + 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}/regions/{region}/targetTcpProxies"; + public class List extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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 TargetTcpProxy resources available to the specified project in a given - * region. + * Retrieves a list of reservation slots under a single reservation. * - * Create a request for the method "regionTargetTcpProxies.list". + * 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 Project ID for this request. - * @param region Name of the region scoping this request. + * @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 region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetTcpProxyList.class); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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})"); } } @@ -199076,45 +211080,65 @@ public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** The 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. */ + /** The name of the zone for this request, formatted as RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request, formatted as RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + /** 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.parentName = parentName; return this; } @@ -199388,355 +211412,364 @@ public List set(String parameterName, Object value) { } } /** - * Returns permissions that a caller has on the specified resource. + * Update a reservation slot in the specified sub-block. * - * Create a request for the method "regionTargetTcpProxies.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class Update extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; - private final java.util.regex.Pattern RESOURCE_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 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})"); /** - * Returns permissions that a caller has on the specified resource. + * Update a reservation slot in the specified sub-block. * - * Create a request for the method "regionTargetTcpProxies.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + 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."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The 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])?))"); - } + /** The project ID for this request. */ + public Update setProject(java.lang.String project) { this.project = project; return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request, formatted as RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request, formatted as RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** The name of the zone for this request, formatted as RFC1035. */ + public Update setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** The name of the sub-block resource. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parentName; - /** Name or id of the resource for this request. + /** The name of the sub-block resource. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParentName() { + return parentName; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** The name of the sub-block resource. */ + public Update setParentName(java.lang.String parentName) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionUrlMaps collection. + * An accessor for creating requests from the ReservationSubBlocks collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionUrlMaps.List request = compute.regionUrlMaps().list(parameters ...)}
    +   *   {@code Compute.ReservationSubBlocks.List request = compute.reservationSubBlocks().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionUrlMaps regionUrlMaps() { - return new RegionUrlMaps(); + public ReservationSubBlocks reservationSubBlocks() { + return new ReservationSubBlocks(); } /** - * The "regionUrlMaps" collection of methods. + * The "reservationSubBlocks" collection of methods. */ - public class RegionUrlMaps { + public class ReservationSubBlocks { /** - * Deletes the specified UrlMap resource. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "regionUrlMaps.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @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 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); + 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 Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class Get extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; - 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}"); + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** - * Deletes the specified UrlMap resource. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "regionUrlMaps.delete". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 delete. + * @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 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); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + 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."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -199750,148 +211783,174 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public Get setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } - /** Name of the UrlMap resource to delete. */ + /** + * 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 urlMap; + private java.lang.String parentName; - /** Name of the UrlMap resource to delete. + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getParentName() { + return parentName; } - /** Name of the UrlMap resource to delete. */ - public Delete setUrlMap(java.lang.String urlMap) { + /** + * 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); } - this.urlMap = urlMap; + this.parentName = parentName; return this; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * 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 requestId; + private java.lang.String reservationSubBlock; - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns the specified UrlMap resource. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionUrlMaps.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 URL_MAP_PATTERN = + 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 the specified UrlMap resource. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "regionUrlMaps.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 Name of the region scoping this request. - * @param urlMap Name of the UrlMap resource to return. + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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}"); } } @@ -199907,63 +211966,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -199977,7 +212036,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -199987,376 +212046,211 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public GetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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; + this.zone = zone; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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. */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String parentResource; - /** Project ID for this request. + /** Name or id of parent resource of the resource for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getParentResource() { + return parentResource; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.parentResource = parentResource; return this; } - /** Name of the region scoping this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** Name of the region scoping this request. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.resource = resource; return this; } - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Integer optionsRequestedPolicyVersion; - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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). + * Allows customers to get SBOM versions of a reservation subBlock. * - * Create a request for the method "regionUrlMaps.invalidateCache". + * 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 InvalidateCache#execute()} method to invoke the remote operation. + * parameters, call the {@link GetVersion#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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @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 InvalidateCache invalidateCache(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) throws java.io.IOException { - InvalidateCache result = new InvalidateCache(project, region, urlMap, content); + 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 InvalidateCache extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class GetVersion extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; - 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}"); + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** - * 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). + * Allows customers to get SBOM versions of a reservation subBlock. * - * Create a request for the method "regionUrlMaps.invalidateCache". + * 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 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.

    + * 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 region Name of the region scoping this request. - * @param urlMap Name of the UrlMap scoping this request. - * @param content the {@link com.google.api.services.compute.model.CacheInvalidationRule} + * @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 InvalidateCache(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) { + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + 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."); } @Override - public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { - return (InvalidateCache) super.set$Xgafv($Xgafv); + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); } @Override - public InvalidateCache setAccessToken(java.lang.String accessToken) { - return (InvalidateCache) super.setAccessToken(accessToken); + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); } @Override - public InvalidateCache setAlt(java.lang.String alt) { - return (InvalidateCache) super.setAlt(alt); + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); } @Override - public InvalidateCache setCallback(java.lang.String callback) { - return (InvalidateCache) super.setCallback(callback); + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); } @Override - public InvalidateCache setFields(java.lang.String fields) { - return (InvalidateCache) super.setFields(fields); + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); } @Override - public InvalidateCache setKey(java.lang.String key) { - return (InvalidateCache) super.setKey(key); + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); } @Override - public InvalidateCache setOauthToken(java.lang.String oauthToken) { - return (InvalidateCache) super.setOauthToken(oauthToken); + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); } @Override - public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvalidateCache) super.setPrettyPrint(prettyPrint); + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); } @Override - public InvalidateCache setQuotaUser(java.lang.String quotaUser) { - return (InvalidateCache) super.setQuotaUser(quotaUser); + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); } @Override - public InvalidateCache setUploadType(java.lang.String uploadType) { - return (InvalidateCache) super.setUploadType(uploadType); + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); } @Override - public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { - return (InvalidateCache) super.setUploadProtocol(uploadProtocol); + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); } @Override - public InvalidateCache setUserIp(java.lang.String userIp) { - return (InvalidateCache) super.setUserIp(userIp); + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200370,117 +212264,160 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public GetVersion setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public InvalidateCache setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** 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; } - /** Name of the UrlMap scoping this request. */ + /** + * 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 urlMap; + private java.lang.String parentName; - /** Name of the UrlMap scoping this request. + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getParentName() { + return parentName; } - /** Name of the UrlMap scoping this request. */ - public InvalidateCache setUrlMap(java.lang.String urlMap) { + /** + * 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); } - this.urlMap = urlMap; + this.parentName = parentName; return this; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * 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; - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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) { + public GetVersion setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public InvalidateCache set(String parameterName, Object value) { - return (InvalidateCache) super.set(parameterName, value); + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); } } /** - * Retrieves the list of UrlMap resources available to the specified project in the specified - * region. + * Retrieves a list of reservation subBlocks under a single reservation. * - * Create a request for the method "regionUrlMaps.list". + * 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 region Name of the region scoping 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 region) throws java.io.IOException { - List result = new List(project, region); + 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}/regions/{region}/urlMaps"; + public class List extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks"; - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** - * Retrieves the list of UrlMap resources available to the specified project in the specified - * region. + * Retrieves a list of reservation subBlocks under a single reservation. * - * Create a request for the method "regionUrlMaps.list". + * 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 @@ -200488,22 +212425,20 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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 region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapList.class); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); } } @@ -200589,33 +212524,51 @@ public java.lang.String getProject() { /** 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 of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + /** 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); } - this.region = region; + this.parentName = parentName; return this; } @@ -200889,136 +212842,124 @@ public List set(String parameterName, Object 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. + * Allows customers to perform maintenance on a reservation subBlock * - * Create a request for the method "regionUrlMaps.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#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} + * @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 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); + 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 Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class PerformMaintenance extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; - 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}"); + private final java.util.regex.Pattern PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** - * Patches the specified UrlMap resource with the data included in the request. This method - * supportsPATCH semantics and usesJSON merge patch format and processing rules. + * Allows customers to perform maintenance on a reservation subBlock * - * Create a request for the method "regionUrlMaps.patch". + * 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 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.

    + * 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 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} + * @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 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); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + 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."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201032,213 +212973,250 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public PerformMaintenance setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } - /** Name of the UrlMap resource to patch. */ + /** + * 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 urlMap; + private java.lang.String parentName; - /** Name of the UrlMap resource to patch. + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getParentName() { + return parentName; } - /** Name of the UrlMap resource to patch. */ - public Patch setUrlMap(java.lang.String urlMap) { + /** + * 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); } - this.urlMap = urlMap; + this.parentName = parentName; return this; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * 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; - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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) { + public PerformMaintenance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Allows customers to report a faulty subBlock. * - * Create a request for the method "regionUrlMaps.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link ReportFaulty#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class ReportFaulty extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; - private final java.util.regex.Pattern RESOURCE_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 PARENT_NAME_PATTERN = + java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); /** - * Returns permissions that a caller has on the specified resource. + * Allows customers to report a faulty subBlock. * - * Create a request for the method "regionUrlMaps.testIamPermissions". + * 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 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.

    + * 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 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} + * @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 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); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + 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."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ReportFaulty set$Xgafv(java.lang.String $Xgafv) { + return (ReportFaulty) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ReportFaulty setAccessToken(java.lang.String accessToken) { + return (ReportFaulty) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ReportFaulty setAlt(java.lang.String alt) { + return (ReportFaulty) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ReportFaulty setCallback(java.lang.String callback) { + return (ReportFaulty) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ReportFaulty setFields(java.lang.String fields) { + return (ReportFaulty) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ReportFaulty setKey(java.lang.String key) { + return (ReportFaulty) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ReportFaulty setOauthToken(java.lang.String oauthToken) { + return (ReportFaulty) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ReportFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReportFaulty) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ReportFaulty setQuotaUser(java.lang.String quotaUser) { + return (ReportFaulty) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ReportFaulty setUploadType(java.lang.String uploadType) { + return (ReportFaulty) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ReportFaulty setUploadProtocol(java.lang.String uploadProtocol) { + return (ReportFaulty) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ReportFaulty setUserIp(java.lang.String userIp) { + return (ReportFaulty) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201252,192 +213230,270 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public ReportFaulty setProject(java.lang.String project) { this.project = project; return this; } - /** The name of the region for this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String parentName; - /** Name or id of the resource for this request. + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParentName() { + return parentName; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** + * 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); } - this.resource = resource; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public ReportFaulty set(String parameterName, Object value) { + return (ReportFaulty) super.set(parameterName, value); } } /** - * Updates the specified UrlMap resource with the data included in the request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionUrlMaps.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @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 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); + 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 Update extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 URL_MAP_PATTERN = + 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}"); /** - * Updates the specified UrlMap resource with the data included in the request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionUrlMaps.update". + * 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 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.

    + * 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 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} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201451,7 +213507,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -201461,205 +213517,215 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the UrlMap resource to update. */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String parentResource; - /** Name of the UrlMap resource to update. + /** Name or id of parent resource of the resource for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getParentResource() { + return parentResource; } - /** Name of the UrlMap resource to update. */ - public Update setUrlMap(java.lang.String urlMap) { + /** 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(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}"); + 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.urlMap = urlMap; + this.parentResource = parentResource; return this; } - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. - */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** 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 Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionUrlMaps.validate". + * 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 Validate#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Validate extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/validate"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 URL_MAP_PATTERN = + 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}"); /** - * 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionUrlMaps.validate". + * 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 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.

    + * 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 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} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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}"); } } @Override - public Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Validate setUserIp(java.lang.String userIp) { - return (Validate) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201673,7 +213739,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Validate setProject(java.lang.String project) { + 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 " + @@ -201683,134 +213749,149 @@ public Validate setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Validate setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the UrlMap resource to be validated as. */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String parentResource; - /** Name of the UrlMap resource to be validated as. + /** Name or id of parent resource of the resource for this request. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getParentResource() { + return parentResource; } - /** Name of the UrlMap resource to be validated as. */ - public Validate setUrlMap(java.lang.String urlMap) { + /** 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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.urlMap = urlMap; + this.resource = resource; return this; } @Override - public Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionZones collection. + * An accessor for creating requests from the Reservations collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionZones.List request = compute.regionZones().list(parameters ...)}
    +   *   {@code Compute.Reservations.List request = compute.reservations().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionZones regionZones() { - return new RegionZones(); + public Reservations reservations() { + return new Reservations(); } /** - * The "regionZones" collection of methods. + * The "reservations" collection of methods. */ - public class RegionZones { + public class Reservations { /** - * Retrieves the list of Zone resources under the specific region available to the specified - * project. + * Retrieves an aggregated list of reservations. * - * Create a request for the method "regionZones.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/zones"; + private static final String REST_PATH = "projects/{project}/aggregated/reservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves an aggregated list of reservations. * - * Create a request for the method "regionZones.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -201824,63 +213905,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + @Override + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201894,7 +213975,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -201904,27 +213985,6 @@ public List setProject(java.lang.String 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 @@ -202056,11 +214116,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -202085,7 +214179,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -202129,7 +214223,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -202152,7 +214246,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -202184,190 +214278,166 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } + /** + * 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; - /** - * 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 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 "regions" collection of methods. - */ - public class Regions { + /** + * 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 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. + * Deletes the specified reservation. * - * Create a request for the method "regions.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 resource to return. + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); + 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 Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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}"); /** - * 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. + * Deletes the specified reservation. * - * Create a request for the method "regions.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 resource to return. + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -202381,7 +214451,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -202391,102 +214461,169 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region resource to return. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region resource to return. + /** Name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region resource to return. */ - public Get setRegion(java.lang.String region) { + /** Name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.region = region; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Retrieves information about the specified reservation. * - * Create a request for the method "regions.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * Retrieves information about the specified reservation. * - * Create a request for the method "regions.list". + * 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 List#execute()} method to invoke the remote operation.

    {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionList.class); + 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}"); + } } @Override @@ -202500,63 +214637,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -202570,7 +214707,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -202580,348 +214717,122 @@ public List setProject(java.lang.String 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. - */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String zone; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the zone for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getZone() { + return zone; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the reservation to retrieve. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String reservation; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the reservation to retrieve. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getReservation() { + return reservation; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * 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.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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 zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. * @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); + 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 Get extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); /** - * Retrieves information about the specified reservation block. + * 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.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 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 zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. * @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); + 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."); - 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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -202935,63 +214846,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203005,111 +214916,101 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 of the zone for this request. Zone name should conform to RFC1035. */ + /** The 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. Zone name should conform to RFC1035. + /** The name of the zone for this request. */ 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) { + /** 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; } - /** - * 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. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String reservationBlock; + private java.lang.String resource; - /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + /** Name or id of the resource for this request. */ - public java.lang.String getReservationBlock() { - return reservationBlock; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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; } - /** View of the Block. */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.Integer optionsRequestedPolicyVersion; - /** View of the Block. + /** Requested IAM Policy version. */ - public java.lang.String getView() { - return view; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** View of the Block. */ - public Get setView(java.lang.String view) { - this.view = view; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Creates a new reservation. For more information, readReserving zonal resources. * - * Create a request for the method "reservationBlocks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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 zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Reservation} * @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); + 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 GetIamPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -203117,32 +215018,23 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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 zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.Reservation} * @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); + 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(), @@ -203155,88 +215047,66 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan "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}"); - } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203250,7 +215120,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -203260,18 +215130,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** 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) { + /** 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 " + @@ -203281,97 +215151,94 @@ public GetIamPolicy setZone(java.lang.String 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; - } + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Requested IAM Policy version. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of reservation blocks under a single reservation. + * A list of all the reservations that have been configured for the specified project in specified + * zone. * - * Create a request for the method "reservationBlocks.list". + * 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. Zone name should conform to RFC1035. - * @param reservation The name of the reservation. - Name should conform to RFC1035 or be a resource ID. + * @param zone Name of the zone for this request. * @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); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 reservation blocks under a single reservation. + * A list of all the reservations that have been configured for the specified project in specified + * zone. * - * Create a request for the method "reservationBlocks.list". + * 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 @@ -203379,16 +215246,23 @@ public class List extends ComputeRequest * * @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 zone Name of the zone for this request. * @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); + 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."); - 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(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -203473,46 +215347,36 @@ public java.lang.String getProject() { /** 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. Zone name should conform to RFC1035. */ + /** 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. Zone name should conform to RFC1035. + /** Name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Name of the zone for this request. Zone name should conform to RFC1035. */ + /** 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; } - /** - * 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 @@ -203783,9 +215647,9 @@ public List set(String parameterName, Object value) { } } /** - * Allows customers to perform maintenance on a reservation block + * Perform maintenance on an extended reservation * - * Create a request for the method "reservationBlocks.performMaintenance". + * 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. @@ -203794,25 +215658,26 @@ public List set(String parameterName, Object value) { * @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} + * @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, 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); + 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}/reservationBlocks/{reservationBlock}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance"; + + 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}"); /** - * Allows customers to perform maintenance on a reservation block + * Perform maintenance on an extended reservation * - * Create a request for the method "reservationBlocks.performMaintenance". + * 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 @@ -203824,17 +215689,19 @@ public class PerformMaintenance extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/resize"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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; } @@ -204013,40 +216115,39 @@ public java.lang.String getRequestId() { * 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) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + 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 "reservationBlocks.setIamPolicy". + * 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 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} + * @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 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); + 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/{parentResource}/reservationBlocks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204054,16 +216155,13 @@ public class SetIamPolicy extends ComputeRequest @@ -204073,12 +216171,11 @@ public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204286,16 +216355,13 @@ public class TestIamPermissions extends ComputeRequestThe 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}"; - - /** - * 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."); - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.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) { - 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. + * Update share settings of the reservation. * - * Create a request for the method "reservationSubBlocks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204758,32 +216555,27 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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 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 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); + 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(), @@ -204796,88 +216588,72 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -204891,7 +216667,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -204901,18 +216677,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** 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) { + /** 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 " + @@ -204922,114 +216698,187 @@ public GetIamPolicy setZone(java.lang.String zone) { return this; } - /** Name or id of parent resource of the resource for this request. */ + /** Name of the reservation to update. */ @com.google.api.client.util.Key - private java.lang.String parentResource; + private java.lang.String reservation; - /** Name or id of parent resource of the resource for this request. + /** Name of the reservation to update. */ - public java.lang.String getParentResource() { - return parentResource; + public java.lang.String getReservation() { + return reservation; } - /** Name or id of parent resource of the resource for this request. */ - public GetIamPolicy setParentResource(java.lang.String parentResource) { + /** Name of the reservation to update. */ + public Update setReservation(java.lang.String reservation) { 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])?"); + 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.parentResource = parentResource; + this.reservation = reservation; return this; } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.util.List paths; + + /** - /** Name or id of the resource for this request. */ - public java.lang.String getResource() { - return resource; + public java.util.List getPaths() { + return paths; } - /** 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; + public Update setPaths(java.util.List paths) { + this.paths = paths; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + 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 a list of reservation subBlocks under a single reservation. + * Retrieves an aggregated list of resource policies. * - * Create a request for the method "reservationSubBlocks.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; + private static final String REST_PATH = "projects/{project}/aggregated/resourcePolicies"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 reservation subBlocks under a single reservation. + * Retrieves an aggregated list of resource policies. * - * Create a request for the method "reservationSubBlocks.list". + * 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 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.

    + * 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. - * @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); + 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."); - 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(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } } @Override @@ -205043,63 +216892,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -205113,50 +216962,16 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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; } - /** 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) { - 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 @@ -205288,11 +217103,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -205317,7 +217166,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -205361,7 +217210,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -205384,7 +217233,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -205416,127 +217265,166 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Allows customers to perform maintenance on a reservation subBlock + * Deletes the specified resource policy. * - * Create a request for the method "reservationSubBlocks.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * 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. 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 region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to delete. * @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); + 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 PerformMaintenance extends ComputeRequest { + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + 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}"); /** - * Allows customers to perform maintenance on a reservation subBlock + * Deletes the specified resource policy. * - * Create a request for the method "reservationSubBlocks.performMaintenance". + * 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 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.

    + * 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. 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 region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to delete. * @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); + 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."); - 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."); - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -205550,67 +217438,55 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + 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. 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} - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** Name of the region for this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { - this.parentName = parentName; + /** 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 reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ + /** Name of the resource policy to delete. */ @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; + private java.lang.String resourcePolicy; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** Name of the resource policy to delete. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getResourcePolicy() { + return resourcePolicy; } - /** - * 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; + /** 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; } @@ -205658,129 +217534,153 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Allows customers to report a faulty subBlock. + * Retrieves all information of the specified resource policy. * - * Create a request for the method "reservationSubBlocks.reportFaulty". + * 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 ReportFaulty#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksReportFaultyRequest} + * @param region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to retrieve. * @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); + 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 ReportFaulty extends ComputeRequest { + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); /** - * Allows customers to report a faulty subBlock. + * Retrieves all information of the specified resource policy. * - * Create a request for the method "reservationSubBlocks.reportFaulty". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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. - * @param content the {@link com.google.api.services.compute.model.ReservationSubBlocksReportFaultyRequest} + * @param region Name of the region for this request. + * @param resourcePolicy Name of the resource policy to retrieve. * @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); + 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."); - 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."); - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ReportFaulty set$Xgafv(java.lang.String $Xgafv) { - return (ReportFaulty) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ReportFaulty setAccessToken(java.lang.String accessToken) { - return (ReportFaulty) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ReportFaulty setAlt(java.lang.String alt) { - return (ReportFaulty) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ReportFaulty setCallback(java.lang.String callback) { - return (ReportFaulty) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ReportFaulty setFields(java.lang.String fields) { - return (ReportFaulty) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ReportFaulty setKey(java.lang.String key) { - return (ReportFaulty) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ReportFaulty setOauthToken(java.lang.String oauthToken) { - return (ReportFaulty) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ReportFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportFaulty) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ReportFaulty setQuotaUser(java.lang.String quotaUser) { - return (ReportFaulty) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ReportFaulty setUploadType(java.lang.String uploadType) { - return (ReportFaulty) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ReportFaulty setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportFaulty) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ReportFaulty setUserIp(java.lang.String userIp) { - return (ReportFaulty) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -205794,199 +217694,126 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ReportFaulty setProject(java.lang.String project) { + 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. 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) { - this.parentName = parentName; - return this; - } - - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; + private java.lang.String region; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** Name of the region for this request. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the resource policy to retrieve. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resourcePolicy; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the resource policy to retrieve. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResourcePolicy() { + return resourcePolicy; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 ReportFaulty set(String parameterName, Object value) { - return (ReportFaulty) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 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.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); + 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 SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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.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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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(), @@ -205996,63 +217823,73 @@ protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + 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. */ @@ -206066,7 +217903,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -206076,45 +217913,24 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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; + this.region = region; return this; } @@ -206129,7 +217945,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -206139,152 +217955,145 @@ public SetIamPolicy setResource(java.lang.String 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Creates a new resource policy. * - * Create a request for the method "reservationSubBlocks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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. + * Creates a new resource policy. * - * Create a request for the method "reservationSubBlocks.testIamPermissions". + * 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 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.

    + * 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 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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -206298,7 +218107,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -206308,149 +218117,139 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getParentResource() { - return parentResource; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name or id of the resource for this 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 getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * A list all the resource policies that have been configured for the specified project in specified + * region. * - * Create a request for the method "reservations.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/reservations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 an aggregated list of reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * A list all the resource policies that have been configured for the specified project in + * specified region. * - * Create a request for the method "reservations.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationAggregatedList.class); + 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])?"); + } } @Override @@ -206464,63 +218263,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -206534,7 +218333,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -206544,6 +218343,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -206675,45 +218495,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -206738,7 +218524,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -206782,7 +218568,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -206805,7 +218591,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -206837,166 +218623,145 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified reservation. + * Modify the specified resource policy. * - * Create a request for the method "reservations.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 reservation Name of the reservation to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESERVATION_PATTERN = + 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 reservation. + * Modify the specified resource policy. * - * Create a request for the method "reservations.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 reservation Name of the reservation to delete. + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207010,7 +218775,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -207020,45 +218785,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. + /** Name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { + /** Name of the region for this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the reservation to delete. */ + /** Id of the resource policy to patch. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String resourcePolicy; - /** Name of the reservation to delete. + /** Id of the resource policy to patch. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getResourcePolicy() { + return resourcePolicy; } - /** Name of the reservation to delete. */ - public Delete setReservation(java.lang.String reservation) { + /** Id of the resource policy to patch. */ + public Patch setResourcePolicy(java.lang.String resourcePolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + 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.reservation = reservation; + this.resourcePolicy = resourcePolicy; return this; } @@ -207106,153 +218871,571 @@ public java.lang.String getRequestId() { * 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) { + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves information about the specified reservation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "reservations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESERVATION_PATTERN = + private final java.util.regex.Pattern RESOURCE_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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "reservations.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 Name of the zone for this request. - * @param reservation Name of the reservation to retrieve. + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207266,7 +219449,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -207276,120 +219459,135 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** Name of the RolloutPlan resource to delete. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String rolloutPlan; - /** Name of the zone for this request. + /** Name of the RolloutPlan resource to delete. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRolloutPlan() { + return rolloutPlan; } - /** Name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the RolloutPlan resource to delete. */ + public Delete setRolloutPlan(java.lang.String rolloutPlan) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.zone = zone; + this.rolloutPlan = rolloutPlan; return this; } - /** Name of the reservation to retrieve. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String requestId; - /** Name of the reservation to retrieve. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets details of a single project-scoped RolloutPlan. * - * Create a request for the method "reservations.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. + * @param rolloutPlan Name of the persistent rollout plan to return. * @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); + 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 GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Gets details of a single project-scoped RolloutPlan. * - * Create a request for the method "reservations.getIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. + * @param rolloutPlan Name of the persistent rollout plan to return. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @@ -207405,63 +219603,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207475,7 +219673,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -207485,102 +219683,61 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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. */ + /** Name of the persistent rollout plan to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String rolloutPlan; - /** Name or id of the resource for this request. + /** Name of the persistent rollout plan to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRolloutPlan() { + return rolloutPlan; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the persistent rollout plan to return. */ + public Get setRolloutPlan(java.lang.String rolloutPlan) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.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; + this.rolloutPlan = rolloutPlan; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new reservation. For more information, readReserving zonal resources. + * Creates a new RolloutPlan in a given project and location. * - * Create a request for the method "reservations.insert". + * 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 zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.Reservation} + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} * @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); + 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}/zones/{zone}/reservations"; + private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Creates a new RolloutPlan in a given project and location. * - * Create a request for the method "reservations.insert". + * 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 @@ -207588,11 +219745,10 @@ public class Insert extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Reservation content) { + 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()) { @@ -207600,12 +219756,6 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -207689,27 +219839,6 @@ public Insert setProject(java.lang.String 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 @@ -207765,39 +219894,33 @@ public Insert set(String parameterName, Object value) { } } /** - * A list of all the reservations that have been configured for the specified project in specified - * zone. + * Lists RolloutPlans in a given project and location. * - * Create a request for the method "reservations.list". + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; + private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists RolloutPlans in a given project and location. * - * Create a request for the method "reservations.list". + * 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 @@ -207805,23 +219928,16 @@ public class List extends ComputeRequest * * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -207915,27 +220031,6 @@ public List setProject(java.lang.String 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 @@ -208205,122 +220300,145 @@ 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 { + /** - * Perform maintenance on an extended reservation + * Cancels a Rollout. * - * Create a request for the method "reservations.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * 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. 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} + * @param rollout Name of the Rollout resource to cancel. * @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); + 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 PerformMaintenance extends ComputeRequest { + public class Cancel extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; - private final java.util.regex.Pattern RESERVATION_PATTERN = + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); /** - * Perform maintenance on an extended reservation + * Cancels a Rollout. * - * Create a request for the method "reservations.performMaintenance". + * 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 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.

    + * 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. 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} + * @param rollout Name of the Rollout resource to cancel. * @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); + 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."); - 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 " + + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); } } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -208334,49 +220452,34 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + 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. 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. - */ + /** Name of the Rollout resource to cancel. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String rollout; - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + /** Name of the Rollout resource to cancel. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getRollout() { + return rollout; } - /** - * The name of the reservation. Name should conform to RFC1035 or be a resource ID. - */ - public PerformMaintenance setReservation(java.lang.String reservation) { + /** Name of the Rollout resource to cancel. */ + public Cancel setRollout(java.lang.String rollout) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + 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.reservation = reservation; + this.rollout = rollout; return this; } @@ -208424,147 +220527,158 @@ public java.lang.String getRequestId() { * 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) { + 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 PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Resizes the reservation (applicable to standalone reservations only). For more information, - * readModifying reservations. + * Deletes a Rollout. * - * Create a request for the method "reservations.resize". + * 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 Resize#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.ReservationsResizeRequest} + * @param rollout Name of the Rollout resource to delete. * @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); + 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 Resize extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/resize"; + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + 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}"); /** - * Resizes the reservation (applicable to standalone reservations only). For more information, - * readModifying reservations. + * Deletes a Rollout. * - * Create a request for the method "reservations.resize". + * 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 Resize#execute()} method to invoke the remote operation.

    {@link - * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. - * @param content the {@link com.google.api.services.compute.model.ReservationsResizeRequest} + * @param rollout Name of the Rollout resource to delete. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -208578,7 +220692,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Resize setProject(java.lang.String project) { + 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 " + @@ -208588,45 +220702,24 @@ public Resize setProject(java.lang.String 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. */ + /** Name of the Rollout resource to delete. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String rollout; - /** Name of the reservation to update. + /** Name of the Rollout resource to delete. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getRollout() { + return rollout; } - /** Name of the reservation to update. */ - public Resize setReservation(java.lang.String reservation) { + /** Name of the Rollout resource to delete. */ + public Delete setRollout(java.lang.String rollout) { 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])?"); + 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.reservation = reservation; + this.rollout = rollout; return this; } @@ -208674,346 +220767,142 @@ public java.lang.String getRequestId() { * 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) { + public Delete 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); - } - } - - @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); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Gets details of a single project-scoped Rollout. * - * Create a request for the method "reservations.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param rollout Name of the persistent rollout to return. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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}"); /** - * Returns permissions that a caller has on the specified resource. + * Gets details of a single project-scoped Rollout. * - * Create a request for the method "reservations.testIamPermissions". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param rollout Name of the persistent rollout to return. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -209027,7 +220916,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -209037,182 +220926,147 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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. */ + /** Name of the persistent rollout to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String rollout; - /** Name or id of the resource for this request. + /** Name of the persistent rollout to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRollout() { + return rollout; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the persistent rollout to return. */ + public Get setRollout(java.lang.String rollout) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.rollout = rollout; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Update share settings of the reservation. + * Lists Rollouts in a given project and location. * - * Create a request for the method "reservations.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Update extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + private static final String REST_PATH = "projects/{project}/global/rollouts"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists Rollouts in a given project and location. * - * Create a request for the method "reservations.update". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + 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. */ @@ -209226,7 +221080,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -209236,163 +221090,305 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String filter; - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - /** Name of the reservation to update. */ - @com.google.api.client.util.Key - private java.lang.String reservation; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** Name of the reservation to update. + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - @com.google.api.client.util.Key - private java.util.List paths; - /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.util.List getPaths() { - return paths; + public java.lang.Long getMaxResults() { + return maxResults; } - public Update setPaths(java.util.List paths) { - this.paths = paths; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** Update_mask indicates fields to be updated as part of this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String pageToken; - /** Update_mask indicates fields to be updated as part of this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getPageToken() { + return pageToken; } - /** Update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the ResourcePolicies collection. + * An accessor for creating requests from the Routers collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ResourcePolicies.List request = compute.resourcePolicies().list(parameters ...)}
    +   *   {@code Compute.Routers.List request = compute.routers().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ResourcePolicies resourcePolicies() { - return new ResourcePolicies(); + public Routers routers() { + return new Routers(); } /** - * The "resourcePolicies" collection of methods. + * The "routers" collection of methods. */ - public class ResourcePolicies { + public class Routers { /** - * Retrieves an aggregated list of resource policies. + * 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 "resourcePolicies.aggregatedList". + * 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. @@ -209406,20 +221402,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/resourcePolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/routers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "resourcePolicies.aggregatedList". + * 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. @@ -209431,7 +221427,7 @@ public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the Router resource where Named Set is defined. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String router; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the Router resource where Named Set is defined. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRouter() { + return router; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The Named Set name for this request. Name must conform to RFC1035 */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String namedSet; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The Named Set name for this request. Name must conform to RFC1035 */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getNamedSet() { + return namedSet; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** The Named Set name for this request. Name must conform to RFC1035 */ + public DeleteNamedSet setNamedSet(java.lang.String namedSet) { + this.namedSet = namedSet; return this; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String requestId; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getRequestId() { + return requestId; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public DeleteNamedSet setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public DeleteNamedSet set(String parameterName, Object value) { + return (DeleteNamedSet) super.set(parameterName, value); } } /** - * Deletes the specified resource policy. + * Deletes Route Policy * - * Create a request for the method "resourcePolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 resourcePolicy Name of the resource policy to delete. + * @param router Name of the Router resource where Route Policy is defined. * @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); + 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 Delete extends ComputeRequest { + public class DeleteRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -209886,26 +222391,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 resourcePolicy Name of the resource policy to delete. + * @param router Name of the Router resource where Route Policy is defined. * @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); + 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(), @@ -209918,72 +222424,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public DeleteRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (DeleteRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public DeleteRoutePolicy setAccessToken(java.lang.String accessToken) { + return (DeleteRoutePolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public DeleteRoutePolicy setAlt(java.lang.String alt) { + return (DeleteRoutePolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public DeleteRoutePolicy setCallback(java.lang.String callback) { + return (DeleteRoutePolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public DeleteRoutePolicy setFields(java.lang.String fields) { + return (DeleteRoutePolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public DeleteRoutePolicy setKey(java.lang.String key) { + return (DeleteRoutePolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public DeleteRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (DeleteRoutePolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public DeleteRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public DeleteRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (DeleteRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public DeleteRoutePolicy setUploadType(java.lang.String uploadType) { + return (DeleteRoutePolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public DeleteRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteRoutePolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public DeleteRoutePolicy setUserIp(java.lang.String userIp) { + return (DeleteRoutePolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209997,7 +222503,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -210018,7 +222524,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -210028,24 +222534,40 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the resource policy to delete. */ + /** Name of the Router resource where Route Policy is defined. */ @com.google.api.client.util.Key - private java.lang.String resourcePolicy; + private java.lang.String router; - /** Name of the resource policy to delete. + /** Name of the Router resource where Route Policy is defined. */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; + public java.lang.String getRouter() { + return router; } - /** Name of the resource policy to delete. */ - public Delete setResourcePolicy(java.lang.String resourcePolicy) { + /** 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(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + + 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.resourcePolicy = resourcePolicy; + 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; } @@ -210093,38 +222615,38 @@ public java.lang.String getRequestId() { * 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) { + public DeleteRoutePolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public DeleteRoutePolicy set(String parameterName, Object value) { + return (DeleteRoutePolicy) super.set(parameterName, value); } } /** - * Retrieves all information of the specified resource policy. + * Returns the specified Router resource. * - * Create a request for the method "resourcePolicies.get". + * 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 resourcePolicy Name of the resource policy to retrieve. + * @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 resourcePolicy) throws java.io.IOException { - Get result = new Get(project, region, resourcePolicy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -210132,13 +222654,13 @@ public class Get extends ComputeRequest {@link @@ -210147,11 +222669,11 @@ public class Get extends ComputeRequest { + public class GetNamedSet extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNamedSet"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -210339,28 +222862,25 @@ public class GetIamPolicy extends ComputeRequest + * parameters, call the {@link GetNamedSet#execute()} method to invoke the remote operation.

    * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 The name of the region for this request. - * @param resource Name or id of the resource 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 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); + 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(), @@ -210373,12 +222893,7 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "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}"); - } + this.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); } @Override @@ -210392,63 +222907,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public GetNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (GetNamedSet) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public GetNamedSet setAccessToken(java.lang.String accessToken) { + return (GetNamedSet) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public GetNamedSet setAlt(java.lang.String alt) { + return (GetNamedSet) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public GetNamedSet setCallback(java.lang.String callback) { + return (GetNamedSet) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public GetNamedSet setFields(java.lang.String fields) { + return (GetNamedSet) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public GetNamedSet setKey(java.lang.String key) { + return (GetNamedSet) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public GetNamedSet setOauthToken(java.lang.String oauthToken) { + return (GetNamedSet) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNamedSet) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public GetNamedSet setQuotaUser(java.lang.String quotaUser) { + return (GetNamedSet) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public GetNamedSet setUploadType(java.lang.String uploadType) { + return (GetNamedSet) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (GetNamedSet) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public GetNamedSet setUserIp(java.lang.String userIp) { + return (GetNamedSet) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -210462,7 +222977,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -210472,18 +222987,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -210493,70 +223008,70 @@ public GetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String router; - /** Name or id of the resource for this request. + /** Name of the Router resource to query for the named set. The name should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRouter() { + return router; } - /** 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; + /** + * 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; } - /** Requested IAM Policy version. */ + /** The Named Set name for this request. Name must conform to RFC1035 */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String namedSet; - /** Requested IAM Policy version. + /** The Named Set name for this request. Name must conform to RFC1035 */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getNamedSet() { + return namedSet; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public GetNamedSet set(String parameterName, Object value) { + return (GetNamedSet) super.set(parameterName, value); } } /** - * Creates a new resource policy. + * Retrieves runtime NAT IP information. * - * Create a request for the method "resourcePolicies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @param router Name of the Router resource to query for Nat IP information. The name + should conform to RFC1035. * @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); + 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 Insert extends ComputeRequest { + public class GetNatIpInfo extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -210565,22 +223080,24 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @param router Name of the Router resource to query for Nat IP information. The name + should conform to RFC1035. * @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); + 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(), @@ -210593,66 +223110,77 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetNatIpInfo set$Xgafv(java.lang.String $Xgafv) { + return (GetNatIpInfo) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetNatIpInfo setAccessToken(java.lang.String accessToken) { + return (GetNatIpInfo) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetNatIpInfo setAlt(java.lang.String alt) { + return (GetNatIpInfo) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetNatIpInfo setCallback(java.lang.String callback) { + return (GetNatIpInfo) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetNatIpInfo setFields(java.lang.String fields) { + return (GetNatIpInfo) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetNatIpInfo setKey(java.lang.String key) { + return (GetNatIpInfo) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetNatIpInfo setOauthToken(java.lang.String oauthToken) { + return (GetNatIpInfo) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetNatIpInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNatIpInfo) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetNatIpInfo setQuotaUser(java.lang.String quotaUser) { + return (GetNatIpInfo) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -210666,7 +223194,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -210687,7 +223215,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + 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 " + @@ -210698,81 +223226,78 @@ public Insert setRegion(java.lang.String region) { } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 requestId; + private java.lang.String router; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the Router resource to query for Nat IP information. The name should conform to RFC1035. + */ + public java.lang.String getRouter() { + return router; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** + * 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** + * 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 getRequestId() { - return requestId; + @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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public GetNatIpInfo setNatName(java.lang.String natName) { + this.natName = natName; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetNatIpInfo set(String parameterName, Object value) { + return (GetNatIpInfo) super.set(parameterName, value); } } /** - * A list all the resource policies that have been configured for the specified project in specified - * region. + * Retrieves runtime Nat mapping information of VM endpoints. * - * Create a request for the method "resourcePolicies.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class GetNatMappingInfo extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -210780,23 +223305,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ResourcePolicyList.class); + 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(), @@ -210809,6 +223339,12 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override @@ -210822,63 +223358,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetNatMappingInfo set$Xgafv(java.lang.String $Xgafv) { + return (GetNatMappingInfo) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetNatMappingInfo setAccessToken(java.lang.String accessToken) { + return (GetNatMappingInfo) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetNatMappingInfo setAlt(java.lang.String alt) { + return (GetNatMappingInfo) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetNatMappingInfo setCallback(java.lang.String callback) { + return (GetNatMappingInfo) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetNatMappingInfo setFields(java.lang.String fields) { + return (GetNatMappingInfo) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetNatMappingInfo setKey(java.lang.String key) { + return (GetNatMappingInfo) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetNatMappingInfo setOauthToken(java.lang.String oauthToken) { + return (GetNatMappingInfo) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetNatMappingInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNatMappingInfo) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetNatMappingInfo setQuotaUser(java.lang.String quotaUser) { + return (GetNatMappingInfo) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetNatMappingInfo setUploadType(java.lang.String uploadType) { + return (GetNatMappingInfo) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetNatMappingInfo setUploadProtocol(java.lang.String uploadProtocol) { + return (GetNatMappingInfo) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetNatMappingInfo setUserIp(java.lang.String userIp) { + return (GetNatMappingInfo) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -210892,7 +223428,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -210913,7 +223449,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + 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 " + @@ -210923,6 +223459,31 @@ public List setRegion(java.lang.String 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 @@ -211054,7 +223615,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public GetNatMappingInfo setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -211083,11 +223644,34 @@ public java.lang.Long getMaxResults() { * 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) { + 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. @@ -211127,7 +223711,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public GetNatMappingInfo setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -211150,7 +223734,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public GetNatMappingInfo setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -211177,308 +223761,44 @@ public java.lang.Boolean getReturnPartialSuccess() { /** * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public GetNatMappingInfo setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public GetNatMappingInfo set(String parameterName, Object value) { + return (GetNatMappingInfo) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns specified Route Policy * - * Create a request for the method "resourcePolicies.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRoutePolicy#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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class GetRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -211486,28 +223806,25 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -211520,72 +223837,77 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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}"); - } + this.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetRoutePolicy setAccessToken(java.lang.String accessToken) { + return (GetRoutePolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetRoutePolicy setAlt(java.lang.String alt) { + return (GetRoutePolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetRoutePolicy setCallback(java.lang.String callback) { + return (GetRoutePolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetRoutePolicy setFields(java.lang.String fields) { + return (GetRoutePolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetRoutePolicy setKey(java.lang.String key) { + return (GetRoutePolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (GetRoutePolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (GetRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + 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. */ @@ -211599,7 +223921,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -211609,18 +223931,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -211630,55 +223952,71 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String router; - /** Name or id of the resource for this request. + /** Name of the Router resource to query for the route policy. The name should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRouter() { + return router; } - /** 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; + /** + * 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetRoutePolicy set(String parameterName, Object value) { + return (GetRoutePolicy) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves runtime information of the specified router. * - * Create a request for the method "resourcePolicies.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRouterStatus#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} + * @param region Name of the region for this request. + * @param router Name of the Router resource to query. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class GetRouterStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRouterStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -211686,28 +224024,27 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @param region Name of the region for this request. + * @param router Name of the Router resource to query. * @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); + 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(), @@ -211720,72 +224057,82 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetRouterStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetRouterStatus) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetRouterStatus setAccessToken(java.lang.String accessToken) { + return (GetRouterStatus) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetRouterStatus setAlt(java.lang.String alt) { + return (GetRouterStatus) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetRouterStatus setCallback(java.lang.String callback) { + return (GetRouterStatus) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetRouterStatus setFields(java.lang.String fields) { + return (GetRouterStatus) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetRouterStatus setKey(java.lang.String key) { + return (GetRouterStatus) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetRouterStatus setOauthToken(java.lang.String oauthToken) { + return (GetRouterStatus) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetRouterStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRouterStatus) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetRouterStatus setQuotaUser(java.lang.String quotaUser) { + return (GetRouterStatus) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -211799,7 +224146,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -211809,18 +224156,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -211830,171 +224177,152 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the Router resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String router; - /** Name or id of the resource for this request. + /** Name of the Router resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRouter() { + return router; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the Router resource to query. */ + public GetRouterStatus setRouter(java.lang.String router) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.router = router; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetRouterStatus set(String parameterName, Object value) { + return (GetRouterStatus) 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. + * Creates a Router resource in the specified project and region using the data included in the + * request. * - * Create a request for the method "rolloutPlans.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rolloutPlan Name of the RolloutPlan resource to delete. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Router} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { - Delete result = new Delete(project, rolloutPlan); + 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 Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Deletes a RolloutPlan. + * Creates a Router resource in the specified project and region using the data included in the + * request. * - * Create a request for the method "rolloutPlans.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 rolloutPlan Name of the RolloutPlan resource to delete. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212008,7 +224336,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -212018,24 +224346,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the RolloutPlan resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String rolloutPlan; + private java.lang.String region; - /** Name of the RolloutPlan resource to delete. + /** Name of the region for this request. */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; + public java.lang.String getRegion() { + return region; } - /** Name of the RolloutPlan resource to delete. */ - public Delete setRolloutPlan(java.lang.String rolloutPlan) { + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.rolloutPlan = rolloutPlan; + this.region = region; return this; } @@ -212083,71 +224411,71 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Gets details of a single project-scoped RolloutPlan. + * Retrieves a list of Router resources available to the specified project. * - * Create a request for the method "rolloutPlans.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rolloutPlan Name of the persistent rollout plan to return. + * @param region Name of the region for this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { - Get result = new Get(project, rolloutPlan); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Gets details of a single project-scoped RolloutPlan. + * Retrieves a list of Router resources available to the specified project. * - * Create a request for the method "rolloutPlans.get". + * 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 Get#execute()} method to invoke the remote operation.

    {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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 rolloutPlan Name of the persistent rollout plan to return. + * @param region Name of the region for this request. * @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); + 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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -212162,63 +224490,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212232,7 +224560,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -212242,261 +224570,366 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the persistent rollout plan to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String rolloutPlan; + private java.lang.String region; - /** Name of the persistent rollout plan to return. + /** Name of the region for this request. */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; + public java.lang.String getRegion() { + return region; } - /** Name of the persistent rollout plan to return. */ - public Get setRolloutPlan(java.lang.String rolloutPlan) { + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.rolloutPlan = rolloutPlan; + this.region = region; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "rolloutPlans.insert". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.RolloutPlan} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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])?))"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Lists RolloutPlans in a given project and location. + * Retrieves a list of router bgp routes available to the specified project. * - * Create a request for the method "rolloutPlans.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class ListBgpRoutes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Lists RolloutPlans in a given project and location. + * Retrieves a list of router bgp routes available to the specified project. * - * Create a request for the method "rolloutPlans.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlansListResponse.class); + 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}"); + } } @Override @@ -212510,63 +224943,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListBgpRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListBgpRoutes) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListBgpRoutes setAccessToken(java.lang.String accessToken) { + return (ListBgpRoutes) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListBgpRoutes setAlt(java.lang.String alt) { + return (ListBgpRoutes) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListBgpRoutes setCallback(java.lang.String callback) { + return (ListBgpRoutes) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListBgpRoutes setFields(java.lang.String fields) { + return (ListBgpRoutes) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListBgpRoutes setKey(java.lang.String key) { + return (ListBgpRoutes) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListBgpRoutes setOauthToken(java.lang.String oauthToken) { + return (ListBgpRoutes) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListBgpRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListBgpRoutes) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListBgpRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListBgpRoutes) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListBgpRoutes setUploadType(java.lang.String uploadType) { + return (ListBgpRoutes) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListBgpRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListBgpRoutes) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListBgpRoutes setUserIp(java.lang.String userIp) { + return (ListBgpRoutes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212580,7 +225013,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -212590,6 +225023,87 @@ public List setProject(java.lang.String 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 @@ -212721,7 +225235,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListBgpRoutes setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -212750,7 +225264,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListBgpRoutes setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -212794,7 +225308,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListBgpRoutes setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -212817,579 +225331,211 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListBgpRoutes setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * (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.Boolean returnPartialSuccess; + private java.lang.String peer; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /**( Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. + ( - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getPeer() { + return peer; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * (Required) limit results to the BGP peer with the given name. Name should conform to + * RFC1035. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public ListBgpRoutes setPeer(java.lang.String peer) { + this.peer = peer; 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 { - - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 + * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. */ - 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}"); - } - } - - @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; + private java.lang.Boolean policyApplied; - /** Project ID for this request. + /** When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + [default: true] */ - 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; + public java.lang.Boolean getPolicyApplied() { + return policyApplied; } - /** 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. + /** + * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. */ - 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; + public ListBgpRoutes setPolicyApplied(java.lang.Boolean policyApplied) { + this.policyApplied = policyApplied; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + *

    + * 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}. + *

    * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + *

    + * 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}. + *

    * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + *

    + * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + *

    */ - public Cancel setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + public boolean isPolicyApplied() { + if (policyApplied == null || policyApplied == com.google.api.client.util.Data.NULL_BOOLEAN) { + return true; + } + return policyApplied; } /** - * 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.Boolean rollback; + private java.lang.Boolean returnPartialSuccess; - /** 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; - } + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - /** - * 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. + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public 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); + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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.

    + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * @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}"); - } - } - - @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. + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public java.lang.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; + public ListBgpRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (Required) limit results to this type of route (either LEARNED or ADVERTISED) */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.String routeType; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /**( Required) limit results to this type of route (either LEARNED or ADVERTISED) [default: + ( UNSPECIFIED_ROUTE_TYPE] + ( - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getRouteType() { + return routeType; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (Required) limit results to this type of route (either LEARNED or ADVERTISED) */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListBgpRoutes setRouteType(java.lang.String routeType) { + this.routeType = routeType; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ListBgpRoutes set(String parameterName, Object value) { + return (ListBgpRoutes) super.set(parameterName, value); } } /** - * Gets details of a single project-scoped Rollout. + * Retrieves a list of router named set subresources available to the specified project. * - * Create a request for the method "rollouts.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link ListNamedSets#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rollout Name of the persistent rollout to return. + * @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 Get get(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Get result = new Get(project, rollout); + 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 Get extends ComputeRequest { + public class ListNamedSets extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listNamedSets"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * Gets details of a single project-scoped Rollout. + * Retrieves a list of router named set subresources available to the specified project. * - * Create a request for the method "rollouts.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 rollout Name of the persistent rollout to return. + * @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 Get(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Rollout.class); + 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @@ -213405,63 +225551,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListNamedSets set$Xgafv(java.lang.String $Xgafv) { + return (ListNamedSets) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListNamedSets setAccessToken(java.lang.String accessToken) { + return (ListNamedSets) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListNamedSets setAlt(java.lang.String alt) { + return (ListNamedSets) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListNamedSets setCallback(java.lang.String callback) { + return (ListNamedSets) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListNamedSets setFields(java.lang.String fields) { + return (ListNamedSets) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListNamedSets setKey(java.lang.String key) { + return (ListNamedSets) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListNamedSets setOauthToken(java.lang.String oauthToken) { + return (ListNamedSets) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListNamedSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNamedSets) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListNamedSets setQuotaUser(java.lang.String quotaUser) { + return (ListNamedSets) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListNamedSets setUploadType(java.lang.String uploadType) { + return (ListNamedSets) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListNamedSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNamedSets) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListNamedSets setUserIp(java.lang.String userIp) { + return (ListNamedSets) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213475,7 +225621,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -213485,167 +225631,49 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the persistent rollout to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String rollout; + private java.lang.String region; - /** Name of the persistent rollout to return. + /** Name of the region for this request. */ - public java.lang.String getRollout() { - return rollout; + public java.lang.String getRegion() { + return region; } - /** Name of the persistent rollout to return. */ - public Get setRollout(java.lang.String rollout) { + /** Name of the region for this request. */ + public ListNamedSets setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.rollout = rollout; + this.region = region; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 + * Name or id of the resource for this request. Name should conform to RFC1035. */ - 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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + private java.lang.String router; - /** Project ID for this request. + /** Name or id of the resource for this request. Name should conform to RFC1035. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRouter() { + return router; } - /** Project ID for this request. */ - public List setProject(java.lang.String project) { + /** + * 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.router = router; return this; } @@ -213780,7 +225808,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListNamedSets setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -213809,7 +225837,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListNamedSets setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -213853,7 +225881,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListNamedSets setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -213876,7 +225904,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListNamedSets setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -213908,91 +225936,86 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNamedSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListNamedSets set(String parameterName, Object value) { + return (ListNamedSets) 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`. + * Retrieves a list of router route policy subresources available to the specified project. * - * Create a request for the method "routers.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class ListRoutePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/routers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 an aggregated list of routers. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves a list of router route policy subresources available to the specified project. * - * Create a request for the method "routers.aggregatedList". + * 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 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 + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouterAggregatedList.class); + 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}"); + } } @Override @@ -214006,83 +226029,129 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ListRoutePolicies set$Xgafv(java.lang.String $Xgafv) { + return (ListRoutePolicies) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListRoutePolicies setAccessToken(java.lang.String accessToken) { + return (ListRoutePolicies) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListRoutePolicies setAlt(java.lang.String alt) { + return (ListRoutePolicies) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListRoutePolicies setCallback(java.lang.String callback) { + return (ListRoutePolicies) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListRoutePolicies setFields(java.lang.String fields) { + return (ListRoutePolicies) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListRoutePolicies setKey(java.lang.String key) { + return (ListRoutePolicies) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListRoutePolicies setOauthToken(java.lang.String oauthToken) { + return (ListRoutePolicies) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListRoutePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListRoutePolicies) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListRoutePolicies setQuotaUser(java.lang.String quotaUser) { + return (ListRoutePolicies) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListRoutePolicies setUploadType(java.lang.String uploadType) { + return (ListRoutePolicies) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + 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; } - @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + /** 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; } - /** Project ID for this request. */ + /** + * Name or id of the resource for this request. Name should conform to RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String router; - /** Project ID for this request. + /** Name or id of the resource for this request. Name should conform to RFC1035. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRouter() { + return router; } - /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + /** + * 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.router = router; return this; } @@ -214217,45 +226286,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListRoutePolicies 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 @@ -214280,7 +226315,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListRoutePolicies setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -214324,7 +226359,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListRoutePolicies setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -214347,7 +226382,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListRoutePolicies setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -214379,59 +226414,38 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListRoutePolicies setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public ListRoutePolicies set(String parameterName, Object value) { + return (ListRoutePolicies) super.set(parameterName, value); } } /** - * Deletes the specified Router resource. + * 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.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param router Name of the Router resource to patch. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; @@ -214445,22 +226459,24 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 delete. + * @param router Name of the Router resource to patch. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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(), @@ -214482,63 +226498,63 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214552,7 +226568,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -214573,7 +226589,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -214583,18 +226599,18 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the Router resource to delete. */ + /** Name of the Router resource to patch. */ @com.google.api.client.util.Key private java.lang.String router; - /** Name of the Router resource to delete. + /** Name of the Router resource to patch. */ public java.lang.String getRouter() { return router; } - /** Name of the Router resource to delete. */ - public Delete setRouter(java.lang.String 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 " + @@ -214648,38 +226664,39 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes Route Policy + * Patches Named Set * - * Create a request for the method "routers.deleteRoutePolicy". + * 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 DeleteRoutePolicy#execute()} method to invoke the remote operation. + * 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 Route Policy is defined. + * @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 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); + 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 DeleteRoutePolicy extends ComputeRequest { + public class PatchNamedSet extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchNamedSet"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -214691,23 +226708,24 @@ public class DeleteRoutePolicy extends ComputeRequest {@link DeleteRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 Route Policy is defined. + * @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 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); + 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(), @@ -214729,63 +226747,63 @@ protected DeleteRoutePolicy(java.lang.String project, java.lang.String region, j } @Override - public DeleteRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (DeleteRoutePolicy) super.set$Xgafv($Xgafv); + public PatchNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (PatchNamedSet) super.set$Xgafv($Xgafv); } @Override - public DeleteRoutePolicy setAccessToken(java.lang.String accessToken) { - return (DeleteRoutePolicy) super.setAccessToken(accessToken); + public PatchNamedSet setAccessToken(java.lang.String accessToken) { + return (PatchNamedSet) super.setAccessToken(accessToken); } @Override - public DeleteRoutePolicy setAlt(java.lang.String alt) { - return (DeleteRoutePolicy) super.setAlt(alt); + public PatchNamedSet setAlt(java.lang.String alt) { + return (PatchNamedSet) super.setAlt(alt); } @Override - public DeleteRoutePolicy setCallback(java.lang.String callback) { - return (DeleteRoutePolicy) super.setCallback(callback); + public PatchNamedSet setCallback(java.lang.String callback) { + return (PatchNamedSet) super.setCallback(callback); } @Override - public DeleteRoutePolicy setFields(java.lang.String fields) { - return (DeleteRoutePolicy) super.setFields(fields); + public PatchNamedSet setFields(java.lang.String fields) { + return (PatchNamedSet) super.setFields(fields); } @Override - public DeleteRoutePolicy setKey(java.lang.String key) { - return (DeleteRoutePolicy) super.setKey(key); + public PatchNamedSet setKey(java.lang.String key) { + return (PatchNamedSet) super.setKey(key); } @Override - public DeleteRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (DeleteRoutePolicy) super.setOauthToken(oauthToken); + public PatchNamedSet setOauthToken(java.lang.String oauthToken) { + return (PatchNamedSet) super.setOauthToken(oauthToken); } @Override - public DeleteRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteRoutePolicy) super.setPrettyPrint(prettyPrint); + public PatchNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchNamedSet) super.setPrettyPrint(prettyPrint); } @Override - public DeleteRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (DeleteRoutePolicy) super.setQuotaUser(quotaUser); + public PatchNamedSet setQuotaUser(java.lang.String quotaUser) { + return (PatchNamedSet) super.setQuotaUser(quotaUser); } @Override - public DeleteRoutePolicy setUploadType(java.lang.String uploadType) { - return (DeleteRoutePolicy) super.setUploadType(uploadType); + public PatchNamedSet setUploadType(java.lang.String uploadType) { + return (PatchNamedSet) super.setUploadType(uploadType); } @Override - public DeleteRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteRoutePolicy) super.setUploadProtocol(uploadProtocol); + public PatchNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchNamedSet) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteRoutePolicy setUserIp(java.lang.String userIp) { - return (DeleteRoutePolicy) super.setUserIp(userIp); + public PatchNamedSet setUserIp(java.lang.String userIp) { + return (PatchNamedSet) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214799,7 +226817,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -214820,7 +226838,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public DeleteRoutePolicy setRegion(java.lang.String region) { + 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 " + @@ -214830,18 +226848,18 @@ public DeleteRoutePolicy setRegion(java.lang.String region) { return this; } - /** Name of the Router resource where Route Policy is defined. */ + /** 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 Route Policy is defined. + /** Name of the Router resource where Named Set 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) { + /** 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 " + @@ -214851,22 +226869,6 @@ public DeleteRoutePolicy setRouter(java.lang.String 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 @@ -214911,38 +226913,39 @@ public java.lang.String getRequestId() { * 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) { + public PatchNamedSet setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DeleteRoutePolicy set(String parameterName, Object value) { - return (DeleteRoutePolicy) super.set(parameterName, value); + public PatchNamedSet set(String parameterName, Object value) { + return (PatchNamedSet) super.set(parameterName, value); } } /** - * Returns the specified Router resource. + * Patches Route Policy * - * Create a request for the method "routers.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 to return. + * @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 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); + 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 Get extends ComputeRequest { + public class PatchRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -214954,22 +226957,24 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 to return. + * @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 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); + 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(), @@ -214991,73 +226996,63 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PatchRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (PatchRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchRoutePolicy setAccessToken(java.lang.String accessToken) { + return (PatchRoutePolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchRoutePolicy setAlt(java.lang.String alt) { + return (PatchRoutePolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchRoutePolicy setCallback(java.lang.String callback) { + return (PatchRoutePolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchRoutePolicy setFields(java.lang.String fields) { + return (PatchRoutePolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchRoutePolicy setKey(java.lang.String key) { + return (PatchRoutePolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (PatchRoutePolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (PatchRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchRoutePolicy setUploadType(java.lang.String uploadType) { + return (PatchRoutePolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRoutePolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchRoutePolicy setUserIp(java.lang.String userIp) { + return (PatchRoutePolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215071,7 +227066,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -215092,7 +227087,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { + 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 " + @@ -215102,18 +227097,18 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the Router resource to return. */ + /** 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 to return. + /** Name of the Router resource where Route Policy is defined. */ public java.lang.String getRouter() { return router; } - /** Name of the Router resource to return. */ - public Get setRouter(java.lang.String 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 " + @@ -215123,260 +227118,84 @@ public Get setRouter(java.lang.String router) { return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * 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.

    + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @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; - } + private java.lang.String requestId; - /** - * 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** 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. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNatName() { - return natName; + public java.lang.String getRequestId() { + return requestId; } /** - * 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public GetNatIpInfo setNatName(java.lang.String natName) { - this.natName = natName; + public PatchRoutePolicy setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetNatIpInfo set(String parameterName, Object value) { - return (GetNatIpInfo) super.set(parameterName, value); + public PatchRoutePolicy set(String parameterName, Object value) { + return (PatchRoutePolicy) super.set(parameterName, value); } } /** - * Retrieves runtime Nat mapping information of VM endpoints. + * 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.getNatMappingInfo". + * 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 GetNatMappingInfo#execute()} method to invoke the remote operation. + * 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 for Nat Mapping information of - VM endpoints. + * @param router Name of the Router resource to query. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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 GetNatMappingInfo extends ComputeRequest { + public class Preview extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/preview"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -215388,24 +227207,25 @@ public class GetNatMappingInfo extends ComputeRequest {@link GetNatMappingInfo#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 for Nat Mapping information of - VM endpoints. + * @param router Name of the Router resource to query. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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(), @@ -215427,73 +227247,63 @@ protected GetNatMappingInfo(java.lang.String project, java.lang.String region, j } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); } @Override - public GetNatMappingInfo setAccessToken(java.lang.String accessToken) { - return (GetNatMappingInfo) super.setAccessToken(accessToken); + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); } @Override - public GetNatMappingInfo setAlt(java.lang.String alt) { - return (GetNatMappingInfo) super.setAlt(alt); + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); } @Override - public GetNatMappingInfo setCallback(java.lang.String callback) { - return (GetNatMappingInfo) super.setCallback(callback); + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); } @Override - public GetNatMappingInfo setFields(java.lang.String fields) { - return (GetNatMappingInfo) super.setFields(fields); + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); } @Override - public GetNatMappingInfo setKey(java.lang.String key) { - return (GetNatMappingInfo) super.setKey(key); + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); } @Override - public GetNatMappingInfo setOauthToken(java.lang.String oauthToken) { - return (GetNatMappingInfo) super.setOauthToken(oauthToken); + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); } @Override - public GetNatMappingInfo setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNatMappingInfo) super.setPrettyPrint(prettyPrint); + public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); } @Override - public GetNatMappingInfo setQuotaUser(java.lang.String quotaUser) { - return (GetNatMappingInfo) super.setQuotaUser(quotaUser); + public Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); } @Override - public GetNatMappingInfo setUploadType(java.lang.String uploadType) { - return (GetNatMappingInfo) super.setUploadType(uploadType); + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); } @Override - public GetNatMappingInfo setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNatMappingInfo) super.setUploadProtocol(uploadProtocol); + public Preview setUploadProtocol(java.lang.String uploadProtocol) { + return (Preview) super.setUploadProtocol(uploadProtocol); } @Override - public GetNatMappingInfo setUserIp(java.lang.String userIp) { - return (GetNatMappingInfo) super.setUserIp(userIp); + public Preview setUserIp(java.lang.String userIp) { + return (Preview) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -215507,7 +227317,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetNatMappingInfo setProject(java.lang.String project) { + 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 " + @@ -215522,362 +227332,71 @@ public GetNatMappingInfo setProject(java.lang.String project) { 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; + */ + 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the Router resource to query. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String router; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the Router resource to query. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRouter() { + return router; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public GetNatMappingInfo setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 GetNatMappingInfo set(String parameterName, Object value) { - return (GetNatMappingInfo) super.set(parameterName, value); + public Preview set(String parameterName, Object value) { + return (Preview) super.set(parameterName, value); } } /** - * Returns specified Route Policy + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "routers.getRoutePolicy". + * Create a request for the method "routers.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#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. + * @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 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); + 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 GetRoutePolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -215885,25 +227404,28 @@ public class GetRoutePolicy extends ComputeRequest {@link GetRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 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. + * @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 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); + 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(), @@ -215916,77 +227438,72 @@ protected GetRoutePolicy(java.lang.String project, java.lang.String region, java "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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public GetRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetRoutePolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetRoutePolicy setAccessToken(java.lang.String accessToken) { - return (GetRoutePolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetRoutePolicy setAlt(java.lang.String alt) { - return (GetRoutePolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetRoutePolicy setCallback(java.lang.String callback) { - return (GetRoutePolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetRoutePolicy setFields(java.lang.String fields) { - return (GetRoutePolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetRoutePolicy setKey(java.lang.String key) { - return (GetRoutePolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (GetRoutePolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRoutePolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (GetRoutePolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetRoutePolicy setUploadType(java.lang.String uploadType) { - return (GetRoutePolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRoutePolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetRoutePolicy setUserIp(java.lang.String userIp) { - return (GetRoutePolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216000,7 +227517,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -216010,18 +227527,18 @@ public GetRoutePolicy setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -216031,71 +227548,57 @@ public GetRoutePolicy setRegion(java.lang.String 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 */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String policy; + private java.lang.String resource; - /** The Policy name for this request. Name must conform to RFC1035 + /** Name or id of the resource for this request. */ - public java.lang.String getPolicy() { - return policy; + public java.lang.String getResource() { + return resource; } - /** The Policy name for this request. Name must conform to RFC1035 */ - public GetRoutePolicy setPolicy(java.lang.String policy) { - this.policy = policy; + /** 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 GetRoutePolicy set(String parameterName, Object value) { - return (GetRoutePolicy) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Retrieves runtime information of the specified router. + * 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.getRouterStatus". + * 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 GetRouterStatus#execute()} method to invoke the remote operation. + * 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 query. + * @param router Name of the Router resource to update. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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 GetRouterStatus extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRouterStatus"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216107,23 +227610,25 @@ public class GetRouterStatus extends ComputeRequest {@link GetRouterStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 query. + * @param router Name of the Router resource to update. + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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(), @@ -216145,73 +227650,63 @@ protected GetRouterStatus(java.lang.String project, java.lang.String region, jav } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public GetRouterStatus setAccessToken(java.lang.String accessToken) { - return (GetRouterStatus) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public GetRouterStatus setAlt(java.lang.String alt) { - return (GetRouterStatus) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public GetRouterStatus setCallback(java.lang.String callback) { - return (GetRouterStatus) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public GetRouterStatus setFields(java.lang.String fields) { - return (GetRouterStatus) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public GetRouterStatus setKey(java.lang.String key) { - return (GetRouterStatus) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public GetRouterStatus setOauthToken(java.lang.String oauthToken) { - return (GetRouterStatus) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public GetRouterStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRouterStatus) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public GetRouterStatus setQuotaUser(java.lang.String quotaUser) { - return (GetRouterStatus) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public GetRouterStatus setUploadType(java.lang.String uploadType) { - return (GetRouterStatus) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public GetRouterStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRouterStatus) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public GetRouterStatus setUserIp(java.lang.String userIp) { - return (GetRouterStatus) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216225,7 +227720,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRouterStatus setProject(java.lang.String project) { + 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 " + @@ -216246,7 +227741,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public GetRouterStatus setRegion(java.lang.String region) { + 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 " + @@ -216256,18 +227751,18 @@ public GetRouterStatus setRegion(java.lang.String region) { return this; } - /** Name of the Router resource to query. */ + /** Name of the Router resource to update. */ @com.google.api.client.util.Key private java.lang.String router; - /** Name of the Router resource to query. + /** Name of the Router resource to update. */ public java.lang.String getRouter() { return router; } - /** Name of the Router resource to query. */ - public GetRouterStatus setRouter(java.lang.String 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 " + @@ -216277,34 +227772,83 @@ public GetRouterStatus setRouter(java.lang.String 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 GetRouterStatus set(String parameterName, Object value) { - return (GetRouterStatus) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Creates a Router resource in the specified project and region using the data included in the - * request. + * Updates or creates new Named Set * - * Create a request for the method "routers.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.Router} + * @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 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); + 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 Insert extends ComputeRequest { + public class UpdateNamedSet extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateNamedSet"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216312,23 +227856,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 content the {@link com.google.api.services.compute.model.Router} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.Router content) { + 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()) { @@ -216342,66 +227890,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public UpdateNamedSet set$Xgafv(java.lang.String $Xgafv) { + return (UpdateNamedSet) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public UpdateNamedSet setAccessToken(java.lang.String accessToken) { + return (UpdateNamedSet) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public UpdateNamedSet setAlt(java.lang.String alt) { + return (UpdateNamedSet) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public UpdateNamedSet setCallback(java.lang.String callback) { + return (UpdateNamedSet) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public UpdateNamedSet setFields(java.lang.String fields) { + return (UpdateNamedSet) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public UpdateNamedSet setKey(java.lang.String key) { + return (UpdateNamedSet) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public UpdateNamedSet setOauthToken(java.lang.String oauthToken) { + return (UpdateNamedSet) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public UpdateNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateNamedSet) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public UpdateNamedSet setQuotaUser(java.lang.String quotaUser) { + return (UpdateNamedSet) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public UpdateNamedSet setUploadType(java.lang.String uploadType) { + return (UpdateNamedSet) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public UpdateNamedSet setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateNamedSet) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public UpdateNamedSet setUserIp(java.lang.String userIp) { + return (UpdateNamedSet) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216415,7 +227969,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -216436,7 +227990,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + 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 " + @@ -216446,6 +228000,27 @@ public Insert setRegion(java.lang.String 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 @@ -216490,37 +228065,39 @@ public java.lang.String getRequestId() { * 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) { + public UpdateNamedSet setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public UpdateNamedSet set(String parameterName, Object value) { + return (UpdateNamedSet) super.set(parameterName, value); } } /** - * Retrieves a list of Router resources available to the specified project. + * Updates or creates new Route Policy * - * Create a request for the method "routers.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class UpdateRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216528,22 +228105,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouterList.class); + 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(), @@ -216556,76 +228139,72 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public UpdateRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (UpdateRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public UpdateRoutePolicy setAccessToken(java.lang.String accessToken) { + return (UpdateRoutePolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public UpdateRoutePolicy setAlt(java.lang.String alt) { + return (UpdateRoutePolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public UpdateRoutePolicy setCallback(java.lang.String callback) { + return (UpdateRoutePolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public UpdateRoutePolicy setFields(java.lang.String fields) { + return (UpdateRoutePolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public UpdateRoutePolicy setKey(java.lang.String key) { + return (UpdateRoutePolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public UpdateRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (UpdateRoutePolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public UpdateRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public UpdateRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (UpdateRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public UpdateRoutePolicy setUploadType(java.lang.String uploadType) { + return (UpdateRoutePolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public UpdateRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateRoutePolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public UpdateRoutePolicy setUserIp(java.lang.String userIp) { + return (UpdateRoutePolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216639,7 +228218,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -216660,7 +228239,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + 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 " + @@ -216670,343 +228249,372 @@ public List setRegion(java.lang.String 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; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String requestId; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public UpdateRoutePolicy set(String parameterName, Object value) { + return (UpdateRoutePolicy) super.set(parameterName, value); + } + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + /** + * 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(); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + /** + * The "routes" collection of methods. + */ + public class Routes { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** + * 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; + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + public class Delete extends ComputeRequest { - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private static final String REST_PATH = "projects/{project}/global/routes/{route}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Deletes the specified Route resource. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "routes.delete". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param route Name of the Route resource to delete. + * @since 1.13 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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}"); + } } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + @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 List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the Route resource to delete. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String route; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the Route resource to delete. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRoute() { + return route; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves a list of router bgp routes available to the specified project. + * Returns the specified Route resource. * - * Create a request for the method "routers.listBgpRoutes". + * 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 ListBgpRoutes#execute()} method to invoke the remote operation. + * 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 or id of the resource for this request. - Name should conform to RFC1035. + * @param route Name of the Route resource to return. * @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); + 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 ListBgpRoutes extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes"; + private static final String REST_PATH = "projects/{project}/global/routes/{route}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Retrieves a list of router bgp routes available to the specified project. + * Returns the specified Route resource. * - * Create a request for the method "routers.listBgpRoutes". + * 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 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. - *

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 or id of the resource for this request. - Name should conform to RFC1035. + * @param route Name of the Route resource to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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}"); } } @@ -217022,63 +228630,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListBgpRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListBgpRoutes) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListBgpRoutes setAccessToken(java.lang.String accessToken) { - return (ListBgpRoutes) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListBgpRoutes setAlt(java.lang.String alt) { - return (ListBgpRoutes) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListBgpRoutes setCallback(java.lang.String callback) { - return (ListBgpRoutes) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListBgpRoutes setFields(java.lang.String fields) { - return (ListBgpRoutes) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListBgpRoutes setKey(java.lang.String key) { - return (ListBgpRoutes) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListBgpRoutes setOauthToken(java.lang.String oauthToken) { - return (ListBgpRoutes) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListBgpRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListBgpRoutes) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListBgpRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListBgpRoutes) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListBgpRoutes setUploadType(java.lang.String uploadType) { - return (ListBgpRoutes) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public ListBgpRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListBgpRoutes) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public ListBgpRoutes setUserIp(java.lang.String userIp) { - return (ListBgpRoutes) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217092,7 +228700,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListBgpRoutes setProject(java.lang.String project) { + 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 " + @@ -217102,521 +228710,261 @@ public ListBgpRoutes setProject(java.lang.String 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. - */ + /** Name of the Route resource to return. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String route; - /** Name or id of the resource for this request. Name should conform to RFC1035. + /** Name of the Route resource to return. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getRoute() { + return route; } - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - public ListBgpRoutes setRouter(java.lang.String router) { + /** Name of the Route resource to return. */ + public Get setRoute(java.lang.String route) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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.router = router; + this.route = route; 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; + @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; + } - /** Limit results to destinations that are subnets of this CIDR range */ - @com.google.api.client.util.Key - private java.lang.String destinationPrefix; + public class Insert extends ComputeRequest { - /** Limit results to destinations that are subnets of this CIDR range - */ - public java.lang.String getDestinationPrefix() { - return destinationPrefix; - } + private static final String REST_PATH = "projects/{project}/global/routes"; - /** Limit results to destinations that are subnets of this CIDR range */ - public ListBgpRoutes setDestinationPrefix(java.lang.String destinationPrefix) { - this.destinationPrefix = destinationPrefix; - return this; - } + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Creates a Route resource in the specified project using the data included in the request. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "routes.insert". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Route} + * @since 1.13 */ - public java.lang.String getFilter() { - return filter; + 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])?))"); + } } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } - /** - * Specifies 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; + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } - /** - * (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; + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } - /** - * (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; + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } - /** - * 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; + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } - /** - * 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; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - /** - * 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; + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String project; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Project ID for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getProject() { + return project; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListBgpRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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; } /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String routeType; + private java.lang.String requestId; - /**( Required) limit results to this type of route (either LEARNED or ADVERTISED) [default: - ( UNSPECIFIED_ROUTE_TYPE] - ( + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRouteType() { - return routeType; + public java.lang.String getRequestId() { + return requestId; } /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListBgpRoutes setRouteType(java.lang.String routeType) { - this.routeType = routeType; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListBgpRoutes set(String parameterName, Object value) { - return (ListBgpRoutes) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of router route policy subresources available to the specified project. + * Retrieves the list of Route resources available to the specified project. * - * Create a request for the method "routers.listRoutePolicies". + * 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 ListRoutePolicies#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class ListRoutePolicies extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies"; + private static final String REST_PATH = "projects/{project}/global/routes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Retrieves the list of Route resources available to the specified project. * - * Create a request for the method "routers.listRoutePolicies". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override @@ -217630,63 +228978,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListRoutePolicies set$Xgafv(java.lang.String $Xgafv) { - return (ListRoutePolicies) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListRoutePolicies setAccessToken(java.lang.String accessToken) { - return (ListRoutePolicies) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListRoutePolicies setAlt(java.lang.String alt) { - return (ListRoutePolicies) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListRoutePolicies setCallback(java.lang.String callback) { - return (ListRoutePolicies) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListRoutePolicies setFields(java.lang.String fields) { - return (ListRoutePolicies) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListRoutePolicies setKey(java.lang.String key) { - return (ListRoutePolicies) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListRoutePolicies setOauthToken(java.lang.String oauthToken) { - return (ListRoutePolicies) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListRoutePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListRoutePolicies) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListRoutePolicies setQuotaUser(java.lang.String quotaUser) { - return (ListRoutePolicies) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListRoutePolicies setUploadType(java.lang.String uploadType) { - return (ListRoutePolicies) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public ListRoutePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (ListRoutePolicies) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public ListRoutePolicies setUserIp(java.lang.String userIp) { - return (ListRoutePolicies) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217700,7 +229048,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListRoutePolicies setProject(java.lang.String project) { + 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 " + @@ -217710,52 +229058,6 @@ public ListRoutePolicies setProject(java.lang.String 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 @@ -217887,7 +229189,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListRoutePolicies setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -217910,501 +229212,240 @@ public java.lang.Long getMaxResults() { return maxResults; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListRoutePolicies setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the Router resource to patch. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String pageToken; - /** Name of the Router resource to patch. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Patches Route Policy + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "routers.patchRoutePolicy". + * 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 PatchRoutePolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 PatchRoutePolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy"; + private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + private final java.util.regex.Pattern RESOURCE_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 + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "routers.patchRoutePolicy". + * 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 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.

    + * 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 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} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public PatchRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (PatchRoutePolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public PatchRoutePolicy setAccessToken(java.lang.String accessToken) { - return (PatchRoutePolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public PatchRoutePolicy setAlt(java.lang.String alt) { - return (PatchRoutePolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public PatchRoutePolicy setCallback(java.lang.String callback) { - return (PatchRoutePolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public PatchRoutePolicy setFields(java.lang.String fields) { - return (PatchRoutePolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public PatchRoutePolicy setKey(java.lang.String key) { - return (PatchRoutePolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public PatchRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (PatchRoutePolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public PatchRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRoutePolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public PatchRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (PatchRoutePolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public PatchRoutePolicy setUploadType(java.lang.String uploadType) { - return (PatchRoutePolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public PatchRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRoutePolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public PatchRoutePolicy setUserIp(java.lang.String userIp) { - return (PatchRoutePolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218418,7 +229459,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -218428,234 +229469,174 @@ public PatchRoutePolicy setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** Name of the region for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** Name of the region for this request. */ - public PatchRoutePolicy setRegion(java.lang.String region) { + /** 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.resource = resource; 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; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "securityPolicies" collection of methods. + */ + public class SecurityPolicies { - @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. + * Inserts a rule into a security policy. * - * Create a request for the method "routers.preview". + * 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 Preview#execute()} method to invoke the remote operation. + * 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 for this request. - * @param router Name of the Router resource to query. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @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); + 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 Preview extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/preview"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Preview fields auto-generated during router create andupdate operations. Calling this method - * does NOT create or update the router. + * Inserts a rule into a security policy. * - * Create a request for the method "routers.preview". + * 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 Preview#execute()} method to invoke the remote operation.

    + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

    * {@link - * Preview#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 for this request. - * @param router Name of the Router resource to query. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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}"); } } @Override - public Preview set$Xgafv(java.lang.String $Xgafv) { - return (Preview) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public Preview setAccessToken(java.lang.String accessToken) { - return (Preview) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public Preview setAlt(java.lang.String alt) { - return (Preview) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public Preview setCallback(java.lang.String callback) { - return (Preview) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public Preview setFields(java.lang.String fields) { - return (Preview) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public Preview setKey(java.lang.String key) { - return (Preview) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public Preview setOauthToken(java.lang.String oauthToken) { - return (Preview) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Preview) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public Preview setQuotaUser(java.lang.String quotaUser) { - return (Preview) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public Preview setUploadType(java.lang.String uploadType) { - return (Preview) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public Preview setUploadProtocol(java.lang.String uploadProtocol) { - return (Preview) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public Preview setUserIp(java.lang.String userIp) { - return (Preview) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218669,7 +229650,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Preview setProject(java.lang.String project) { + 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 " + @@ -218679,197 +229660,186 @@ public Preview setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String securityPolicy; - /** Name of the region for this request. + /** Name of the security policy to update. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the region for this request. */ - public Preview setRegion(java.lang.String region) { + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.securityPolicy = securityPolicy; return this; } - /** Name of the Router resource to query. */ + /** If true, the request will not be committed. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.Boolean validateOnly; - /** Name of the Router resource to query. + /** If true, the request will not be committed. */ - public java.lang.String getRouter() { - return router; + public java.lang.Boolean getValidateOnly() { + return validateOnly; } - /** 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; + /** If true, the request will not be committed. */ + public AddRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public Preview set(String parameterName, Object value) { - return (Preview) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of all SecurityPolicy resources, regional and global, available to the + * specified project. * - * Create a request for the method "routers.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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} + * @param project Name of the project scoping this request. * @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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/aggregated/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Retrieves the list of all SecurityPolicy resources, regional and global, available to the + * specified project. * - * Create a request for the method "routers.testIamPermissions". + * 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 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.

    + * 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. - * @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} + * @param project Name of the project scoping this request. * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String 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 " + @@ -218879,186 +229849,448 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** The name of the region for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - /** Name or id of the resource for this request. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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.String resource; + private java.lang.Boolean includeAllScopes; - /** Name or id of the resource for this request. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if 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.String getResource() { - return resource; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** 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; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified policy. * - * Create a request for the method "routers.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param securityPolicy Name of the security policy to delete. * @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); + 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 Update extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * 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. + * Deletes the specified policy. * - * Create a request for the method "routers.update". + * 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 Update#execute()} method to invoke the remote operation.

    {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param securityPolicy Name of the security policy to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -219072,7 +230304,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -219082,45 +230314,24 @@ public Update setProject(java.lang.String 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. */ + /** Name of the security policy to delete. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String securityPolicy; - /** Name of the Router resource to update. + /** Name of the security policy to delete. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the Router resource to update. */ - public Update setRouter(java.lang.String router) { + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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.router = router; + this.securityPolicy = securityPolicy; return this; } @@ -219168,146 +230379,142 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates or creates new Route Policy + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "routers.updateRoutePolicy". + * 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 UpdateRoutePolicy#execute()} method to invoke the remote operation. + * 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 where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @param securityPolicy Name of the security policy to get. * @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); + 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 UpdateRoutePolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Updates or creates new Route Policy + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "routers.updateRoutePolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @param securityPolicy Name of the security policy to get. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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}"); } } @Override - public UpdateRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (UpdateRoutePolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public UpdateRoutePolicy setAccessToken(java.lang.String accessToken) { - return (UpdateRoutePolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public UpdateRoutePolicy setAlt(java.lang.String alt) { - return (UpdateRoutePolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public UpdateRoutePolicy setCallback(java.lang.String callback) { - return (UpdateRoutePolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public UpdateRoutePolicy setFields(java.lang.String fields) { - return (UpdateRoutePolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public UpdateRoutePolicy setKey(java.lang.String key) { - return (UpdateRoutePolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public UpdateRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (UpdateRoutePolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public UpdateRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateRoutePolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public UpdateRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (UpdateRoutePolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public UpdateRoutePolicy setUploadType(java.lang.String uploadType) { - return (UpdateRoutePolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public UpdateRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateRoutePolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public UpdateRoutePolicy setUserIp(java.lang.String userIp) { - return (UpdateRoutePolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -219321,7 +230528,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -219331,241 +230538,159 @@ public UpdateRoutePolicy setProject(java.lang.String 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. */ + /** Name of the security policy to get. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String securityPolicy; - /** Name of the Router resource where Route Policy is defined. + /** Name of the security policy to get. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the Router resource where Route Policy is defined. */ - public UpdateRoutePolicy setRouter(java.lang.String router) { + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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.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; + this.securityPolicy = securityPolicy; return this; } @Override - public UpdateRoutePolicy set(String parameterName, Object value) { - return (UpdateRoutePolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Gets a rule at the specified priority. * - * Create a request for the method "routes.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param route Name of the Route resource to delete. + * @param securityPolicy Name of the security policy to which the queried rule belongs. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String route) throws java.io.IOException { - Delete result = new Delete(project, route); + 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 Delete extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes/{route}"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 Route resource. + * Gets a rule at the specified priority. * - * Create a request for the method "routes.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 route Name of the Route resource to delete. + * @param securityPolicy Name of the security policy to which the queried rule belongs. * @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); + 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.route = com.google.api.client.util.Preconditions.checkNotNull(route, "Required parameter route must be specified."); + 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(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -219579,7 +230704,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -219589,207 +230714,155 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the Route resource to delete. */ + /** Name of the security policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String route; + private java.lang.String securityPolicy; - /** Name of the Route resource to delete. + /** Name of the security policy to which the queried rule belongs. */ - public java.lang.String getRoute() { - return route; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the Route resource to delete. */ - public Delete setRoute(java.lang.String route) { + /** 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(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + + 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.route = route; + 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). - */ + /** The priority of the rule to get from the security policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer priority; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The priority of the rule to get from the security policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPriority() { + return priority; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Returns the specified Route resource. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "routes.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param route Name of the Route resource to return. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @return the request */ - public Get get(java.lang.String project, java.lang.String route) throws java.io.IOException { - Get result = new Get(project, route); + 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 Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes/{route}"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "routes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 route Name of the Route resource to return. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @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); + 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])?))"); } - 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -219803,7 +230876,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -219813,73 +230886,115 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the Route resource to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String route; + private java.lang.String requestId; - /** Name of the Route resource to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRoute() { - return route; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Creates a Route resource in the specified project using the data included in the request. + * List all the policies that have been configured for the specified project. * - * Create a request for the method "routes.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * List all the policies that have been configured for the specified project. * - * Create a request for the method "routes.insert". + * 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 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.

    + * 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 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); + 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(), @@ -219889,63 +231004,73 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -219959,7 +231084,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -219970,98 +231095,315 @@ public Insert setProject(java.lang.String project) { } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves the list of Route resources available to the specified project. + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. * - * Create a request for the method "routes.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPreconfiguredExpressionSets#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); + public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets(java.lang.String project) throws java.io.IOException { + ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class ListPreconfiguredExpressionSets extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. * - * Create a request for the method "routes.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouteList.class); + 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(), @@ -220081,63 +231423,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { + return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { + return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { + return (ListPreconfiguredExpressionSets) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { + return (ListPreconfiguredExpressionSets) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { + return (ListPreconfiguredExpressionSets) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListPreconfiguredExpressionSets setKey(java.lang.String key) { + return (ListPreconfiguredExpressionSets) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { + return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { + return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { + return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { + return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -220151,7 +231493,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -220292,7 +231634,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -220321,7 +231663,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListPreconfiguredExpressionSets setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -220365,7 +231707,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -220388,7 +231730,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -220420,135 +231762,140 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "routes.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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}"); /** - * Returns permissions that a caller has on the specified resource. + * 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 "routes.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -220562,7 +231909,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -220572,77 +231919,120 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String securityPolicy; - /** Name or id of the resource for this request. + /** Name of the security policy to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + this.securityPolicy = securityPolicy; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; } - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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; + } - /** - * 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(); - } + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; - /** - * The "securityPolicies" collection of methods. - */ - public class SecurityPolicies { + /** 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); + } + } /** - * Inserts a rule into a security policy. + * 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.addRule". + * 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 AddRule#execute()} method to invoke the remote operation. + * 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 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); + 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 AddRule extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -220651,22 +232041,23 @@ public class AddRule extends ComputeRequest + * parameters, call the {@link PatchRule#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.

    + * 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 AddRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + 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()) { @@ -220683,63 +232074,63 @@ protected AddRule(java.lang.String project, java.lang.String securityPolicy, com } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -220753,7 +232144,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -220774,7 +232165,7 @@ public java.lang.String getSecurityPolicy() { } /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + 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 " + @@ -220784,6 +232175,38 @@ public AddRule setSecurityPolicy(java.lang.String 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; @@ -220795,24 +232218,567 @@ public java.lang.Boolean getValidateOnly() { } /** If true, the request will not be committed. */ - public AddRule setValidateOnly(java.lang.Boolean validateOnly) { + public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { this.validateOnly = validateOnly; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Retrieves the list of all SecurityPolicy resources, regional and global, available to the + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 "securityPolicies.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/securityPolicies/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 "securityPolicies.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}"); + } + } + + @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 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 "securityPolicies.aggregatedList". + * 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. @@ -220826,21 +232792,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/securityPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/serviceAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 + * 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 "securityPolicies.aggregatedList". + * 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. @@ -220852,7 +232818,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 policy. + * Deletes the specified ServiceAttachment in the given scope * - * Create a request for the method "securityPolicies.delete". + * 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 @@ -221317,10 +233287,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to delete. + * @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 securityPolicy) { + 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()) { @@ -221328,10 +233299,16 @@ protected Delete(java.lang.String project, java.lang.String securityPolicy) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -221417,24 +233394,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the security policy to delete. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to delete. + /** Name of the region of this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the region of this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.securityPolicy = securityPolicy; + this.serviceAttachment = serviceAttachment; return this; } @@ -221493,37 +233491,41 @@ public Delete set(String parameterName, Object value) { } } /** - * List all of the ordered rules present in a single specified policy. + * Returns the specified ServiceAttachment resource in the given scope. * - * Create a request for the method "securityPolicies.get". + * 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 securityPolicy Name of the security policy to get. + * @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 securityPolicy) throws java.io.IOException { - Get result = new Get(project, securityPolicy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * List all of the ordered rules present in a single specified policy. + * Returns the specified ServiceAttachment resource in the given scope. * - * Create a request for the method "securityPolicies.get". + * 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 @@ -221531,21 +233533,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to get. + * @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 securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -221641,24 +233650,61 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the security policy to get. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to get. + /** Name of the region of this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the region of this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.securityPolicy = securityPolicy; + 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; } @@ -221668,60 +233714,72 @@ public Get set(String parameterName, Object value) { } } /** - * Gets a rule at the specified priority. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "securityPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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. + * @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 GetRule getRule(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, securityPolicy); + 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 GetRule extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 a rule at the specified priority. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "securityPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation.

    + * parameters, call the {@link GetIamPolicy#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.

    + * 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 securityPolicy Name of the security policy to which the queried rule belongs. + * @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 GetRule(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.class); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -221737,63 +233795,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -221807,7 +233865,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + 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 " + @@ -221817,77 +233875,104 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the security policy to which the queried rule belongs. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to which the queried rule belongs. + /** The name of the region for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).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.securityPolicy = securityPolicy; + this.resource = resource; return this; } - /** The priority of the rule to get from the security policy. */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.Integer optionsRequestedPolicyVersion; - /** The priority of the rule to get from the security policy. + /** Requested IAM Policy version. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project using the data included in the request. + * 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 "securityPolicies.insert". + * 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 content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @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, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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}/global/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "securityPolicies.insert". + * 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 @@ -221895,10 +233980,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @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, com.google.api.services.compute.model.SecurityPolicy content) { + 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()) { @@ -221906,6 +233992,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -221989,6 +234081,27 @@ public Insert setProject(java.lang.String 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 @@ -222038,55 +234151,43 @@ public Insert setRequestId(java.lang.String 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. + * Lists the ServiceAttachments for a project in the given scope. * - * Create a request for the method "securityPolicies.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists the ServiceAttachments for a project in the given scope. * - * Create a request for the method "securityPolicies.list". + * 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 @@ -222094,16 +234195,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); + 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])?"); + } } @Override @@ -222197,412 +234305,24 @@ public List setProject(java.lang.String 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String region; - /** Project ID for this request. + /** Name of the region of this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getRegion() { + return region; } - /** Project ID for this request. */ - public ListPreconfiguredExpressionSets setProject(java.lang.String project) { + /** Name of the region of this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.project = project; + this.region = region; return this; } @@ -222737,7 +234457,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -222766,7 +234486,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -222810,7 +234530,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -222833,7 +234553,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -222865,55 +234585,51 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); + 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. + * 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 "securityPolicies.patch". + * 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @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 securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(project, securityPolicy, content); + 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}/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * 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 "securityPolicies.patch". + * 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 @@ -222921,11 +234637,14 @@ public class Patch extends ComputeRequest * * @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} + * @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 securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { + 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()) { @@ -222933,521 +234652,68 @@ protected Patch(java.lang.String project, java.lang.String securityPolicy, com.g "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } + 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."); } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223461,7 +234727,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -223471,169 +234737,229 @@ public RemoveRule setProject(java.lang.String project) { return this; } - /** Name of the security policy to update. */ + /** The region scoping this request and should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to update. + /** The region scoping this request and should conform to RFC1035. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** 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; + /** The region scoping this request and should conform to RFC1035. */ + public Patch setRegion(java.lang.String region) { + this.region = region; return this; } - /** The priority of the rule to remove from the security policy. */ + /** + * 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.Integer priority; + private java.lang.String serviceAttachment; - /** The priority of the rule to remove from the security policy. + /** 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.Integer getPriority() { - return priority; + public java.lang.String getServiceAttachment() { + return serviceAttachment; } - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * 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 RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "securityPolicies.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * 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.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "securityPolicies.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @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); + 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223647,7 +234973,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -223657,6 +234983,27 @@ public SetLabels setProject(java.lang.String 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; @@ -223668,54 +235015,58 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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}"); + "[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); + 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 "securityPolicies.testIamPermissions". + * 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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + 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}/global/securityPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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 "securityPolicies.testIamPermissions". + * 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 @@ -223724,11 +235075,12 @@ public class TestIamPermissions extends ComputeRequest * * @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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -223736,11 +235088,17 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -223825,6 +235183,27 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -223840,7 +235219,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -223855,534 +235234,57 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the ServiceAttachments collection. + * An accessor for creating requests from the SnapshotGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ServiceAttachments.List request = compute.serviceAttachments().list(parameters ...)}
    +   *   {@code Compute.SnapshotGroups.List request = compute.snapshotGroups().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ServiceAttachments serviceAttachments() { - return new ServiceAttachments(); + public SnapshotGroups snapshotGroups() { + return new SnapshotGroups(); } /** - * The "serviceAttachments" collection of methods. + * The "snapshotGroups" 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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; - } + public class SnapshotGroups { - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); - } - } /** - * Deletes the specified ServiceAttachment in the given scope + * Deletes the specified SnapshotGroup resource * - * Create a request for the method "serviceAttachments.delete". + * Create a request for the method "snapshotGroups.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. + * @param snapshotGroup Name of the SnapshotGroup 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); + public Delete delete(java.lang.String project, java.lang.String snapshotGroup) throws java.io.IOException { + Delete result = new Delete(project, snapshotGroup); 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 REST_PATH = "projects/{project}/global/snapshotGroups/{snapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + private final java.util.regex.Pattern 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 the specified ServiceAttachment in the given scope + * Deletes the specified SnapshotGroup resource * - * Create a request for the method "serviceAttachments.delete". + * Create a request for the method "snapshotGroups.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 @@ -224390,11 +235292,10 @@ public class Delete extends ComputeRequest * * @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. + * @param snapshotGroup Name of the SnapshotGroup resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String serviceAttachment) { + protected Delete(java.lang.String project, java.lang.String snapshotGroup) { 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()) { @@ -224402,16 +235303,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.snapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(snapshotGroup, "Required parameter snapshotGroup 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 " + + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), + "Parameter snapshotGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -224497,45 +235392,24 @@ public Delete setProject(java.lang.String 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. */ + /** Name of the SnapshotGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String serviceAttachment; + private java.lang.String snapshotGroup; - /** Name of the ServiceAttachment resource to delete. + /** Name of the SnapshotGroup resource to delete. */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; + public java.lang.String getSnapshotGroup() { + return snapshotGroup; } - /** Name of the ServiceAttachment resource to delete. */ - public Delete setServiceAttachment(java.lang.String serviceAttachment) { + /** Name of the SnapshotGroup resource to delete. */ + public Delete setSnapshotGroup(java.lang.String snapshotGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), + "Parameter snapshotGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.serviceAttachment = serviceAttachment; + this.snapshotGroup = snapshotGroup; return this; } @@ -224594,41 +235468,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified ServiceAttachment resource in the given scope. + * returns the specified SnapshotGroup resource. * - * Create a request for the method "serviceAttachments.get". + * Create a request for the method "snapshotGroups.get". * * This request holds the 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. + * @param snapshotGroup Name of the SnapshotGroup 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); + public Get get(java.lang.String project, java.lang.String snapshotGroup) throws java.io.IOException { + Get result = new Get(project, snapshotGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; + private static final String REST_PATH = "projects/{project}/global/snapshotGroups/{snapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + private final java.util.regex.Pattern 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 ServiceAttachment resource in the given scope. + * returns the specified SnapshotGroup resource. * - * Create a request for the method "serviceAttachments.get". + * Create a request for the method "snapshotGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

    {@link @@ -224636,28 +235506,21 @@ public class Get extends ComputeRequest * * @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. + * @param snapshotGroup Name of the SnapshotGroup 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); + protected Get(java.lang.String project, java.lang.String snapshotGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.snapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(snapshotGroup, "Required parameter snapshotGroup 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 " + + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), + "Parameter snapshotGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -224753,61 +235616,24 @@ public Get setProject(java.lang.String 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. */ + /** Name of the SnapshotGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.String serviceAttachment; + private java.lang.String snapshotGroup; - /** Name of the ServiceAttachment resource to return. + /** Name of the SnapshotGroup resource to return. */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; + public java.lang.String getSnapshotGroup() { + return snapshotGroup; } - /** Name of the ServiceAttachment resource to return. */ - public Get setServiceAttachment(java.lang.String serviceAttachment) { + /** Name of the SnapshotGroup resource to return. */ + public Get setSnapshotGroup(java.lang.String snapshotGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), + "Parameter snapshotGroup 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; + this.snapshotGroup = snapshotGroup; return this; } @@ -224819,40 +235645,36 @@ public Get set(String parameterName, Object 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". + * Create a request for the method "snapshotGroups.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); + 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}/regions/{region}/serviceAttachments/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/snapshotGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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". + * Create a request for the method "snapshotGroups.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.

    @@ -224861,11 +235683,10 @@ public class GetIamPolicy extends ComputeRequest * * @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) { + 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()) { @@ -224873,17 +235694,11 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -224978,27 +235793,6 @@ public GetIamPolicy setProject(java.lang.String 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; @@ -225014,7 +235808,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -225042,40 +235836,34 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a ServiceAttachment in the specified project in the given scope using the parameters that - * are included in the request. + * Creates a snapshot group in the specified project using the data included in the request. * - * Create a request for the method "serviceAttachments.insert". + * Create a request for the method "snapshotGroups.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} + * @param content the {@link com.google.api.services.compute.model.SnapshotGroup} * @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); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.SnapshotGroup 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}/regions/{region}/serviceAttachments"; + private static final String REST_PATH = "projects/{project}/global/snapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Creates a snapshot group in the specified project using the data included in the request. * - * Create a request for the method "serviceAttachments.insert". + * Create a request for the method "snapshotGroups.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 @@ -225083,11 +235871,10 @@ public class Insert extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.SnapshotGroup} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ServiceAttachment content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.SnapshotGroup content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -225095,12 +235882,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -225184,27 +235965,6 @@ public Insert setProject(java.lang.String 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 @@ -225260,37 +236020,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the ServiceAttachments for a project in the given scope. + * retrieves the list of SnapshotGroup resources contained within the specified project. * - * Create a request for the method "serviceAttachments.list". + * Create a request for the method "snapshotGroups.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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; + private static final String REST_PATH = "projects/{project}/global/snapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * retrieves the list of SnapshotGroup resources contained within the specified project. * - * Create a request for the method "serviceAttachments.list". + * Create a request for the method "snapshotGroups.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 @@ -225298,23 +236054,16 @@ public class List extends ComputeRequest * * @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); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListSnapshotGroups.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -225408,27 +236157,6 @@ public List setProject(java.lang.String 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 @@ -225698,278 +236426,39 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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". + * Create a request for the method "snapshotGroups.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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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}/regions/{region}/serviceAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/snapshotGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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". + * Create a request for the method "snapshotGroups.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.

    @@ -225978,12 +236467,11 @@ public class SetIamPolicy extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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) { + 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()) { @@ -225991,17 +236479,11 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -226086,27 +236568,6 @@ public SetIamPolicy setProject(java.lang.String 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; @@ -226122,7 +236583,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -226136,40 +236597,36 @@ public SetIamPolicy set(String parameterName, Object value) { /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "serviceAttachments.testIamPermissions". + * Create a request for the method "snapshotGroups.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); + 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}/regions/{region}/serviceAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/snapshotGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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". + * Create a request for the method "snapshotGroups.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 @@ -226178,12 +236635,11 @@ public class TestIamPermissions extends ComputeRequest * * @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) { + 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()) { @@ -226191,17 +236647,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -226286,27 +236736,6 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -226322,7 +236751,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -270048,8 +280477,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *

  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java index ca908adabeb..bb97180b273 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -62,7 +62,8 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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 @@ -83,7 +84,7 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,7 +168,8 @@ public AcceleratorType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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() { @@ -175,7 +177,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. + * 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) { @@ -218,7 +221,7 @@ public AcceleratorType setName(java.lang.String name) { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * Output only. [Output Only] Server-defined, fully qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -226,7 +229,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined, fully qualified URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java index 01a36ed3d8c..8ef1a82145b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated - * lists of accelerator types. + * 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 @@ -62,14 +62,14 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AcceleratorTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AcceleratorTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java index d6ce17db7a8..8573d2e33b6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -50,8 +50,8 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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 @@ -68,7 +68,7 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public AcceleratorTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator - * types. + * 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) { @@ -158,7 +158,7 @@ public AcceleratorTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java index de46a322098..41d68db5279 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -49,7 +49,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.Integer externalIpv6PrefixLength; /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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 @@ -168,7 +168,7 @@ public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6Pr } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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() { @@ -176,7 +176,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java index 6b442a7cd99..b6268dcc2d2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java @@ -53,7 +53,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String addressType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,8 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -103,7 +104,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String ipv6EndpointType; /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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 @@ -189,9 +190,9 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String purpose; /** - * [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.* + * 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 @@ -205,10 +206,10 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [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. + * 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 @@ -267,7 +268,7 @@ public Address setAddressType(java.lang.String addressType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -275,7 +276,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Address setCreationTimestamp(java.lang.String creationTimestamp) { @@ -301,7 +302,8 @@ public Address setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -309,7 +311,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -385,7 +388,7 @@ public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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() { @@ -393,7 +396,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#address for addresses. + * 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) { @@ -621,9 +624,9 @@ public Address setPurpose(java.lang.String purpose) { } /** - * [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.* + * 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() { @@ -631,9 +634,9 @@ public java.lang.String getRegion() { } /** - * [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.* + * 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) { @@ -659,10 +662,10 @@ public Address setSelfLink(java.lang.String selfLink) { } /** - * [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. + * 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() { @@ -670,10 +673,10 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java index ce17cb61122..981d91082fb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -44,8 +44,8 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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 @@ -62,14 +62,14 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AddressAggregatedList setItems(java.util.Map } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of - * addresses. + * 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) { @@ -159,7 +159,7 @@ public AddressAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +176,7 @@ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AddressAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java index 68e6eb54491..62ab8af2ff8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -50,7 +50,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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 @@ -67,7 +67,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public AddressList setItems(java.util.List
      items) { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * 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) { @@ -155,7 +155,7 @@ public AddressList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java index f35db35aee5..9684fa1e3a2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -40,22 +40,22 @@ public final class AllocationAggregateReservation extends com.google.api.client. private java.lang.Integer hostCount; /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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; /** - * Number of instances currently in use in this reservation. + * Output only. Number of instances currently in use in this reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer inUseInstanceCount; /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,8 +102,8 @@ public AllocationAggregateReservation setHostCount(java.lang.Integer hostCount) } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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() { @@ -111,8 +111,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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 AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseHostCount) { @@ -121,7 +121,7 @@ public AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseH } /** - * Number of instances currently in use in this reservation. + * Output only. Number of instances currently in use in this reservation. * @return value or {@code null} for none */ public java.lang.Integer getInUseInstanceCount() { @@ -129,7 +129,7 @@ public java.lang.Integer getInUseInstanceCount() { } /** - * Number of instances currently in use in this reservation. + * Output only. Number of instances currently in use in this reservation. * @param inUseInstanceCount inUseInstanceCount or {@code null} for none */ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer inUseInstanceCount) { @@ -138,7 +138,7 @@ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer in } /** - * [Output only] List of resources currently in use. + * Output only. [Output only] List of resources currently in use. * @return value or {@code null} for none */ public java.util.List getInUseResources() { @@ -146,7 +146,7 @@ public java.util.List getInU } /** - * [Output only] List of resources currently in use. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java index 54dce0f90d4..5a212f176c5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -17,7 +17,7 @@ package com.google.api.services.compute.model; /** - * Properties of the SKU instances being reserved. Next ID: 9 + * 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: diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java index d928aa8151f..de9079076b2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -30,7 +30,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { /** - * [Output Only] Indicates how many instances are actually usable currently. + * 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 @@ -44,7 +44,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.Long count; /** - * [Output Only] Indicates how many instances are in use. + * 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 @@ -72,7 +72,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.String sourceInstanceTemplate; /** - * [Output Only] Indicates how many instances are actually usable currently. + * Output only. [Output Only] Indicates how many instances are actually usable currently. * @return value or {@code null} for none */ public java.lang.Long getAssuredCount() { @@ -80,7 +80,7 @@ public java.lang.Long getAssuredCount() { } /** - * [Output Only] Indicates how many instances are actually usable currently. + * 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) { @@ -106,7 +106,7 @@ public AllocationSpecificSKUReservation setCount(java.lang.Long count) { } /** - * [Output Only] Indicates how many instances are in use. + * Output only. [Output Only] Indicates how many instances are in use. * @return value or {@code null} for none */ public java.lang.Long getInUseCount() { @@ -114,7 +114,7 @@ public java.lang.Long getInUseCount() { } /** - * [Output Only] Indicates how many instances are in use. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java index cbd43c65f04..35d4504dab6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -30,7 +30,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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 @@ -116,8 +117,9 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [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. + * 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 @@ -145,25 +147,25 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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] Any valid publicly visible licenses. + * 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; /** - * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed - * to be detached from the instance, or to be used as the source of the snapshot creation, and the - * image creation. The instance with at least one locked attached disk is not allow to be used as - * source of machine image creation, instant snapshot creation, and not allowed to be deleted with - * --keep-disk parameter set to true for locked disks. + * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is + * not allowed to be detached from the instance, or to be used as the source of the snapshot + * creation, and the image creation. The instance with at least one locked attached disk is not + * allow to be used as source of machine image creation, instant snapshot creation, and not + * allowed to be deleted with --keep-disk parameter set to true for locked disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -178,16 +180,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String mode; /** - * 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. + * 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] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -217,16 +219,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * [Output Only] A list of user provided licenses. It represents a list of URLs to the license - * resource. Unlike regular licenses, user provided licenses can be modified after the disk is - * created. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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() { @@ -234,7 +228,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * 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) { @@ -422,8 +417,9 @@ public AttachedDisk setGuestOsFeatures(java.util.List guestOsFea } /** - * [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. + * 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() { @@ -431,8 +427,9 @@ public java.lang.Integer getIndex() { } /** - * [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. + * 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) { @@ -489,7 +486,7 @@ public AttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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() { @@ -497,7 +494,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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) { @@ -506,7 +503,7 @@ public AttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -514,7 +511,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible 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) { @@ -523,11 +520,11 @@ public AttachedDisk setLicenses(java.util.List licenses) { } /** - * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed - * to be detached from the instance, or to be used as the source of the snapshot creation, and the - * image creation. The instance with at least one locked attached disk is not allow to be used as - * source of machine image creation, instant snapshot creation, and not allowed to be deleted with - * --keep-disk parameter set to true for locked disks. + * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is + * not allowed to be detached from the instance, or to be used as the source of the snapshot + * creation, and the image creation. The instance with at least one locked attached disk is not + * allow to be used as source of machine image creation, instant snapshot creation, and not + * allowed to be deleted with --keep-disk parameter set to true for locked disks. * @return value or {@code null} for none */ public java.lang.Boolean getLocked() { @@ -535,11 +532,11 @@ public java.lang.Boolean getLocked() { } /** - * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed - * to be detached from the instance, or to be used as the source of the snapshot creation, and the - * image creation. The instance with at least one locked attached disk is not allow to be used as - * source of machine image creation, instant snapshot creation, and not allowed to be deleted with - * --keep-disk parameter set to true for locked disks. + * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is + * not allowed to be detached from the instance, or to be used as the source of the snapshot + * creation, and the image creation. The instance with at least one locked attached disk is not + * allow to be used as source of machine image creation, instant snapshot creation, and not + * allowed to be deleted with --keep-disk parameter set to true for locked disks. * @param locked locked or {@code null} for none */ public AttachedDisk setLocked(java.lang.Boolean locked) { @@ -567,9 +564,9 @@ public AttachedDisk setMode(java.lang.String mode) { } /** - * 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. + * 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() { @@ -577,9 +574,9 @@ public java.lang.String getSavedState() { } /** - * 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. + * 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) { @@ -588,7 +585,7 @@ public AttachedDisk setSavedState(java.lang.String savedState) { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @return value or {@code null} for none */ public InitialStateConfig getShieldedInstanceInitialState() { @@ -596,7 +593,7 @@ public InitialStateConfig getShieldedInstanceInitialState() { } /** - * [Output Only] shielded vm initial state stored on disk + * Output only. [Output Only] shielded vm initial state stored on disk * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none */ public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { @@ -656,27 +653,6 @@ public AttachedDisk setType(java.lang.String type) { return this; } - /** - * [Output Only] A list of user provided licenses. It represents a list of URLs to the license - * resource. Unlike regular licenses, user provided licenses can be modified after the disk is - * created. - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * [Output Only] A list of user provided licenses. It represents a list of URLs to the license - * resource. Unlike regular licenses, user provided licenses can be modified after the disk is - * created. - * @param userLicenses userLicenses or {@code null} for none - */ - public AttachedDisk setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public AttachedDisk set(String fieldName, Object value) { return (AttachedDisk) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index 0b7a73a71eb..9a47f765c61 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -163,9 +163,11 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js private java.util.List replicaZones; /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 @@ -565,9 +567,11 @@ public AttachedDiskInitializeParams setReplicaZones(java.util.List getResourceManagerTags() { @@ -575,9 +579,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java index d57466ad937..43d862b13ea 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -53,7 +53,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private AutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,15 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#autoscaler for autoscalers. + * 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 @@ -92,25 +93,25 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [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. + * 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] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -155,8 +156,8 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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 @@ -188,7 +189,7 @@ public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -196,7 +197,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { @@ -222,7 +223,8 @@ public Autoscaler setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -230,7 +232,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -239,7 +242,7 @@ public Autoscaler setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * 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() { @@ -247,7 +250,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * 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) { @@ -281,10 +284,10 @@ public Autoscaler setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -292,10 +295,10 @@ public java.lang.Integer getRecommendedSize() { } /** - * [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. + * 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) { @@ -304,8 +307,8 @@ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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() { @@ -313,8 +316,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of theregion where the instance group resides (for autoscalers living in - * regional scope). + * 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) { @@ -323,7 +326,7 @@ public Autoscaler setRegion(java.lang.String region) { } /** - * [Output Only] Status information of existing scaling schedules. + * Output only. [Output Only] Status information of existing scaling schedules. * @return value or {@code null} for none */ public java.util.Map getScalingScheduleStatus() { @@ -331,7 +334,7 @@ public java.util.Map getScalingScheduleStatus() { } /** - * [Output Only] Status information of existing scaling schedules. + * 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) { @@ -428,8 +431,8 @@ public Autoscaler setTarget(java.lang.String target) { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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() { @@ -437,8 +440,8 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal - * scope). + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java index 579ee9e1a4a..0b34b95a635 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -44,8 +44,8 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of - * autoscalers. + * 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 @@ -62,14 +62,15 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,8 @@ public AutoscalerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java index a53c5719b71..3fe3fa8efb5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -50,7 +50,8 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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 @@ -67,7 +68,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public AutoscalerList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. + * 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) { @@ -155,7 +158,7 @@ public AutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java index b40ba7c0d02..530e78865ef 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java @@ -189,6 +189,13 @@ public final class Backend extends com.google.api.client.json.GenericJson { @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 @@ -575,6 +582,23 @@ public Backend setMaxUtilization(java.lang.Float 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java index 2c56d989ea9..75e8b9b836e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -99,7 +99,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Type of the resource. + * Output only. Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -135,9 +135,9 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private BackendBucketParams params; /** - * [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. + * 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 @@ -151,7 +151,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -317,7 +317,7 @@ public BackendBucket setId(java.math.BigInteger id) { } /** - * Type of the resource. + * Output only. Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -325,7 +325,7 @@ public java.lang.String getKind() { } /** - * Type of the resource. + * Output only. Type of the resource. * @param kind kind or {@code null} for none */ public BackendBucket setKind(java.lang.String kind) { @@ -401,9 +401,9 @@ public BackendBucket setParams(BackendBucketParams params) { } /** - * [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. + * 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() { @@ -411,9 +411,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -439,7 +439,7 @@ public BackendBucket setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] List of resources referencing that backend bucket. + * Output only. [Output Only] List of resources referencing that backend bucket. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -447,7 +447,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing that backend bucket. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java index 8333e93f482..f4416b7bc94 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public BackendBucketAggregatedList setItems(java.util.Map items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public BackendBucketList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java index 02ce2377248..ee9f13e6fba 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java @@ -50,8 +50,8 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable - * backend buckets. + * 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 @@ -68,7 +68,7 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public BackendBucketListUsable setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable - * backend buckets. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of usable - * backend buckets. + * 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) { @@ -158,7 +158,7 @@ public BackendBucketListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java index da75c481ccb..e7045e0c2e3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java @@ -30,14 +30,14 @@ public final class BackendBucketUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * 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] Server-defined URL for UrlMaps referencing that BackendBucket. + * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -45,7 +45,7 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java index 729581ff67b..7f13e2409b8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -127,7 +127,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private ConsistentHashLoadBalancerSettings consistentHash; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,7 +331,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String ipAddressSelectionPolicy; /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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 @@ -460,6 +461,13 @@ public final class BackendService extends com.google.api.client.json.GenericJson @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 @@ -534,9 +542,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String protocol; /** - * [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. + * 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 @@ -639,7 +647,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private BackendServiceTlsSettings tlsSettings; /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -826,7 +834,7 @@ public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consi } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -834,7 +842,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1323,7 +1331,8 @@ public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSele } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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() { @@ -1331,7 +1340,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#backendService for backend services. + * 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) { @@ -1612,6 +1622,23 @@ public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetwork 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 @@ -1774,9 +1801,9 @@ public BackendService setProtocol(java.lang.String protocol) { } /** - * [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. + * 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() { @@ -1784,9 +1811,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -2017,7 +2044,7 @@ public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { } /** - * [Output Only] List of resources referencing given backend service. + * Output only. [Output Only] List of resources referencing given backend service. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -2025,7 +2052,7 @@ public java.util.List getUsedBy() { } /** - * [Output Only] List of resources referencing given backend service. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java index e0afada0240..313198d23b6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public BackendServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public BackendServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java index 0cedf515d3b..cf815c0675f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class BackendServiceDynamicForwarding extends com.google.api.client.json.GenericJson { + /** + * Dynamic Forwarding Proxy configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackendServiceDynamicForwardingForwardProxy forwardProxy; + /** * IP:PORT based dynamic forwarding configuration. * The value may be {@code null}. @@ -36,6 +43,23 @@ public final class BackendServiceDynamicForwarding extends com.google.api.client @com.google.api.client.util.Key private BackendServiceDynamicForwardingIpPortSelection ipPortSelection; + /** + * Dynamic Forwarding Proxy configuration. + * @return value or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy getForwardProxy() { + return forwardProxy; + } + + /** + * Dynamic Forwarding Proxy configuration. + * @param forwardProxy forwardProxy or {@code null} for none + */ + public BackendServiceDynamicForwarding setForwardProxy(BackendServiceDynamicForwardingForwardProxy forwardProxy) { + this.forwardProxy = forwardProxy; + return this; + } + /** * IP:PORT based dynamic forwarding configuration. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java new file mode 100644 index 00000000000..030061819d7 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines Dynamic Forwarding Proxy configuration. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceDynamicForwardingForwardProxy extends com.google.api.client.json.GenericJson { + + /** + * A boolean flag enabling dynamic forwarding proxy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Determines the dynamic forwarding proxy mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proxyMode; + + /** + * A boolean flag enabling dynamic forwarding proxy. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * A boolean flag enabling dynamic forwarding proxy. + * @param enabled enabled or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Determines the dynamic forwarding proxy mode. + * @return value or {@code null} for none + */ + public java.lang.String getProxyMode() { + return proxyMode; + } + + /** + * Determines the dynamic forwarding proxy mode. + * @param proxyMode proxyMode or {@code null} for none + */ + public BackendServiceDynamicForwardingForwardProxy setProxyMode(java.lang.String proxyMode) { + this.proxyMode = proxyMode; + return this; + } + + @Override + public BackendServiceDynamicForwardingForwardProxy set(String fieldName, Object value) { + return (BackendServiceDynamicForwardingForwardProxy) super.set(fieldName, value); + } + + @Override + public BackendServiceDynamicForwardingForwardProxy clone() { + return (BackendServiceDynamicForwardingForwardProxy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java index efdb6b23e77..6d41f11341d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -38,7 +38,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * The value may be {@code null}. @@ -73,7 +73,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.js private java.lang.Float failoverRatio; /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * @return value or {@code null} for none @@ -83,7 +83,7 @@ public java.lang.Boolean getDisableConnectionDrainOnFailover() { } /** - * This can be set to true only if the protocol isTCP. + * 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java index bc3239368af..2df9c4eb5fe 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -45,8 +45,8 @@ public final class BackendServiceGroupHealth extends com.google.api.client.json. private java.util.List healthStatus; /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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 @@ -89,8 +89,8 @@ public BackendServiceGroupHealth setHealthStatus(java.util.List he } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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() { @@ -98,8 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the health of - * backend services. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java index 04c9a74f9e2..dd4899bf142 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -55,7 +55,7 @@ public final class BackendServiceIAP extends com.google.api.client.json.GenericJ private java.lang.String oauth2ClientSecret; /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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 @@ -121,7 +121,7 @@ public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecr } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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() { @@ -129,7 +129,7 @@ public java.lang.String getOauth2ClientSecretSha256() { } /** - * [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java index 55bacc0e85b..a9fbe1babdc 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -50,7 +50,8 @@ public final class BackendServiceList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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 @@ -67,7 +68,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public BackendServiceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. + * 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) { @@ -155,7 +158,7 @@ public BackendServiceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java index 68b53b5decb..eeee3073ad5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -50,8 +50,8 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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 @@ -68,7 +68,7 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public BackendServiceListUsable setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists of usable - * backend services. + * 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) { @@ -158,7 +158,7 @@ public BackendServiceListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java index cebbcab9361..d1f47ab4d6d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java @@ -30,16 +30,16 @@ public final class BackendServiceUsedBy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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() { @@ -47,8 +47,8 @@ public java.lang.String getReference() { } /** - * [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, - * TargetTcpProxies, TargetSslProxies and ForwardingRule. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java index 9c057f2e6c6..f4e2917b118 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -30,42 +30,42 @@ public final class BgpRoute extends com.google.api.client.json.GenericJson { /** - * [Output only] AS-PATH for the route + * 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] BGP communities in human-readable A:B format. + * 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] Destination IP range for the route, in human-readable CIDR format + * 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] BGP multi-exit discriminator + * 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] BGP origin (EGP, IGP or INCOMPLETE) + * 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] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -73,7 +73,7 @@ public java.util.List getAsPaths() { } /** - * [Output only] AS-PATH for the route + * Output only. [Output only] AS-PATH for the route * @param asPaths asPaths or {@code null} for none */ public BgpRoute setAsPaths(java.util.List asPaths) { @@ -82,7 +82,7 @@ public BgpRoute setAsPaths(java.util.List asPaths) { } /** - * [Output only] BGP communities in human-readable A:B format. + * Output only. [Output only] BGP communities in human-readable A:B format. * @return value or {@code null} for none */ public java.util.List getCommunities() { @@ -90,7 +90,7 @@ public java.util.List getCommunities() { } /** - * [Output only] BGP communities in human-readable A:B format. + * 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) { @@ -99,7 +99,7 @@ public BgpRoute setCommunities(java.util.List communities) { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * 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() { @@ -107,7 +107,7 @@ public BgpRouteNetworkLayerReachabilityInformation getDestination() { } /** - * [Output only] Destination IP range for the route, in human-readable CIDR format + * 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) { @@ -116,7 +116,7 @@ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation desti } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @return value or {@code null} for none */ public java.lang.Long getMed() { @@ -124,7 +124,7 @@ public java.lang.Long getMed() { } /** - * [Output only] BGP multi-exit discriminator + * Output only. [Output only] BGP multi-exit discriminator * @param med med or {@code null} for none */ public BgpRoute setMed(java.lang.Long med) { @@ -133,7 +133,7 @@ public BgpRoute setMed(java.lang.Long med) { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @return value or {@code null} for none */ public java.lang.String getOrigin() { @@ -141,7 +141,7 @@ public java.lang.String getOrigin() { } /** - * [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java index da0ffd82c86..34de456cbc3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -30,30 +30,30 @@ public final class BgpRouteAsPath extends com.google.api.client.json.GenericJson { /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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] 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. + * 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] Type of AS-PATH segment (SEQUENCE or SET) + * 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] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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() { @@ -61,7 +61,7 @@ public java.util.List getAsns() { } /** - * [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * 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) { @@ -70,9 +70,9 @@ public BgpRouteAsPath setAsns(java.util.List asns) { } /** - * [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. + * 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() { @@ -80,9 +80,9 @@ public java.util.List getAsns32() { } /** - * [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. + * 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) { @@ -91,7 +91,7 @@ public BgpRouteAsPath setAsns32(java.util.List asns32) { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @return value or {@code null} for none */ public java.lang.String getType() { @@ -99,7 +99,7 @@ public java.lang.String getType() { } /** - * [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java index 8b94819315a..50d73f8419b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java @@ -30,6 +30,20 @@ @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 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/ @@ -41,6 +55,40 @@ public final class BulkInsertDiskResource extends com.google.api.client.json.Gen @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. + * @return value or {@code null} for none + */ + public SnapshotGroupParameters getSnapshotGroupParameters() { + return snapshotGroupParameters; + } + + /** + * The parameters for the snapshot group. + * @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/ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java index 85b65abd943..00fb6aa915d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java @@ -37,6 +37,13 @@ public final class BulkInsertInstanceResource extends com.google.api.client.json @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. @@ -117,6 +124,23 @@ public BulkInsertInstanceResource setCount(java.lang.Long 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java index aca17118fa4..e8d1e697aa7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -38,7 +38,7 @@ public final class BulkInsertInstanceResourcePerInstanceProperties extends com.g private java.lang.String hostname; /** - * This field is only temporary. It will be removed. Do not use it. + * 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 @@ -64,7 +64,7 @@ public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.Str } /** - * This field is only temporary. It will be removed. Do not use it. + * 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() { @@ -72,7 +72,7 @@ public java.lang.String getName() { } /** - * This field is only temporary. It will be removed. Do not use it. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java new file mode 100644 index 00000000000..637cb5ec264 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java @@ -0,0 +1,405 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code 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 cachePolicy.cacheMode settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List cacheBypassRequestHeaderNames; + + /** + * The CacheKeyPolicy for this CachePolicy. + * 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, the default + * value is 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 Duration 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. 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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration 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). + * 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 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 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 cachePolicy.cacheMode settings. + * @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 cachePolicy.cacheMode settings. + * @param cacheBypassRequestHeaderNames cacheBypassRequestHeaderNames or {@code null} for none + */ + public CachePolicy setCacheBypassRequestHeaderNames(java.util.List cacheBypassRequestHeaderNames) { + this.cacheBypassRequestHeaderNames = cacheBypassRequestHeaderNames; + return this; + } + + /** + * The CacheKeyPolicy for this CachePolicy. + * @return value or {@code null} for none + */ + public CachePolicyCacheKeyPolicy getCacheKeyPolicy() { + return cacheKeyPolicy; + } + + /** + * The CacheKeyPolicy for this CachePolicy. + * @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, the default + * value is 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 route. If not specified, the default + * value is CACHE_ALL_STATIC. + * @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. 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 Duration 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 CachePolicy setClientTtl(Duration 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. 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. + * @return value or {@code null} for none + */ + public Duration 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. 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. + * @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 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). + * Infrequently accessed objects may be evicted from the cache before the defined TTL. + * @return value or {@code null} for none + */ + public Duration 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). + * Infrequently accessed objects may be evicted from the cache before the defined TTL. + * @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 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 CachePolicy 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 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. + * @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 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/beta/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java new file mode 100644 index 00000000000..83241e3f631 --- /dev/null +++ b/clients/google-api-services-compute/beta/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 excluded_query_parameters or included_query_parameters, 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 a 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 + * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 excluded_query_parameters or included_query_parameters, 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 a 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 excluded_query_parameters or included_query_parameters, 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 a 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 + * included_query_parameters and excluded_query_parameters. 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 a 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 + * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 included_query_parameters or excluded_query_parameters, 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/beta/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/beta/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/beta/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/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 b8cecc3fbc9..5d94997191e 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 @@ -58,7 +58,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String category; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,14 +95,15 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List existingReservations; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#commitment for commitments. + * 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 @@ -146,7 +147,8 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String plan; /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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 @@ -166,7 +168,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List reservations; /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -181,7 +183,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List resources; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,23 +198,23 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String splitSourceCommitment; /** - * [Output Only] Commitment start time inRFC3339 text format. + * 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] 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. + * 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] An optional, human-readable explanation of the 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 @@ -228,10 +230,11 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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 @@ -290,7 +293,7 @@ public Commitment setCategory(java.lang.String category) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -298,7 +301,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -347,7 +350,7 @@ public Commitment setDescription(java.lang.String description) { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * Output only. [Output Only] Commitment end time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getEndTimestamp() { @@ -355,7 +358,7 @@ public java.lang.String getEndTimestamp() { } /** - * [Output Only] Commitment end time inRFC3339 text format. + * 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) { @@ -379,7 +382,8 @@ public Commitment setExistingReservations(java.util.List exist } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -387,7 +391,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -396,7 +401,7 @@ public Commitment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * 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() { @@ -404,7 +409,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#commitment for commitments. + * 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) { @@ -499,7 +504,8 @@ public Commitment setPlan(java.lang.String plan) { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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() { @@ -507,7 +513,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the commitment and committed resources are located. + * 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) { @@ -545,7 +552,7 @@ public Commitment setReservations(java.util.List reservations) { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @return value or {@code null} for none */ public CommitmentResourceStatus getResourceStatus() { @@ -553,7 +560,7 @@ public CommitmentResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Commitment resource. + * Output only. [Output Only] Status information for Commitment resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { @@ -581,7 +588,7 @@ public Commitment setResources(java.util.List resources) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -589,7 +596,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -617,7 +624,7 @@ public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitmen } /** - * [Output Only] Commitment start time inRFC3339 text format. + * Output only. [Output Only] Commitment start time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getStartTimestamp() { @@ -625,7 +632,7 @@ public java.lang.String getStartTimestamp() { } /** - * [Output Only] Commitment start time inRFC3339 text format. + * 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) { @@ -634,9 +641,9 @@ public Commitment setStartTimestamp(java.lang.String startTimestamp) { } /** - * [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. + * 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() { @@ -644,9 +651,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -655,7 +662,7 @@ public Commitment setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -663,7 +670,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { @@ -681,10 +688,11 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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() { @@ -701,10 +709,11 @@ public java.lang.String getType() { * 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, - * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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. + * GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, + * STORAGE_OPTIMIZED_Z3. 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/CommitmentAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java index ebea0717115..f2e7e93ec6f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -44,8 +44,8 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of - * commitments. + * 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 @@ -62,14 +62,14 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public CommitmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CommitmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java index 888c1afdb74..1b42ceec78e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -50,7 +50,8 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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 @@ -67,7 +68,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public CommitmentList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. + * 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) { @@ -155,7 +158,7 @@ public CommitmentList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java index f044c949ee2..f2ef349ba88 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -30,18 +30,18 @@ public final class CommitmentResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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() { @@ -49,9 +49,9 @@ public java.lang.String getCustomTermEligibilityEndTimestamp() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java index 91e7eed3e7d..54846cd5537 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java @@ -34,7 +34,7 @@ public final class CompositeHealthCheck extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,15 +78,16 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener private java.util.List healthSources; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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 @@ -104,30 +105,30 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -135,7 +136,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,7 +267,8 @@ public CompositeHealthCheck setHealthSources(java.util.List he } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -274,7 +276,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -283,8 +286,8 @@ public CompositeHealthCheck setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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() { @@ -292,8 +295,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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) { @@ -327,9 +330,9 @@ public CompositeHealthCheck setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -337,9 +340,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -348,7 +351,7 @@ public CompositeHealthCheck setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -356,7 +359,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -365,7 +368,7 @@ public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -373,7 +376,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java index 82598e5f984..88a96d851a4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java @@ -44,7 +44,7 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public CompositeHealthCheckAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CompositeHealthCheckAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java index c811ce5d44d..d0904ef3566 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java @@ -50,8 +50,8 @@ public final class CompositeHealthCheckList extends com.google.api.client.json.G } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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 @@ -116,8 +116,8 @@ public CompositeHealthCheckList setItems(java.util.List it } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health - * checks. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java index 46323370db3..02b1ed22200 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -33,7 +33,7 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +47,16 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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 @@ -73,14 +74,14 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -88,7 +89,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -114,8 +115,8 @@ public CrossSiteNetwork setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -123,8 +124,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -133,7 +134,8 @@ public CrossSiteNetwork setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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() { @@ -141,7 +143,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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) { @@ -175,7 +178,7 @@ public CrossSiteNetwork setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -183,7 +186,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java index 110bd4bdc2d..24e29d0450f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -56,7 +56,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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 @@ -80,7 +81,8 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public CrossSiteNetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. + * 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) { @@ -200,7 +204,8 @@ public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public CrossSiteNetworkList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java index c032f57408a..4e9055fce8e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java @@ -72,14 +72,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private DiskAsyncReplication asyncPrimaryDisk; /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,7 +141,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -156,7 +157,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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 @@ -183,14 +184,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * 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] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,11 +220,11 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String locationHint; /** - * [Output Only] The field indicates if the disk is created from a locked source image. Attachment - * of a disk created from a locked source image will cause the following operations to become - * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk - * detachment. And the disk can only be deleted when the instance is deleted - Creation of - * images or snapshots - Disk cloning + * Output only. [Output Only] The field indicates if the disk is created from a locked source + * image. Attachment of a disk created from a locked source image will cause the following + * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other + * instance - Disk detachment. And the disk can only be deleted when the instance is deleted + * - Creation of images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -296,9 +297,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long provisionedThroughput; /** - * [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. + * 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 @@ -320,7 +321,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -334,14 +335,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -360,16 +361,16 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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 @@ -389,10 +390,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceDisk; /** - * [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. + * 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 @@ -434,10 +435,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [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. + * 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 @@ -455,8 +456,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstantSnapshot; /** - * [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 + * 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. @@ -484,10 +485,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [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. + * 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 @@ -505,9 +506,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceStorageObject; /** - * [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. + * 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 @@ -541,18 +542,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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}. */ @@ -560,8 +550,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List users; /** - * [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. + * 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 @@ -631,7 +621,7 @@ public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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() { @@ -639,7 +629,7 @@ public java.util.Map getAsyncSecondaryDisks() } /** - * [Output Only] A list of disks this disk is asynchronously replicated to. + * 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) { @@ -648,7 +638,7 @@ public Disk setAsyncSecondaryDisks(java.util.Map guestOsFeatures) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -798,7 +789,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -826,7 +818,7 @@ public Disk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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() { @@ -834,7 +826,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#disk for disks. + * 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) { @@ -929,7 +921,7 @@ public Disk setLabels(java.util.Map labels) { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * Output only. [Output Only] Last attach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastAttachTimestamp() { @@ -937,7 +929,7 @@ public java.lang.String getLastAttachTimestamp() { } /** - * [Output Only] Last attach timestamp inRFC3339 text format. + * 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) { @@ -946,7 +938,7 @@ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * Output only. [Output Only] Last detach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastDetachTimestamp() { @@ -954,7 +946,7 @@ public java.lang.String getLastDetachTimestamp() { } /** - * [Output Only] Last detach timestamp inRFC3339 text format. + * 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) { @@ -1016,11 +1008,11 @@ public Disk setLocationHint(java.lang.String locationHint) { } /** - * [Output Only] The field indicates if the disk is created from a locked source image. Attachment - * of a disk created from a locked source image will cause the following operations to become - * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk - * detachment. And the disk can only be deleted when the instance is deleted - Creation of - * images or snapshots - Disk cloning + * Output only. [Output Only] The field indicates if the disk is created from a locked source + * image. Attachment of a disk created from a locked source image will cause the following + * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other + * instance - Disk detachment. And the disk can only be deleted when the instance is deleted + * - Creation of images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1034,11 +1026,11 @@ public java.lang.Boolean getLocked() { } /** - * [Output Only] The field indicates if the disk is created from a locked source image. Attachment - * of a disk created from a locked source image will cause the following operations to become - * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk - * detachment. And the disk can only be deleted when the instance is deleted - Creation of - * images or snapshots - Disk cloning + * Output only. [Output Only] The field indicates if the disk is created from a locked source + * image. Attachment of a disk created from a locked source image will cause the following + * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other + * instance - Disk detachment. And the disk can only be deleted when the instance is deleted + * - Creation of images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1194,9 +1186,9 @@ public Disk setProvisionedThroughput(java.lang.Long provisionedThroughput) { } /** - * [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. + * 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() { @@ -1204,9 +1196,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1251,7 +1243,7 @@ public Disk setResourcePolicies(java.util.List resourcePolicie } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @return value or {@code null} for none */ public DiskResourceStatus getResourceStatus() { @@ -1259,7 +1251,7 @@ public DiskResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the disk resource. + * Output only. [Output Only] Status information for the disk resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Disk setResourceStatus(DiskResourceStatus resourceStatus) { @@ -1285,7 +1277,7 @@ public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1293,7 +1285,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1302,7 +1294,7 @@ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1310,7 +1302,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -1346,8 +1338,8 @@ public Disk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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() { @@ -1355,8 +1347,8 @@ public java.lang.String getSourceConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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) { @@ -1365,8 +1357,8 @@ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGr } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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() { @@ -1374,8 +1366,8 @@ public java.lang.String getSourceConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was created using - * a consistency group. + * 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) { @@ -1413,10 +1405,10 @@ public Disk setSourceDisk(java.lang.String sourceDisk) { } /** - * [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. + * 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() { @@ -1424,10 +1416,10 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1512,10 +1504,10 @@ public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncrypt } /** - * [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. + * 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() { @@ -1523,10 +1515,10 @@ public java.lang.String getSourceImageId() { } /** - * [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. + * 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) { @@ -1560,8 +1552,8 @@ public Disk setSourceInstantSnapshot(java.lang.String sourceInstantSnapshot) { } /** - * [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 + * 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. @@ -1572,8 +1564,8 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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 + * 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. @@ -1627,10 +1619,10 @@ public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotE } /** - * [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. + * 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() { @@ -1638,10 +1630,10 @@ public java.lang.String getSourceSnapshotId() { } /** - * [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. + * 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) { @@ -1675,9 +1667,9 @@ public Disk setSourceStorageObject(java.lang.String sourceStorageObject) { } /** - * [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. + * 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() { @@ -1685,9 +1677,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1759,32 +1751,7 @@ public Disk setType(java.lang.String type) { } /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @param userLicenses userLicenses or {@code null} for none - */ - public Disk setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - - /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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 */ @@ -1793,7 +1760,7 @@ public java.util.List getUsers() { } /** - * [Output Only] Links to the users of the disk (attached instances) in + * 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 */ @@ -1803,8 +1770,8 @@ public Disk setUsers(java.util.List users) { } /** - * [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. + * 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() { @@ -1812,8 +1779,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java index b61dce2084d..a396284404a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -44,8 +44,8 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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 @@ -62,14 +62,14 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public DiskAggregatedList setItems(java.util.Map items) } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated lists of - * persistent disks. + * 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) { @@ -159,7 +159,7 @@ public DiskAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +167,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +176,7 @@ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java index c8fb4fbcba9..e31cddc0dd0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -30,16 +30,16 @@ public final class DiskAsyncReplication extends com.google.api.client.json.GenericJson { /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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 @@ -56,19 +56,19 @@ public final class DiskAsyncReplication extends com.google.api.client.json.Gener private java.lang.String disk; /** - * [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. + * 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] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getConsistencyGroupPolicy() { } /** - * [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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) { @@ -86,8 +86,8 @@ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consisten } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getConsistencyGroupPolicyId() { } /** - * [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a - * member of a group. + * 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) { @@ -128,11 +128,11 @@ public DiskAsyncReplication setDisk(java.lang.String disk) { } /** - * [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. + * 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() { @@ -140,11 +140,11 @@ public java.lang.String getDiskId() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java index 340802d6056..af6eab69258 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -50,7 +50,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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 @@ -67,7 +67,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskList for lists of disks. + * 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) { @@ -155,7 +155,7 @@ public DiskList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java index 1ffac25638f..ca12f2eb573 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -30,18 +30,22 @@ public final class DiskParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java index 9f59a1aaff3..c5420ed501b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -79,7 +79,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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 @@ -209,7 +209,7 @@ public DiskType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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() { @@ -217,7 +217,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#diskType for disk types. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java index c1ded43bc49..cf1cb69068d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public DiskTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java index 514356f0f16..c14af4a2a50 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -50,7 +50,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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 @@ -67,7 +67,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public DiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * 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) { @@ -155,7 +155,7 @@ public DiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java index b9ce02ac6f5..5559090d792 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -38,7 +38,11 @@ public final class DistributionPolicy extends com.google.api.client.json.Generic private java.lang.String targetShape; /** - * Zones where the regional managed instance group will create and manage its instances. + * 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 @@ -64,7 +68,11 @@ public DistributionPolicy setTargetShape(java.lang.String targetShape) { } /** - * Zones where the regional managed instance group will create and manage its instances. + * 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() { @@ -72,7 +80,11 @@ public java.util.List getZones() { } /** - * Zones where the regional managed instance group will create and manage its instances. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java index b29773cfbb2..5e63c8f113a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -50,8 +50,8 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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 @@ -68,7 +68,7 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public ExchangedPeeringRoutesList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering - * routes lists. + * 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) { @@ -158,7 +158,7 @@ public ExchangedPeeringRoutesList setNextPageToken(java.lang.String nextPageToke } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java index 8e6b9b4a0b1..268e207e284 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -40,7 +40,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +54,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -72,7 +73,8 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.util.List interfaces; /** - * [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. + * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for + * externalVpnGateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,6 +112,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic @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}. @@ -118,14 +128,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String redundancyType; /** - * [Output Only] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -133,7 +143,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -159,7 +169,8 @@ public ExternalVpnGateway setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -167,7 +178,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -201,7 +213,8 @@ public ExternalVpnGateway setInterfaces(java.util.List items) } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @return value or {@code null} for none */ @@ -146,7 +146,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @param kind kind or {@code null} for none */ @@ -179,7 +179,7 @@ public ExternalVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -187,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Firewall.java index 7a9db9c8f4f..9f5ad347f61 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -47,7 +47,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,14 +109,15 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableLogging; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#firewall for firewall rules. + * 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 @@ -264,7 +265,7 @@ public Firewall setAllowed(java.util.List allowed) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -272,7 +273,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { @@ -397,7 +398,8 @@ public Firewall setEnableLogging(java.lang.Boolean enableLogging) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -405,7 +407,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -414,7 +417,7 @@ public Firewall setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * 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() { @@ -422,7 +425,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java index 96b60b0b731..c80b819385c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -50,7 +50,8 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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 @@ -67,7 +68,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public FirewallList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. + * 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) { @@ -155,7 +158,7 @@ public FirewallList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java index 609dcacbde5..3f0fd7877bd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class FirewallPoliciesListAssociationsResponse extends com.google.a private java.util.List associations; /** - * [Output Only] Type of firewallPolicy associations. + * Output only. [Output Only] Type of firewallPolicy associations. * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. * The value may be {@code null}. */ @@ -62,7 +62,7 @@ public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,8 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,16 +108,22 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.util.List packetMirroringRules; /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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; /** - * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or - * SYSTEM if created by managed services like GKE. + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -132,17 +139,17 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String policyType; /** - * [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. + * 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] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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 @@ -165,7 +172,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -202,7 +209,7 @@ public FirewallPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -210,7 +217,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -353,7 +360,8 @@ public FirewallPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -361,7 +369,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies + * 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) { @@ -406,8 +415,8 @@ public FirewallPolicy setPacketMirroringRules(java.util.List } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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() { @@ -415,8 +424,8 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the firewall policy. This field is not applicable to network - * firewall policies. + * 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) { @@ -425,8 +434,14 @@ public FirewallPolicy setParent(java.lang.String parent) { } /** - * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or - * SYSTEM if created by managed services like GKE. + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. * @return value or {@code null} for none */ public java.lang.String getPolicySource() { @@ -434,8 +449,14 @@ public java.lang.String getPolicySource() { } /** - * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or - * SYSTEM if created by managed services like GKE. + * Indicates the source of this Firewall Policy. This field is optional on creation and defaults + * to USER_DEFINED. + * + * The USER_DEFINED value indicates a regular firewall policy. + * + * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This + * SYSTEM value is reserved for internal services and cannot be set by users during policy + * creation. Policies with a SYSTEM source cannot be modified or deleted by users. * @param policySource policySource or {@code null} for none */ public FirewallPolicy setPolicySource(java.lang.String policySource) { @@ -465,9 +486,9 @@ public FirewallPolicy setPolicyType(java.lang.String policyType) { } /** - * [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. + * 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() { @@ -475,9 +496,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -486,8 +507,8 @@ public FirewallPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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() { @@ -495,8 +516,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed - * a set number of tuples. + * 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) { @@ -543,7 +564,7 @@ public FirewallPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -551,7 +572,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index ed43590239d..da4f0aa51e9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -45,7 +45,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String displayName; /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.Integer priority; /** - * [Output Only] The short name of the firewall policy of the association. + * 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 @@ -113,7 +113,7 @@ public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { } /** - * [Output Only] The firewall policy ID of the association. + * Output only. [Output Only] The firewall policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicyId() { @@ -121,7 +121,7 @@ public java.lang.String getFirewallPolicyId() { } /** - * [Output Only] The firewall policy ID of the association. + * 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) { @@ -172,7 +172,7 @@ public FirewallPolicyAssociation setPriority(java.lang.Integer priority) { } /** - * [Output Only] The short name of the firewall policy of the association. + * 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() { @@ -180,7 +180,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy of the association. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java index 5f6cb2a7687..5ced755c298 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -50,7 +50,8 @@ public final class FirewallPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public FirewallPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof + * FirewallPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java index c5c7032c624..6d2b0ebd702 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -72,8 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.Boolean enableLogging; /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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 @@ -104,7 +104,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.String ruleName; /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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 @@ -274,8 +274,8 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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() { @@ -283,8 +283,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall rules - * andcompute#packetMirroringRule for packet mirroring rules. + * 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) { @@ -350,7 +350,7 @@ public FirewallPolicyRule setRuleName(java.lang.String ruleName) { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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() { @@ -358,7 +358,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single firewall policy rule. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java index 8903a438792..47b0274ddc1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -53,6 +53,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @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 scope of the traffic destination. * The value may be {@code null}. @@ -115,6 +123,14 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @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 scope of the traffic source. * The value may be {@code null}. @@ -218,6 +234,25 @@ public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List 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 scope of the traffic source. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java index b8b606b7f46..3aa52411ce1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -37,8 +37,8 @@ public final class FirewallPolicyRuleSecureTag extends com.google.api.client.jso private java.lang.String name; /** - * [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. + * 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 @@ -62,8 +62,8 @@ public FirewallPolicyRuleSecureTag setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java index 96e626ed323..d244d6d7f04 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -30,7 +30,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson { /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * @@ -58,7 +59,8 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson private java.lang.Integer percent; /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * @@ -72,7 +74,8 @@ public java.lang.Integer getCalculated() { } /** - * [Output Only] Absolute value of VM instances calculated based on the specific mode. + * Output only. [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 * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java index d28846f8d69..36f13e72ddc 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java @@ -17,8 +17,7 @@ package com.google.api.services.compute.model; /** - * A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start - * time, (2) a flexible end time, (3) a flexible duration. + * 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index aed27864563..81a6ded2da2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -123,19 +123,6 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.Boolean allowPscGlobalAccess; - /** - * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to - * inject packets into the consumer's network. If set to true, the target service attachment must - * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC - * forwarding rules should not use this field. - * - * This field was never released to any customers and is deprecated and will be removed in the - * future. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean allowPscPacketInjection; - /** * Identifies the backend service to which the forwarding rule sends traffic. Required for * internal and external passthrough Network Load Balancers; must be omitted for all other load @@ -146,17 +133,17 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String backendService; /** - * [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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -253,7 +240,8 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean isMirroringCollector; /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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 @@ -426,9 +414,9 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String pscConnectionStatus; /** - * [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. + * 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 @@ -442,7 +430,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -703,35 +691,6 @@ public ForwardingRule setAllowPscGlobalAccess(java.lang.Boolean allowPscGlobalAc return this; } - /** - * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to - * inject packets into the consumer's network. If set to true, the target service attachment must - * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC - * forwarding rules should not use this field. - * - * This field was never released to any customers and is deprecated and will be removed in the - * future. - * @return value or {@code null} for none - */ - public java.lang.Boolean getAllowPscPacketInjection() { - return allowPscPacketInjection; - } - - /** - * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to - * inject packets into the consumer's network. If set to true, the target service attachment must - * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC - * forwarding rules should not use this field. - * - * This field was never released to any customers and is deprecated and will be removed in the - * future. - * @param allowPscPacketInjection allowPscPacketInjection or {@code null} for none - */ - public ForwardingRule setAllowPscPacketInjection(java.lang.Boolean allowPscPacketInjection) { - this.allowPscPacketInjection = allowPscPacketInjection; - return this; - } - /** * Identifies the backend service to which the forwarding rule sends traffic. Required for * internal and external passthrough Network Load Balancers; must be omitted for all other load @@ -754,10 +713,10 @@ public ForwardingRule setBackendService(java.lang.String backendService) { } /** - * [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. + * 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() { @@ -765,10 +724,10 @@ public java.lang.String getBaseForwardingRule() { } /** - * [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. + * 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) { @@ -777,7 +736,7 @@ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -785,7 +744,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1036,7 +995,8 @@ public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringColle } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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() { @@ -1044,7 +1004,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. + * 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) { @@ -1461,9 +1422,9 @@ public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatu } /** - * [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. + * 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() { @@ -1471,9 +1432,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -1499,7 +1460,7 @@ public ForwardingRule setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -1507,7 +1468,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java index b3edbe7c261..01fcda7261e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -44,8 +44,8 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of - * forwarding rules. + * 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 @@ -62,14 +62,14 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ForwardingRuleAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ForwardingRuleAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java index f54e7f24f8a..eadbc548ba5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -50,7 +50,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ForwardingRuleList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ForwardingRuleList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ForwardingRuleList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java index 12dc3ab2d6f..3600a30c335 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class FutureReservation extends com.google.api.client.json.GenericJson { + /** + * Advanced control for cluster management, applicable only to DENSE deployment type future + * reservations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationAdvancedDeploymentControl advancedDeploymentControl; + /** * Aggregate reservation details for the future reservation. * The value may be {@code null}. @@ -73,7 +81,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationCommitmentInfo commitmentInfo; /** - * [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 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 @@ -102,15 +117,16 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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 @@ -175,14 +191,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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 @@ -212,7 +228,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationSpecificSKUProperties specificSkuProperties; /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -226,12 +242,31 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationTimeWindow timeWindow; /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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; + /** + * Advanced control for cluster management, applicable only to DENSE deployment type future + * reservations. + * @return value or {@code null} for none + */ + public ReservationAdvancedDeploymentControl getAdvancedDeploymentControl() { + return advancedDeploymentControl; + } + + /** + * Advanced control for cluster management, applicable only to DENSE deployment type future + * reservations. + * @param advancedDeploymentControl advancedDeploymentControl or {@code null} for none + */ + public FutureReservation setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl advancedDeploymentControl) { + this.advancedDeploymentControl = advancedDeploymentControl; + return this; + } + /** * Aggregate reservation details for the future reservation. * @return value or {@code null} for none @@ -334,7 +369,23 @@ public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commi } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * @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() { @@ -342,7 +393,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. + * 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) { @@ -404,8 +456,8 @@ public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEm } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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() { @@ -413,8 +465,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this future reservation. The server defines this - * identifier. + * 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) { @@ -423,7 +475,8 @@ public FutureReservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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() { @@ -431,7 +484,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. + * 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) { @@ -577,7 +631,7 @@ public FutureReservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -585,7 +639,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -594,7 +648,7 @@ public FutureReservation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -602,7 +656,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -666,7 +720,7 @@ public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUPr } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @return value or {@code null} for none */ public FutureReservationStatus getStatus() { @@ -674,7 +728,7 @@ public FutureReservationStatus getStatus() { } /** - * [Output only] Status of the Future Reservation + * Output only. [Output only] Status of the Future Reservation * @param status status or {@code null} for none */ public FutureReservation setStatus(FutureReservationStatus status) { @@ -700,7 +754,7 @@ public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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() { @@ -708,7 +762,7 @@ public java.lang.String getZone() { } /** - * [Output Only] URL of the Zone where this future reservation resides. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java index 59fbc1a6f59..2595b4830d2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -30,38 +30,39 @@ public final class FutureReservationStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The current status of the requested amendment. + * 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; /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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] Represents the existing matching usage for the future reservation. + * 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; /** - * 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. + * 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] 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 + * 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}. */ @@ -69,17 +70,17 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusLastKnownGoodState lastKnownGoodState; /** - * 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. + * 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; /** - * Current state of this Future Reservation + * Output only. Current state of this Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +93,7 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusSpecificSKUProperties specificSkuProperties; /** - * [Output Only] The current status of the requested amendment. + * Output only. [Output Only] The current status of the requested amendment. * @return value or {@code null} for none */ public java.lang.String getAmendmentStatus() { @@ -100,7 +101,7 @@ public java.lang.String getAmendmentStatus() { } /** - * [Output Only] The current status of the requested amendment. + * 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) { @@ -109,7 +110,7 @@ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStat } /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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() { @@ -117,7 +118,7 @@ public java.util.List getAutoCreatedReservations() { } /** - * Fully qualified urls of the automatically created reservations at start_time. + * 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) { @@ -126,7 +127,7 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#futureReservationsAggregatedListResponse for - * future resevation aggregated list response. + * 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 @@ -68,14 +69,14 @@ public final class FutureReservationsAggregatedListResponse extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public FutureReservationsAggregatedListResponse setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java index 967fa4b6712..26c435a877b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -56,8 +56,8 @@ public final class FutureReservationsListResponse extends com.google.api.client. } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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 @@ -74,14 +74,14 @@ public final class FutureReservationsListResponse extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,8 +144,8 @@ public FutureReservationsListResponse setItems(java.util.List } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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() { @@ -153,8 +153,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of - * reservations + * 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) { @@ -186,7 +186,7 @@ public FutureReservationsListResponse setNextPageToken(java.lang.String nextPage } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +203,7 @@ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java new file mode 100644 index 00000000000..1e457d9c5ac --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.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 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 { + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map currentComponentVersions; + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map targetComponentVersions; + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @return value or {@code null} for none + */ + public java.util.Map getCurrentComponentVersions() { + return currentComponentVersions; + } + + /** + * SBOM versions currently applied to the resource. The key is the component name and the value is + * the version. + * @param currentComponentVersions currentComponentVersions or {@code null} for none + */ + public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { + this.currentComponentVersions = currentComponentVersions; + return this; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @return value or {@code null} for none + */ + public java.util.Map getTargetComponentVersions() { + return targetComponentVersions; + } + + /** + * SBOM versions scheduled for the next maintenance. The key is the component name and the value + * is the version. + * @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/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java index a571737cc93..b52d5081698 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,7 +52,8 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.Map extensionPolicies; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -67,7 +68,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.List instanceSelectors; /** - * [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for * globalVmExtensionPolicies. * The value may be {@code null}. */ @@ -104,36 +105,36 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private GlobalVmExtensionPolicyRolloutOperation rolloutOperation; /** - * [Output Only] The scoped resource status. It's only for tracking the purging status of the - * policy. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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] Update timestamp inRFC3339 text format. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,7 +142,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public GlobalVmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -186,7 +187,8 @@ public GlobalVmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public GlobalVmExtensionPolicyList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java index 6a4402d2d7f..84a7cc8f18f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java @@ -37,7 +37,7 @@ public final class GlobalVmExtensionPolicyRolloutOperation extends com.google.ap private GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput; /** - * [Output Only] The rollout status of the policy. + * Output only. [Output Only] The rollout status of the policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public GlobalVmExtensionPolicyRolloutOperation setRolloutInput(GlobalVmExtension } /** - * [Output Only] The rollout status of the policy. + * Output only. [Output Only] The rollout status of the policy. * @return value or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { @@ -69,7 +69,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { } /** - * [Output Only] The rollout status of the policy. + * Output only. [Output Only] The rollout status of the policy. * @param rolloutStatus rolloutStatus or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperation setRolloutStatus(GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java index b38f098b052..9a91e54bcec 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java @@ -30,12 +30,19 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { /** - * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a - * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the - * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the - * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If - * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the - * zonal policy was updated out of band by a zonal API, it's a conflict. + * 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 @@ -49,28 +56,41 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutInput extends c private java.lang.String name; /** - * Optional. Predefined rollout plan. + * 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 of the retry action. Only set it if this is a retry for an existing - * resource. This is for the user re-populate the resource without changes. An error will be - * returned if the retry_uuid is set but the resource get modified. + * 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. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a - * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the - * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the - * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If - * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the - * zonal policy was updated out of band by a zonal API, it's a conflict. + * 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() { @@ -78,12 +98,19 @@ public java.lang.String getConflictBehavior() { } /** - * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a - * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the - * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the - * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If - * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the - * zonal policy was updated out of band by a zonal API, it's a conflict. + * 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) { @@ -109,7 +136,9 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setName(java.lang.Str } /** - * Optional. Predefined rollout plan. + * 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() { @@ -117,7 +146,9 @@ public java.lang.String getPredefinedRolloutPlan() { } /** - * Optional. Predefined rollout plan. + * 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) { @@ -126,9 +157,13 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutP } /** - * Optional. The UUID of the retry action. Only set it if this is a retry for an existing - * resource. This is for the user re-populate the resource without changes. An error will be - * returned if the retry_uuid is set but the resource get modified. + * 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() { @@ -136,9 +171,13 @@ public java.lang.String getRetryUuid() { } /** - * Optional. The UUID of the retry action. Only set it if this is a retry for an existing - * resource. This is for the user re-populate the resource without changes. An error will be - * returned if the retry_uuid is set but the resource get modified. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java index a2f7a1ab433..4b905fd66b1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java @@ -30,24 +30,24 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] The last completed rollout resource. This field will not be populated until the - * first rollout is completed. + * 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] The current rollouts for the latest version of the resource. There should be only - * one current rollout, but for scalability, we make it repeated. + * 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() { @@ -55,8 +55,8 @@ public java.util.List currentRollouts) { @@ -65,8 +65,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setCurrentRollouts(j } /** - * [Output Only] The last completed rollout resource. This field will not be populated until the - * first rollout is completed. + * 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() { @@ -74,8 +74,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata getPr } /** - * [Output Only] The last completed rollout resource. This field will not be populated until the - * first rollout is completed. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java index 9f532f3b012..52e24e59562 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java @@ -30,28 +30,56 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { /** - * [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * 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] The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * 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] The overall state of the rollout. + * 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] The name of the rollout. Ex. projects//locations/global/rollouts/. + * 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() { @@ -59,7 +87,7 @@ public java.lang.String getRollout() { } /** - * [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * 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) { @@ -68,7 +96,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * [Output Only] The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * 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() { @@ -76,7 +105,8 @@ public java.lang.String getRolloutPlan() { } /** - * [Output Only] The name of the rollout plan. Ex. projects//locations/global/rolloutPlans/. + * 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) { @@ -85,7 +115,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * [Output Only] The overall state of the rollout. + * Output only. [Output Only] The overall state of the rollout. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -93,7 +123,7 @@ public java.lang.String getState() { } /** - * [Output Only] The overall state of the rollout. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java index d17716bd84f..03028ade01e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -30,7 +30,8 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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 @@ -45,14 +46,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String queryPath; /** - * [Output Only] The value of the requested queried path. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +67,15 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String variableKey; /** - * [Output Only] The value found for the requested key. + * 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] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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() { @@ -81,7 +83,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. + * 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) { @@ -109,7 +112,7 @@ public GuestAttributes setQueryPath(java.lang.String queryPath) { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @return value or {@code null} for none */ public GuestAttributesValue getQueryValue() { @@ -117,7 +120,7 @@ public GuestAttributesValue getQueryValue() { } /** - * [Output Only] The value of the requested queried path. + * Output only. [Output Only] The value of the requested queried path. * @param queryValue queryValue or {@code null} for none */ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { @@ -126,7 +129,7 @@ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -160,7 +163,7 @@ public GuestAttributes setVariableKey(java.lang.String variableKey) { } /** - * [Output Only] The value found for the requested key. + * Output only. [Output Only] The value found for the requested key. * @return value or {@code null} for none */ public java.lang.String getVariableValue() { @@ -168,7 +171,7 @@ public java.lang.String getVariableValue() { } /** - * [Output Only] The value found for the requested key. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java index 9576c103227..5854e52ebe9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java @@ -34,7 +34,7 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,15 +72,16 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge private java.lang.Long healthyPercentThreshold; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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 @@ -121,30 +122,30 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge private java.lang.String policyType; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -152,7 +153,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -268,7 +269,8 @@ public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthy } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -276,7 +278,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -285,8 +288,8 @@ public HealthAggregationPolicy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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() { @@ -294,8 +297,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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) { @@ -381,9 +384,9 @@ public HealthAggregationPolicy setPolicyType(java.lang.String policyType) { } /** - * [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. + * 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() { @@ -391,9 +394,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -402,7 +405,7 @@ public HealthAggregationPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -410,7 +413,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -419,7 +422,7 @@ public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -427,7 +430,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java index f4afe8045ce..ef8315f5b60 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java @@ -50,7 +50,7 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,14 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public HealthAggregationPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthAggregationPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java index effd9cc356e..bf5d73570e9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java @@ -50,8 +50,8 @@ public final class HealthAggregationPolicyList extends com.google.api.client.jso } /** - * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health - * aggregation policies. + * 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 @@ -116,8 +116,8 @@ public HealthAggregationPolicyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java index cd690ba7201..a04d25735c2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -30,7 +30,7 @@ public final class HealthCheckService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,14 +99,16 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.lang.String healthStatusAggregationStrategy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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 @@ -143,23 +145,23 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.util.List notificationEndpoints; /** - * [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. + * 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] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -167,7 +169,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -351,7 +353,8 @@ public HealthCheckService setHealthStatusAggregationStrategy(java.lang.String he } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -359,7 +362,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -368,7 +372,8 @@ public HealthCheckService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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() { @@ -376,7 +381,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. + * 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) { @@ -454,9 +460,9 @@ public HealthCheckService setNotificationEndpoints(java.util.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 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/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java index e77f8500ff9..e80bc5dfb36 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -30,14 +30,14 @@ public final class HealthCheckServicesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,25 +50,25 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -99,7 +99,7 @@ public HealthCheckServicesList setId(java.lang.String id) { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -107,7 +107,7 @@ public java.util.List getItems() { } /** - * A list of HealthCheckService resources. + * Output only. A list of HealthCheckService resources. * @param items items or {@code null} for none */ public HealthCheckServicesList setItems(java.util.List items) { @@ -116,8 +116,8 @@ public HealthCheckServicesList setItems(java.util.List items } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of - * HealthCheckServices. + * 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) { @@ -135,10 +135,10 @@ public HealthCheckServicesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java new file mode 100644 index 00000000000..84c685f8110 --- /dev/null +++ b/clients/google-api-services-compute/beta/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/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java index 18d8d8076ef..65b6d6c9236 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthChecksAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthChecksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java index ee2c30bd156..e645a8cd5d1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java @@ -33,7 +33,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +66,15 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.lang.String healthAggregationPolicy; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#healthSource for health sources. + * 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 @@ -91,23 +92,23 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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 with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -133,7 +134,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.util.List sources; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,7 +142,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { @@ -247,7 +248,8 @@ public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregatio } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -255,7 +257,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -264,7 +267,7 @@ public HealthSource setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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() { @@ -272,7 +275,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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) { @@ -306,9 +309,9 @@ public HealthSource setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -316,9 +319,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -327,7 +330,7 @@ public HealthSource setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -335,7 +338,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -344,7 +347,7 @@ public HealthSource setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -352,7 +355,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java index 9f69f1113b0..1ec07ab4b13 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthSourceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthSourceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java index f2077b0a56e..6bb05406796 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java @@ -50,7 +50,7 @@ public final class HealthSourceList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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 @@ -115,7 +115,7 @@ public HealthSourceList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java index cb4c89b509a..f7f6e7a324b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -117,7 +117,7 @@ public final class HttpHeaderMatch extends com.google.api.client.json.GenericJso * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -316,7 +316,7 @@ public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -334,7 +334,7 @@ public java.lang.String getRegexMatch() { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java index 8b653628100..438550bb2f3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -80,7 +80,8 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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 @@ -242,7 +243,8 @@ public HttpHealthCheck setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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() { @@ -250,7 +252,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java index 1df376c1629..42f2fddf7a6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -50,7 +50,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HttpHealthCheckList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java index 5d4f2e2caf8..3393e1b57b1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -64,7 +64,7 @@ public final class HttpQueryParameterMatch extends com.google.api.client.json.Ge * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -156,7 +156,7 @@ public java.lang.String getRegexMatch() { * 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 orINTERNAL_MANAGED. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java index 406373c5fe0..29ceb250d4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class HttpRouteAction extends com.google.api.client.json.GenericJson { + /** + * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer + * schemes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private 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. @@ -133,6 +141,25 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.List weightedBackendServices; + /** + * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer + * schemes. + * @return value or {@code null} for none + */ + public CachePolicy getCachePolicy() { + return cachePolicy; + } + + /** + * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer + * schemes. + * @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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java index 27d237f9ccf..cd8eebf2f5c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -96,14 +96,18 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic private java.util.List metadataFilters; /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * 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: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - 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 @@ -115,8 +119,10 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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 @@ -146,7 +152,7 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * 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 orINTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -283,14 +289,18 @@ public HttpRouteRuleMatch setMetadataFilters(java.util.List meta } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * If specified, this field defines a path template pattern that must match the :path header after + * the query string is removed. * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * 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: * - * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * - 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() { @@ -298,14 +308,18 @@ public java.lang.String getPathTemplateMatch() { } /** - * If specified, the route is a pattern match expression that must match the :path header once the - * query string is removed. + * 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: * - * A pattern match allows you to match - The value must be between 1 and 1024 - * characters - The pattern must start with a leading slash ("/") - There may be no - * more than 5 operators in pattern + * - 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 ofprefix_match, full_path_match,regex_match or path_template_match must be set. + * 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) { @@ -319,8 +333,10 @@ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatc * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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() { @@ -333,8 +349,10 @@ public java.lang.String getPrefixMatch() { * * The value must be from 1 to 1024 characters. * - * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. - * specified. + * 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) { @@ -373,7 +391,7 @@ public HttpRouteRuleMatch setQueryParameterMatches(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public HttpsHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpsHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java index 9e6b80f7cb4..927b3ca744a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java @@ -46,14 +46,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long archiveSizeBytes; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +74,8 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long diskSizeGb; /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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 @@ -110,7 +110,8 @@ public final class Image extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -133,7 +134,7 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey imageEncryptionKey; /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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 @@ -244,14 +245,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -286,9 +287,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceDiskEncryptionKey; /** - * [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. + * 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 @@ -316,9 +317,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceImageEncryptionKey; /** - * [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. + * 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 @@ -346,9 +347,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceSnapshotEncryptionKey; /** - * [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. + * 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 @@ -362,9 +363,9 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.String sourceType; /** - * [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. + * 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 @@ -377,17 +378,6 @@ public final class Image extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List storageLocations; - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - /** * The architecture of the image. Valid values are ARM64 or X86_64. * @return value or {@code null} for none @@ -423,7 +413,7 @@ public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -431,7 +421,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Image setCreationTimestamp(java.lang.String creationTimestamp) { @@ -440,7 +430,7 @@ public Image setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -448,7 +438,7 @@ public DeprecationStatus getDeprecated() { } /** - * The deprecation status associated with this image. + * Output only. The deprecation status associated with this image. * @param deprecated deprecated or {@code null} for none */ public Image setDeprecated(DeprecationStatus deprecated) { @@ -491,8 +481,8 @@ public Image setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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() { @@ -500,8 +490,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this image is created from a confidential compute mode disk. [Output Only]: This field - * is not set by user, but from source disk. + * 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) { @@ -560,7 +550,8 @@ public Image setGuestOsFeatures(java.util.List guestOsFeatures) } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -568,7 +559,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -612,7 +604,7 @@ public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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() { @@ -620,7 +612,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#image for images. + * 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) { @@ -907,7 +899,7 @@ public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -915,7 +907,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -924,7 +916,7 @@ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -932,7 +924,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -1006,9 +998,9 @@ public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncrypti } /** - * [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. + * 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() { @@ -1016,9 +1008,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1075,9 +1067,9 @@ public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryp } /** - * [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. + * 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() { @@ -1085,9 +1077,9 @@ public java.lang.String getSourceImageId() { } /** - * [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. + * 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) { @@ -1144,9 +1136,9 @@ public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshot } /** - * [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. + * 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() { @@ -1154,9 +1146,9 @@ public java.lang.String getSourceSnapshotId() { } /** - * [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. + * 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) { @@ -1182,9 +1174,9 @@ public Image setSourceType(java.lang.String sourceType) { } /** - * [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. + * 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() { @@ -1192,9 +1184,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1219,31 +1211,6 @@ public Image setStorageLocations(java.util.List storageLocatio return this; } - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can - * be modified after the disk is created. This includes a list of URLs to the license resource. - * For example, to provide a debian license: - * - * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch - * @param userLicenses userLicenses or {@code null} for none - */ - public Image setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public Image set(String fieldName, Object value) { return (Image) super.set(fieldName, value); @@ -1277,10 +1244,13 @@ public static final class RawDisk extends com.google.api.client.json.GenericJson private java.lang.String sha1Checksum; /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 @@ -1331,10 +1301,13 @@ public RawDisk setSha1Checksum(java.lang.String sha1Checksum) { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 @@ -1346,10 +1319,13 @@ public java.lang.String getSource() { } /** - * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are - * valid formats for the URL: - + * 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 + * 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java index a61438b1d5b..5dadcb0dd06 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -50,7 +50,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ImageList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ImageList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java index 8d4975d6e7a..e15c382b178 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -30,18 +30,22 @@ public final class ImageParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the image. Tag keys and values have the same definition as - * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the - * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java index dc12051d629..5266ff4645c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java @@ -55,14 +55,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ConfidentialInstanceConfig confidentialInstanceConfig; /** - * [Output Only] The CPU platform used by this instance. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,7 +146,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String hostname; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -175,7 +176,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String keyRevocationActionType; /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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 @@ -201,21 +202,21 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Last start timestamp inRFC3339 text format. + * 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] Last stop timestamp inRFC3339 text format. + * 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] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -330,22 +331,22 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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] Reserved for future use. + * 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] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -359,7 +360,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Scheduling scheduling; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -389,14 +390,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy; /** - * Deprecating, please use shielded_instance_config. + * Output only. Deprecating, please use shielded_instance_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private ShieldedVmConfig shieldedVmConfig; /** - * Deprecating, please use shielded_instance_integrity_policy. + * Output only. Deprecating, please use shielded_instance_integrity_policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -417,24 +418,24 @@ public final class Instance extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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] 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. + * 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] An optional, human-readable explanation of the 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 @@ -451,8 +452,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Tags tags; /** - * [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 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 @@ -512,7 +519,7 @@ public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confide } /** - * [Output Only] The CPU platform used by this instance. + * Output only. [Output Only] The CPU platform used by this instance. * @return value or {@code null} for none */ public java.lang.String getCpuPlatform() { @@ -520,7 +527,7 @@ public java.lang.String getCpuPlatform() { } /** - * [Output Only] The CPU platform used by this instance. + * 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) { @@ -529,7 +536,7 @@ public Instance setCpuPlatform(java.lang.String cpuPlatform) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -537,7 +544,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Instance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -738,7 +745,8 @@ public Instance setHostname(java.lang.String hostname) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -746,7 +754,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -805,7 +814,7 @@ public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionT } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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() { @@ -813,7 +822,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#instance for instances. + * 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) { @@ -904,7 +913,7 @@ public Instance setLabels(java.util.Map labels) { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * Output only. [Output Only] Last start timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStartTimestamp() { @@ -912,7 +921,7 @@ public java.lang.String getLastStartTimestamp() { } /** - * [Output Only] Last start timestamp inRFC3339 text format. + * 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) { @@ -921,7 +930,7 @@ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * Output only. [Output Only] Last stop timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStopTimestamp() { @@ -929,7 +938,7 @@ public java.lang.String getLastStopTimestamp() { } /** - * [Output Only] Last stop timestamp inRFC3339 text format. + * 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) { @@ -938,7 +947,7 @@ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastSuspendedTimestamp() { @@ -946,7 +955,7 @@ public java.lang.String getLastSuspendedTimestamp() { } /** - * [Output Only] Last suspended timestamp inRFC3339 text format. + * 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) { @@ -1207,8 +1216,8 @@ public Instance setResourcePolicies(java.util.List resourcePol } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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() { @@ -1216,8 +1225,8 @@ public ResourceStatus getResourceStatus() { } /** - * [Output Only] Specifies values set for instance attributes as compared to the values requested - * by user in the corresponding input only field. + * 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) { @@ -1226,7 +1235,7 @@ public Instance setResourceStatus(ResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -1234,7 +1243,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -1243,7 +1252,7 @@ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1251,7 +1260,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1277,7 +1286,7 @@ public Instance setScheduling(Scheduling scheduling) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1285,7 +1294,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -1349,7 +1358,7 @@ public Instance setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPoli } /** - * Deprecating, please use shielded_instance_config. + * Output only. Deprecating, please use shielded_instance_config. * @return value or {@code null} for none */ public ShieldedVmConfig getShieldedVmConfig() { @@ -1357,7 +1366,7 @@ public ShieldedVmConfig getShieldedVmConfig() { } /** - * Deprecating, please use shielded_instance_config. + * Output only. Deprecating, please use shielded_instance_config. * @param shieldedVmConfig shieldedVmConfig or {@code null} for none */ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { @@ -1366,7 +1375,7 @@ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { } /** - * Deprecating, please use shielded_instance_integrity_policy. + * Output only. Deprecating, please use shielded_instance_integrity_policy. * @return value or {@code null} for none */ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { @@ -1374,7 +1383,7 @@ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { } /** - * Deprecating, please use shielded_instance_integrity_policy. + * Output only. Deprecating, please use shielded_instance_integrity_policy. * @param shieldedVmIntegrityPolicy shieldedVmIntegrityPolicy or {@code null} for none */ public Instance setShieldedVmIntegrityPolicy(ShieldedVmIntegrityPolicy shieldedVmIntegrityPolicy) { @@ -1417,8 +1426,8 @@ public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceM } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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() { @@ -1426,8 +1435,8 @@ public java.lang.Boolean getStartRestricted() { } /** - * [Output Only] Whether a VM has been restricted for start because Compute Engine has detected - * suspicious activity. + * 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) { @@ -1436,9 +1445,9 @@ public Instance setStartRestricted(java.lang.Boolean startRestricted) { } /** - * [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. + * 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() { @@ -1446,9 +1455,9 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { @@ -1457,7 +1466,7 @@ public Instance setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -1465,7 +1474,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { @@ -1497,8 +1506,23 @@ public Instance setTags(Tags tags) { } /** - * [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 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() { @@ -1506,8 +1530,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java index 8ace3b07ae4..e9839b02983 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -44,8 +44,8 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for aggregated lists of - * Instance resources. + * 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 @@ -62,14 +62,14 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java index a460f6a71e8..0802df8ace4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -30,21 +30,21 @@ public final class InstanceConsumptionData extends com.google.api.client.json.GenericJson { /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceConsumptionInfo consumptionInfo; /** - * Server-defined URL for the instance. + * 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; /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumptionInfo() { @@ -52,7 +52,7 @@ public InstanceConsumptionInfo getConsumptionInfo() { } /** - * Resources consumed by the instance. + * Output only. Resources consumed by the instance. * @param consumptionInfo consumptionInfo or {@code null} for none */ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { @@ -61,7 +61,7 @@ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consum } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -69,7 +69,7 @@ public java.lang.String getInstance() { } /** - * Server-defined URL for the instance. + * Output only. Server-defined URL for the instance. * @param instance instance or {@code null} for none */ public InstanceConsumptionData setInstance(java.lang.String instance) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java index 9964f0ec7b8..045c36fe60e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -30,35 +30,35 @@ public final class InstanceConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * The number of virtual CPUs that are available to the instance. + * 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; /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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; /** - * The amount of physical memory available to the instance, defined in MiB. + * 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; /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * 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; /** - * The number of virtual CPUs that are available to the instance. + * 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() { @@ -66,7 +66,7 @@ public java.lang.Integer getGuestCpus() { } /** - * The number of virtual CPUs that are available to the instance. + * 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) { @@ -75,7 +75,7 @@ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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() { @@ -83,7 +83,7 @@ public java.lang.Integer getLocalSsdGb() { } /** - * The amount of local SSD storage available to the instance, defined in GiB. + * 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) { @@ -92,7 +92,7 @@ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * The amount of physical memory available to the instance, defined in MiB. + * 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() { @@ -100,7 +100,7 @@ public java.lang.Integer getMemoryMb() { } /** - * The amount of physical memory available to the instance, defined in MiB. + * 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) { @@ -109,7 +109,7 @@ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * Output only. The minimal guaranteed number of virtual CPUs that are reserved. * @return value or {@code null} for none */ public java.lang.Integer getMinNodeCpus() { @@ -117,7 +117,7 @@ public java.lang.Integer getMinNodeCpus() { } /** - * The minimal guaranteed number of virtual CPUs that are reserved. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java new file mode 100644 index 00000000000..11f9142150d --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java @@ -0,0 +1,134 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code 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; + + /** + * 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; + } + + /** + * 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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java index b4c883b718f..1347250c1d6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -43,7 +43,8 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * 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 @@ -57,22 +58,24 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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] A unique identifier for this instance group, generated by the server. + * 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] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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 @@ -108,45 +111,47 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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] The URL for this instance group. The server generates this URL. + * 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] The total number of instances in the instance group. + * 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] 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). + * 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] The URL of thezone where the instance group is located (for zonal resources). + * 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] The creation timestamp for this instance group inRFC3339 text format. + * 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() { @@ -154,7 +159,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance group inRFC3339 text format. + * 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) { @@ -180,8 +186,8 @@ public InstanceGroup setDescription(java.lang.String description) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 */ @@ -190,8 +196,8 @@ public java.lang.String getFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 * @@ -202,8 +208,8 @@ public byte[] decodeFingerprint() { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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 */ @@ -213,8 +219,8 @@ public InstanceGroup setFingerprint(java.lang.String fingerprint) { } /** - * [Output Only] The fingerprint of the named ports. The system uses this fingerprint to detect - * conflicts when multiple users change the named ports concurrently. + * 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() * *

      @@ -229,7 +235,8 @@ public InstanceGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * 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() { @@ -237,7 +244,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance group, generated by the server. + * 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) { @@ -246,7 +254,8 @@ public InstanceGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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() { @@ -254,7 +263,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. + * 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) { @@ -330,8 +340,8 @@ public InstanceGroup setNetwork(java.lang.String network) { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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() { @@ -339,8 +349,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the instance group is located (for regional - * resources). + * 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) { @@ -349,7 +359,7 @@ public InstanceGroup setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * 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() { @@ -357,7 +367,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance group. The server generates this URL. + * 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) { @@ -366,7 +376,7 @@ public InstanceGroup setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The total number of instances in the instance group. + * 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() { @@ -374,7 +384,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of instances in the instance group. + * 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) { @@ -383,9 +393,9 @@ public InstanceGroup setSize(java.lang.Integer size) { } /** - * [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). + * 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() { @@ -393,9 +403,9 @@ public java.lang.String getSubnetwork() { } /** - * [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). + * 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) { @@ -404,7 +414,8 @@ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * 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() { @@ -412,7 +423,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the instance group is located (for zonal resources). + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java index 5d0836701f5..e5e5e311a40 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -30,7 +30,7 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -44,46 +44,46 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupAggregatedList for - * aggregated lists of instance groups. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [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. + * 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() { @@ -91,7 +91,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -117,8 +117,8 @@ public InstanceGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +193,7 @@ public InstanceGroupAggregatedList setUnreachables(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupList for instance group - * lists. + * 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) { @@ -135,10 +135,10 @@ public InstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -175,7 +175,7 @@ public InstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index a9f838e3f4a..e8b941d85fe 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -66,15 +66,16 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String baseInstanceName; /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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. + * Output only. [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 @@ -115,7 +116,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String fingerprint; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 @@ -130,7 +132,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -154,8 +156,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String instanceTemplate; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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 @@ -200,8 +202,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerParams params; /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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 @@ -215,21 +217,22 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerResourcePolicies resourcePolicies; /** - * [Output Only] Reserved for future use. + * 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] Reserved for future use. + * 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] The URL for this managed instance group. The server defines this URL. + * Output only. [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 @@ -260,7 +263,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private StatefulPolicy statefulPolicy; /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,8 +334,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List versions; /** - * [Output Only] The URL of azone where the managed instance group is located (for zonal - * resources). + * Output only. [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 @@ -406,7 +409,8 @@ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceNam } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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() { @@ -414,7 +418,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this managed instance group inRFC3339 text format. + * Output only. [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) { @@ -423,8 +428,8 @@ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimest } /** - * [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. + * Output only. [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() { @@ -432,8 +437,8 @@ public InstanceGroupManagerActionsSummary getCurrentActions() { } /** - * [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. + * Output only. [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) { @@ -558,7 +563,8 @@ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -566,7 +572,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 InstanceGroupManager setId(java.math.BigInteger id) { @@ -594,7 +601,7 @@ public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerIns } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { @@ -602,7 +609,7 @@ public java.lang.String getInstanceGroup() { } /** - * [Output Only] The URL of the Instance Group resource. + * Output only. [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { @@ -651,8 +658,8 @@ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplat } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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() { @@ -660,8 +667,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed - * instance groups. + * Output only. [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) { @@ -761,8 +768,8 @@ public InstanceGroupManager setParams(InstanceGroupManagerParams params) { } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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() { @@ -770,8 +777,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the managed instance group resides (for regional - * resources). + * 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) { @@ -797,7 +804,7 @@ public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePoli } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -805,7 +812,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -814,7 +821,7 @@ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -822,7 +829,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -831,7 +838,8 @@ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [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() { @@ -839,7 +847,8 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this managed instance group. The server defines this URL. + * Output only. [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) { @@ -905,7 +914,7 @@ public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerStatus getStatus() { @@ -913,7 +922,7 @@ public InstanceGroupManagerStatus getStatus() { } /** - * [Output Only] The status of this managed instance group. + * Output only. [Output Only] The status of this managed instance group. * @param status status or {@code null} for none */ public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { @@ -1071,8 +1080,8 @@ public InstanceGroupManager setVersions(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerAggregatedList for - * an aggregated list of managed instance groups. + * Output only. [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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [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. + * 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() { @@ -91,7 +92,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -117,8 +118,9 @@ public InstanceGroupManagerAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +196,7 @@ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List it } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups. + * Output only. [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) { @@ -135,10 +135,10 @@ public InstanceGroupManagerList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) { @@ -158,7 +158,7 @@ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupManagerList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupManagerList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java index 60357bf4cba..b449f96a27d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java @@ -30,18 +30,20 @@ public final class InstanceGroupManagerParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys - * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, - * seeManage tags for resources. + * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value + * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and + * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. For more information, seeManage tags for resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys - * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, - * seeManage tags for resources. + * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value + * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and + * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. For more information, seeManage tags for resources. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -49,9 +51,10 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys - * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, - * seeManage tags for resources. + * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value + * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and + * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + * `{tag_value_short_name}`. For more information, seeManage tags for resources. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceGroupManagerParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java index bf1e21efcc1..f5a21112cc1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -41,7 +41,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer count; /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +56,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String description; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 @@ -71,8 +73,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.util.List instances; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for - * resize requests. + * Output only. [Output Only] The resource type, which is + * alwayscompute#instanceGroupManagerResizeRequest for resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,8 +88,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String name; /** - * [Output Only] The URL of aregion where the resize request is located. Populated only for - * regional resize requests. + * Output only. [Output Only] The URL of aregion where the resize request is located. Populated + * only for regional resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,36 +112,36 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer resizeBy; /** - * [Output Only] The URL for this resize request. The server defines this URL. + * Output only. [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. + * 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] Current state of the request. + * Output only. [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. + * Output only. [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 azone where the resize request is located. Populated only for zonal - * resize requests. + * Output only. [Output Only] The URL of azone where the resize request is located. Populated only + * for zonal resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -165,7 +167,8 @@ public InstanceGroupManagerResizeRequest setCount(java.lang.Integer count) { } /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text + * format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -173,7 +176,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this resize request inRFC3339 text format. + * Output only. [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) { @@ -199,7 +203,8 @@ public InstanceGroupManagerResizeRequest setDescription(java.lang.String descrip } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -207,7 +212,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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 InstanceGroupManagerResizeRequest setId(java.math.BigInteger id) { @@ -237,8 +243,8 @@ public InstanceGroupManagerResizeRequest setInstances(java.util.List appliedAcceleratorTopologies; + + /** + * Output only. [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. + * Output only. [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] 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. + * Output only. [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. [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. + * Output only. [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. + * Output only. [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. + * Output only. [Output only] Status of all-instances configuration on the group. * @return value or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { @@ -85,7 +101,7 @@ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { } /** - * [Output only] Status of all-instances configuration on the group. + * Output only. [Output only] Status of all-instances configuration on the group. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { @@ -94,7 +110,26 @@ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStat } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [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. [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. [Output Only] The URL of theAutoscaler that targets this instance group manager. * @return value or {@code null} for none */ public java.lang.String getAutoscaler() { @@ -102,7 +137,7 @@ public java.lang.String getAutoscaler() { } /** - * [Output Only] The URL of theAutoscaler that targets this instance group manager. + * Output only. [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) { @@ -111,7 +146,7 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * [Output Only] The status of bulk instance operation. + * Output only. [Output Only] The status of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { @@ -119,7 +154,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation( } /** - * [Output Only] The status of bulk instance operation. + * Output only. [Output Only] The status of bulk instance operation. * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none */ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { @@ -128,11 +163,30 @@ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerS } /** - * [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. + * Output only. [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. [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. [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() { @@ -140,11 +194,11 @@ public java.lang.Boolean getIsStable() { } /** - * [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. + * Output only. [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) { @@ -153,7 +207,7 @@ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStateful getStateful() { @@ -161,7 +215,7 @@ public InstanceGroupManagerStatusStateful getStateful() { } /** - * [Output Only] Stateful status of the given Instance Group Manager. + * Output only. [Output Only] Stateful status of the given Instance Group Manager. * @param stateful stateful or {@code null} for none */ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { @@ -170,8 +224,8 @@ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [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() { @@ -179,8 +233,8 @@ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { } /** - * [Output Only] A status of consistency of Instances' versions with their target version - * specified by version field on Instance Group Manager. + * Output only. [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java new file mode 100644 index 00000000000..26fa1838eb2 --- /dev/null +++ b/clients/google-api-services-compute/beta/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. [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. [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. [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. [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. [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. [Output Only] The state of the accelerator topology. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. [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. [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. [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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java new file mode 100644 index 00000000000..4846161c97c --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java @@ -0,0 +1,370 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by 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. [Output Only] Encountered errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Output only. [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. [Output Only] Encountered errors. + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Output only. [Output Only] Encountered errors. + * @param error error or {@code null} for none + */ + public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { + this.error = error; + return this; + } + + /** + * Output only. [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. [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. [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(); + } + + /** + * Model definition for + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors. + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * ErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java index e0e76dce377..3d76a225843 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -30,24 +30,24 @@ 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. + * Output only. [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. + * Output only. [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. + * Output only. [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() { @@ -55,8 +55,8 @@ public java.lang.String getCurrentRevision() { } /** - * [Output Only] Current all-instances configuration revision. This value is in RFC3339 text - * format. + * Output only. [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) { @@ -65,8 +65,8 @@ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [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() { @@ -74,8 +74,8 @@ public java.lang.Boolean getEffective() { } /** - * [Output Only] A bit indicating whether this configuration has been applied to all managed - * instances in the group. + * Output only. [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java index 989340fa3df..365ad1b4b88 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -31,21 +31,21 @@ public final class InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { /** - * [Output Only] Informs whether bulk instance operation is in progress. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Informs whether bulk instance operation is in progress. * @return value or {@code null} for none */ public java.lang.Boolean getInProgress() { @@ -53,7 +53,7 @@ public java.lang.Boolean getInProgress() { } /** - * [Output Only] Informs whether bulk instance operation is in progress. + * Output only. [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) { @@ -62,7 +62,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.B } /** - * [Output Only] Information from the last progress check of bulk instance operation. + * Output only. [Output Only] Information from the last progress check of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { @@ -70,7 +70,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastP } /** - * [Output Only] Information from the last progress check of bulk instance operation. + * Output only. [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java index ecbde4accc4..a807d179547 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -30,22 +30,22 @@ public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { /** - * [Output Only] Errors encountered during bulk instance operation. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Errors encountered during bulk instance operation. * @return value or {@code null} for none */ public Error getError() { @@ -53,7 +53,7 @@ public Error getError() { } /** - * [Output Only] Errors encountered during bulk instance operation. + * Output only. [Output Only] Errors encountered during bulk instance operation. * @param error error or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { @@ -62,8 +62,8 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError } /** - * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. + * Output only. [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() { @@ -71,8 +71,8 @@ public String getTimestamp() { } /** - * [Output Only] Timestamp of the last progress check of bulk instance operation. Timestamp is in - * RFC3339 text format. + * Output only. [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) { @@ -91,7 +91,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() } /** - * [Output Only] Errors encountered during bulk instance operation. + * Output only. [Output Only] Errors encountered during bulk instance operation. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java new file mode 100644 index 00000000000..b83decbf8bf --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.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; + +/** + * 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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java index 9206c3f3286..1c67ad04c5b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -30,40 +30,40 @@ 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. + * Output only. [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] 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. This field is deprecated in favor of has_stateful_config. + * Output only. [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. This field is deprecated in favor of has_stateful_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isStateful; /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [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. + * Output only. [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() { @@ -71,11 +71,11 @@ public java.lang.Boolean getHasStatefulConfig() { } /** - * [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. + * Output only. [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) { @@ -84,11 +84,11 @@ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean } /** - * [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. This field is deprecated in favor of has_stateful_config. + * Output only. [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. This field is deprecated in favor of has_stateful_config. * @return value or {@code null} for none */ public java.lang.Boolean getIsStateful() { @@ -96,11 +96,11 @@ public java.lang.Boolean getIsStateful() { } /** - * [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. This field is deprecated in favor of has_stateful_config. + * Output only. [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. This field is deprecated in favor of has_stateful_config. * @param isStateful isStateful or {@code null} for none */ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStateful) { @@ -109,7 +109,7 @@ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStat } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { @@ -117,7 +117,7 @@ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfig } /** - * [Output Only] Status of per-instance configurations on the instances. + * Output only. [Output Only] Status of per-instance configurations on the instances. * @param perInstanceConfigs perInstanceConfigs or {@code null} for none */ public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java index cd4fcc7b0cd..0a11f261bbd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -30,16 +30,18 @@ public final class InstanceGroupManagerStatusStatefulPerInstanceConfigs extends com.google.api.client.json.GenericJson { /** - * 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. + * 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; /** - * 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. + * 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() { @@ -47,8 +49,9 @@ public java.lang.Boolean getAllEffective() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java index daa48f86a9a..47ab8a1d668 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -30,18 +30,18 @@ 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. + * Output only. [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. + * Output only. [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() { @@ -49,9 +49,9 @@ public java.lang.Boolean getIsReached() { } /** - * [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. + * Output only. [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java new file mode 100644 index 00000000000..b71abcd8eef --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.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; + +/** + * InstanceGroupManagers.ConfigureAcceleratorTopologies + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InstanceGroupManagersConfigureAcceleratorTopologiesRequest extends com.google.api.client.json.GenericJson { + + /** + * Map of accelerator topologies that should have their state changed to the specified value. The + * key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyActions; + + /** + * Map of accelerator topologies that should have their state changed to the specified + * configuration. The map key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyConfigurations; + + /** + * Map of accelerator topologies that should have their state changed to the specified value. The + * key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyActions() { + return acceleratorTopologyActions; + } + + /** + * Map of accelerator topologies that should have their state changed to the specified value. The + * key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @param acceleratorTopologyActions acceleratorTopologyActions or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyActions(java.util.Map acceleratorTopologyActions) { + this.acceleratorTopologyActions = acceleratorTopologyActions; + return this; + } + + /** + * Map of accelerator topologies that should have their state changed to the specified + * configuration. The map key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyConfigurations() { + return acceleratorTopologyConfigurations; + } + + /** + * Map of accelerator topologies that should have their state changed to the specified + * configuration. The map key is the hashed topology locus id. It can be obtained from the + * GetAvailableAcceleratorTopologies rpc. + * @param acceleratorTopologyConfigurations acceleratorTopologyConfigurations or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyConfigurations(java.util.Map acceleratorTopologyConfigurations) { + this.acceleratorTopologyConfigurations = acceleratorTopologyConfigurations; + return this; + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest set(String fieldName, Object value) { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequest clone() { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java new file mode 100644 index 00000000000..b3540f47759 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.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; + +/** + * Configuration for a single accelerator 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 InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is + * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be + * provided on deactivating as well. This identifier is cleared on successful deform of a sub- + * slice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalId; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * @param action action or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is + * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be + * provided on deactivating as well. This identifier is cleared on successful deform of a sub- + * slice. + * @return value or {@code null} for none + */ + public java.lang.String getExternalId() { + return externalId; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is + * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be + * provided on deactivating as well. This identifier is cleared on successful deform of a sub- + * slice. + * @param externalId externalId or {@code null} for none + */ + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setExternalId(java.lang.String externalId) { + this.externalId = externalId; + return this; + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration set(String fieldName, Object value) { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration clone() { + return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java index aabd38483fb..35e3248c950 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java @@ -36,6 +36,13 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.util.Map acceleratorTopologiesInfo; + /** + * URL to MMIG this MIG belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String multiMig; + /** * The accelerator topology information returned per id of the topology location. * @return value or {@code null} for none @@ -53,6 +60,23 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setAcceler return this; } + /** + * URL to MMIG this MIG belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getMultiMig() { + return multiMig; + } + + /** + * URL to MMIG this MIG belongs to. + * @param multiMig multiMig or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setMultiMig(java.lang.String multiMig) { + this.multiMig = multiMig; + return this; + } + @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java index 5a2343fe5ef..62245dff30e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java @@ -43,6 +43,26 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.lang.String acceleratorTopologyHealth; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instancesHealth; + + /** + * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level + * topology + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + /** * Topology in the format of: "16x16", "4x4x4", etc. * @return value or {@code null} for none @@ -75,6 +95,55 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerator return this; } + /** + * @return value or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState getAcceleratorTopologyState() { + return acceleratorTopologyState; + } + + /** + * @param acceleratorTopologyState acceleratorTopologyState or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setAcceleratorTopologyState(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState) { + this.acceleratorTopologyState = acceleratorTopologyState; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getInstancesHealth() { + return instancesHealth; + } + + /** + * @param instancesHealth instancesHealth or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setInstancesHealth(java.lang.String instancesHealth) { + this.instancesHealth = instancesHealth; + return this; + } + + /** + * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level + * topology + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level + * topology + * @param parent parent or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java new file mode 100644 index 00000000000..7920e4ab13b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.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; + +/** + * Specifies the 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 InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentState; + + /** + * Reason why the topology state change failed + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Error error; + + /** + * Timestamp when the last error happened + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String errorTimestamp; + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating + * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared + * on successful deform of a sub-slice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String externalId; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getCurrentState() { + return currentState; + } + + /** + * @param currentState currentState or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setCurrentState(java.lang.String currentState) { + this.currentState = currentState; + return this; + } + + /** + * Reason why the topology state change failed + * @return value or {@code null} for none + */ + public Error getError() { + return error; + } + + /** + * Reason why the topology state change failed + * @param error error or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setError(Error error) { + this.error = error; + return this; + } + + /** + * Timestamp when the last error happened + * @return value or {@code null} for none + */ + public String getErrorTimestamp() { + return errorTimestamp; + } + + /** + * Timestamp when the last error happened + * @param errorTimestamp errorTimestamp or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setErrorTimestamp(String errorTimestamp) { + this.errorTimestamp = errorTimestamp; + return this; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating + * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared + * on successful deform of a sub-slice. + * @return value or {@code null} for none + */ + public java.lang.String getExternalId() { + return externalId; + } + + /** + * Identifier of the accelerator topology assigned externally to differentiate who is the owner of + * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating + * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared + * on successful deform of a sub-slice. + * @param externalId externalId or {@code null} for none + */ + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setExternalId(java.lang.String externalId) { + this.externalId = externalId; + return this; + } + + @Override + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState set(String fieldName, Object value) { + return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.set(fieldName, value); + } + + @Override + public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState clone() { + return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.clone(); + } + + /** + * Reason why the topology state change failed + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop + * ologyStateErrorErrors. + */ + 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(); + } + + /** + * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop + * ologyStateErrorErrorsErrorDetails. + */ + public static final class ErrorDetails extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ErrorInfo errorInfo; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Help help; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LocalizedMessage localizedMessage; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QuotaExceededInfo quotaInfo; + + /** + * @return value or {@code null} for none + */ + public ErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * @param errorInfo errorInfo or {@code null} for none + */ + public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * @return value or {@code null} for none + */ + public Help getHelp() { + return help; + } + + /** + * @param help help or {@code null} for none + */ + public ErrorDetails setHelp(Help help) { + this.help = help; + return this; + } + + /** + * @return value or {@code null} for none + */ + public LocalizedMessage getLocalizedMessage() { + return localizedMessage; + } + + /** + * @param localizedMessage localizedMessage or {@code null} for none + */ + public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { + this.localizedMessage = localizedMessage; + return this; + } + + /** + * @return value or {@code null} for none + */ + public QuotaExceededInfo getQuotaInfo() { + return quotaInfo; + } + + /** + * @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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java index 350007eb424..f00dea2d9f0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [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 thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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. + * Output only. [Output Only] The list of errors of the managed instance group. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -55,7 +55,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of errors of the managed instance group. + * Output only. [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListErrorsResponse setItems(java.util.List managedInstances; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 instances in the managed instance group. + * 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() { @@ -55,7 +55,7 @@ public java.util.List getManagedInstances() { } /** - * [Output Only] The list of instances in the managed instance group. + * 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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(jav } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -75,10 +75,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java index 6e5441c60d9..39f9310f8a1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -30,31 +30,31 @@ public final class InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { /** - * [Output Only] The list of PerInstanceConfig. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -62,7 +62,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { @@ -71,10 +71,10 @@ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List

      getInstanceGroupManagers() { @@ -61,8 +61,8 @@ public java.util.List getInstanceGroupManagers() { } /** - * [Output Only] The list of managed instance groups that are contained in the specified project - * and zone. + * Output only. [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) { @@ -71,8 +71,8 @@ public InstanceGroupManagersScopedList setInstanceGroupManagers(java.util.List items; /** - * [Output Only] The resource type, which is alwayscompute#instanceGroupsListInstances for the - * list of instances in the specified instance group. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -84,7 +85,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -110,8 +111,9 @@ public InstanceGroupsListInstances setItems(java.util.List getInstanceGroups() { @@ -59,7 +59,7 @@ public java.util.List getInstanceGroups() { } /** - * [Output Only] The list ofinstance groups that are contained in this scope. + * 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) { @@ -68,8 +68,8 @@ public InstanceGroupsScopedList setInstanceGroups(java.util.List } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * 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() { @@ -77,8 +77,8 @@ public Warning getWarning() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list - * is empty. + * 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) { @@ -97,8 +97,8 @@ public InstanceGroupsScopedList clone() { } /** - * [Output Only] An informational warning that replaces the list of instance groups when the list is - * empty. + * 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 { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java index e04d46dd714..52708ff7c7d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -50,7 +50,8 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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 @@ -67,7 +68,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InstanceList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. + * 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) { @@ -155,7 +158,7 @@ public InstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java index 77d1bf083d9..0a26dcf6469 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -44,8 +44,8 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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 @@ -62,7 +62,7 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,8 +110,8 @@ public InstanceListReferrers setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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() { @@ -119,8 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance - * referrers. + * 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) { @@ -152,7 +152,7 @@ public InstanceListReferrers setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -160,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index ffd6e4dfa37..7d14a73c218 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,29 +30,30 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Contents of the error. + * Output only. [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. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -60,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * [Output Only] Contents of the error. + * Output only. [Output Only] Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -69,8 +70,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * [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. + * Output only. [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() { @@ -78,8 +79,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * [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. + * Output only. [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) { @@ -88,7 +89,8 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [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() { @@ -96,7 +98,8 @@ public java.lang.String getTimestamp() { } /** - * [Output Only] The time that this error occurred. This value is in RFC3339 text format. + * Output only. [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index c0704e627c8..f92d0a732ed 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ 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: + * Output only. [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. + * Output only. [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. + * Output only. [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: + * Output only. [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() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * [Output Only] Action that managed instance group was executing on the instance when the error - * occurred. Possible values: + * Output only. [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) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [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() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been - * created. + * Output only. [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) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * [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. + * Output only. [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() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * [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. + * Output only. [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 73b93956f78..3006dd39ef3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * [Output Only] Error code. + * Output only. [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. + * Output only. [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. + * Output only. [Output Only] Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * [Output Only] Error code. + * Output only. [Output Only] Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * [Output Only] Error message. + * Output only. [Output Only] Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java index 95781dfac53..63c2e3a2f6b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -37,9 +37,11 @@ public final class InstanceParams extends com.google.api.client.json.GenericJson private Duration requestValidForDuration; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 @@ -63,9 +65,11 @@ public InstanceParams setRequestValidForDuration(Duration requestValidForDuratio } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -73,9 +77,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java index 509da325764..bcb9f5a3f27 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -189,9 +189,10 @@ public final class InstanceProperties extends com.google.api.client.json.Generic private ReservationAffinity reservationAffinity; /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -244,6 +245,12 @@ public final class InstanceProperties extends com.google.api.client.json.Generic @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. @@ -593,9 +600,10 @@ public InstanceProperties setReservationAffinity(ReservationAffinity reservation } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -603,9 +611,10 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the instance. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the + * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, + * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when + * empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { @@ -725,6 +734,21 @@ public InstanceProperties setTags(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); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java index 3fe5bc7a0bf..c8fde84cc91 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -45,7 +45,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private java.lang.String fingerprint; /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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 @@ -59,8 +60,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private InstanceSettingsMetadata metadata; /** - * [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. + * 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 @@ -136,7 +137,8 @@ public InstanceSettings encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. + * 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) { @@ -170,8 +173,8 @@ public InstanceSettings setMetadata(InstanceSettingsMetadata metadata) { } /** - * [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. + * 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() { @@ -179,8 +182,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java index 41d708caacc..560dee51139 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -37,7 +37,7 @@ public final class InstanceSettingsMetadata extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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 @@ -61,7 +61,7 @@ public InstanceSettingsMetadata setItems(java.util.Map } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java index 5dfcdd971a8..403b810a838 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -44,7 +44,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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 @@ -58,16 +59,16 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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 @@ -92,15 +93,15 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private InstanceProperties properties; /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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] The URL for this instance template. The server defines this URL. + * 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 @@ -124,7 +125,8 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private SourceInstanceParams sourceInstanceParams; /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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() { @@ -132,7 +134,8 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this instance template inRFC3339 text format. + * 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) { @@ -158,8 +161,8 @@ public InstanceTemplate setDescription(java.lang.String description) { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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() { @@ -167,8 +170,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this instance template. The server defines this - * identifier. + * 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) { @@ -177,8 +180,8 @@ public InstanceTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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() { @@ -186,8 +189,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance - * templates. + * 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) { @@ -238,8 +241,8 @@ public InstanceTemplate setProperties(InstanceProperties properties) { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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() { @@ -247,8 +250,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the instance template resides. Only applicable for - * regional resources. + * 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) { @@ -257,7 +260,7 @@ public InstanceTemplate setRegion(java.lang.String region) { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * 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() { @@ -265,7 +268,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this instance template. The server defines this URL. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java index a493fec52ef..df3fbf15617 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -44,7 +44,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public InstanceTemplateAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#instanceTemplatesListResponse for - * instance template lists. + * 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) { @@ -158,7 +158,7 @@ public InstanceTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java index c697b45db10..0337c8ee34c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -30,28 +30,28 @@ public final class InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { /** - * [Output Only] The URL of the instance. + * 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] The named ports that belong to this instance group. + * 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] The status of the instance. + * 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] The URL of the instance. + * Output only. [Output Only] The URL of the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -59,7 +59,7 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the 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) { @@ -68,7 +68,7 @@ public InstanceWithNamedPorts setInstance(java.lang.String instance) { } /** - * [Output Only] The named ports that belong to this instance group. + * 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() { @@ -76,7 +76,7 @@ public java.util.List getNamedPorts() { } /** - * [Output Only] The named ports that belong to this instance group. + * 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) { @@ -85,7 +85,7 @@ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -93,7 +93,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instance. + * Output only. [Output Only] The status of the instance. * @param status status or {@code null} for none */ public InstanceWithNamedPorts setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index d82f3df25a9..4ef7f976b66 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the instance. + * 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 @@ -58,7 +58,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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 @@ -80,14 +81,14 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * 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] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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}. */ @@ -95,8 +96,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy private java.lang.String type; /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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() { @@ -104,8 +105,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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) { @@ -114,7 +115,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayN } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -122,7 +123,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -131,7 +132,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(jav } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * 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() { @@ -139,7 +140,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the instance. + * 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) { @@ -148,7 +149,8 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMi } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -156,7 +158,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -186,7 +189,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(ja } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -194,7 +197,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * 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) { @@ -203,7 +206,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortNam } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ @@ -212,7 +215,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index 3d5173fb948..e9a6ca5f849 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,7 +30,8 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * The unique identifier for the security policy. This identifier is defined by the server. + * Output only. The unique identifier for the security policy. 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 @@ -44,7 +45,8 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPol private java.util.List rules; /** - * The unique identifier for the security policy. This identifier is defined by the server. + * Output only. The unique identifier for the security policy. This identifier is defined by the + * server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -52,7 +54,8 @@ public java.math.BigInteger getId() { } /** - * The unique identifier for the security policy. This identifier is defined by the server. + * Output only. The unique identifier for the security policy. This identifier is defined by the + * server. * @param id id or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java index b126103d93c..5bfec0fbc4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -32,14 +32,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,22 +54,23 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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 @@ -107,15 +109,24 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [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. + * 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] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,21 +140,21 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -164,32 +175,51 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String sourceDisk; /** - * [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. + * 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] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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] 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. + * 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] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -197,7 +227,8 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or X86_64. + * 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) { @@ -206,7 +237,7 @@ public InstantSnapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -214,7 +245,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -240,7 +271,7 @@ public InstantSnapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -248,7 +279,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * 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) { @@ -257,7 +288,8 @@ public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -265,7 +297,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -274,8 +307,8 @@ public InstantSnapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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() { @@ -283,8 +316,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot - * resources. + * 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) { @@ -406,8 +439,28 @@ public InstantSnapshot setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -415,8 +468,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -425,7 +479,7 @@ public InstantSnapshot setRegion(java.lang.String region) { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @return value or {@code null} for none */ public InstantSnapshotResourceStatus getResourceStatus() { @@ -433,7 +487,7 @@ public InstantSnapshotResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the instant snapshot resource. + * Output only. [Output Only] Status information for the instant snapshot resource. * @param resourceStatus resourceStatus or {@code null} for none */ public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { @@ -459,7 +513,7 @@ public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -467,7 +521,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -476,7 +530,7 @@ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -484,7 +538,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -493,7 +547,7 @@ public InstantSnapshot setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -501,7 +555,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -541,9 +595,9 @@ public InstantSnapshot setSourceDisk(java.lang.String sourceDisk) { } /** - * [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. + * 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() { @@ -551,9 +605,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -562,8 +616,50 @@ public InstantSnapshot setSourceDiskId(java.lang.String sourceDiskId) { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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() { @@ -571,8 +667,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, FAILED, - * orREADY. + * 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) { @@ -581,8 +677,8 @@ public InstantSnapshot setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -590,8 +686,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java index 142111e4ee5..a2dec556c4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -44,8 +44,8 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated - * lists of instantSnapshots. + * 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 @@ -62,14 +62,14 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstantSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstantSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java index da8ce7d29fa..455da93a46a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -50,7 +50,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public InstantSnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public InstantSnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public InstantSnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java index d7674b9f529..62e37b49163 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -70,14 +70,15 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.util.List availableFeatures; /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,46 +100,47 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] A list of outages expected for this Interconnect. + * 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] IP address configured on the Google side of the Interconnect link. This can be - * used only for ping tests. + * 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] Google reference ID to be used when raising support tickets with Google or - * otherwise to debug backend connectivity issues. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * 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] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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 @@ -156,7 +158,7 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String interconnectType; /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,9 +245,9 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String nocContactEmail; /** - * [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. + * 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 @@ -264,16 +266,16 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private InterconnectParams params; /** - * [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. + * 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] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -308,42 +310,41 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.Integer requestedLinkCount; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * 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 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. + * 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; /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String subzone; /** - * [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. + * 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 @@ -436,7 +437,8 @@ public Interconnect setAvailableFeatures(java.util.List availa } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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() { @@ -444,7 +446,8 @@ public java.util.List getCircuitInfos() { } /** - * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. + * 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) { @@ -453,7 +456,7 @@ public Interconnect setCircuitInfos(java.util.List circ } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -461,7 +464,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { @@ -506,7 +509,7 @@ public Interconnect setDescription(java.lang.String description) { } /** - * [Output Only] A list of outages expected for this Interconnect. + * Output only. [Output Only] A list of outages expected for this Interconnect. * @return value or {@code null} for none */ public java.util.List getExpectedOutages() { @@ -514,7 +517,7 @@ public java.util.List getExpectedOutages() { } /** - * [Output Only] A list of outages expected for this Interconnect. + * 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) { @@ -523,8 +526,8 @@ public Interconnect setExpectedOutages(java.util.List getInterconnectAttachments() { @@ -587,8 +592,8 @@ public java.util.List getInterconnectAttachments() { } /** - * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this - * Interconnect. + * 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) { @@ -597,8 +602,8 @@ public Interconnect setInterconnectAttachments(java.util.List } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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() { @@ -606,8 +611,8 @@ public java.util.List getInterconnectGroups() { } /** - * [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is arbitrary and - * items are unique. + * 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) { @@ -641,7 +646,7 @@ public Interconnect setInterconnectType(java.lang.String interconnectType) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -649,7 +654,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * 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) { @@ -882,9 +887,9 @@ public Interconnect setNocContactEmail(java.lang.String nocContactEmail) { } /** - * [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. + * 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 @@ -896,9 +901,9 @@ public java.lang.String getOperationalStatus() { } /** - * [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. + * 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 @@ -930,9 +935,9 @@ public Interconnect setParams(InterconnectParams params) { } /** - * [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. + * 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() { @@ -940,9 +945,9 @@ public java.lang.String getPeerIpAddress() { } /** - * [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. + * 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) { @@ -951,7 +956,7 @@ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * Output only. [Output Only] Number of links actually provisioned in this interconnect. * @return value or {@code null} for none */ public java.lang.Integer getProvisionedLinkCount() { @@ -959,7 +964,7 @@ public java.lang.Integer getProvisionedLinkCount() { } /** - * [Output Only] Number of links actually provisioned in this interconnect. + * 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) { @@ -1033,7 +1038,7 @@ public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1041,7 +1046,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1050,7 +1055,7 @@ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1058,7 +1063,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -1067,12 +1072,12 @@ public Interconnect setSelfLink(java.lang.String selfLink) { } /** - * [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. + * 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() { @@ -1080,12 +1085,12 @@ public java.lang.String getState() { } /** - * [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. + * 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) { @@ -1094,8 +1099,7 @@ public Interconnect setState(java.lang.String state) { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @return value or {@code null} for none */ public java.lang.String getSubzone() { @@ -1103,8 +1107,7 @@ public java.lang.String getSubzone() { } /** - * Specific subzone in the InterconnectLocation that represents where this connection is to be - * provisioned. + * To be deprecated. * @param subzone subzone or {@code null} for none */ public Interconnect setSubzone(java.lang.String subzone) { @@ -1113,8 +1116,8 @@ public Interconnect setSubzone(java.lang.String subzone) { } /** - * [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. + * 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() { @@ -1122,8 +1125,8 @@ public java.util.List getWireGroups() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 371d5d3e87b..049a541c269 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -41,7 +41,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.Boolean adminEnabled; /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,16 +119,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List candidateSubnets; /** - * [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * 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] IPv6 address + prefix length to be configured on Cloud Router Interface for this - * interconnect attachment. + * 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 @@ -142,31 +142,31 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String cloudRouterIpv6InterfaceId; /** - * [Output Only] Constraints for this attachment, if any. The attachment does not work if these - * constraints are not met. + * 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] Creation timestamp inRFC3339 text format. + * 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] IPv4 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * 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] IPv6 address + prefix length to be configured on the customer router subinterface - * for this interconnect attachment. + * 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 @@ -180,9 +180,9 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String customerRouterIpv6InterfaceId; /** - * [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. + * 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 @@ -224,15 +224,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String encryption; /** - * [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. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -262,8 +263,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List ipsecInternalAddresses; /** - * [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect - * attachments. + * 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 @@ -322,10 +323,10 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String name; /** - * [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. + * 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 @@ -366,25 +367,25 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private InterconnectAttachmentPartnerMetadata partnerMetadata; /** - * [Output Only] Information specific to an InterconnectAttachment. This property is populated if - * the interconnect that this is attached to is of type DEDICATED. + * 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] 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. + * 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] If the attachment is on a Cross-Cloud Interconnect connection, this field - * contains the interconnect's remote location service provider. Example values: "Amazon Web + * 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 @@ -404,14 +405,14 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String router; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -429,19 +430,19 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String stackType; /** - * [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. + * 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 @@ -500,7 +501,7 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. * @return value or {@code null} for none */ public java.lang.String getAttachmentGroup() { @@ -508,7 +509,7 @@ public java.lang.String getAttachmentGroup() { } /** - * [Output Only] URL of the AttachmentGroup that includes this Attachment. + * 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) { @@ -524,7 +525,7 @@ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGrou * 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 + * Gbit/s - BPS_100G: 100 Gbit/s - BPS_400G: 400 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -539,7 +540,7 @@ public java.lang.String getBandwidth() { * 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 + * 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) { @@ -680,8 +681,8 @@ public InterconnectAttachment setCandidateSubnets(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList for - * aggregated lists of interconnect attachments. + * 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 @@ -62,14 +62,14 @@ public final class InterconnectAttachmentAggregatedList extends com.google.api.c private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InterconnectAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java index e646f684b49..1988be83c63 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -30,8 +30,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.google.api.client.json.GenericJson { /** - * [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, + * 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 @@ -45,9 +45,10 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.lang.String bgpMd5; /** - * [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. + * 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. @@ -57,8 +58,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go private java.util.List bgpPeerAsnRanges; /** - * [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, + * 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 @@ -73,8 +74,8 @@ public java.lang.String getBgpMd5() { } /** - * [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, + * 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 @@ -90,9 +91,10 @@ public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String } /** - * [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. + * 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. @@ -103,9 +105,10 @@ public java.util.List metros; /** - * [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. + * 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] 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. + * 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] URLs of any particular Attachments to explain this blocker in more detail. + * 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() { @@ -94,7 +97,8 @@ public java.util.List getAttachments() { } /** - * [Output Only] URLs of any particular Attachments to explain this blocker in more detail. + * 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) { @@ -118,8 +122,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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() { @@ -127,8 +131,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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) { @@ -137,8 +141,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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() { @@ -146,8 +150,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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) { @@ -156,8 +160,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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 + * 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 */ @@ -166,8 +170,8 @@ public java.util.List getMetros() { } /** - * [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 + * 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 */ @@ -177,9 +181,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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. + * 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() { @@ -187,9 +191,9 @@ public java.util.List getRegions() { } /** - * [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. + * 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) { @@ -198,8 +202,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * [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. + * 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() { @@ -207,8 +212,9 @@ public java.util.List getZones() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java index f267df5464a..ac31099ab68 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -36,7 +36,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegion extends com private java.util.List metros; /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,7 @@ public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.Lis } /** - * [Output Only] The name of a region, like "us-central1". + * Output only. [Output Only] The name of a region, like "us-central1". * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -66,7 +66,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of a region, like "us-central1". + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java index bba3ca5148d..45ba8bbc924 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -36,8 +36,8 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetro extend private java.util.List facilities; /** - * [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. + * 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 @@ -59,8 +59,8 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java } /** - * [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. + * 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() { @@ -68,8 +68,8 @@ public java.lang.String getMetro() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java index 41cf84fc4f2..c0d019c94e5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -30,7 +30,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilit private java.util.List zones; /** - * [Output Only] The name of a facility, like "iad-1234". + * Output only. [Output Only] The name of a facility, like "iad-1234". * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -51,7 +51,7 @@ public java.lang.String getFacility() { } /** - * [Output Only] The name of a facility, like "iad-1234". + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java index aa732b0c6b9..51dea9c5bf9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -31,23 +31,23 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] The name of a zone, either "zone1" or "zone2". + * 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] 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. + * 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() { @@ -55,8 +55,8 @@ public java.util.List getAttachments() { } /** - * [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. + * 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) { @@ -65,7 +65,7 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAtt } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * 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() { @@ -73,7 +73,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of a zone, either "zone1" or "zone2". + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java index 79f57e9c00f..887526bd499 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectAttachmentGroupsListResponse extends com.google.a private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String sel } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java index f1ab8505df3..5789be05d78 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -42,7 +42,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupConfigured configured; /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupIntent intent; /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +92,7 @@ public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectA } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -100,7 +100,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -124,7 +124,7 @@ public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttac } /** - * The operational state of the group, including only active Attachments. + * Output only. The operational state of the group, including only active Attachments. * @return value or {@code null} for none */ public InterconnectAttachmentGroupConfigured getOperational() { @@ -132,7 +132,7 @@ public InterconnectAttachmentGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Attachments. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java index 6bf525bd03e..3122c881cc7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -30,39 +30,39 @@ public final class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus extends com.google.api.client.json.GenericJson { /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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; /** - * The URL of the Attachment being described. + * 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; /** - * 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. + * 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; /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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; /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether this Attachment is enabled. This becomes false when the customer drains their - * Attachment. + * 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) { @@ -80,7 +80,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEna } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @return value or {@code null} for none */ public java.lang.String getAttachment() { @@ -88,7 +88,7 @@ public java.lang.String getAttachment() { } /** - * The URL of the Attachment being described. + * Output only. The URL of the Attachment being described. * @param attachment attachment or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { @@ -97,9 +97,9 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachme } /** - * 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. + * 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() { @@ -107,9 +107,9 @@ public java.lang.String getIsActive() { } /** - * 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. + * 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) { @@ -118,7 +118,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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() { @@ -126,7 +126,7 @@ public java.lang.String getStatus() { } /** - * Whether this Attachment is active, and if so, whether BGP is up. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java index 136a013f418..d2a89e3a68e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -50,8 +50,8 @@ public final class InterconnectAttachmentList extends com.google.api.client.json } /** - * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of - * interconnect attachments. + * 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 @@ -68,7 +68,7 @@ public final class InterconnectAttachmentList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectAttachmentList setItems(java.util.List interconnects; /** - * [Output Only] Type of the resource. Always compute#InterconnectGroup + * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class InterconnectGroup extends com.google.api.client.json.GenericJ private InterconnectGroupPhysicalStructure physicalStructure; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -188,8 +188,8 @@ public InterconnectGroup setEtag(java.lang.String etag) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -197,8 +197,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -245,7 +245,7 @@ public InterconnectGroup setInterconnects(java.util.Map facilities; /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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] 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. + * 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] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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 @@ -100,8 +100,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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() { @@ -109,8 +109,8 @@ public java.lang.String getDocumentationLink() { } /** - * [Output Only] The url of Google Cloud public documentation explaining this requirement. This is - * set for every type of requirement. + * 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) { @@ -119,8 +119,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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() { @@ -128,8 +128,8 @@ public java.lang.String getExplanation() { } /** - * [Output Only] A human-readable explanation of this requirement and why it's not met. This is - * set for every type of requirement. + * 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) { @@ -138,7 +138,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * 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 */ @@ -147,7 +147,7 @@ public java.util.List getFacilities() { } /** - * [Output Only] Facilities used to explain this blocker in more detail. Like + * 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 */ @@ -157,7 +157,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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() { @@ -165,7 +165,7 @@ public java.util.List getInterconnects() { } /** - * [Output Only] Interconnects used to explain this blocker in more detail. + * 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) { @@ -174,9 +174,9 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [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. + * 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() { @@ -184,9 +184,9 @@ public java.util.List getMetros() { } /** - * [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. + * 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) { @@ -195,8 +195,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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() { @@ -204,8 +204,8 @@ public java.util.List getZones() { } /** - * [Output Only] Zones used to explain this blocker in more detail. Zone names are "zone1" and/or - * "zone2". + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java index 1c4b44ca7c0..39179adb193 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -36,8 +36,8 @@ public final class InterconnectGroupPhysicalStructureMetros extends com.google.a private java.util.List facilities; /** - * [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. + * 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 @@ -59,8 +59,8 @@ public InterconnectGroupPhysicalStructureMetros setFacilities(java.util.List zones; /** - * [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. + * 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() { @@ -53,8 +53,8 @@ public java.lang.String getFacility() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java index df961f862ac..a71726bdb33 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -30,24 +30,24 @@ public final class InterconnectGroupPhysicalStructureMetrosFacilitiesZones extends com.google.api.client.json.GenericJson { /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * 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] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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] URLs of Interconnects in this redundancy group in the given metro, facility, and - * 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() { @@ -55,8 +55,8 @@ public java.util.List getInterconnects() { } /** - * [Output Only] URLs of Interconnects in this redundancy group in the given metro, facility, and - * zone. + * 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) { @@ -65,8 +65,8 @@ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects( } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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() { @@ -74,8 +74,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone, either "zone1" or "zone2". This is the second component of - * the location of Interconnects in this facility. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java index 076722dc0ce..bf7e43b98dc 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -79,7 +79,8 @@ public final class InterconnectGroupsListResponse extends com.google.api.client. private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,8 @@ public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -205,7 +207,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java index 80d27d471e5..f042bf10e06 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -30,21 +30,21 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key private InterconnectGroupConfigured configured; /** - * Summarizes the status of the group. + * 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 intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,14 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.cl private java.util.List interconnectStatuses; /** - * The operational state of the group, including only active Interconnects. + * 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; /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupConfigured getConfigured() { @@ -72,7 +72,7 @@ public InterconnectGroupConfigured getConfigured() { } /** - * The configuration analysis, as returned by Get. + * Output only. The configuration analysis, as returned by Get. * @param configured configured or {@code null} for none */ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { @@ -81,7 +81,7 @@ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfig } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -89,7 +89,7 @@ public java.lang.String getGroupStatus() { } /** - * Summarizes the status of the group. + * Output only. Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -98,7 +98,7 @@ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String group } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupIntent getIntent() { @@ -106,7 +106,7 @@ public InterconnectGroupIntent getIntent() { } /** - * The intent of the resource, as returned by Get. + * Output only. The intent of the resource, as returned by Get. * @param intent intent or {@code null} for none */ public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { @@ -130,7 +130,7 @@ public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.Lis } /** - * The operational state of the group, including only active Interconnects. + * Output only. The operational state of the group, including only active Interconnects. * @return value or {@code null} for none */ public InterconnectGroupConfigured getOperational() { @@ -138,7 +138,7 @@ public InterconnectGroupConfigured getOperational() { } /** - * The operational state of the group, including only active Interconnects. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java index 49fd3a7746a..4dc45ceabc1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -30,35 +30,36 @@ public final class InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean adminEnabled; /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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; /** - * The URL of the Interconnect being described. + * 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; /** - * Whether this interconnect is participating in the redundant configuration. + * 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; /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -66,7 +67,7 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Whether the Interconnect is enabled. + * Output only. Whether the Interconnect is enabled. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -75,7 +76,8 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(jav } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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() { @@ -83,7 +85,8 @@ public InterconnectDiagnostics getDiagnostics() { } /** - * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. + * 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) { @@ -92,7 +95,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(Inte } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @return value or {@code null} for none */ public java.lang.String getInterconnect() { @@ -100,7 +103,7 @@ public java.lang.String getInterconnect() { } /** - * The URL of the Interconnect being described. + * Output only. The URL of the Interconnect being described. * @param interconnect interconnect or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { @@ -109,7 +112,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(jav } /** - * Whether this interconnect is participating in the redundant configuration. + * Output only. Whether this interconnect is participating in the redundant configuration. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -117,7 +120,7 @@ public java.lang.String getIsActive() { } /** - * Whether this interconnect is participating in the redundant configuration. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java index a1b7c05ded9..1e714fff188 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -50,7 +50,8 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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 @@ -67,7 +68,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public InterconnectList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. + * 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) { @@ -155,7 +158,7 @@ public InterconnectList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java index 0beb6df3604..879497c0276 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -33,8 +33,8 @@ public final class InterconnectLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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 @@ -83,7 +83,7 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String continent; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,75 +99,78 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.util.List crossSiteInterconnectInfos; /** - * [Output Only] An optional description of the resource. + * 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] The name of the provider for this facility (e.g., EQUINIX). + * 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] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#interconnectLocation for interconnect - * locations. + * 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] Name of the resource. + * 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] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * 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] Server-defined URL for the resource. + * 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] 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. + * 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 @@ -184,15 +187,15 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String status; /** - * [Output Only] Reserved for future use. + * 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] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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() { @@ -200,8 +203,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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) { @@ -309,7 +312,7 @@ public InterconnectLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -317,7 +320,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -347,7 +350,7 @@ public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List getRegionInfos() { @@ -479,8 +487,9 @@ public java.util.List getRegionInfos() { } /** - * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters - * pertaining to the relation between this InterconnectLocation and various Google Cloud regions. + * 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) { @@ -489,7 +498,7 @@ public InterconnectLocation setRegionInfos(java.util.List getSingleRegionProductionCriticalPeerLocations() { @@ -516,9 +525,9 @@ public java.util.List getSingleRegionProductionCriticalPeerLoc } /** - * [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. + * 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) { @@ -550,7 +559,7 @@ public InterconnectLocation setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -558,7 +567,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index d7e887fbb8a..c323d785c69 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -31,16 +31,18 @@ public final class InterconnectLocationCrossSiteInterconnectInfo extends com.google.api.client.json.GenericJson { /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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; /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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() { @@ -48,8 +50,9 @@ public java.lang.String getCity() { } /** - * The remote location for Cross-Site Interconnect wires. This specifies an InterconnectLocation - * city (metropolitan area designator), which itself may match multiple InterconnectLocations. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java index c708d024142..051f5900f98 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -50,8 +50,8 @@ public final class InterconnectLocationList extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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 @@ -68,7 +68,7 @@ public final class InterconnectLocationList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public InterconnectLocationList setItems(java.util.List it } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of - * interconnect locations. + * 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) { @@ -158,7 +158,7 @@ public InterconnectLocationList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 76fa0dedf9f..1e35db8faf6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -31,38 +31,38 @@ public final class InterconnectLocationRegionInfo extends com.google.api.client.json.GenericJson { /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * 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; /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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; /** - * Identifies the network presence of this location. + * 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; /** - * URL for the region of this location. + * 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; /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * 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() { @@ -70,8 +70,8 @@ public java.lang.Long getExpectedRttMs() { } /** - * Expected round-trip time in milliseconds, from this InterconnectLocation to a VM in this - * region. + * 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) { @@ -80,8 +80,8 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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() { @@ -89,8 +89,8 @@ public java.lang.Boolean getL2ForwardingEnabled() { } /** - * Identifies whether L2 Interconnect Attachments can be created in this region for interconnects - * that are in this location. + * 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) { @@ -99,7 +99,7 @@ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @return value or {@code null} for none */ public java.lang.String getLocationPresence() { @@ -107,7 +107,7 @@ public java.lang.String getLocationPresence() { } /** - * Identifies the network presence of this location. + * Output only. Identifies the network presence of this location. * @param locationPresence locationPresence or {@code null} for none */ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { @@ -116,7 +116,7 @@ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locat } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -124,7 +124,7 @@ public java.lang.String getRegion() { } /** - * URL for the region of this location. + * Output only. URL for the region of this location. * @param region region or {@code null} for none */ public InterconnectLocationRegionInfo setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java index cb4c1b771a8..b39fa5417ea 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -33,161 +33,163 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json.GenericJson { /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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] Creation timestamp inRFC3339 text format. + * 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] An optional description of the resource. + * 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] The name of the provider for this facility (e.g., EQUINIX). + * 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] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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] 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. + * 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] 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. + * 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] 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. + * 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] Name of the resource. + * 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] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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] Permitted connections. + * 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] Indicates the service provider present at the remote location. Example values: - * "Amazon Web Services", "Microsoft Azure". + * 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] Server-defined URL for the resource. + * 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 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 + * 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}. */ @@ -195,8 +197,8 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json private java.lang.String status; /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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() { @@ -204,8 +206,8 @@ public java.lang.String getAddress() { } /** - * [Output Only] The postal address of the Point of Presence, each line in the address is - * separated by a newline character. + * 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) { @@ -214,8 +216,8 @@ public InterconnectRemoteLocation setAddress(java.lang.String address) { } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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() { @@ -223,8 +225,8 @@ public InterconnectAttachmentConfigurationConstraints getAttachmentConfiguration } /** - * [Output Only] Subset of fields from InterconnectAttachment's |configurationConstraints| field - * that apply to all attachments for this remote location. + * 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) { @@ -233,8 +235,8 @@ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(Intercon } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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() { @@ -242,8 +244,8 @@ public java.lang.String getCity() { } /** - * [Output Only] Metropolitan area designator that indicates which city an interconnect is - * located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * 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) { @@ -252,8 +254,8 @@ public InterconnectRemoteLocation setCity(java.lang.String city) { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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() { @@ -261,8 +263,8 @@ public InterconnectRemoteLocationConstraints getConstraints() { } /** - * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and - * associated InterconnectAttachments. + * 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) { @@ -271,8 +273,8 @@ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConst } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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() { @@ -280,8 +282,8 @@ public java.lang.String getContinent() { } /** - * [Output Only] Continent for this location, which can take one of the following values: - - * AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * 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) { @@ -290,7 +292,7 @@ public InterconnectRemoteLocation setContinent(java.lang.String continent) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -298,7 +300,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -307,7 +309,7 @@ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creation } /** - * [Output Only] An optional description of the resource. + * Output only. [Output Only] An optional description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -315,7 +317,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of the resource. + * 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) { @@ -324,7 +326,7 @@ public InterconnectRemoteLocation setDescription(java.lang.String description) { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * 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() { @@ -332,7 +334,7 @@ public java.lang.String getFacilityProvider() { } /** - * [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * 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) { @@ -341,7 +343,8 @@ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityP } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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() { @@ -349,7 +352,8 @@ public java.lang.String getFacilityProviderFacilityId() { } /** - * [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). + * 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) { @@ -358,7 +362,8 @@ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -366,7 +371,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -375,8 +381,8 @@ public InterconnectRemoteLocation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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() { @@ -384,8 +390,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect - * remote locations. + * 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) { @@ -394,8 +400,8 @@ public InterconnectRemoteLocation setKind(java.lang.String kind) { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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() { @@ -403,8 +409,8 @@ public java.lang.String getLacp() { } /** - * [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take one of the - * following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * 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) { @@ -413,8 +419,8 @@ public InterconnectRemoteLocation setLacp(java.lang.String lacp) { } /** - * [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. + * 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() { @@ -422,8 +428,8 @@ public java.lang.Integer getMaxLagSize100Gbps() { } /** - * [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. + * 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) { @@ -432,8 +438,8 @@ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagS } /** - * [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. + * 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() { @@ -441,8 +447,8 @@ public java.lang.Integer getMaxLagSize10Gbps() { } /** - * [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. + * 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) { @@ -451,8 +457,8 @@ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSi } /** - * [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. + * 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() { @@ -460,8 +466,8 @@ public java.lang.Integer getMaxLagSize400Gbps() { } /** - * [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. + * 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) { @@ -470,7 +476,7 @@ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagS } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -478,7 +484,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public InterconnectRemoteLocation setName(java.lang.String name) { @@ -487,8 +493,8 @@ public InterconnectRemoteLocation setName(java.lang.String name) { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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() { @@ -496,8 +502,8 @@ public java.lang.String getPeeringdbFacilityId() { } /** - * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in - * peeringdb). + * 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) { @@ -506,7 +512,7 @@ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peerin } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @return value or {@code null} for none */ public java.util.List getPermittedConnections() { @@ -514,7 +520,7 @@ public java.util.List getPermitt } /** - * [Output Only] Permitted connections. + * Output only. [Output Only] Permitted connections. * @param permittedConnections permittedConnections or {@code null} for none */ public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { @@ -523,8 +529,8 @@ public InterconnectRemoteLocation setPermittedConnections(java.util.List incompatibleLicenses; /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,6 +129,14 @@ public final class License extends com.google.api.client.json.GenericJson { @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. @@ -154,14 +162,14 @@ public final class License extends com.google.api.client.json.GenericJson { private LicenseResourceRequirements resourceRequirements; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -183,7 +191,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean transferable; /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,7 +251,7 @@ public License setChargesUseFee(java.lang.Boolean chargesUseFee) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -251,7 +259,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public License setCreationTimestamp(java.lang.String creationTimestamp) { @@ -315,7 +323,7 @@ public License setIncompatibleLicenses(java.util.List incompat } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * Output only. [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -323,7 +331,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#license for licenses. + * 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) { @@ -420,6 +428,25 @@ public License setOsLicense(java.lang.Boolean 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. @@ -478,7 +505,7 @@ public License setResourceRequirements(LicenseResourceRequirements resourceRequi } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -486,7 +513,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -495,7 +522,7 @@ public License setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -503,7 +530,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -548,7 +575,7 @@ public License setTransferable(java.lang.Boolean transferable) { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * Output only. [Output Only] Last update timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getUpdateTimestamp() { @@ -556,7 +583,7 @@ public java.lang.String getUpdateTimestamp() { } /** - * [Output Only] Last update timestamp inRFC3339 text format. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java index 08b70f3341d..2464bb39832 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -33,28 +33,29 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] Description of this License Code. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,37 +69,37 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List licenseAlias; /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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; /** - * [Output Only] Server-defined URL for the resource. + * 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] Current state of this License Code. + * 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] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { @@ -115,7 +116,7 @@ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -123,7 +124,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCode setDescription(java.lang.String description) { @@ -132,7 +133,8 @@ public LicenseCode setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -140,7 +142,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -149,7 +152,7 @@ public LicenseCode setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -157,7 +160,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#licenseCode for licenses. + * 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) { @@ -183,8 +186,8 @@ public LicenseCode setLicenseAlias(java.util.List licen } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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() { @@ -192,8 +195,8 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit - * integer. + * 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) { @@ -202,7 +205,7 @@ public LicenseCode setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -210,7 +213,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -219,7 +222,7 @@ public LicenseCode setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Current state of this License Code. + * Output only. [Output Only] Current state of this License Code. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -227,7 +230,7 @@ public java.lang.String getState() { } /** - * [Output Only] Current state of this License Code. + * 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) { @@ -236,8 +239,8 @@ public LicenseCode setState(java.lang.String state) { } /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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() { @@ -245,8 +248,8 @@ public java.lang.Boolean getTransferable() { } /** - * [Output Only] If true, the license will remain attached when creating images or snapshots from - * disks. Otherwise, the license is not transferred. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java index 96398e3c26d..cfe3ccb4c83 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java @@ -30,21 +30,21 @@ public final class LicenseCodeLicenseAlias extends com.google.api.client.json.GenericJson { /** - * [Output Only] Description of this License Code. + * 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] URL of license corresponding to this License Code. + * 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] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -52,7 +52,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of this License Code. + * Output only. [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { @@ -61,7 +61,7 @@ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { } /** - * [Output Only] URL of license corresponding to this License Code. + * Output only. [Output Only] URL of license corresponding to this License Code. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -69,7 +69,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] URL of license corresponding to this License Code. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseParams.java new file mode 100644 index 00000000000..cfa3866f110 --- /dev/null +++ b/clients/google-api-services-compute/beta/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/456` 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/456` 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/456` 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/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java index cee8ece927f..1c5fc4d949c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -60,7 +60,7 @@ public final class LicensesListResponse extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public LicensesListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -139,7 +139,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java new file mode 100644 index 00000000000..e1e5f9b49c9 --- /dev/null +++ b/clients/google-api-services-compute/beta/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/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java new file mode 100644 index 00000000000..2e7147df3ed --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.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; + +/** + * Contains a list of SnapshotGroup 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 ListSnapshotGroups 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 SnapshotGroup resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List 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. 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 ListSnapshotGroups 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 ListSnapshotGroups setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of SnapshotGroup resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of SnapshotGroup resources. + * @param items items or {@code null} for none + */ + public ListSnapshotGroups 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 ListSnapshotGroups setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListSnapshotGroups 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 ListSnapshotGroups 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 ListSnapshotGroups 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 ListSnapshotGroups setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ListSnapshotGroups set(String fieldName, Object value) { + return (ListSnapshotGroups) super.set(fieldName, value); + } + + @Override + public ListSnapshotGroups clone() { + return (ListSnapshotGroups) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ListSnapshotGroupsWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java index afd21b38b7c..7c437efa39b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -32,7 +32,12 @@ 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. + * 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 @@ -45,9 +50,22 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson @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. + * 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() { @@ -56,7 +74,12 @@ public java.util.Map getLocations() { /** * 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. + * 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) { @@ -81,6 +104,25 @@ public LocationPolicy setTargetShape(java.lang.String 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); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java index dfce27ca41c..8b4e7fd0cd4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -34,7 +34,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * 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 @@ -56,7 +56,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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 @@ -70,7 +71,8 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private InstanceProperties instanceProperties; /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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 @@ -123,6 +125,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { @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}. @@ -131,21 +141,22 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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; /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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] The URL for this machine image. The server defines this URL. + * 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 @@ -170,16 +181,16 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.String sourceInstance; /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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 @@ -193,14 +204,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] Total size of the storage used by the machine image. + * 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] The creation timestamp for this machine image inRFC3339 text format. + * 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() { @@ -208,7 +219,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * 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) { @@ -253,7 +264,8 @@ public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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() { @@ -261,7 +273,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this machine image. The server defines this identifier. + * 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) { @@ -287,7 +300,8 @@ public MachineImage setInstanceProperties(InstanceProperties instanceProperties) } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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() { @@ -295,7 +309,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. + * 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) { @@ -447,6 +462,25 @@ public MachineImage setName(java.lang.String 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 @@ -465,7 +499,7 @@ public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -473,7 +507,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -482,7 +516,8 @@ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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() { @@ -490,7 +525,8 @@ public java.util.List getSavedDisks() { } /** - * An array of Machine Image specific properties for disks attached to the source instance + * 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) { @@ -499,7 +535,7 @@ public MachineImage setSavedDisks(java.util.List savedDisks) { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * 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() { @@ -507,7 +543,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] The URL for this machine image. The server defines this URL. + * 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) { @@ -558,8 +594,8 @@ public MachineImage setSourceInstance(java.lang.String sourceInstance) { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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() { @@ -567,8 +603,8 @@ public SourceInstanceProperties getSourceInstanceProperties() { } /** - * [Output Only] DEPRECATED: Please use instance_properties instead for source instance related - * properties. New properties will not be added to this field. + * 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) { @@ -577,8 +613,8 @@ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceI } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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() { @@ -586,8 +622,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the machine image. One of the following values:INVALID, CREATING, - * READY,DELETING, and UPLOADING. + * 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) { @@ -613,7 +649,7 @@ public MachineImage setStorageLocations(java.util.List storage } /** - * [Output Only] Total size of the storage used by the machine image. + * 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() { @@ -621,7 +657,7 @@ public java.lang.Long getTotalStorageBytes() { } /** - * [Output Only] Total size of the storage used by the machine image. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java index 68648fbbe07..2447569de0b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -50,8 +50,8 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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 @@ -68,7 +68,7 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public MachineImageList setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#machineImagesListResponse for machine - * image lists. + * 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) { @@ -158,7 +158,7 @@ public MachineImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineType.java index 9dcf4d08d32..c0972ae0d14 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -104,7 +104,8 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.Boolean isSharedCpu; /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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 @@ -310,7 +311,8 @@ public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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() { @@ -318,7 +320,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java index 35ac3fa24d1..8ca50f855de 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for aggregated lists of - * machine types. + * 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 @@ -62,14 +62,14 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public MachineTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public MachineTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java index 1292b1205e6..a94434edc45 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -50,7 +50,8 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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 @@ -67,7 +68,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public MachineTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. + * 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) { @@ -155,7 +158,7 @@ public MachineTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 4a70d884b92..7a28e0731c2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -30,94 +30,98 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] Current all-instances configuration revision applied to this instance. + * Output only. [Output Only] Current all-instances configuration revision applied to this + * instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceAllInstancesConfig allInstancesConfig; /** - * [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. + * 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] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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] Health state of the instance per health-check. + * 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] The status of the instance. This field is empty when the instance does not exist. + * 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] Information about the last attempt to create or delete the instance. + * 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] The name of the instance. The name always exists even if the instance has not yet - * been created. + * 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] Preserved state applied from per-instance config for this instance. + * 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] Preserved state generated based on stateful policy for this instance. + * 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] Instance properties selected for this instance resulting from + * Output only. [Output Only] Instance properties selected for this instance resulting from * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @@ -125,29 +129,31 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; /** - * [Output Only] Information about the termination timestamp of the instance, if applicable. + * Output only. [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] The eventual status of the instance. The instance group manager will not be - * identified as stable till each managed instance reaches its targetStatus. + * Output only. [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] Intended version of this instance. + * 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] Current all-instances configuration revision applied to this instance. + * Output only. [Output Only] Current all-instances configuration revision applied to this + * instance. * @return value or {@code null} for none */ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { @@ -155,7 +161,8 @@ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { } /** - * [Output Only] Current all-instances configuration revision applied to this instance. + * Output only. [Output Only] Current all-instances configuration revision applied to this + * instance. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig allInstancesConfig) { @@ -164,21 +171,22 @@ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig a } /** - * [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. + * 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() { @@ -186,21 +194,22 @@ public java.lang.String getCurrentAction() { } /** - * [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. + * 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) { @@ -209,8 +218,8 @@ public ManagedInstance setCurrentAction(java.lang.String currentAction) { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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() { @@ -218,8 +227,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource. This field is empty when instance does - * not exist. + * 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) { @@ -228,8 +237,8 @@ public ManagedInstance setId(java.math.BigInteger id) { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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() { @@ -237,8 +246,8 @@ public java.lang.String getInstance() { } /** - * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been - * created. + * 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) { @@ -247,7 +256,7 @@ public ManagedInstance setInstance(java.lang.String instance) { } /** - * [Output Only] Health state of the instance per health-check. + * Output only. [Output Only] Health state of the instance per health-check. * @return value or {@code null} for none */ public java.util.List getInstanceHealth() { @@ -255,7 +264,7 @@ public java.util.List getInstanceHealth() { } /** - * [Output Only] Health state of the instance per health-check. + * 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) { @@ -264,7 +273,8 @@ public ManagedInstance setInstanceHealth(java.util.List items) { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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() { @@ -157,7 +157,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#metadata for metadata. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java index a4dd625a14b..88009e558c8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java @@ -30,7 +30,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { /** - * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,15 +44,15 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The 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] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,8 +70,9 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output only] The URL of the region where the resource resides. You must specify this field as - * part of the HTTP request URL. You cannot set the region as a field in the request body. + * Output only. [Output only] The URL of the region where the resource resides. You must specify + * this field as part of the HTTP request URL. You cannot set the region as a field in the request + * body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +86,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigResourcePolicies resourcePolicies; /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,7 +99,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigStatus status; /** - * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MultiMig setCreationTimestamp(java.lang.String creationTimestamp) { @@ -132,8 +133,8 @@ public MultiMig setDescription(java.lang.String description) { } /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The unique identifier for this resource type. The server generates + * this identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -141,8 +142,8 @@ public java.math.BigInteger getId() { } /** - * [Output only] The unique identifier for this resource type. The server generates this - * identifier. + * Output only. [Output only] The unique identifier for this resource type. The server generates + * this identifier. * @param id id or {@code null} for none */ public MultiMig setId(java.math.BigInteger id) { @@ -151,7 +152,7 @@ public MultiMig setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -159,7 +160,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @param kind kind or {@code null} for none */ public MultiMig setKind(java.lang.String kind) { @@ -193,8 +194,9 @@ public MultiMig setName(java.lang.String name) { } /** - * [Output only] The URL of the region where the resource resides. You must specify this field as - * part of the HTTP request URL. You cannot set the region as a field in the request body. + * Output only. [Output only] The URL of the region where the resource resides. You must specify + * this field as part of the HTTP request URL. You cannot set the region as a field in the request + * body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -202,8 +204,9 @@ public java.lang.String getRegion() { } /** - * [Output only] The URL of the region where the resource resides. You must specify this field as - * part of the HTTP request URL. You cannot set the region as a field in the request body. + * Output only. [Output only] The URL of the region where the resource resides. You must specify + * this field as part of the HTTP request URL. You cannot set the region as a field in the request + * body. * @param region region or {@code null} for none */ public MultiMig setRegion(java.lang.String region) { @@ -229,7 +232,7 @@ public MultiMig setResourcePolicies(MultiMigResourcePolicies resourcePolicies) { } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -237,7 +240,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for the resource. + * Output only. [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public MultiMig setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java new file mode 100644 index 00000000000..eb23d361f69 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java @@ -0,0 +1,216 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code 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 Multi-MIG member 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 MultiMigMember extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp of this multi-MIG member 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 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. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. [Output Only] Server-defined name for the multi-MIG member. + * 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 region where the multi-MIG resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** + * 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] The status of this multi-MIG member + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private MultiMigMemberStatus status; + + /** + * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public MultiMigMember setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output only] The 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] The unique identifier for this resource type. The server generates + * this identifier. + * @param id id or {@code null} for none + */ + public MultiMigMember setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. + * @param kind kind or {@code null} for none + */ + public MultiMigMember setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. [Output Only] Server-defined name for the multi-MIG member. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. [Output Only] Server-defined name for the multi-MIG member. + * @param name name or {@code null} for none + */ + public MultiMigMember setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. [Output Only] The URL of the region where the multi-MIG resides. + * @return value or {@code null} for none + */ + public java.lang.String getRegion() { + return region; + } + + /** + * Output only. [Output Only] The URL of the region where the multi-MIG resides. + * @param region region or {@code null} for none + */ + public MultiMigMember setRegion(java.lang.String region) { + this.region = region; + 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 MultiMigMember setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] The status of this multi-MIG member + * @return value or {@code null} for none + */ + public MultiMigMemberStatus getStatus() { + return status; + } + + /** + * Output only. [Output Only] The status of this multi-MIG member + * @param status status or {@code null} for none + */ + public MultiMigMember setStatus(MultiMigMemberStatus status) { + this.status = status; + return this; + } + + @Override + public MultiMigMember set(String fieldName, Object value) { + return (MultiMigMember) super.set(fieldName, value); + } + + @Override + public MultiMigMember clone() { + return (MultiMigMember) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java new file mode 100644 index 00000000000..5cc8e756e7b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.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 MultiMigMemberList. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MultiMigMemberList 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 multi-MIG member 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 MultiMigMember used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(MultiMigMember.class); + } + + /** + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. + * 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; + + /** + * Output only. [Output only] 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 MultiMigMemberList setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of multi-MIG member resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of multi-MIG member resources. + * @param items items or {@code null} for none + */ + public MultiMigMemberList setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG + * members. + * @param kind kind or {@code null} for none + */ + public MultiMigMemberList 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 MultiMigMemberList 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 MultiMigMemberList 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 MultiMigMemberList setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public MultiMigMemberList set(String fieldName, Object value) { + return (MultiMigMemberList) super.set(fieldName, value); + } + + @Override + public MultiMigMemberList clone() { + return (MultiMigMemberList) 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 MultiMigMemberListWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.java new file mode 100644 index 00000000000..eb680189da4 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.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 MultiMigMemberStatus. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MultiMigMemberStatus extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] URL of member instance group manager + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** + * [Output Only] URL of member instance group manager + * @return value or {@code null} for none + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * [Output Only] URL of member instance group manager + * @param instanceGroupManager instanceGroupManager or {@code null} for none + */ + public MultiMigMemberStatus setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + @Override + public MultiMigMemberStatus set(String fieldName, Object value) { + return (MultiMigMemberStatus) super.set(fieldName, value); + } + + @Override + public MultiMigMemberStatus clone() { + return (MultiMigMemberStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java index ac702d8a737..04a05930b99 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java @@ -30,16 +30,23 @@ public final class MultiMigStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one - * accelerator topology is supported. + * Output only. [Output Only] The accelerator topology applied to this multi-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 accelerator topology applied to this multi-MIG. Currently only one - * accelerator topology is supported. + * Output only. [Output Only] The number of instance group manager members in this multi-MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer membersCount; + + /** + * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only + * one accelerator topology is supported. * @return value or {@code null} for none */ public java.util.List getAppliedAcceleratorTopologies() { @@ -47,8 +54,8 @@ public java.util.List getAppliedAcceleratorTo } /** - * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one - * accelerator topology is supported. + * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only + * one accelerator topology is supported. * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none */ public MultiMigStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { @@ -56,6 +63,23 @@ public MultiMigStatus setAppliedAcceleratorTopologies(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -122,7 +122,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public MultiMigsList setKind(java.lang.String kind) { @@ -152,7 +152,7 @@ public MultiMigsList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -160,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output only] Server-defined URL for this resource. + * Output only. [Output only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MultiMigsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NamedSet.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java index b880a69e7e6..ad71f5d0e5a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -30,21 +30,21 @@ public final class NatIpInfo extends com.google.api.client.json.GenericJson { /** - * A list of all NAT IPs assigned to this NAT config. + * 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; /** - * Name of the NAT config which the NAT IP belongs to. + * 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; /** - * A list of all NAT IPs assigned to this NAT config. + * 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() { @@ -52,7 +52,7 @@ public java.util.List getNatIpInfoMappings() { } /** - * A list of all NAT IPs assigned to this NAT config. + * 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) { @@ -61,7 +61,7 @@ public NatIpInfo setNatIpInfoMappings(java.util.List } /** - * Name of the NAT config which the NAT IP belongs to. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getNatName() { } /** - * Name of the NAT config which the NAT IP belongs to. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java index 223a66411ab..9ca1eff4dd7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -30,28 +30,28 @@ public final class NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { /** - * Specifies whether NAT IP is auto or manual. + * 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; /** - * NAT IP address. For example: 203.0.113.11. + * 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; /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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; /** - * Specifies whether NAT IP is auto or manual. + * Output only. Specifies whether NAT IP is auto or manual. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -59,7 +59,7 @@ public java.lang.String getMode() { } /** - * Specifies whether NAT IP is auto or manual. + * 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) { @@ -68,7 +68,7 @@ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { } /** - * NAT IP address. For example: 203.0.113.11. + * Output only. NAT IP address. For example: 203.0.113.11. * @return value or {@code null} for none */ public java.lang.String getNatIp() { @@ -76,7 +76,7 @@ public java.lang.String getNatIp() { } /** - * NAT IP address. For example: 203.0.113.11. + * 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) { @@ -85,7 +85,7 @@ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getUsage() { } /** - * Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java index fd5195b4cd3..b381067197e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java @@ -57,7 +57,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean autoCreateSubnetworks; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +79,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableUlaInternalIpv6; /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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 @@ -94,7 +94,8 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIPv4; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -112,7 +113,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String internalIpv6Range; /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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 @@ -165,7 +166,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private NetworkParams params; /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -187,7 +188,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -255,7 +256,7 @@ public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -263,7 +264,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Network setCreationTimestamp(java.lang.String creationTimestamp) { @@ -308,7 +309,7 @@ public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) } /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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() { @@ -316,7 +317,7 @@ public java.lang.String getFirewallPolicy() { } /** - * [Output Only] URL of the firewall policy the network is associated with. + * 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) { @@ -344,7 +345,8 @@ public Network setGatewayIPv4(java.lang.String gatewayIPv4) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -352,7 +354,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -386,7 +389,7 @@ public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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() { @@ -394,7 +397,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#network for networks. + * 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) { @@ -510,7 +513,7 @@ public Network setParams(NetworkParams params) { } /** - * [Output Only] A list of network peerings for the resource. + * Output only. [Output Only] A list of network peerings for the resource. * @return value or {@code null} for none */ public java.util.List getPeerings() { @@ -518,7 +521,7 @@ public java.util.List getPeerings() { } /** - * [Output Only] A list of network peerings for the resource. + * 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) { @@ -563,7 +566,7 @@ public Network setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -571,7 +574,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java index eecbab8e189..5320d7e3f2c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -30,8 +30,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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 @@ -44,7 +44,7 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String connectionPreference; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,15 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. + * Output only. [Output Only] Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,10 +92,10 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String name; /** - * [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. + * 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 @@ -118,23 +118,23 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List producerRejectLists; /** - * [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. + * 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] Server-defined URL for the resource. + * 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's resource id. + * 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 @@ -149,8 +149,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List subnetworks; /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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() { @@ -158,8 +158,8 @@ public java.util.List getConnectionEndpoints } /** - * [Output Only] An array of connections for all the producers connected to this network - * attachment. + * 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) { @@ -183,7 +183,7 @@ public NetworkAttachment setConnectionPreference(java.lang.String connectionPref } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,8 +266,8 @@ public NetworkAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -275,8 +275,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -285,7 +285,7 @@ public NetworkAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -293,7 +293,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. + * Output only. [Output Only] Type of the resource. * @param kind kind or {@code null} for none */ public NetworkAttachment setKind(java.lang.String kind) { @@ -327,10 +327,10 @@ public NetworkAttachment setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -338,10 +338,10 @@ public java.lang.String getNetwork() { } /** - * [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. + * 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) { @@ -388,9 +388,9 @@ public NetworkAttachment setProducerRejectLists(java.util.List } /** - * [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. + * 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() { @@ -398,9 +398,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -409,7 +409,7 @@ public NetworkAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -417,7 +417,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -426,7 +426,7 @@ public NetworkAttachment setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -434,7 +434,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java index 817d984f250..6fb5a85ddbf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -75,7 +75,8 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli private java.lang.String subnetwork; /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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 @@ -190,7 +191,8 @@ public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetw } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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() { @@ -198,7 +200,8 @@ public java.lang.String getSubnetworkCidrRange() { } /** - * [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java index 719c606976c..013691466fe 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -30,7 +30,7 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,14 +56,15 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * The value may be {@code null}. */ @@ -82,8 +83,8 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String name; /** - * [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. + * 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 @@ -98,21 +99,21 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String securityPolicy; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -120,7 +121,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -211,7 +212,8 @@ public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -219,7 +221,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -228,7 +231,7 @@ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @return value or {@code null} for none */ @@ -237,7 +240,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @param kind kind or {@code null} for none */ @@ -272,8 +275,8 @@ public NetworkEdgeSecurityService setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -281,8 +284,8 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -310,7 +313,7 @@ public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPol } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -318,7 +321,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -327,7 +330,7 @@ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -335,7 +338,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java index 1fa727e85f7..2817e613104 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -50,8 +50,9 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#networkEdgeSecurityServiceAggregatedList for - * lists of Network Edge Security Services. + * 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 @@ -68,14 +69,14 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +139,9 @@ public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEdgeSecurityServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java index 23f0dba70f9..639209a0928 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -23,6 +23,12 @@ * 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 @@ -65,7 +71,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupCloudRun cloudRun; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,15 +95,16 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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 @@ -157,14 +164,14 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String pscTargetService; /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -179,7 +186,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupServerlessDeployment serverlessDeployment; /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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 @@ -193,7 +200,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String subnetwork; /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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 @@ -274,7 +281,7 @@ public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -282,7 +289,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -331,7 +338,8 @@ public NetworkEndpointGroup setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -339,7 +347,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -348,8 +357,8 @@ public NetworkEndpointGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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() { @@ -357,8 +366,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint - * group. + * 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) { @@ -491,7 +500,7 @@ public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetServic } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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() { @@ -499,7 +508,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] The URL of theregion where the network endpoint group is located. + * 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) { @@ -508,7 +517,7 @@ public NetworkEndpointGroup setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -516,7 +525,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -544,7 +553,7 @@ public NetworkEndpointGroup setServerlessDeployment(NetworkEndpointGroupServerle } /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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() { @@ -552,7 +561,7 @@ public java.lang.Integer getSize() { } /** - * [Output only] Number of network endpoints in the network endpoint group. + * 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) { @@ -578,7 +587,7 @@ public NetworkEndpointGroup setSubnetwork(java.lang.String subnetwork) { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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() { @@ -586,7 +595,7 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java index d257a2c16a2..a2c8acc31ba 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -44,8 +44,9 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.util.Map items; /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupAggregatedList for - * aggregated lists of network endpoint groups. + * 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 @@ -62,14 +63,14 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public NetworkEndpointGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEndpointGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java index b0d4b65954f..efa4899f51a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java @@ -56,8 +56,8 @@ public final class NetworkEndpointGroupLbNetworkEndpointGroup extends com.google private java.lang.String subnetwork; /** - * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This - * field is deprecated. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [Deprecated] This field is deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,8 +125,8 @@ public NetworkEndpointGroupLbNetworkEndpointGroup setSubnetwork(java.lang.String } /** - * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This - * field is deprecated. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [Deprecated] This field is deprecated. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -134,8 +134,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This - * field is deprecated. + * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [Deprecated] This field is deprecated. * @param zone zone or {@code null} for none */ public NetworkEndpointGroupLbNetworkEndpointGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java index a9e2537c619..8d6eaa31913 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -50,8 +50,8 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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 @@ -68,7 +68,7 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NetworkEndpointGroupList setItems(java.util.List it } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList for network - * endpoint group lists. + * 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) { @@ -158,7 +158,7 @@ public NetworkEndpointGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java index 88ee04444bb..294c37e562a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -31,8 +31,8 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.json.GenericJson { /** - * [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. + * 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 @@ -47,22 +47,22 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.jso private java.lang.Integer producerPort; /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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] The connection status of the PSC Forwarding Rule. + * 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] 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.String getConsumerPscAddress() { } /** - * [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. + * 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) { @@ -99,7 +99,7 @@ public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPor } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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() { @@ -107,7 +107,7 @@ public java.math.BigInteger getPscConnectionId() { } /** - * [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * 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) { @@ -116,7 +116,7 @@ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscCo } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * Output only. [Output Only] The connection status of the PSC Forwarding Rule. * @return value or {@code null} for none */ public java.lang.String getPscConnectionStatus() { @@ -124,7 +124,7 @@ public java.lang.String getPscConnectionStatus() { } /** - * [Output Only] The connection status of the PSC Forwarding Rule. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java index cd49337f505..b1a4a35294e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -44,7 +44,7 @@ public final class NetworkEndpointGroupsListNetworkEndpoints extends com.google. private java.util.List items; /** - * [Output Only] The resource type, which is + * 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}. @@ -104,7 +104,7 @@ public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List getNetworkEndpointGroups() { @@ -59,7 +59,7 @@ public java.util.List getNetworkEndpointGroups() { } /** - * [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * 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) { @@ -68,8 +68,8 @@ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List getHealths() { } /** - * [Output only] The health status of network endpoint. + * 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 @@ -73,7 +73,7 @@ public NetworkEndpointWithHealthStatus setHealths(java.util.List getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkFirewallPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index 3349ccf440f..6085e5a035e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -58,6 +58,14 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs 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 @@ -99,8 +107,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs } /** - * [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. + * 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}. @@ -118,12 +126,20 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs private java.lang.String ipv6Address; /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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. [Output Only] MAC address assigned to this network interface. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String macAddress; + /** * [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 @@ -258,6 +274,25 @@ public NetworkInterface setAliasIpRanges(java.util.List aliasIpRan 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 @@ -373,8 +408,8 @@ public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6Ac } /** - * [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. + * 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 @@ -384,8 +419,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [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. + * 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 @@ -417,7 +452,8 @@ public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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() { @@ -425,7 +461,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. + * 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) { @@ -433,6 +470,23 @@ public NetworkInterface setKind(java.lang.String kind) { return this; } + /** + * Output only. [Output Only] MAC address assigned to this network interface. + * @return value or {@code null} for none + */ + public java.lang.String getMacAddress() { + return macAddress; + } + + /** + * Output only. [Output Only] MAC address assigned to this network interface. + * @param macAddress macAddress or {@code null} for none + */ + public NetworkInterface setMacAddress(java.lang.String macAddress) { + this.macAddress = macAddress; + 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java index 161aace29df..e4981ce773e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -50,7 +50,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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 @@ -67,7 +67,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public NetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#networkList for lists of networks. + * 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) { @@ -155,7 +155,7 @@ public NetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index 5619d58fdca..084c972666c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -42,7 +42,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.Boolean autoCreateRoutes; /** - * [Output Only] The effective state of the peering connection as a whole. + * 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 @@ -110,7 +110,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * [Output Only] Maximum Transmission Unit in bytes of the peer 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 @@ -125,15 +125,14 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String stackType; /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * 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] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -171,7 +170,7 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { } /** - * [Output Only] The effective state of the peering connection as a whole. + * Output only. [Output Only] The effective state of the peering connection as a whole. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatus getConnectionStatus() { @@ -179,7 +178,7 @@ public NetworkPeeringConnectionStatus getConnectionStatus() { } /** - * [Output Only] The effective state of the peering connection as a whole. + * 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) { @@ -331,7 +330,7 @@ public NetworkPeering setNetwork(java.lang.String network) { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * 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() { @@ -339,7 +338,7 @@ public java.lang.Integer getPeerMtu() { } /** - * [Output Only] Maximum Transmission Unit in bytes of the peer network. + * 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) { @@ -367,8 +366,7 @@ public NetworkPeering setStackType(java.lang.String stackType) { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -376,8 +374,7 @@ public java.lang.String getState() { } /** - * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` - * when there's a matching configuration in the peer network. + * Output only. [Output Only] State for the peering. * @param state state or {@code null} for none */ public NetworkPeering setState(java.lang.String state) { @@ -386,7 +383,7 @@ public NetworkPeering setState(java.lang.String state) { } /** - * [Output Only] Details about the current state of the peering. + * Output only. [Output Only] Details about the current state of the peering. * @return value or {@code null} for none */ public java.lang.String getStateDetails() { @@ -394,7 +391,7 @@ public java.lang.String getStateDetails() { } /** - * [Output Only] Details about the current state of the peering. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java index 0dd995dca57..badc96b3d4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java @@ -30,14 +30,14 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] A list of associations that belong to this network policy. + * Output only. [Output Only] A list of associations that belong to this network policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies + * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,44 +73,45 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] URL of the region where the regional network policy resides. 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. [Output Only] URL of the region where the regional network policy 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] Total count of all network policy rule tuples. A network policy can not exceed a - * set number of tuples. + * Output only. [Output Only] Total count of all network policy rule tuples. A network 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; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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] A list of traffic classification rules that belong to this policy. + * Output only. [Output Only] A list of traffic classification rules that belong to this policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List trafficClassificationRules; /** - * [Output Only] A list of associations that belong to this network policy. + * Output only. [Output Only] A list of associations that belong to this network policy. * @return value or {@code null} for none */ public java.util.List getAssociations() { @@ -117,7 +119,7 @@ public java.util.List getAssociations() { } /** - * [Output Only] A list of associations that belong to this network policy. + * Output only. [Output Only] A list of associations that belong to this network policy. * @param associations associations or {@code null} for none */ public NetworkPolicy setAssociations(java.util.List associations) { @@ -126,7 +128,7 @@ public NetworkPolicy setAssociations(java.util.List as } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -134,7 +136,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -177,7 +179,8 @@ public NetworkPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies + * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -185,7 +188,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies + * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network + * policies * @param kind kind or {@code null} for none */ public NetworkPolicy setKind(java.lang.String kind) { @@ -211,8 +215,9 @@ public NetworkPolicy setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the regional network policy resides. 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. [Output Only] URL of the region where the regional network policy 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() { @@ -220,8 +225,9 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional network policy resides. 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. [Output Only] URL of the region where the regional network policy 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 NetworkPolicy setRegion(java.lang.String region) { @@ -230,8 +236,8 @@ public NetworkPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a - * set number of tuples. + * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can + * not exceed a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -239,8 +245,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a - * set number of tuples. + * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can + * not exceed a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -249,7 +255,7 @@ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -257,7 +263,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkPolicy setSelfLink(java.lang.String selfLink) { @@ -266,7 +272,7 @@ public NetworkPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -274,7 +280,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -283,7 +289,7 @@ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] A list of traffic classification rules that belong to this policy. + * Output only. [Output Only] A list of traffic classification rules that belong to this policy. * @return value or {@code null} for none */ public java.util.List getTrafficClassificationRules() { @@ -291,7 +297,7 @@ public java.util.List getTrafficClassifi } /** - * [Output Only] A list of traffic classification rules that belong to this policy. + * Output only. [Output Only] A list of traffic classification rules that belong to this policy. * @param trafficClassificationRules trafficClassificationRules or {@code null} for none */ public NetworkPolicy setTrafficClassificationRules(java.util.List trafficClassificationRules) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java index 4dafaa22d20..d476645f2fd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java @@ -50,8 +50,8 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for lists of network - * policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for + * lists of network policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public NetworkPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java index f87dcb81e7b..913ca8a4d6a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java @@ -50,7 +50,8 @@ public final class NetworkPolicyList extends com.google.api.client.json.GenericJ } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of + * network policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public NetworkPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of + * network policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. + * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of + * network policies. * @param kind kind or {@code null} for none */ public NetworkPolicyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java index ae1ba7866f8..e58090e5b01 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java @@ -54,8 +54,9 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.Boolean disabled; /** - * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for - * network policy traffic classification rules + * Output only. [Output only] Type of the resource. + * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification + * rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,7 +88,7 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.String ruleName; /** - * [Output Only] Calculation of the complexity of a single network policy rule. + * Output only. [Output Only] Calculation of the complexity of a single network policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -169,8 +170,9 @@ public NetworkPolicyTrafficClassificationRule setDisabled(java.lang.Boolean disa } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for - * network policy traffic classification rules + * Output only. [Output only] Type of the resource. + * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification + * rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -178,8 +180,9 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for - * network policy traffic classification rules + * Output only. [Output only] Type of the resource. + * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification + * rules * @param kind kind or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setKind(java.lang.String kind) { @@ -247,7 +250,7 @@ public NetworkPolicyTrafficClassificationRule setRuleName(java.lang.String ruleN } /** - * [Output Only] Calculation of the complexity of a single network policy rule. + * Output only. [Output Only] Calculation of the complexity of a single network policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -255,7 +258,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single network policy rule. + * Output only. [Output Only] Calculation of the complexity of a single network policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java index 434d469ce7e..cab865cf5bb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java @@ -37,8 +37,8 @@ public final class NetworkPolicyTrafficClassificationRuleSecureTag extends com.g private java.lang.String name; /** - * [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. + * 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 @@ -62,8 +62,8 @@ public NetworkPolicyTrafficClassificationRuleSecureTag setName(java.lang.String } /** - * [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. + * 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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * [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. + * 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 NetworkPolicyTrafficClassificationRuleSecureTag setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java index 1eaec17410c..0e3cfd5fd64 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -30,77 +30,79 @@ public final class NetworkProfile extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] An optional description of this resource. + * 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] Features supported by the network. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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] Location to which the network is restricted. + * 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] Name of the resource. + * 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] Type of the network profile. + * 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] Server-defined URL for the resource. + * 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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -108,7 +110,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { @@ -117,7 +119,7 @@ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] An optional description of this resource. + * Output only. [Output Only] An optional description of this resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -125,7 +127,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] An optional description of this resource. + * 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) { @@ -134,7 +136,7 @@ public NetworkProfile setDescription(java.lang.String description) { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @return value or {@code null} for none */ public NetworkProfileNetworkFeatures getFeatures() { @@ -142,7 +144,7 @@ public NetworkProfileNetworkFeatures getFeatures() { } /** - * [Output Only] Features supported by the network. + * Output only. [Output Only] Features supported by the network. * @param features features or {@code null} for none */ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { @@ -151,7 +153,8 @@ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -159,7 +162,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -168,7 +172,8 @@ public NetworkProfile setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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() { @@ -176,7 +181,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. + * 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) { @@ -185,7 +191,7 @@ public NetworkProfile setKind(java.lang.String kind) { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @return value or {@code null} for none */ public NetworkProfileLocation getLocation() { @@ -193,7 +199,7 @@ public NetworkProfileLocation getLocation() { } /** - * [Output Only] Location to which the network is restricted. + * Output only. [Output Only] Location to which the network is restricted. * @param location location or {@code null} for none */ public NetworkProfile setLocation(NetworkProfileLocation location) { @@ -202,7 +208,7 @@ public NetworkProfile setLocation(NetworkProfileLocation location) { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -210,7 +216,7 @@ public java.lang.String getName() { } /** - * [Output Only] Name of the resource. + * Output only. [Output Only] Name of the resource. * @param name name or {@code null} for none */ public NetworkProfile setName(java.lang.String name) { @@ -219,7 +225,7 @@ public NetworkProfile setName(java.lang.String name) { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @return value or {@code null} for none */ public NetworkProfileProfileType getProfileType() { @@ -227,7 +233,7 @@ public NetworkProfileProfileType getProfileType() { } /** - * [Output Only] Type of the network profile. + * Output only. [Output Only] Type of the network profile. * @param profileType profileType or {@code null} for none */ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { @@ -236,7 +242,7 @@ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -244,7 +250,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -253,7 +259,7 @@ public NetworkProfile setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -261,7 +267,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java index f2c615f7569..243b31e663f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -36,6 +36,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -121,6 +128,13 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -184,6 +198,20 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -219,6 +247,20 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -234,14 +276,14 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j private java.util.List subnetStackTypes; /** - * Specifies which subnetwork purposes are supported. + * 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; /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -271,6 +313,23 @@ public NetworkProfileNetworkFeatures setAddressPurposes(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 @@ -750,7 +894,7 @@ public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List getSubnetworkPurposes() { @@ -758,7 +902,7 @@ public java.util.List getSubnetworkPurposes() { } /** - * Specifies which subnetwork purposes are supported. + * Output only. Specifies which subnetwork purposes are supported. * @param subnetworkPurposes subnetworkPurposes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { @@ -767,7 +911,7 @@ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List getSubnetworkStackTypes() { @@ -775,7 +919,7 @@ public java.util.List getSubnetworkStackTypes() { } /** - * Specifies which subnetwork stack types are supported. + * Output only. Specifies which subnetwork stack types are supported. * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java index b045ed464b2..d126fc2f0bb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -56,7 +56,8 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +74,15 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public NetworkProfilesListResponse setItems(java.util.List items } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network + * profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. + * 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) { @@ -183,7 +187,7 @@ public NetworkProfilesListResponse setNextPageToken(java.lang.String nextPageTok } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +204,8 @@ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public NetworkProfilesListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java index 390f610176d..195b392152e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -56,14 +56,14 @@ public final class NetworkRoutingConfig extends com.google.api.client.json.Gener private java.lang.String bgpInterRegionCost; /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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] Effective value of the bgp_inter_region_cost field. + * 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 @@ -137,7 +137,7 @@ public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegio } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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() { @@ -145,7 +145,7 @@ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { } /** - * [Output Only] Effective value of the bgp_always_compare_med field. + * 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) { @@ -154,7 +154,7 @@ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean ef } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * 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() { @@ -162,7 +162,7 @@ public java.lang.String getEffectiveBgpInterRegionCost() { } /** - * [Output Only] Effective value of the bgp_inter_region_cost field. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 87552222ac0..57b26100431 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the network. + * 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 @@ -58,7 +58,8 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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 @@ -78,22 +79,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * [Output Only] The short name of the firewall policy. + * 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] The type of the firewall policy. + * 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] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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() { @@ -101,8 +102,8 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] Deprecated, please use short name instead. The display name of the firewall - * policy. + * 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) { @@ -111,7 +112,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayNa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -119,7 +120,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -128,7 +129,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java } /** - * [Output Only] The packet mirroring rules that apply to the network. + * 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() { @@ -136,7 +137,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output Only] The packet mirroring rules that apply to the network. + * 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) { @@ -145,7 +146,8 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMir } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -153,7 +155,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -179,7 +182,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(jav } /** - * [Output Only] The short name of the firewall policy. + * Output only. [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -187,7 +190,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the firewall policy. + * 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) { @@ -196,7 +199,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName } /** - * [Output Only] The type of the firewall policy. + * Output only. [Output Only] The type of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -204,7 +207,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index 3972693f23a..e43c15856e4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,8 +30,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] The unique identifier for the security policy. This identifier is defined by the - * server. + * Output only. [Output Only] The unique identifier for the security policy. 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 @@ -45,8 +45,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPoli private java.util.List rules; /** - * [Output Only] The unique identifier for the security policy. This identifier is defined by the - * server. + * Output only. [Output Only] The unique identifier for the security policy. This identifier is + * defined by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -54,8 +54,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the security policy. This identifier is defined by the - * server. + * Output only. [Output Only] The unique identifier for the security policy. This identifier is + * defined by the server. * @param id id or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java index 88694064268..7b34e2e9405 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -42,7 +42,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private NodeGroupAutoscalingPolicy autoscalingPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,15 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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 @@ -126,7 +127,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String nodeTemplate; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -140,7 +141,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private ShareSettings shareSettings; /** - * [Output Only] The total number of nodes in the node group. + * 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 @@ -153,7 +154,8 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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 @@ -177,7 +179,7 @@ public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPoli } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -185,7 +187,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -254,7 +256,8 @@ public NodeGroup encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -262,7 +265,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -271,7 +275,7 @@ public NodeGroup setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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() { @@ -279,7 +283,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * 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) { @@ -406,7 +410,7 @@ public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -414,7 +418,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -440,7 +444,7 @@ public NodeGroup setShareSettings(ShareSettings shareSettings) { } /** - * [Output Only] The total number of nodes in the node group. + * 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() { @@ -448,7 +452,7 @@ public java.lang.Integer getSize() { } /** - * [Output Only] The total number of nodes in the node group. + * 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) { @@ -472,7 +476,8 @@ public NodeGroup setStatus(java.lang.String status) { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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() { @@ -480,7 +485,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node group resides, such as us-central1-a. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java index 8cd8b43da57..edaad394eeb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for aggregated lists of - * node groups. + * 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 @@ -62,14 +62,14 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java index b9a428b708a..238b1f18114 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -50,7 +50,8 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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 @@ -67,7 +68,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. + * 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) { @@ -155,7 +158,7 @@ public NodeGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java index 9abff4da59c..e316a46ff52 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -31,8 +31,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json.GenericJson { /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 @@ -47,8 +47,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json private java.lang.String startTime; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -56,8 +56,8 @@ public Duration getMaintenanceDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java index 93ab16ab3e6..b1af48a0a34 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -43,7 +43,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String nodeType; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +131,14 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String status; /** - * Total amount of available resources on the node. + * 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] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +162,7 @@ public NodeGroupNode setAccelerators(java.util.List accelerat } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumedResources() { @@ -170,7 +170,7 @@ public InstanceConsumptionInfo getConsumedResources() { } /** - * Node resources that are reserved by all instances. + * Output only. Node resources that are reserved by all instances. * @param consumedResources consumedResources or {@code null} for none */ public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { @@ -213,7 +213,7 @@ public NodeGroupNode setDisks(java.util.List disks) { } /** - * Instance data that shows consumed resources on the node. + * Output only. Instance data that shows consumed resources on the node. * @return value or {@code null} for none */ public java.util.List getInstanceConsumptionData() { @@ -221,7 +221,7 @@ public java.util.List getInstanceConsumptionData() { } /** - * Instance data that shows consumed resources on the node. + * 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) { @@ -281,7 +281,7 @@ public NodeGroupNode setNodeType(java.lang.String nodeType) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -289,7 +289,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -347,7 +347,7 @@ public NodeGroupNode setStatus(java.lang.String status) { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @return value or {@code null} for none */ public InstanceConsumptionInfo getTotalResources() { @@ -355,7 +355,7 @@ public InstanceConsumptionInfo getTotalResources() { } /** - * Total amount of available resources on the node. + * Output only. Total amount of available resources on the node. * @param totalResources totalResources or {@code null} for none */ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { @@ -364,7 +364,7 @@ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -372,7 +372,7 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * [Output Only] The information about an upcoming maintenance event. + * Output only. [Output Only] The information about an upcoming maintenance event. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java index b983f28193d..699a60fca23 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -30,7 +30,7 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.Generi } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -116,8 +116,8 @@ public NodeGroupsListNodes setItems(java.util.List items) { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for the list of - * nodes in the specified node group. + * 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) { @@ -135,10 +135,10 @@ public NodeGroupsListNodes setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -158,7 +158,7 @@ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -175,7 +175,7 @@ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public NodeGroupsListNodes setWarning(Warning warning) { @@ -202,7 +202,7 @@ public NodeGroupsListNodes clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java index 390be988f05..49172d7c01c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -52,7 +52,7 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private java.lang.String cpuOvercommitType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,14 +78,16 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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 @@ -124,14 +126,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,15 +152,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private ServerBinding serverBinding; /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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] An optional, human-readable explanation of the 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 @@ -196,7 +199,7 @@ public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -204,7 +207,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -245,7 +248,8 @@ public NodeTemplate setDisks(java.util.List disks) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -253,7 +257,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -262,7 +267,8 @@ public NodeTemplate setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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() { @@ -270,7 +276,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. + * 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) { @@ -355,7 +362,8 @@ public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeT } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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() { @@ -363,7 +371,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The name of the region where the node template resides, such as us-central1. + * 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) { @@ -372,7 +381,7 @@ public NodeTemplate setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -380,7 +389,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -414,8 +423,8 @@ public NodeTemplate setServerBinding(ServerBinding serverBinding) { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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() { @@ -423,8 +432,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the node template. One of the following values:CREATING, READY, and - * DELETING. + * 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) { @@ -433,7 +442,7 @@ public NodeTemplate setStatus(java.lang.String status) { } /** - * [Output Only] An optional, human-readable explanation of the status. + * Output only. [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -441,7 +450,7 @@ public java.lang.String getStatusMessage() { } /** - * [Output Only] An optional, human-readable explanation of the status. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java index 99eb552c0f4..8108caade4f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for aggregated lists of - * node templates. + * 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 @@ -62,14 +62,14 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTemplateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTemplateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java index 4dec3311cd1..975a9ec6bb3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -50,7 +50,8 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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 @@ -67,7 +68,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTemplateList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. + * 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) { @@ -155,7 +158,7 @@ public NodeTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java index 0908c6c1e0a..f9f15a051ae 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -77,7 +77,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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 @@ -91,7 +91,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.Integer localSsdGb; /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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 @@ -112,14 +112,15 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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 name of the zone where the node type resides, such as us-central1-a. + * 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 @@ -228,7 +229,7 @@ public NodeType setId(java.math.BigInteger id) { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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() { @@ -236,7 +237,7 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * 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) { @@ -262,7 +263,7 @@ public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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() { @@ -270,7 +271,7 @@ public java.lang.Integer getMaxVms() { } /** - * [Output Only] Maximum number of VMs that can be created for this node type. + * 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) { @@ -313,7 +314,7 @@ public NodeType setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -321,7 +322,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -330,7 +331,8 @@ public NodeType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * 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() { @@ -338,7 +340,8 @@ public java.lang.String getZone() { } /** - * [Output Only] The name of the zone where the node type resides, such as us-central1-a. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java index 2985c263e70..b5f8aa4ddf8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated lists of - * node types. + * 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 @@ -62,14 +62,14 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java index 499df967122..87afc1e14e8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -50,7 +50,8 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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 @@ -67,7 +68,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public NodeTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. + * 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) { @@ -155,7 +158,7 @@ public NodeTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java index df4ed94b238..29423ff6380 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -35,7 +35,7 @@ public final class NotificationEndpoint extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,15 +56,16 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private NotificationEndpointGrpcSettings grpcSettings; /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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 @@ -82,23 +83,23 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private java.lang.String name; /** - * [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. + * 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] Server-defined URL for the resource. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +107,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { @@ -149,7 +150,8 @@ public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grp } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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() { @@ -157,7 +159,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] A unique identifier for this resource type. The server generates this identifier. + * 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) { @@ -166,8 +169,8 @@ public NotificationEndpoint setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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() { @@ -175,8 +178,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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) { @@ -210,9 +213,9 @@ public NotificationEndpoint setName(java.lang.String name) { } /** - * [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. + * 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() { @@ -220,9 +223,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -231,7 +234,7 @@ public NotificationEndpoint setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -239,7 +242,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java new file mode 100644 index 00000000000..8a8ca6062f3 --- /dev/null +++ b/clients/google-api-services-compute/beta/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/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java index 092c5f23afb..1c0a447d4f3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -50,8 +50,8 @@ public final class NotificationEndpointList extends com.google.api.client.json.G } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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 @@ -116,8 +116,8 @@ public NotificationEndpointList setItems(java.util.List it } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification - * endpoints. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java new file mode 100644 index 00000000000..ee811630738 --- /dev/null +++ b/clients/google-api-services-compute/beta/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/beta/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java index 1e3a66cfcfa..b784a99e70d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,6 +84,12 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; + /** + * 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`. @@ -122,7 +128,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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 @@ -136,8 +143,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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 @@ -176,8 +183,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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 @@ -343,6 +350,21 @@ public Operation setError(Error error) { 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`. @@ -433,7 +455,8 @@ public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOper } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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() { @@ -441,7 +464,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. + * 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) { @@ -467,8 +491,8 @@ public Operation setName(java.lang.String name) { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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() { @@ -476,8 +500,8 @@ public java.lang.String getOperationGroupId() { } /** - * [Output Only] An ID that represents a group of operations, such as when a group of operations - * results from a `bulkInsert` API request. + * 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) { @@ -562,8 +586,8 @@ public Operation setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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() { @@ -571,8 +595,8 @@ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOp } /** - * [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will - * contain information on all underlying zonal actions and their state. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java index 923f1b730d8..0a42c170556 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -44,8 +44,8 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always `compute#operationAggregatedList` for aggregated lists - * of operations. + * 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 @@ -69,7 +69,7 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public OperationAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public OperationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java index c7c27b93315..b993539d1db 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -50,7 +50,8 @@ public final class OperationList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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 @@ -115,7 +116,8 @@ public OperationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always `compute#operations` for Operations resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java index 92f1e45bacd..5608b2e6ea6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class OrganizationSecurityPoliciesListAssociationsResponse extends private java.util.List associations; /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * The value may be {@code null}. @@ -63,7 +63,7 @@ public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @return value or {@code null} for none @@ -73,7 +73,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of securityPolicy associations. + * Output only. [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @param kind kind or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java index 9482b4dce0d..b3eb96bcda6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -43,7 +43,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringForwardingRuleInfo collectorIlb; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,16 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringFilter filter; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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 @@ -134,7 +136,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private java.lang.String region; /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +162,7 @@ public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collect } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -168,7 +170,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { @@ -234,7 +236,8 @@ public PacketMirroring setFilter(PacketMirroringFilter filter) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -242,7 +245,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -251,7 +255,8 @@ public PacketMirroring setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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() { @@ -259,7 +264,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. + * 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) { @@ -375,7 +381,7 @@ public PacketMirroring setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -383,7 +389,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java index 595728e2281..1037f9cab3d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -44,7 +44,7 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public PacketMirroringAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PacketMirroringAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java index ec03ec70a94..94108ee8069 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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 @@ -45,7 +45,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.clie private java.lang.String url; /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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() { @@ -53,7 +53,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the forwarding rule; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java index c7915c3357f..3d7fba4d7f1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -50,7 +50,8 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +68,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public PacketMirroringList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * Output only. [Output Only] Type of resource. Always compute#packetMirroring for + * packetMirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. + * 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) { @@ -155,7 +158,7 @@ public PacketMirroringList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java index 6cb0e091a11..17b0f288da5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.g private java.lang.String url; /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the instance; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java index 4001f06eabd..afcc0dfdf19 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.goo private java.lang.String url; /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the subnetwork; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java index 254d520c669..aba6b27e954 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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 @@ -44,7 +44,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json private java.lang.String url; /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * [Output Only] Unique identifier for the network; defined by the server. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java index 9f3e11621fe..862d369b8cb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -146,8 +146,11 @@ public final class PathMatcher extends com.google.api.client.json.GenericJson { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. @@ -426,8 +429,11 @@ public PathMatcher setName(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. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. @@ -441,8 +447,11 @@ public java.util.List getPathRules() { /** * The list of path rules. Use this list instead of routeRules when routing based on simple path - * matching is all that's required. The order by which path rules are specified does not matter. - * Matches are always done on the longest-path-first basis. + * 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java index 65df1d11db3..67589c68ecf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -37,28 +37,30 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private java.lang.String activationStatus; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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] Description of the feature. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The type of the feature. Always "compute#previewFeature" for preview features. + * 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 @@ -79,14 +81,14 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private PreviewFeatureRolloutOperation rolloutOperation; /** - * [Output Only] Server-defined URL for the resource. + * 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] Status of the feature. + * Output only. [Output only] Status of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +112,7 @@ public PreviewFeature setActivationStatus(java.lang.String activationStatus) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -118,7 +120,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { @@ -127,7 +129,7 @@ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -135,7 +137,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] Description of the feature. + * Output only. [Output Only] Description of the feature. * @param description description or {@code null} for none */ public PreviewFeature setDescription(java.lang.String description) { @@ -144,7 +146,8 @@ public PreviewFeature setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -152,7 +155,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -161,7 +165,8 @@ public PreviewFeature setId(java.math.BigInteger id) { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * 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() { @@ -169,7 +174,8 @@ public java.lang.String getKind() { } /** - * [Output only] The type of the feature. Always "compute#previewFeature" for preview features. + * 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) { @@ -212,7 +218,7 @@ public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rollout } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -220,7 +226,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -229,7 +235,7 @@ public PreviewFeature setSelfLink(java.lang.String selfLink) { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @return value or {@code null} for none */ public PreviewFeatureStatus getStatus() { @@ -237,7 +243,7 @@ public PreviewFeatureStatus getStatus() { } /** - * [Output only] Status of the feature. + * Output only. [Output only] Status of the feature. * @param status status or {@code null} for none */ public PreviewFeature setStatus(PreviewFeatureStatus status) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java index 7db8ee1c6d8..f099ab2a800 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -66,14 +66,15 @@ public final class PreviewFeatureList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public PreviewFeatureList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java index af6b1bbc4e8..6b0cd6054f8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -30,14 +30,14 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The description of the feature. + * 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] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,7 +50,7 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.Gener private PreviewFeatureStatusReleaseStatus releaseStatus; /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -58,7 +58,7 @@ public java.lang.String getDescription() { } /** - * [Output Only] The description of the feature. + * Output only. [Output Only] The description of the feature. * @param description description or {@code null} for none */ public PreviewFeatureStatus setDescription(java.lang.String description) { @@ -67,7 +67,7 @@ public PreviewFeatureStatus setDescription(java.lang.String description) { } /** - * [Output Only] Link to the public documentation for the feature. + * Output only. [Output Only] Link to the public documentation for the feature. * @return value or {@code null} for none */ public java.lang.String getHelpLink() { @@ -75,7 +75,7 @@ public java.lang.String getHelpLink() { } /** - * [Output Only] Link to the public documentation for the feature. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java index f26a5843a8a..bbefbcc3470 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -30,7 +30,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.clie private Date updateDate; /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @return value or {@code null} for none */ public java.lang.String getStage() { @@ -52,7 +52,7 @@ public java.lang.String getStage() { } /** - * [Output Only] The stage of the feature. + * Output only. [Output Only] The stage of the feature. * @param stage stage or {@code null} for none */ public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java index 7c97bff47df..b8c5d5a80e3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java @@ -33,8 +33,8 @@ public final class Project extends com.google.api.client.json.GenericJson { /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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}. @@ -97,15 +97,15 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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; /** - * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of - * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It + * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * The value may be {@code null}. @@ -144,7 +144,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private UsageExportLocation usageExportLocation; /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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 @@ -159,8 +159,8 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.lang.String xpnProjectStatus; /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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 @@ -170,8 +170,8 @@ public java.lang.String getCloudArmorTier() { } /** - * [Output Only] The Cloud Armor tier for this project. It can be one of the following values: - * CA_STANDARD,CA_ENTERPRISE_PAYGO. + * 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 @@ -311,7 +311,7 @@ public Project setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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() { @@ -319,7 +319,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#project for projects. + * 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) { @@ -328,8 +328,8 @@ public Project setKind(java.lang.String kind) { } /** - * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of - * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It + * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @return value or {@code null} for none @@ -339,8 +339,8 @@ public java.lang.String getManagedProtectionTier() { } /** - * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of - * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It + * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @param managedProtectionTier managedProtectionTier or {@code null} for none @@ -423,7 +423,7 @@ public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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() { @@ -431,7 +431,7 @@ public java.lang.String getVmDnsSetting() { } /** - * [Output Only] Default internal DNS setting used by VMs running in this project. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java index b7574ceac6c..cd70d815772 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -30,18 +30,18 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -55,8 +55,8 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.Ge private java.util.List resources; /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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() { @@ -64,8 +64,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of service - * resources (a.k.a service projects) + * 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) { @@ -74,10 +74,10 @@ public ProjectsGetXpnResources setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -85,10 +85,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java index 47997ccbda3..dffdfa4c908 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -32,14 +32,14 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { /** - * [Output Only] The version of BYOIP API. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,8 +72,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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 @@ -94,8 +94,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String ipv6AccessType; /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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 @@ -125,15 +125,15 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String pdpScope; /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +159,7 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String status; /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -167,7 +167,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -176,7 +176,7 @@ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -184,7 +184,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -292,8 +292,8 @@ public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -301,8 +301,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -345,8 +345,8 @@ public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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() { @@ -354,8 +354,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised - * prefixes. + * 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) { @@ -416,8 +416,8 @@ public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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() { @@ -425,8 +425,8 @@ public java.util.List getPublicDele } /** - * [Output Only] The list of public delegated prefixes that exist for this public advertised - * prefix. + * 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) { @@ -435,7 +435,7 @@ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List publicDelegatedSubPrefixs; /** - * [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. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -202,7 +202,7 @@ public PublicDelegatedPrefix setAllocatablePrefixLength(java.lang.Integer alloca } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -210,7 +210,7 @@ public java.lang.String getByoipApiVersion() { } /** - * [Output Only] The version of BYOIP API. + * Output only. [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -219,7 +219,7 @@ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -227,7 +227,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicDelegatedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -253,8 +253,8 @@ public PublicDelegatedPrefix setDescription(java.lang.String description) { } /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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() { @@ -262,8 +262,8 @@ public java.lang.Boolean getEnableEnhancedIpv4Allocation() { } /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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) { @@ -337,8 +337,8 @@ public PublicDelegatedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -346,8 +346,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -373,8 +373,8 @@ public PublicDelegatedPrefix setIpCidrRange(java.lang.String ipCidrRange) { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Prefixes. Inherited from - * parent prefix. + * 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() { @@ -382,8 +382,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Prefixes. Inherited from - * parent prefix. + * 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) { @@ -409,8 +409,8 @@ public PublicDelegatedPrefix setIsLiveMigration(java.lang.Boolean isLiveMigratio } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated - * prefixes. + * 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() { @@ -418,8 +418,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated - * prefixes. + * 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) { @@ -504,9 +504,9 @@ public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List items; /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixAggregatedList for - * aggregated lists of public delegated prefixes. + * 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 @@ -69,7 +70,7 @@ public final class PublicDelegatedPrefixAggregatedList extends com.google.api.cl private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +118,9 @@ public PublicDelegatedPrefixAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PublicDelegatedPrefixAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java index 661e1a7fb4a..c6896a733e8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -50,8 +50,8 @@ public final class PublicDelegatedPrefixList extends com.google.api.client.json. } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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 @@ -116,8 +116,8 @@ public PublicDelegatedPrefixList setItems(java.util.List } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public - * delegated prefixes. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java index 3e7b2b63d57..db255ac525a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -51,8 +51,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String description; /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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 @@ -66,8 +66,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String ipCidrRange; /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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 @@ -95,15 +95,15 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String name; /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -161,8 +161,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.St } /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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() { @@ -170,8 +170,8 @@ public java.lang.Boolean getEnableEnhancedIpv4Allocation() { } /** - * [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for IPv4 PDPs - * only. + * 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) { @@ -197,8 +197,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.St } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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() { @@ -206,8 +206,8 @@ public java.lang.String getIpv6AccessType() { } /** - * [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. Inherited from - * parent prefix. + * 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) { @@ -267,8 +267,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String na } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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() { @@ -276,8 +276,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] The region of the sub public delegated prefix if it is regional. If absent, the - * sub prefix is global. + * 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) { @@ -286,7 +286,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String } /** - * [Output Only] The status of the sub public delegated prefix. + * Output only. [Output Only] The status of the sub public delegated prefix. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -294,7 +294,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the sub public delegated prefix. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java index 924e8061310..db743f6ac38 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java @@ -30,7 +30,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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 @@ -59,7 +59,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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() { @@ -67,7 +67,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#reference for references. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java index bccee9a8880..c244dcb05e6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java @@ -61,7 +61,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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 @@ -75,8 +75,8 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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 @@ -110,7 +110,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,7 +192,7 @@ public Region setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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() { @@ -200,7 +200,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#region for regions. + * 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) { @@ -226,8 +226,8 @@ public Region setName(java.lang.String name) { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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() { @@ -235,8 +235,8 @@ public QuotaStatusWarning getQuotaStatusWarning() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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) { @@ -296,7 +296,7 @@ public Region setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -304,7 +304,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Region setSupportsPzs(java.lang.Boolean supportsPzs) { @@ -340,8 +340,8 @@ public Region clone() { } /** - * [Output Only] Warning of fetching the `quotas` field for this region. This field is populated - * only if fetching of the `quotas` field fails. + * 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 { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java index 2e556ab7d08..551ddfd2ac0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -50,7 +50,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RegionAutoscalerList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RegionAutoscalerList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionAutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java index 75127baf46f..872032b6f03 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -50,7 +50,8 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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 @@ -67,7 +68,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public RegionDiskTypeList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. + * 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) { @@ -155,7 +158,7 @@ public RegionDiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java index 05b7ebc0b41..85740a56c46 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,38 +50,38 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.Ge } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupList setItems(java.util.List items) { } /** - * The resource type. + * Output only. The resource type. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * The resource type. + * Output only. The resource type. * @param kind kind or {@code null} for none */ public RegionInstanceGroupList setKind(java.lang.String kind) { @@ -132,10 +132,10 @@ public RegionInstanceGroupList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -143,10 +143,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -155,7 +155,7 @@ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -172,7 +172,7 @@ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -180,7 +180,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupList setWarning(Warning warning) { @@ -199,7 +199,7 @@ public RegionInstanceGroupList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java index 92bdbe38b6c..5a070239603 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,39 +50,39 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client. } /** - * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of - * managed instance groups that exist in th regional scope. + * Output only. [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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -116,8 +116,8 @@ public RegionInstanceGroupManagerList setItems(java.util.List unreachables; /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +111,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setEtag(java.lang.St } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -118,7 +119,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * Output only. [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) { @@ -144,8 +145,8 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.L } /** - * [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. + * Output only. [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() { @@ -153,8 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#regionInstanceGroupManagerResizeRequestList - * for a list of Resize Requests. + * Output only. [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) { @@ -163,10 +164,10 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.St } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -174,10 +175,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(java.lang.String nextPageToken) { @@ -186,7 +187,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(jav } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @param selfLink selfLink or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { @@ -203,7 +204,8 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lan } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java.util.List unreachables) { @@ -220,7 +223,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -228,7 +231,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { @@ -247,7 +250,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java new file mode 100644 index 00000000000..059cdc52e7f --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.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 RegionInstanceGroupManagersAdoptInstancesRequest. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RegionInstanceGroupManagersAdoptInstancesRequest extends com.google.api.client.json.GenericJson { + + /** + * The list of per-instance configs specifying instances to adopt. + * 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); + } + + /** + * The list of per-instance configs specifying instances to adopt. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The list of per-instance configs specifying instances to adopt. + * @param instances instances or {@code null} for none + */ + public RegionInstanceGroupManagersAdoptInstancesRequest setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + @Override + public RegionInstanceGroupManagersAdoptInstancesRequest set(String fieldName, Object value) { + return (RegionInstanceGroupManagersAdoptInstancesRequest) super.set(fieldName, value); + } + + @Override + public RegionInstanceGroupManagersAdoptInstancesRequest clone() { + return (RegionInstanceGroupManagersAdoptInstancesRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java index c5415e1b6a4..1743aba53b2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListErrorsResponse extends com.goo } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List getItems() { @@ -68,7 +68,7 @@ public java.util.List getItems() { } /** - * [Output Only] The list of PerInstanceConfig. + * Output only. [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { @@ -77,10 +77,10 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.Lis } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -88,10 +88,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -100,7 +100,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java. } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -108,7 +108,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { @@ -127,7 +127,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java index acfc0c7acca..be961b62fc1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListInstancesResponse extends com. } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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 @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -81,10 +81,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java index dac1f439e48..aefcae26d51 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -50,38 +50,38 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.clie } /** - * The resource type. + * Output only. The resource type. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [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. + * 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() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupsListInstances setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#regionList for lists of regions. + * 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) { @@ -155,7 +155,7 @@ public RegionList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java index ee278d6de38..f55221c5cee 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -30,9 +30,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends com.google.api.client.json.GenericJson { /** - * [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. + * 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 @@ -52,9 +52,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ex } /** - * [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. + * 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() { @@ -62,9 +62,9 @@ public java.util.List firewallPolicys) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index c87245ab60e..8ee047a1277 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -31,21 +31,21 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] The display name of the firewall policy. + * 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] The name of the firewall policy. + * 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] The packet mirroring rules that apply to the network. + * 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 @@ -58,14 +58,15 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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. + * Output only. [Output only] The rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,7 +79,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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}. */ @@ -86,7 +87,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff private java.lang.String type; /** - * [Output Only] The display name of the firewall policy. + * Output only. [Output Only] The display name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -94,7 +95,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the firewall policy. + * 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) { @@ -103,7 +104,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The name of the firewall policy. + * Output only. [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -111,7 +112,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the firewall policy. + * 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) { @@ -120,7 +121,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The packet mirroring rules that apply to the network. + * 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() { @@ -128,7 +129,7 @@ public java.util.List getPacketMirroringRules() { } /** - * [Output only] The packet mirroring rules that apply to the network. + * 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) { @@ -137,7 +138,8 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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() { @@ -145,7 +147,8 @@ public java.lang.Integer getPriority() { } /** - * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. + * 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) { @@ -154,7 +157,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output only] The rules that apply to the network. + * Output only. [Output only] The rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getRules() { @@ -162,7 +165,7 @@ public java.util.List getRules() { } /** - * [Output only] The rules that apply to the network. + * 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) { @@ -171,7 +174,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ @@ -180,7 +183,7 @@ public java.lang.String getType() { } /** - * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * 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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java index 6a972d65efa..3cfc66df38c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -46,15 +46,21 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private AllocationAggregateReservation aggregateReservation; /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * 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; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * 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 @@ -90,6 +96,15 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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. @@ -99,22 +114,23 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableEmergentMaintenance; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#reservations for reservations. + * 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] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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 @@ -131,6 +147,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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). @@ -140,7 +164,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String protectionTier; /** - * [Output only] Indicates the reservation mode of the reservation. + * Output only. [Output only] Indicates the reservation mode of the reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -163,14 +187,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.util.Map resourcePolicies; /** - * [Output Only] Status information for Reservation resource. + * 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] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -184,7 +208,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String schedulingType; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -216,10 +240,10 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean specificReservationRequired; /** - * [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. + * 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 @@ -268,8 +292,8 @@ public Reservation setAggregateReservation(AllocationAggregateReservation aggreg } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a commitment. + * 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() { @@ -277,8 +301,8 @@ public java.lang.String getCommitment() { } /** - * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations - * that are tied to a 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) { @@ -287,7 +311,22 @@ public Reservation setCommitment(java.lang.String commitment) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * @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() { @@ -295,7 +334,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -375,6 +414,27 @@ public Reservation setDescription(java.lang.String 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. @@ -395,7 +455,8 @@ public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergent } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -403,7 +464,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -412,7 +474,7 @@ public Reservation setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -420,7 +482,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * 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) { @@ -429,8 +491,8 @@ public Reservation setKind(java.lang.String kind) { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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() { @@ -438,8 +500,8 @@ public java.util.List getLinkedCommitments() { } /** - * [Output Only] Full or partial URL to parent commitments. This field displays for reservations - * that are tied to multiple commitments. + * 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) { @@ -472,6 +534,25 @@ public Reservation setName(java.lang.String 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). @@ -492,7 +573,7 @@ public Reservation setProtectionTier(java.lang.String protectionTier) { } /** - * [Output only] Indicates the reservation mode of the reservation. + * Output only. [Output only] Indicates the reservation mode of the reservation. * @return value or {@code null} for none */ public java.lang.String getReservationMode() { @@ -500,7 +581,7 @@ public java.lang.String getReservationMode() { } /** - * [Output only] Indicates the reservation mode of the reservation. + * Output only. [Output only] Indicates the reservation mode of the reservation. * @param reservationMode reservationMode or {@code null} for none */ public Reservation setReservationMode(java.lang.String reservationMode) { @@ -547,7 +628,7 @@ public Reservation setResourcePolicies(java.util.Map r } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @return value or {@code null} for none */ public AllocationResourceStatus getResourceStatus() { @@ -555,7 +636,7 @@ public AllocationResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for Reservation resource. + * Output only. [Output Only] Status information for Reservation resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { @@ -564,7 +645,7 @@ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -572,7 +653,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -598,7 +679,7 @@ public Reservation setSchedulingType(java.lang.String schedulingType) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -606,7 +687,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -674,10 +755,10 @@ public Reservation setSpecificReservationRequired(java.lang.Boolean specificRese } /** - * [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. + * 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() { @@ -685,10 +766,10 @@ public java.lang.String getStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java index b89fe21e167..481d5487015 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -44,7 +44,7 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ReservationAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ReservationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index 9c28377a472..3cc78bd8634 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,58 +30,62 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] The number of resources that are allocated in this reservation block. + * 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] Creation timestamp inRFC3339 text format. + * 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] Health information for the reservation block. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The number of instances that are currently in use on this reservation block. + * 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; /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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] The name of this reservation block generated by Google Compute Engine. The name - * must be 1-63 characters long, and comply with RFC1035 @pattern + * 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}. */ @@ -89,64 +93,66 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * [Output Only] The physical topology of the reservation block. + * 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] Maintenance information for this reservation block. + * 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] The number of reservation subBlocks associated with this reservation block. + * 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] 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. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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] Status of the reservation block. + * 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] Zone in which the reservation block resides. + * 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] The number of resources that are allocated in this reservation block. + * 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() { @@ -154,7 +160,8 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of resources that are allocated in this reservation block. + * 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) { @@ -163,7 +170,7 @@ public ReservationBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -171,7 +178,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -180,7 +187,7 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @return value or {@code null} for none */ public ReservationBlockHealthInfo getHealthInfo() { @@ -188,7 +195,7 @@ public ReservationBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation block. + * Output only. [Output Only] Health information for the reservation block. * @param healthInfo healthInfo or {@code null} for none */ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { @@ -197,7 +204,8 @@ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -205,7 +213,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -214,7 +223,8 @@ public ReservationBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * 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() { @@ -222,7 +232,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation block. + * 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) { @@ -231,8 +242,8 @@ public ReservationBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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() { @@ -240,8 +251,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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) { @@ -250,7 +261,8 @@ public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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() { @@ -258,7 +270,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. + * 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) { @@ -267,8 +280,8 @@ public ReservationBlock setKind(java.lang.String kind) { } /** - * [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 + * 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 */ @@ -277,8 +290,8 @@ public java.lang.String getName() { } /** - * [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 + * 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 */ @@ -288,7 +301,7 @@ public ReservationBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopology getPhysicalTopology() { @@ -296,7 +309,7 @@ public ReservationBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation block. + * Output only. [Output Only] The physical topology of the reservation block. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { @@ -305,7 +318,7 @@ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology phy } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationMaintenance() { @@ -313,7 +326,7 @@ public GroupMaintenanceInfo getReservationMaintenance() { } /** - * [Output Only] Maintenance information for this reservation block. + * Output only. [Output Only] Maintenance information for this reservation block. * @param reservationMaintenance reservationMaintenance or {@code null} for none */ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { @@ -322,7 +335,8 @@ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservati } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * 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() { @@ -330,7 +344,8 @@ public java.lang.Integer getReservationSubBlockCount() { } /** - * [Output Only] The number of reservation subBlocks associated with this reservation block. + * 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) { @@ -339,8 +354,8 @@ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservatio } /** - * [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. + * 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() { @@ -348,8 +363,8 @@ public java.lang.Integer getReservationSubBlockInUseCount() { } /** - * [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. + * 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) { @@ -358,7 +373,7 @@ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reser } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -366,7 +381,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -375,7 +390,7 @@ public ReservationBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -383,7 +398,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -392,7 +407,7 @@ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -400,7 +415,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation block. + * Output only. [Output Only] Status of the reservation block. * @param status status or {@code null} for none */ public ReservationBlock setStatus(java.lang.String status) { @@ -409,7 +424,7 @@ public ReservationBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation block resides. + * Output only. [Output Only] Zone in which the reservation block resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -417,7 +432,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation block resides. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java index 53e85cffd67..b51a80d1123 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -44,7 +44,7 @@ public final class ReservationBlockPhysicalTopology extends com.google.api.clien private java.lang.String cluster; /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,7 @@ public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { } /** - * The detailed instances information for a given Block + * Output only. The detailed instances information for a given Block * @return value or {@code null} for none */ public java.util.List getInstances() { @@ -93,7 +93,7 @@ public java.util.List getInstances() { } /** - * The detailed instances information for a given Block + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java index bca68a5e4f5..74bbbacca30 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -37,7 +37,7 @@ public final class ReservationBlockPhysicalTopologyInstance extends com.google.a private java.math.BigInteger instanceId; /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteg } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { @@ -76,7 +76,7 @@ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalH } /** - * The PhysicalHostTopology of instances within a Block resource. + * Output only. The PhysicalHostTopology of instances within a Block resource. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java index b036cd71a72..0bad0666237 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -50,7 +50,8 @@ public final class ReservationList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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 @@ -67,7 +68,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public ReservationList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations + * 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) { @@ -155,7 +158,7 @@ public ReservationList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java new file mode 100644 index 00000000000..9a5b6a712ab --- /dev/null +++ b/clients/google-api-services-compute/beta/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/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 9ae87d6d051..7e39ffbcc94 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -30,66 +30,68 @@ public final class ReservationSubBlock extends com.google.api.client.json.GenericJson { /** - * [Output Only] Slice info for the reservation subBlock. + * 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] The number of hosts that are allocated in this reservation subBlock. + * 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] Creation timestamp inRFC3339 text format. + * 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] Health information for the reservation subBlock. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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] The number of instances that are currently in use on this reservation subBlock. + * 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; /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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] The name of this reservation subBlock generated by Google Compute Engine. The - * name must be 1-63 characters long, and comply with RFC1035 @pattern + * 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}. */ @@ -97,49 +99,49 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi private java.lang.String name; /** - * [Output Only] The physical topology of the reservation subBlock. + * 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; /** - * Maintenance information for this reservation subBlock. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource with the resource id. + * 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] Status of the reservation subBlock. + * 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] Zone in which the reservation subBlock resides. + * 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] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @return value or {@code null} for none */ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { @@ -147,7 +149,7 @@ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { } /** - * [Output Only] Slice info for the reservation subBlock. + * Output only. [Output Only] Slice info for the reservation subBlock. * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none */ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { @@ -156,7 +158,7 @@ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInf } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * 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() { @@ -164,7 +166,7 @@ public java.lang.Integer getCount() { } /** - * [Output Only] The number of hosts that are allocated in this reservation subBlock. + * 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) { @@ -173,7 +175,7 @@ public ReservationSubBlock setCount(java.lang.Integer count) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -181,7 +183,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -190,7 +192,7 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockHealthInfo getHealthInfo() { @@ -198,7 +200,7 @@ public ReservationSubBlockHealthInfo getHealthInfo() { } /** - * [Output Only] Health information for the reservation subBlock. + * Output only. [Output Only] Health information for the reservation subBlock. * @param healthInfo healthInfo or {@code null} for none */ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { @@ -207,7 +209,8 @@ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInf } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -215,7 +218,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -224,7 +228,8 @@ public ReservationSubBlock setId(java.math.BigInteger id) { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * 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() { @@ -232,7 +237,8 @@ public java.lang.Integer getInUseCount() { } /** - * [Output Only] The number of instances that are currently in use on this reservation subBlock. + * 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) { @@ -241,8 +247,8 @@ public ReservationSubBlock setInUseCount(java.lang.Integer inUseCount) { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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() { @@ -250,8 +256,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Number of hosts currently in use. If there is one or more Instances running on the host, it is - * considered in use. + * 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) { @@ -260,8 +266,8 @@ public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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() { @@ -269,8 +275,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation - * subBlocks. + * 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) { @@ -279,8 +285,8 @@ public ReservationSubBlock setKind(java.lang.String kind) { } /** - * [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 + * 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 */ @@ -289,8 +295,8 @@ public java.lang.String getName() { } /** - * [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 + * 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 */ @@ -300,7 +306,7 @@ public ReservationSubBlock setName(java.lang.String name) { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { @@ -308,7 +314,7 @@ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { } /** - * [Output Only] The physical topology of the reservation subBlock. + * Output only. [Output Only] The physical topology of the reservation subBlock. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { @@ -317,7 +323,7 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { @@ -325,7 +331,7 @@ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { } /** - * Maintenance information for this reservation subBlock. + * Output only. Maintenance information for this reservation subBlock. * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none */ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { @@ -334,7 +340,7 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -342,7 +348,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -351,7 +357,7 @@ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -359,7 +365,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { @@ -368,7 +374,7 @@ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -376,7 +382,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] Status of the reservation subBlock. + * Output only. [Output Only] Status of the reservation subBlock. * @param status status or {@code null} for none */ public ReservationSubBlock setStatus(java.lang.String status) { @@ -385,7 +391,7 @@ public ReservationSubBlock setStatus(java.lang.String status) { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * Output only. [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -393,7 +399,7 @@ public java.lang.String getZone() { } /** - * [Output Only] Zone in which the reservation subBlock resides. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java index 1a8c9dc1642..6bc0c38c573 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -31,7 +31,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -72,7 +73,8 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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 @@ -96,14 +98,14 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private java.lang.String region; /** - * [Output Only] The system status of the resource policy. + * 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] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,7 +119,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +133,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyWorkloadPolicy workloadPolicy; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -197,7 +199,8 @@ public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -205,7 +208,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -231,7 +235,8 @@ public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePo } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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() { @@ -239,7 +244,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. + * 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) { @@ -288,7 +294,7 @@ public ResourcePolicy setRegion(java.lang.String region) { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @return value or {@code null} for none */ public ResourcePolicyResourceStatus getResourceStatus() { @@ -296,7 +302,7 @@ public ResourcePolicyResourceStatus getResourceStatus() { } /** - * [Output Only] The system status of the resource policy. + * Output only. [Output Only] The system status of the resource policy. * @param resourceStatus resourceStatus or {@code null} for none */ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { @@ -305,7 +311,7 @@ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceSta } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -313,7 +319,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -339,7 +345,7 @@ public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePo } /** - * [Output Only] The status of resource policy creation. + * Output only. [Output Only] The status of resource policy creation. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -347,7 +353,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of resource policy creation. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java index 62d0b0d5449..50b94076f75 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -56,7 +56,7 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,14 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,7 @@ public ResourcePolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ResourcePolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java index 3bdee011222..a23209854dd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -38,8 +38,8 @@ public final class ResourcePolicyDailyCycle extends com.google.api.client.json.G private java.lang.Integer daysInCycle; /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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 @@ -73,8 +73,8 @@ public ResourcePolicyDailyCycle setDaysInCycle(java.lang.Integer daysInCycle) { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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() { @@ -82,8 +82,8 @@ public java.lang.String getDuration() { } /** - * [Output only] A predetermined duration for the window, automatically chosen to be the smallest - * possible in the given scenario. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java index 344c0e6dd69..7bc231a7392 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -30,8 +30,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json.GenericJson { /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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 @@ -54,8 +54,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json. private java.lang.String startTime; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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() { @@ -63,8 +63,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java index 0e74d741445..495e033dbc4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -56,7 +56,8 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,7 +74,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +137,8 @@ public ResourcePolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof + * resourcePolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -144,7 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies + * 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) { @@ -176,7 +179,7 @@ public ResourcePolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -184,7 +187,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java index 0d0dcd61a5e..530e452effd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -32,16 +32,18 @@ public final class ResourcePolicyResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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() { @@ -49,8 +51,9 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSched } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java index ee231f26daa..4a6a22e20dd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -30,22 +30,24 @@ public final class ResourcePolicyResourceStatusInstanceSchedulePolicyStatus extends com.google.api.client.json.GenericJson { /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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() { @@ -53,7 +55,8 @@ public java.lang.String getLastRunStartTime() { } /** - * [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. + * 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) { @@ -62,8 +65,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartT } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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() { @@ -71,8 +74,8 @@ public java.lang.String getNextRunStartTime() { } /** - * [Output Only] The next time the schedule is planned to run. The actual time might be slightly - * different. The timestamp is an RFC3339 string. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java index c95509acb7f..620437c3886 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -39,8 +39,8 @@ public final class ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.cli private java.lang.String day; /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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 @@ -76,8 +76,8 @@ public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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() { @@ -85,8 +85,8 @@ public java.lang.String getDuration() { } /** - * [Output only] Duration of the time window, automatically chosen to be smallest possible in the - * given scenario. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index e357c802616..45529ca6c4f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -31,32 +31,34 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson { /** - * [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. + * 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] 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. + * 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] 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. + * 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] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,7 +71,7 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private ResourceStatusScheduling scheduling; /** - * [Output Only] Details about the instance stopping state. + * Output only. [Output Only] Details about the instance stopping state. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,9 +84,9 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private UpcomingMaintenance upcomingMaintenance; /** - * [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. + * 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() { @@ -92,9 +94,9 @@ public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { } /** - * [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. + * 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) { @@ -103,8 +105,9 @@ public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstan } /** - * [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. + * 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() { @@ -112,8 +115,9 @@ public java.lang.String getPhysicalHost() { } /** - * [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. + * 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) { @@ -122,8 +126,9 @@ public ResourceStatus setPhysicalHost(java.lang.String physicalHost) { } /** - * [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. + * 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() { @@ -131,8 +136,9 @@ public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { } /** - * [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. + * 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) { @@ -141,7 +147,7 @@ public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology } /** - * [Output Only] Reservation information that the instance is consuming from. + * Output only. [Output Only] Reservation information that the instance is consuming from. * @return value or {@code null} for none */ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() { @@ -149,7 +155,7 @@ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() } /** - * [Output Only] Reservation information that the instance is consuming from. + * 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) { @@ -173,7 +179,7 @@ public ResourceStatus setScheduling(ResourceStatusScheduling scheduling) { } /** - * [Output Only] Details about the instance stopping state. + * Output only. [Output Only] Details about the instance stopping state. * @return value or {@code null} for none */ public ResourceStatusShutdownDetails getShutdownDetails() { @@ -181,7 +187,7 @@ public ResourceStatusShutdownDetails getShutdownDetails() { } /** - * [Output Only] Details about the instance stopping state. + * Output only. [Output Only] Details about the instance stopping state. * @param shutdownDetails shutdownDetails or {@code null} for none */ public ResourceStatus setShutdownDetails(ResourceStatusShutdownDetails shutdownDetails) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java index a4fb3dc3ba9..4ab03361f12 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java @@ -64,6 +64,13 @@ public final class ResourceStatusEffectiveInstanceMetadata extends com.google.ap @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}. @@ -170,6 +177,23 @@ public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(jav 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java index 33bdf54ed61..7753f710612 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -30,14 +30,16 @@ public final class ResourceStatusReservationConsumptionInfo extends com.google.api.client.json.GenericJson { /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * 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] The full resource name of the reservation that this instance is consuming from. + * 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() { @@ -45,7 +47,8 @@ public java.lang.String getConsumedReservation() { } /** - * [Output Only] The full resource name of the reservation that this instance is consuming from. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java index f9217b53075..6f314a3a4c1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java @@ -17,7 +17,10 @@ package com.google.api.services.compute.model; /** - * Represent a Rollout resource. + * 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: @@ -44,7 +47,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String completionTime; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,14 +75,15 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String etag; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#rollout for rollouts. + * 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 @@ -112,14 +116,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String rolloutPlan; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -174,7 +178,7 @@ public Rollout setCompletionTime(java.lang.String completionTime) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -182,7 +186,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Rollout setCreationTimestamp(java.lang.String creationTimestamp) { @@ -242,7 +246,8 @@ public Rollout setEtag(java.lang.String etag) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -250,7 +255,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -259,7 +265,7 @@ public Rollout setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#rollout for rollouts. + * 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() { @@ -267,7 +273,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#rollout for rollouts. + * 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) { @@ -337,7 +343,7 @@ public Rollout setRolloutPlan(java.lang.String rolloutPlan) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -345,7 +351,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -354,7 +360,7 @@ public Rollout setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -362,7 +368,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java index c24af287777..712a6961446 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java @@ -17,7 +17,11 @@ package com.google.api.services.compute.model; /** - * Message describing RolloutPlan object + * 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: @@ -30,7 +34,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,14 +48,15 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * 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 @@ -77,14 +82,14 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 @@ -98,7 +103,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.util.List waves; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -106,7 +111,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RolloutPlan setCreationTimestamp(java.lang.String creationTimestamp) { @@ -132,7 +137,8 @@ public RolloutPlan setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -140,7 +146,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -149,7 +156,7 @@ public RolloutPlan setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * 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() { @@ -157,7 +164,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * 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) { @@ -210,7 +217,7 @@ public RolloutPlan setName(java.lang.String name) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -218,7 +225,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -227,7 +234,7 @@ public RolloutPlan setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -235,7 +242,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java index beb3942d8a9..88f9bd42c32 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java @@ -66,14 +66,15 @@ public final class RolloutPlansListResponse extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public RolloutPlansListResponse setNextPageToken(java.lang.String nextPageToken) } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutPlansListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java index 9c0deff71b3..c49f5389511 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java @@ -66,14 +66,15 @@ public final class RolloutsListResponse extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +160,7 @@ public RolloutsListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -167,7 +168,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -176,7 +177,8 @@ public RolloutsListResponse setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +186,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java index 78775e940d5..e4a8f6741cb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java @@ -34,14 +34,14 @@ public final class Route extends com.google.api.client.json.GenericJson { /** - * [Output Only] AS path. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,14 +64,15 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String destRange; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of this resource. Always compute#routes for Route resources. + * 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 @@ -105,8 +106,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopGateway; /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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 @@ -139,17 +140,18 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopInstance; /** - * [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. + * 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] 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. + * 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 @@ -167,8 +169,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopIp; /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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 @@ -182,16 +184,16 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopNetwork; /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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 @@ -223,18 +225,18 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.Long priority; /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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] 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 + * 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 @@ -255,8 +257,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.util.List tags; /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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 @@ -269,7 +271,7 @@ public final class Route extends com.google.api.client.json.GenericJson { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -277,7 +279,7 @@ public java.util.List getAsPaths() { } /** - * [Output Only] AS path. + * Output only. [Output Only] AS path. * @param asPaths asPaths or {@code null} for none */ public Route setAsPaths(java.util.List asPaths) { @@ -286,7 +288,7 @@ public Route setAsPaths(java.util.List asPaths) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -294,7 +296,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Route setCreationTimestamp(java.lang.String creationTimestamp) { @@ -341,7 +343,8 @@ public Route setDestRange(java.lang.String destRange) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -349,7 +352,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -358,7 +362,7 @@ public Route setId(java.math.BigInteger id) { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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() { @@ -366,7 +370,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of this resource. Always compute#routes for Route resources. + * 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) { @@ -438,8 +442,8 @@ public Route setNextHopGateway(java.lang.String nextHopGateway) { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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() { @@ -447,8 +451,8 @@ public java.lang.String getNextHopHub() { } /** - * [Output Only] The full resource name of the Network Connectivity Center hub that will handle - * matching packets. + * 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) { @@ -515,8 +519,9 @@ public Route setNextHopInstance(java.lang.String nextHopInstance) { } /** - * [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. + * 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() { @@ -524,8 +529,9 @@ public java.lang.Long getNextHopInterRegionCost() { } /** - * [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. + * 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) { @@ -534,9 +540,9 @@ public Route setNextHopInterRegionCost(java.lang.Long nextHopInterRegionCost) { } /** - * [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. + * 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() { @@ -544,9 +550,9 @@ public java.lang.String getNextHopInterconnectAttachment() { } /** - * [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. + * 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) { @@ -580,8 +586,8 @@ public Route setNextHopIp(java.lang.String nextHopIp) { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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() { @@ -589,8 +595,8 @@ public java.lang.Long getNextHopMed() { } /** - * [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a - * particular route in a network. + * 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) { @@ -616,8 +622,8 @@ public Route setNextHopNetwork(java.lang.String nextHopNetwork) { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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() { @@ -625,8 +631,8 @@ public java.lang.String getNextHopOrigin() { } /** - * [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP - * (Exterior Gateway Protocol), or INCOMPLETE. + * 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) { @@ -635,8 +641,8 @@ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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() { @@ -644,8 +650,8 @@ public java.lang.String getNextHopPeering() { } /** - * [Output Only] The network peering name that should handle matching packets, which should - * conform to RFC1035. + * 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) { @@ -713,8 +719,8 @@ public Route setPriority(java.lang.Long priority) { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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() { @@ -722,8 +728,8 @@ public java.lang.String getRouteStatus() { } /** - * [Output only] The status of the route. This status only applies to dynamic routes learned by - * Cloud Routers. This status is not applicable to static routes. + * [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) { @@ -732,10 +738,10 @@ public Route setRouteStatus(java.lang.String routeStatus) { } /** - * [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 + * 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() { @@ -743,10 +749,10 @@ public java.lang.String getRouteType() { } /** - * [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 + * 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) { @@ -789,8 +795,8 @@ public Route setTags(java.util.List tags) { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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() { @@ -798,8 +804,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this route, this field will be - * populated with warning messages. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java index 9052a3d434e..cd5b56ea9e0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -50,7 +50,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouteList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouteList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouteList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java index 4367ff87697..07fab3bd08e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java @@ -48,7 +48,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List bgpPeers; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List interfaces; /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public Router setBgpPeers(java.util.List bgpPeers) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -204,7 +204,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Router setCreationTimestamp(java.lang.String creationTimestamp) { @@ -293,7 +293,7 @@ public Router setInterfaces(java.util.List interfaces) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -301,7 +301,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java index 307e0afc33c..db21c3e9216 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -44,7 +44,7 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public RouterAggregatedList setItems(java.util.Map it } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public RouterAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public RouterAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RouterAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java index f4f262041a8..b133d765ef9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -166,12 +166,12 @@ public final class RouterBgpPeer extends com.google.api.client.json.GenericJson private java.lang.String ipv6NexthopAddress; /** - * [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. + * 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 @@ -543,12 +543,12 @@ public RouterBgpPeer setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) } /** - * [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. + * 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() { @@ -556,12 +556,12 @@ public java.lang.String getManagementType() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java index 93e8c4c2c42..779d4921d86 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -69,12 +69,12 @@ public final class RouterInterface extends com.google.api.client.json.GenericJso private java.lang.String linkedVpnTunnel; /** - * [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. + * 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 @@ -214,12 +214,12 @@ public RouterInterface setLinkedVpnTunnel(java.lang.String linkedVpnTunnel) { } /** - * [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. + * 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() { @@ -227,12 +227,12 @@ public java.lang.String getManagementType() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java index 6f5d8bad44d..95df0e9398e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -50,7 +50,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public RouterList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * Output only. [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#router for routers. + * 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) { @@ -155,7 +155,7 @@ public RouterList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java index 52c5d87fe82..71bdb7c3925 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -49,42 +49,44 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private BfdStatus bfdStatus; /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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; /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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; /** - * IP address of the local BGP interface. + * 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; /** - * IPv4 address of the local BGP interface. + * 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; /** - * IPv6 address of the local BGP interface. + * 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; /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,59 +100,59 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.Boolean md5AuthEnabled; /** - * Name of this BGP peer. Unique within the Routers resource. + * 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; /** - * Number of routes learned from the remote BGP Peer. + * 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; /** - * IP address of the remote BGP interface. + * 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; /** - * IPv4 address of the remote BGP interface. + * 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; /** - * IPv6 address of the remote BGP interface. + * 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] 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. + * 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; /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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; /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,15 +166,15 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.String statusReason; /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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; /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -211,7 +213,8 @@ public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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() { @@ -219,7 +222,8 @@ public java.lang.Boolean getEnableIpv4() { } /** - * Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 4. + * 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) { @@ -228,7 +232,8 @@ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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() { @@ -236,7 +241,8 @@ public java.lang.Boolean getEnableIpv6() { } /** - * Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress is version 6. + * 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) { @@ -245,7 +251,7 @@ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -253,7 +259,7 @@ public java.lang.String getIpAddress() { } /** - * IP address of the local BGP interface. + * Output only. IP address of the local BGP interface. * @param ipAddress ipAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { @@ -262,7 +268,7 @@ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv4NexthopAddress() { @@ -270,7 +276,7 @@ public java.lang.String getIpv4NexthopAddress() { } /** - * IPv4 address of the local BGP interface. + * Output only. IPv4 address of the local BGP interface. * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { @@ -279,7 +285,7 @@ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4Next } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv6NexthopAddress() { @@ -287,7 +293,7 @@ public java.lang.String getIpv6NexthopAddress() { } /** - * IPv6 address of the local BGP interface. + * Output only. IPv6 address of the local BGP interface. * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { @@ -296,7 +302,7 @@ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6Next } /** - * URL of the VPN tunnel that this BGP peer controls. + * Output only. URL of the VPN tunnel that this BGP peer controls. * @return value or {@code null} for none */ public java.lang.String getLinkedVpnTunnel() { @@ -304,7 +310,7 @@ public java.lang.String getLinkedVpnTunnel() { } /** - * URL of the VPN tunnel that this BGP peer controls. + * 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) { @@ -330,7 +336,7 @@ public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnab } /** - * Name of this BGP peer. Unique within the Routers resource. + * Output only. Name of this BGP peer. Unique within the Routers resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -338,7 +344,7 @@ public java.lang.String getName() { } /** - * Name of this BGP peer. Unique within the Routers resource. + * 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) { @@ -347,7 +353,7 @@ public RouterStatusBgpPeerStatus setName(java.lang.String name) { } /** - * Number of routes learned from the remote BGP Peer. + * Output only. Number of routes learned from the remote BGP Peer. * @return value or {@code null} for none */ public java.lang.Long getNumLearnedRoutes() { @@ -355,7 +361,7 @@ public java.lang.Long getNumLearnedRoutes() { } /** - * Number of routes learned from the remote BGP Peer. + * 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) { @@ -364,7 +370,7 @@ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRo } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -372,7 +378,7 @@ public java.lang.String getPeerIpAddress() { } /** - * IP address of the remote BGP interface. + * Output only. IP address of the remote BGP interface. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { @@ -381,7 +387,7 @@ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv4NexthopAddress() { @@ -389,7 +395,7 @@ public java.lang.String getPeerIpv4NexthopAddress() { } /** - * IPv4 address of the remote BGP interface. + * Output only. IPv4 address of the remote BGP interface. * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { @@ -398,7 +404,7 @@ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peer } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv6NexthopAddress() { @@ -406,7 +412,7 @@ public java.lang.String getPeerIpv6NexthopAddress() { } /** - * IPv6 address of the remote BGP interface. + * Output only. IPv6 address of the remote BGP interface. * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { @@ -415,9 +421,9 @@ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peer } /** - * [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. + * 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() { @@ -425,9 +431,9 @@ public java.lang.String getRouterApplianceInstance() { } /** - * [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. + * 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) { @@ -436,8 +442,8 @@ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String rou } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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() { @@ -445,8 +451,8 @@ public java.lang.String getState() { } /** - * The state of the BGP session. For a list of possible values for this field, seeBGP session - * states. + * 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) { @@ -455,7 +461,7 @@ public RouterStatusBgpPeerStatus setState(java.lang.String state) { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -463,7 +469,7 @@ public java.lang.String getStatus() { } /** - * Status of the BGP peer: {UP, DOWN} + * Output only. Status of the BGP peer: {UP, DOWN} * @param status status or {@code null} for none */ public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { @@ -489,8 +495,8 @@ public RouterStatusBgpPeerStatus setStatusReason(java.lang.String statusReason) } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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() { @@ -498,8 +504,8 @@ public java.lang.String getUptime() { } /** - * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 - * seconds + * 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) { @@ -508,7 +514,7 @@ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { } /** - * Time this session has been up, in seconds. Format: 145 + * Output only. Time this session has been up, in seconds. Format: 145 * @return value or {@code null} for none */ public java.lang.String getUptimeSeconds() { @@ -516,7 +522,7 @@ public java.lang.String getUptimeSeconds() { } /** - * Time this session has been up, in seconds. Format: 145 + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java index 7444eae4ae0..ef71891d9b5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -30,14 +30,14 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.GenericJson { /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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; /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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}. */ @@ -45,7 +45,7 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainAutoAllocatedNatIps; /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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}. */ @@ -53,23 +53,23 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List drainUserAllocatedNatIps; /** - * 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. + * 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; /** - * Unique name of this NAT. + * Output only. Unique name of this NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** - * Number of VM endpoints (i.e., Nics) that can use NAT. + * 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 @@ -83,21 +83,22 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List ruleStatus; /** - * A list of fully qualified URLs of reserved IP address resources. + * 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; /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * 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; /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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() { @@ -105,7 +106,7 @@ public java.util.List getAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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) { @@ -114,7 +115,7 @@ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List getDrainAutoAllocatedNatIps() { } /** - * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -133,7 +134,7 @@ public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List getDrainUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -152,9 +153,9 @@ public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List getUserAllocatedNatIpResources() { @@ -232,7 +233,7 @@ public java.util.List getUserAllocatedNatIpResources() { } /** - * A list of fully qualified URLs of reserved IP address resources. + * 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) { @@ -241,7 +242,8 @@ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List getUserAllocatedNatIps() { @@ -249,7 +251,8 @@ public java.util.List getUserAllocatedNatIps() { } /** - * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java index db7f3b5c89d..cbbdfb39f77 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -30,43 +30,44 @@ public final class RouterStatusNatStatusNatRuleStatus extends com.google.api.client.json.GenericJson { /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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; /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * 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; /** - * 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. + * 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; /** - * Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule. + * 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; /** - * Rule number of the rule. + * Output only. Rule number of the rule. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer ruleNumber; /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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() { @@ -74,7 +75,7 @@ public java.util.List getActiveNatIps() { } /** - * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -83,7 +84,8 @@ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List getDrainNatIps() { @@ -91,7 +93,8 @@ public java.util.List getDrainNatIps() { } /** - * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -100,8 +103,8 @@ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.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 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/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java index 818137164f1..8239df9d7ca 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java @@ -43,7 +43,8 @@ public final class RoutersListBgpRoutes extends com.google.api.client.json.Gener private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of bgp routes. + * 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 @@ -73,14 +74,14 @@ public final class RoutersListBgpRoutes extends com.google.api.client.json.Gener } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,7 +127,8 @@ public RoutersListBgpRoutes setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of bgp routes. + * 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() { @@ -134,7 +136,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of bgp routes. + * 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) { @@ -183,7 +186,7 @@ public RoutersListBgpRoutes setResult(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +203,7 @@ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListBgpRoutes setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java new file mode 100644 index 00000000000..4e536a46cba --- /dev/null +++ b/clients/google-api-services-compute/beta/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/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java index b527ad775a6..1a62c00b46b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -43,8 +43,8 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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 @@ -74,14 +74,14 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +127,8 @@ public RoutersListRoutePolicies setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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() { @@ -136,8 +136,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route - * policies. + * 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) { @@ -186,7 +186,7 @@ public RoutersListRoutePolicies setResult(java.util.List result) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +194,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +203,7 @@ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListRoutePolicies setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java index bf7e29946a2..200770cde8a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -67,7 +67,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.Long diskSizeGb; /** - * [Output Only] URL of the disk type resource. For + * 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}. */ @@ -89,7 +89,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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 @@ -103,14 +103,14 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String interface__; /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,17 +131,18 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String source; /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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] 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. + * 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 @@ -244,7 +245,7 @@ public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] URL of the disk type resource. For + * 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 */ @@ -253,7 +254,7 @@ public java.lang.String getDiskType() { } /** - * [Output Only] URL of the disk type resource. For + * 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 */ @@ -282,7 +283,7 @@ public SavedAttachedDisk setGuestOsFeatures(java.util.List guest } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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() { @@ -290,7 +291,7 @@ public java.lang.Integer getIndex() { } /** - * Specifies zero-based index of the disk that is attached to the source instance. + * 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) { @@ -316,7 +317,7 @@ public SavedAttachedDisk setInterface(java.lang.String interface__) { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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() { @@ -324,7 +325,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * 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) { @@ -333,7 +334,7 @@ public SavedAttachedDisk setKind(java.lang.String kind) { } /** - * [Output Only] Any valid publicly visible licenses. + * Output only. [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -341,7 +342,7 @@ public java.util.List getLicenses() { } /** - * [Output Only] Any valid publicly visible 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) { @@ -384,7 +385,8 @@ public SavedAttachedDisk setSource(java.lang.String source) { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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() { @@ -392,7 +394,8 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] A size of the storage used by the disk's snapshot by this machine image. + * 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) { @@ -401,10 +404,10 @@ public SavedAttachedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -412,10 +415,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java index a9935b2bb70..aaed00e16f7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -30,45 +30,45 @@ public final class SavedDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the attached disk. + * 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] Type of the resource. Always compute#savedDisk for attached disks. + * 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; /** - * Specifies a URL of the disk attached to the source instance. + * 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] Size of the individual disk snapshot used by this machine image. + * 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] 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. + * 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] The architecture of the attached disk. + * Output only. [Output Only] The architecture of the attached disk. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -76,7 +76,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the attached disk. + * 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) { @@ -85,7 +85,7 @@ public SavedDisk setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * 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) { @@ -102,7 +102,7 @@ public SavedDisk setKind(java.lang.String kind) { } /** - * Specifies a URL of the disk attached to the source instance. + * 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() { @@ -110,7 +110,7 @@ public java.lang.String getSourceDisk() { } /** - * Specifies a URL of the disk attached to the source instance. + * 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) { @@ -119,7 +119,7 @@ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * 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() { @@ -127,7 +127,7 @@ public java.lang.Long getStorageBytes() { } /** - * [Output Only] Size of the individual disk snapshot used by this machine image. + * 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) { @@ -136,10 +136,10 @@ public SavedDisk setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -147,10 +147,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java index ac73a0cd4cf..beaceec8af9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java @@ -152,6 +152,15 @@ public final class Scheduling extends com.google.api.client.json.GenericJson { @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}. @@ -466,6 +475,27 @@ public Scheduling setPreemptible(java.lang.Boolean 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java index 4eed043ce0c..3aabd23a6e1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -37,7 +37,7 @@ public final class Screenshot extends com.google.api.client.json.GenericJson { private java.lang.String contents; /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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 @@ -61,7 +61,7 @@ public Screenshot setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java index b6a54a3106a..a84058c3cc4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -50,8 +50,8 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of - * Security Policies. + * 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 @@ -68,14 +68,14 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SecurityPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java index 17ddc586845..cf3148b5805 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -52,7 +52,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List associations; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,14 +98,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,16 +158,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private SecurityPolicyRecaptchaOptionsConfig recaptchaOptionsConfig; /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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; /** - * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all security policy rule tuples. A security policy + * can not exceed a set number of tuples. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,14 +185,14 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List rules; /** - * [Output Only] Server-defined URL for the resource. + * 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. + * 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 @@ -295,7 +297,7 @@ public SecurityPolicy setAssociations(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -303,7 +305,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -442,7 +444,8 @@ public SecurityPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -450,7 +453,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -459,7 +463,8 @@ public SecurityPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security + * policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -467,7 +472,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies + * 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) { @@ -585,7 +591,7 @@ public SecurityPolicy setName(java.lang.String name) { } /** - * [Output Only] The parent of the security policy. + * Output only. [Output Only] The parent of the security policy. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -593,7 +599,7 @@ public java.lang.String getParent() { } /** - * [Output Only] The parent of the security policy. + * 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) { @@ -617,8 +623,8 @@ public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsCo } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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() { @@ -626,8 +632,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional security policy resides. This field is not - * applicable to global security policies. + * 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) { @@ -636,8 +642,8 @@ public SecurityPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all security policy rule tuples. A security policy + * can not exceed a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -645,8 +651,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed - * a set number of tuples. + * Output only. [Output Only] Total count of all security policy rule tuples. A security policy + * can not exceed a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -680,7 +686,7 @@ public SecurityPolicy setRules(java.util.List rules) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -688,7 +694,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -697,7 +703,7 @@ public SecurityPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -705,7 +711,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * Output only. [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SecurityPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java index 57ec4989820..9476b243de5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -37,7 +37,7 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String attachmentId; /** - * [Output Only] The display name of the security policy of the association. + * 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 @@ -65,14 +65,14 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * [Output Only] The security policy ID of the association. + * 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] The short name of the security policy of the association. + * 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 @@ -96,7 +96,7 @@ public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) } /** - * [Output Only] The display name of the security policy of the association. + * 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() { @@ -104,7 +104,7 @@ public java.lang.String getDisplayName() { } /** - * [Output Only] The display name of the security policy of the association. + * 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) { @@ -164,7 +164,7 @@ public SecurityPolicyAssociation setName(java.lang.String name) { } /** - * [Output Only] The security policy ID of the association. + * Output only. [Output Only] The security policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getSecurityPolicyId() { @@ -172,7 +172,7 @@ public java.lang.String getSecurityPolicyId() { } /** - * [Output Only] The security policy ID of the association. + * 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) { @@ -181,7 +181,7 @@ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPo } /** - * [Output Only] The short name of the security policy of the association. + * 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() { @@ -189,7 +189,7 @@ public java.lang.String getShortName() { } /** - * [Output Only] The short name of the security policy of the association. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java index 17d5630766a..33873905536 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java @@ -29,12 +29,90 @@ @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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java index 19d4c9ad5d2..5fd6edbb9dd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -50,7 +50,8 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +109,8 @@ public SecurityPolicyList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof + * securityPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -116,7 +118,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java index 48ab40cb384..e220085aafd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -85,7 +85,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private SecurityPolicyRuleHttpHeaderAction headerAction; /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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 @@ -183,7 +184,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private java.lang.Long ruleNumber; /** - * [Output Only] Calculation of the complexity of a single firewall security policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall security policy + * rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,7 +333,8 @@ public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction hea } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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() { @@ -339,7 +342,8 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules + * 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) { @@ -554,7 +558,8 @@ public SecurityPolicyRule setRuleNumber(java.lang.Long ruleNumber) { } /** - * [Output Only] Calculation of the complexity of a single firewall security policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall security policy + * rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -562,7 +567,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * [Output Only] Calculation of the complexity of a single firewall security policy rule. + * Output only. [Output Only] Calculation of the complexity of a single firewall security policy + * rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java index c0e4da81a12..6ffbb122749 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java @@ -29,6 +29,14 @@ @SuppressWarnings("javadoc") public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com.google.api.client.json.GenericJson { + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List requestBodiesToExclude; + /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. @@ -78,6 +86,25 @@ public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com @com.google.api.client.util.Key private java.lang.String targetRuleSet; + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * @return value or {@code null} for none + */ + public java.util.List getRequestBodiesToExclude() { + return requestBodiesToExclude; + } + + /** + * A list of request body fields to be excluded from inspection during preconfigured WAF + * evaluation. + * @param requestBodiesToExclude requestBodiesToExclude or {@code null} for none + */ + public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestBodiesToExclude(java.util.List requestBodiesToExclude) { + this.requestBodiesToExclude = requestBodiesToExclude; + return this; + } + /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java index bbb282182db..55658088fdb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -37,7 +37,8 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.String contents; /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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 @@ -53,7 +54,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.Long next; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +89,8 @@ public SerialPortOutput setContents(java.lang.String contents) { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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() { @@ -96,7 +98,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. + * 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) { @@ -126,7 +129,7 @@ public SerialPortOutput setNext(java.lang.Long next) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -134,7 +137,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java index 4e614e1b586..60323086c10 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -34,8 +34,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJson { /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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 @@ -73,7 +73,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.util.List consumerRejectLists; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,15 +115,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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 @@ -181,7 +182,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Long propagatedConnectionLimit; /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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 @@ -202,16 +203,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Boolean reconcileConnections; /** - * [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. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -236,8 +237,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private ServiceAttachmentTunnelingConfig tunnelingConfig; /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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() { @@ -245,8 +246,8 @@ public java.util.List getConnectedEndpoints( } /** - * [Output Only] An array of connections for all the consumers connected to this service - * attachment. + * 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) { @@ -326,7 +327,7 @@ public ServiceAttachment setConsumerRejectLists(java.util.List } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -334,7 +335,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -461,8 +462,8 @@ public ServiceAttachment encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -470,8 +471,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -480,7 +481,8 @@ public ServiceAttachment setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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() { @@ -488,7 +490,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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) { @@ -614,7 +617,7 @@ public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedC } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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() { @@ -622,7 +625,7 @@ public Uint128 getPscServiceAttachmentId() { } /** - * [Output Only] An 128-bit global unique ID of the PSC service attachment. + * 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) { @@ -662,9 +665,9 @@ public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConn } /** - * [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. + * 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() { @@ -672,9 +675,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { @@ -683,7 +686,7 @@ public ServiceAttachment setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -691,7 +694,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java index c059c93940b..4e76e05905c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -44,7 +44,7 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ServiceAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ServiceAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java index da01d8aa8a6..ae7bbed5851 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -50,7 +50,8 @@ public final class ServiceAttachmentList extends com.google.api.client.json.Gene } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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 @@ -115,7 +116,8 @@ public ServiceAttachmentList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java index 6aead1f593f..4381a64c967 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -51,8 +51,8 @@ public final class ShieldedInstanceIdentity extends com.google.api.client.json.G private ShieldedInstanceIdentityEntry encryptionKey; /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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 @@ -117,8 +117,8 @@ public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry e } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for shielded - * Instance identity entry. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java index d284f34ce5b..f9eaa9d86b5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java @@ -37,8 +37,8 @@ public final class ShieldedVmIdentity extends com.google.api.client.json.Generic private ShieldedVmIdentityEntry encryptionKey; /** - * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity - * entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded + * VM identity entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,8 +69,8 @@ public ShieldedVmIdentity setEncryptionKey(ShieldedVmIdentityEntry encryptionKey } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity - * entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded + * VM identity entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -78,8 +78,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity - * entry. + * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded + * VM identity entry. * @param kind kind or {@code null} for none */ public ShieldedVmIdentity setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java index 6dd3f8d1426..5bbb6278aaf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -33,15 +33,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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 @@ -59,14 +59,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String chainName; /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,22 +80,22 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] Size of the source disk, specified in GB. + * 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] Number of bytes downloaded to restore a snapshot to a disk. + * 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; /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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 @@ -110,9 +110,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * [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. + * 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 @@ -125,14 +125,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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 @@ -160,15 +162,16 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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] 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). + * 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 @@ -202,8 +205,8 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private SnapshotParams params; /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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 @@ -217,14 +220,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * [Output Only] Reserved for future use. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -247,6 +250,20 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { @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 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 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}. @@ -277,9 +294,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String sourceDiskForRecoveryCheckpoint; /** - * [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. + * 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 @@ -304,51 +321,51 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceInstantSnapshotEncryptionKey; /** - * [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. + * 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] URL of the resource policy which created this scheduled snapshot. + * 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] ID of the resource policy which created this scheduled snapshot. + * 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] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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] A size of the storage used by the snapshot. As snapshots share storage, this - * number is expected to change with snapshot creation/deletion. + * 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] 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. + * 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 @@ -362,15 +379,7 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List userLicenses; - - /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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() { @@ -378,7 +387,7 @@ public java.lang.String getArchitecture() { } /** - * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * 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) { @@ -387,8 +396,8 @@ public Snapshot setArchitecture(java.lang.String architecture) { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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() { @@ -396,8 +405,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * [Output Only] Set to true if snapshots are automatically created by applying resource policy on - * the target disk. + * 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) { @@ -431,7 +440,7 @@ public Snapshot setChainName(java.lang.String chainName) { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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() { @@ -439,7 +448,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * [Output Only] Size in bytes of the snapshot at creation time. + * 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) { @@ -448,7 +457,7 @@ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -456,7 +465,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -482,7 +491,7 @@ public Snapshot setDescription(java.lang.String description) { } /** - * [Output Only] Size of the source disk, specified in GB. + * Output only. [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -490,7 +499,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * [Output Only] Size of the source disk, specified in GB. + * 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) { @@ -499,7 +508,7 @@ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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() { @@ -507,7 +516,7 @@ public java.lang.Long getDownloadBytes() { } /** - * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * 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) { @@ -516,8 +525,8 @@ public Snapshot setDownloadBytes(java.lang.Long downloadBytes) { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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() { @@ -525,8 +534,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This - * field is not set by user, but from source disk. + * 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) { @@ -554,9 +563,9 @@ public Snapshot setGuestFlush(java.lang.Boolean guestFlush) { } /** - * [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. + * 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() { @@ -564,9 +573,9 @@ public java.util.List getGuestOsFeatures() { } /** - * [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. + * 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) { @@ -575,7 +584,8 @@ public Snapshot setGuestOsFeatures(java.util.List guestOsFeature } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -583,7 +593,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -592,7 +603,8 @@ public Snapshot setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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() { @@ -600,7 +612,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. + * 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) { @@ -697,7 +710,8 @@ public Snapshot setLabels(java.util.Map labels) { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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() { @@ -705,7 +719,8 @@ public java.util.List getLicenseCodes() { } /** - * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. + * 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) { @@ -714,8 +729,8 @@ public Snapshot setLicenseCodes(java.util.List licenseCodes) { } /** - * [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). + * 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() { @@ -723,8 +738,8 @@ public java.util.List getLicenses() { } /** - * [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). + * 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) { @@ -796,8 +811,8 @@ public Snapshot setParams(SnapshotParams params) { } /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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() { @@ -805,8 +820,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the snapshot resides. Only applicable for regional - * snapshots. + * 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) { @@ -832,7 +847,7 @@ public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -840,7 +855,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -849,7 +864,7 @@ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -857,7 +872,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -902,6 +917,40 @@ public Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptio return this; } + /** + * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * @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. + * @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. + * @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. + * @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 @@ -973,9 +1022,9 @@ public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskFo } /** - * [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. + * 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() { @@ -983,9 +1032,9 @@ public java.lang.String getSourceDiskId() { } /** - * [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. + * 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) { @@ -1036,11 +1085,11 @@ public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sour } /** - * [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. + * 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() { @@ -1048,11 +1097,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * [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. + * 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) { @@ -1061,7 +1110,7 @@ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapsho } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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() { @@ -1069,7 +1118,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * [Output Only] URL of the resource policy which created this scheduled snapshot. + * 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) { @@ -1078,7 +1127,7 @@ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotS } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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() { @@ -1086,7 +1135,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * [Output Only] ID of the resource policy which created this scheduled snapshot. + * 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) { @@ -1095,8 +1144,8 @@ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapsho } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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() { @@ -1104,8 +1153,8 @@ public java.lang.String getStatus() { } /** - * [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or - * UPLOADING. + * 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) { @@ -1114,8 +1163,8 @@ public Snapshot setStatus(java.lang.String status) { } /** - * [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. + * 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() { @@ -1123,8 +1172,8 @@ public java.lang.Long getStorageBytes() { } /** - * [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. + * 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) { @@ -1133,10 +1182,10 @@ public Snapshot setStorageBytes(java.lang.Long storageBytes) { } /** - * [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. + * 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() { @@ -1144,10 +1193,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * [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. + * 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 Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { @@ -1172,25 +1221,6 @@ public Snapshot setStorageLocations(java.util.List storageLoca return this; } - /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * @return value or {@code null} for none - */ - public java.util.List getUserLicenses() { - return userLicenses; - } - - /** - * [Output Only] A list of user provided licenses represented by a list of URLs to the license - * resource. - * @param userLicenses userLicenses or {@code null} for none - */ - public Snapshot setUserLicenses(java.util.List userLicenses) { - this.userLicenses = userLicenses; - return this; - } - @Override public Snapshot set(String fieldName, Object value) { return (Snapshot) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java index 9188a4355ad..c9adaf64afb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java @@ -50,8 +50,8 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for aggregated lists of - * snapshots. + * Output only. [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for + * aggregated lists of snapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java new file mode 100644 index 00000000000..b44d02aa4c3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java @@ -0,0 +1,330 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code 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 SnapshotGroup resource. + * + * A snapshot group is a set of 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 SnapshotGroup 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#snapshotGroup for SnapshotGroup + * 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] 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; + + /** + * Output only. [Output Only] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotGroupSourceInfo sourceInfo; + + /** + * Input field for the source instant snapshot group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceInstantSnapshotGroup; + + /** + * Output only. [Output Only] + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo; + + /** + * 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] 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 SnapshotGroup 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 SnapshotGroup 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 SnapshotGroup setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup + * resources. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup + * resources. + * @param kind kind or {@code null} for none + */ + public SnapshotGroup 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 SnapshotGroup 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 SnapshotGroup 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 SnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. [Output Only] + * @return value or {@code null} for none + */ + public SnapshotGroupSourceInfo getSourceInfo() { + return sourceInfo; + } + + /** + * Output only. [Output Only] + * @param sourceInfo sourceInfo or {@code null} for none + */ + public SnapshotGroup setSourceInfo(SnapshotGroupSourceInfo sourceInfo) { + this.sourceInfo = sourceInfo; + return this; + } + + /** + * Input field for the source instant snapshot group. + * @return value or {@code null} for none + */ + public java.lang.String getSourceInstantSnapshotGroup() { + return sourceInstantSnapshotGroup; + } + + /** + * Input field for the source instant snapshot group. + * @param sourceInstantSnapshotGroup sourceInstantSnapshotGroup or {@code null} for none + */ + public SnapshotGroup setSourceInstantSnapshotGroup(java.lang.String sourceInstantSnapshotGroup) { + this.sourceInstantSnapshotGroup = sourceInstantSnapshotGroup; + return this; + } + + /** + * Output only. [Output Only] + * @return value or {@code null} for none + */ + public SnapshotGroupSourceInstantSnapshotGroupInfo getSourceInstantSnapshotGroupInfo() { + return sourceInstantSnapshotGroupInfo; + } + + /** + * Output only. [Output Only] + * @param sourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo or {@code null} for none + */ + public SnapshotGroup setSourceInstantSnapshotGroupInfo(SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo) { + this.sourceInstantSnapshotGroupInfo = sourceInstantSnapshotGroupInfo; + 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 SnapshotGroup setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public SnapshotGroup set(String fieldName, Object value) { + return (SnapshotGroup) super.set(fieldName, value); + } + + @Override + public SnapshotGroup clone() { + return (SnapshotGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.java new file mode 100644 index 00000000000..3a3e7c2a15d --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.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 SnapshotGroupSourceInfo. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SnapshotGroupSourceInfo 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 SnapshotGroupSourceInfo 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 SnapshotGroupSourceInfo setConsistencyGroupId(java.lang.String consistencyGroupId) { + this.consistencyGroupId = consistencyGroupId; + return this; + } + + @Override + public SnapshotGroupSourceInfo set(String fieldName, Object value) { + return (SnapshotGroupSourceInfo) super.set(fieldName, value); + } + + @Override + public SnapshotGroupSourceInfo clone() { + return (SnapshotGroupSourceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.java new file mode 100644 index 00000000000..4f681b07603 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.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 SnapshotGroupSourceInstantSnapshotGroupInfo. + * + *

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

      + * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SnapshotGroupSourceInstantSnapshotGroupInfo extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroup; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroupId; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; + } + + /** + * @param instantSnapshotGroup instantSnapshotGroup or {@code null} for none + */ + public SnapshotGroupSourceInstantSnapshotGroupInfo setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + this.instantSnapshotGroup = instantSnapshotGroup; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getInstantSnapshotGroupId() { + return instantSnapshotGroupId; + } + + /** + * @param instantSnapshotGroupId instantSnapshotGroupId or {@code null} for none + */ + public SnapshotGroupSourceInstantSnapshotGroupInfo setInstantSnapshotGroupId(java.lang.String instantSnapshotGroupId) { + this.instantSnapshotGroupId = instantSnapshotGroupId; + return this; + } + + @Override + public SnapshotGroupSourceInstantSnapshotGroupInfo set(String fieldName, Object value) { + return (SnapshotGroupSourceInstantSnapshotGroupInfo) super.set(fieldName, value); + } + + @Override + public SnapshotGroupSourceInstantSnapshotGroupInfo clone() { + return (SnapshotGroupSourceInstantSnapshotGroupInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java index 39950d997d4..04f8790fe65 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -50,7 +50,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SnapshotList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java index 0f1afad1dce..1191efded34 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -30,18 +30,22 @@ public final class SnapshotParams extends com.google.api.client.json.GenericJson { /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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 manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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() { @@ -49,9 +53,11 @@ public java.util.Map getResourceManagerTags() { } /** - * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition - * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in - * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + * 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/456` 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java index f19be8c9f63..2c48c3fa352 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java @@ -71,7 +71,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * [Output Only] Expire time of the certificate. RFC3339 + * Output only. [Output Only] Expire time of the certificate. RFC3339 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. + * 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 @@ -118,8 +119,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String privateKey; /** - * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not - * applicable to global SSL Certificate. + * 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 @@ -140,7 +141,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private SslCertificateSelfManagedSslCertificate selfManaged; /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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 @@ -210,7 +212,7 @@ public SslCertificate setDescription(java.lang.String description) { } /** - * [Output Only] Expire time of the certificate. RFC3339 + * Output only. [Output Only] Expire time of the certificate. RFC3339 * @return value or {@code null} for none */ public java.lang.String getExpireTime() { @@ -218,7 +220,7 @@ public java.lang.String getExpireTime() { } /** - * [Output Only] Expire time of the certificate. RFC3339 + * 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) { @@ -244,7 +246,8 @@ public SslCertificate setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. + * 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() { @@ -252,7 +255,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. + * 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) { @@ -322,8 +326,8 @@ public SslCertificate setPrivateKey(java.lang.String privateKey) { } /** - * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not - * applicable to global SSL Certificate. + * 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() { @@ -331,8 +335,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional SSL Certificate resides. This field is not - * applicable to global SSL Certificate. + * 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) { @@ -375,7 +379,8 @@ public SslCertificate setSelfManaged(SslCertificateSelfManagedSslCertificate sel } /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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() { @@ -383,7 +388,8 @@ public java.util.List getSubjectAlternativeNames() { } /** - * [Output Only] Domains associated with the certificate via Subject Alternative Name. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java index afee0f9e13d..d806133ed5f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -44,8 +44,8 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL - * Certificates. + * 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 @@ -62,14 +62,14 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SslCertificateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslCertificateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java index 688db9167d9..27110fd9466 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -50,7 +50,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public SslCertificateList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public SslCertificateList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SslCertificateList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java index 2521f524e73..8897726891a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -30,7 +30,8 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.client.json.GenericJson { /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * 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 @@ -46,14 +47,15 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.cl private java.util.List domains; /** - * [Output only] Status of the managed certificate resource. + * 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] Detailed statuses of the domains specified for managed certificate resource. + * 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() { @@ -61,7 +63,8 @@ public java.util.Map getDomainStatus() { } /** - * [Output only] Detailed statuses of the domains specified for managed certificate resource. + * 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) { @@ -91,7 +94,7 @@ public SslCertificateManagedSslCertificate setDomains(java.util.List items; /** - * [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL - * Policies. + * 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 @@ -68,14 +68,14 @@ public final class SslPoliciesAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SslPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java index 775a4adcdbe..c8c7092cb3a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -30,38 +30,39 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJson { /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 SslPolicy resources. + * 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] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +76,7 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJso private Warning warning; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -83,7 +84,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -92,7 +93,7 @@ public SslPoliciesList setId(java.lang.String id) { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -100,7 +101,7 @@ public java.util.List getItems() { } /** - * A list of SslPolicy resources. + * Output only. A list of SslPolicy resources. * @param items items or {@code null} for none */ public SslPoliciesList setItems(java.util.List items) { @@ -109,7 +110,8 @@ public SslPoliciesList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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() { @@ -117,7 +119,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. + * 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) { @@ -126,10 +129,10 @@ public SslPoliciesList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -137,10 +140,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -149,7 +152,7 @@ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -157,7 +160,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java index f4598ad8b00..396f7637c52 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -34,7 +34,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,7 +57,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The list of features enabled in the SSL policy. + * 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 @@ -76,14 +76,15 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,31 +112,32 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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] Server-defined URL for the resource. + * 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] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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 @@ -148,7 +150,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -156,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +205,7 @@ public SslPolicy setDescription(java.lang.String description) { } /** - * [Output Only] The list of features enabled in the SSL policy. + * 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() { @@ -211,7 +213,7 @@ public java.util.List getEnabledFeatures() { } /** - * [Output Only] The list of features enabled in the SSL policy. + * 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) { @@ -285,7 +287,8 @@ public SslPolicy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -293,7 +296,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -302,7 +306,7 @@ public SslPolicy setId(java.math.BigInteger id) { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -310,7 +314,7 @@ public java.lang.String getKind() { } /** - * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * 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) { @@ -366,8 +370,9 @@ public SslPolicy setName(java.lang.String name) { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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() { @@ -376,8 +381,9 @@ public java.lang.String getProfile() { /** * 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, orCUSTOM. If - * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. + * 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) { @@ -386,8 +392,8 @@ public SslPolicy setProfile(java.lang.String profile) { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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() { @@ -395,8 +401,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional SSL policy resides. This field is not - * applicable to global SSL policies. + * 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) { @@ -405,7 +411,7 @@ public SslPolicy setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -413,7 +419,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -422,8 +428,8 @@ public SslPolicy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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() { @@ -431,8 +437,8 @@ public java.util.List getWarnings() { } /** - * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will - * be populated with warning messages. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java index 3f2774ef34e..13a2e7a534a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -37,7 +37,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String capacityProvisioningType; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,14 +51,22 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] 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] Type of the resource. Always compute#storagePool for storage pools. + * 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 @@ -95,6 +103,14 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @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. @@ -128,37 +144,37 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long poolProvisionedThroughput; /** - * [Output Only] Status information for the storage pool resource. + * 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] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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 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. + * 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] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -172,8 +188,8 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String storagePoolType; /** - * [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. + * 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 @@ -197,7 +213,7 @@ public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisio } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -205,7 +221,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -231,7 +247,25 @@ public StoragePool setDescription(java.lang.String description) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * @return value or {@code null} for none + */ + public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { + return exapoolProvisionedCapacityGb; + } + + /** + * Output only. [Output Only] 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() { @@ -239,7 +273,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -248,7 +283,7 @@ public StoragePool setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * 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() { @@ -256,7 +291,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * 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) { @@ -375,6 +410,25 @@ public StoragePool setName(java.lang.String 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. @@ -452,7 +506,7 @@ public StoragePool setPoolProvisionedThroughput(java.lang.Long poolProvisionedTh } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getResourceStatus() { @@ -460,7 +514,7 @@ public StoragePoolResourceStatus getResourceStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param resourceStatus resourceStatus or {@code null} for none */ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { @@ -469,7 +523,7 @@ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -477,7 +531,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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) { @@ -486,7 +540,7 @@ public StoragePool setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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() { @@ -494,7 +548,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource's resource id. + * 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) { @@ -503,9 +557,9 @@ public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * [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. + * 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() { @@ -513,9 +567,9 @@ public java.lang.String getState() { } /** - * [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. + * 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) { @@ -524,7 +578,7 @@ public StoragePool setState(java.lang.String state) { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getStatus() { @@ -532,7 +586,7 @@ public StoragePoolResourceStatus getStatus() { } /** - * [Output Only] Status information for the storage pool resource. + * Output only. [Output Only] Status information for the storage pool resource. * @param status status or {@code null} for none */ public StoragePool setStatus(StoragePoolResourceStatus status) { @@ -558,8 +612,8 @@ public StoragePool setStoragePoolType(java.lang.String storagePoolType) { } /** - * [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. + * 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() { @@ -567,8 +621,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java index 186794e02ce..a6e2968a57e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -50,8 +50,8 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for aggregated lists of - * storage pools. + * 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 @@ -68,14 +68,14 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public StoragePoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public StoragePoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java index 336f05138ed..f4aedbc4874 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -30,84 +30,84 @@ public final class StoragePoolDisk extends com.google.api.client.json.GenericJson { /** - * [Output Only] Instances this disk is attached to. + * 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] Creation timestamp inRFC3339 text format. + * 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 URL of the disk. + * 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] The name of the 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] The number of IOPS provisioned for the disk. + * 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] The throughput provisioned for the disk. + * 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] Resource policies applied to disk for automatic snapshot creations. + * 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] The disk size, in GB. + * 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] The disk status. + * 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] The disk type. + * 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] Amount of disk space used. + * 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] Instances this disk is attached to. + * Output only. [Output Only] Instances this disk is attached to. * @return value or {@code null} for none */ public java.util.List getAttachedInstances() { @@ -115,7 +115,7 @@ public java.util.List getAttachedInstances() { } /** - * [Output Only] Instances this disk is attached to. + * 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) { @@ -124,7 +124,7 @@ public StoragePoolDisk setAttachedInstances(java.util.List att } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -141,7 +141,7 @@ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) } /** - * [Output Only] The URL of the disk. + * Output only. [Output Only] The URL of the disk. * @return value or {@code null} for none */ public java.lang.String getDisk() { @@ -149,7 +149,7 @@ public java.lang.String getDisk() { } /** - * [Output Only] The URL of the 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) { @@ -158,7 +158,7 @@ public StoragePoolDisk setDisk(java.lang.String disk) { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -166,7 +166,7 @@ public java.lang.String getName() { } /** - * [Output Only] The name of the disk. + * Output only. [Output Only] The name of the disk. * @param name name or {@code null} for none */ public StoragePoolDisk setName(java.lang.String name) { @@ -175,7 +175,7 @@ public StoragePoolDisk setName(java.lang.String name) { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * Output only. [Output Only] The number of IOPS provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedIops() { @@ -183,7 +183,7 @@ public java.lang.Long getProvisionedIops() { } /** - * [Output Only] The number of IOPS provisioned for the disk. + * 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) { @@ -192,7 +192,7 @@ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { } /** - * [Output Only] The throughput provisioned for the disk. + * Output only. [Output Only] The throughput provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedThroughput() { @@ -200,7 +200,7 @@ public java.lang.Long getProvisionedThroughput() { } /** - * [Output Only] The throughput provisioned for the disk. + * 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) { @@ -209,7 +209,7 @@ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroug } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * 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() { @@ -217,7 +217,7 @@ public java.util.List getResourcePolicies() { } /** - * [Output Only] Resource policies applied to disk for automatic snapshot creations. + * 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) { @@ -226,7 +226,7 @@ public StoragePoolDisk setResourcePolicies(java.util.List reso } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @return value or {@code null} for none */ public java.lang.Long getSizeGb() { @@ -234,7 +234,7 @@ public java.lang.Long getSizeGb() { } /** - * [Output Only] The disk size, in GB. + * Output only. [Output Only] The disk size, in GB. * @param sizeGb sizeGb or {@code null} for none */ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { @@ -243,7 +243,7 @@ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -251,7 +251,7 @@ public java.lang.String getStatus() { } /** - * [Output Only] The disk status. + * Output only. [Output Only] The disk status. * @param status status or {@code null} for none */ public StoragePoolDisk setStatus(java.lang.String status) { @@ -260,7 +260,7 @@ public StoragePoolDisk setStatus(java.lang.String status) { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -268,7 +268,7 @@ public java.lang.String getType() { } /** - * [Output Only] The disk type. + * Output only. [Output Only] The disk type. * @param type type or {@code null} for none */ public StoragePoolDisk setType(java.lang.String type) { @@ -277,7 +277,7 @@ public StoragePoolDisk setType(java.lang.String type) { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @return value or {@code null} for none */ public java.lang.Long getUsedBytes() { @@ -285,7 +285,7 @@ public java.lang.Long getUsedBytes() { } /** - * [Output Only] Amount of disk space used. + * Output only. [Output Only] Amount of disk space used. * @param usedBytes usedBytes or {@code null} for none */ public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java index 2d0728fe318..34edec41ca8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -56,7 +56,8 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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 @@ -73,14 +74,15 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +145,8 @@ public StoragePoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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() { @@ -151,7 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. + * 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) { @@ -183,7 +187,7 @@ public StoragePoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -191,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -200,7 +204,8 @@ public StoragePoolList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java index bb3ca251ff1..31b6d2f7ece 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -36,7 +36,7 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener private java.lang.String etag; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 @@ -56,39 +56,40 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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 + * 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. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +111,7 @@ public StoragePoolListDisks setEtag(java.lang.String etag) { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -118,7 +119,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -144,8 +145,8 @@ public StoragePoolListDisks setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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() { @@ -153,8 +154,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of disks in a - * storagePool. + * 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) { @@ -163,10 +164,10 @@ public StoragePoolListDisks setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -174,10 +175,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -186,7 +187,7 @@ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -194,7 +195,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -203,7 +204,8 @@ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +213,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolListDisks setUnreachables(java.util.List unreachables) { @@ -220,7 +223,7 @@ public StoragePoolListDisks setUnreachables(java.util.List unr } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -228,7 +231,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public StoragePoolListDisks setWarning(Warning warning) { @@ -247,7 +250,7 @@ public StoragePoolListDisks clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java new file mode 100644 index 00000000000..f7f367511c0 --- /dev/null +++ b/clients/google-api-services-compute/beta/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/456` 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/456` 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/456` 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/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java index e7e5e4ebc7f..f0abcce09ab 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -37,7 +37,35 @@ public final class StoragePoolResourceStatus extends com.google.api.client.json. private java.lang.Long diskCount; /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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 @@ -123,7 +151,75 @@ public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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() { @@ -131,7 +227,7 @@ public java.lang.String getLastResizeTimestamp() { } /** - * [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java index 48b85c05c96..2abe154233a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -58,7 +58,8 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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 @@ -128,7 +129,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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 @@ -218,7 +219,8 @@ public StoragePoolType setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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() { @@ -226,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. + * 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) { @@ -388,7 +391,7 @@ public StoragePoolType setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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() { @@ -396,7 +399,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL for this resource with the resource id. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java index c3fc6a05a48..1831cd7a360 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public StoragePoolTypeAggregatedList setItems(java.util.Map items) { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. + * 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) { @@ -155,7 +158,7 @@ public StoragePoolTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 33a208bc461..ee23e5ea82b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -34,8 +34,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { /** - * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static + * 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 @@ -50,15 +50,13 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. - * - * This field cannot be set to true at resource creation time. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean allowSubnetCidrRoutesOverlap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,7 +74,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * 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 @@ -102,15 +101,16 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -158,27 +158,28 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String ipv6AccessType; /** - * [Output Only] This field is for internal use. + * 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] 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. + * 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] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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 @@ -280,7 +281,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * apatch request. Supports both IPv4 and IPv6 ranges. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -305,11 +306,11 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String stackType; /** - * [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 + * 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 @@ -340,8 +341,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private SubnetworkUtilizationDetails utilizationDetails; /** - * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static + * 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 @@ -356,8 +357,6 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. - * - * This field cannot be set to true at resource creation time. * @return value or {@code null} for none */ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { @@ -365,8 +364,8 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { } /** - * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true - * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static + * 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 @@ -381,8 +380,6 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. - * - * This field cannot be set to true at resource creation time. * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none */ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { @@ -391,7 +388,7 @@ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetC } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -399,7 +396,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -430,7 +427,8 @@ public Subnetwork setDescription(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. + * 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() { @@ -441,7 +439,8 @@ public java.lang.Boolean getEnableFlowLogs() { * 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. + * 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) { @@ -532,8 +531,8 @@ public Subnetwork encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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() { @@ -541,8 +540,8 @@ public java.lang.String getGatewayAddress() { } /** - * [Output Only] The gateway address for default routes to reach destination addresses outside - * this subnetwork. + * 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) { @@ -551,7 +550,8 @@ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -559,7 +559,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -662,7 +663,7 @@ public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { } /** - * [Output Only] This field is for internal use. + * Output only. [Output Only] This field is for internal use. * @return value or {@code null} for none */ public java.lang.String getIpv6CidrRange() { @@ -670,7 +671,7 @@ public java.lang.String getIpv6CidrRange() { } /** - * [Output Only] This field is for internal use. + * 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) { @@ -679,13 +680,13 @@ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { } /** - * [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. + * 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() { @@ -693,13 +694,13 @@ public java.lang.String getIpv6GceEndpoint() { } /** - * [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. + * 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) { @@ -708,7 +709,8 @@ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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() { @@ -716,7 +718,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. + * 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) { @@ -945,7 +948,7 @@ public Subnetwork setRole(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. + * apatch request. Supports both IPv4 and IPv6 ranges. * @return value or {@code null} for none */ public java.util.List getSecondaryIpRanges() { @@ -956,7 +959,7 @@ public java.util.List getSecondaryIpRanges() { * 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. + * apatch request. Supports both IPv4 and IPv6 ranges. * @param secondaryIpRanges secondaryIpRanges or {@code null} for none */ public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { @@ -1007,11 +1010,11 @@ public Subnetwork setStackType(java.lang.String stackType) { } /** - * [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 + * 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() { @@ -1019,11 +1022,11 @@ public java.lang.String getState() { } /** - * [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 + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java index 3ce236d4f61..92577af696e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -44,8 +44,8 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of - * subnetworks. + * 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 @@ -62,14 +62,14 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SubnetworkAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SubnetworkAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java index bfed8d09195..f8578cc2a42 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -50,7 +50,8 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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 @@ -67,7 +68,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public SubnetworkList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. + * 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) { @@ -155,7 +158,7 @@ public SubnetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java index e2a3ca20f2c..d027af60f2c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -32,24 +32,31 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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; /** - * 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 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. + * The URL of the reserved internal range. Only IPv4 is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +65,15 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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() { @@ -69,8 +83,15 @@ public java.lang.String getIpCidrRange() { /** * 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. Only IPv4 is supported. The range can be any range listed - * in theValid ranges list. + * 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) { @@ -79,9 +100,9 @@ public SubnetworkSecondaryRange setIpCidrRange(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 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() { @@ -89,9 +110,9 @@ public java.lang.String getRangeName() { } /** - * 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 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) { @@ -100,7 +121,7 @@ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { } /** - * The URL of the reserved internal range. + * The URL of the reserved internal range. Only IPv4 is supported. * @return value or {@code null} for none */ public java.lang.String getReservedInternalRange() { @@ -108,7 +129,7 @@ public java.lang.String getReservedInternalRange() { } /** - * The URL of the reserved internal range. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java index 8e52f4284e0..e5b790d1254 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -35,7 +35,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,15 +60,16 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String fingerprint; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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 @@ -86,14 +87,14 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * [Output Only] Server-defined URL for the resource. + * 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 with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +122,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean validateForProxyless; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -129,7 +130,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -216,8 +217,8 @@ public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -225,8 +226,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -235,7 +236,8 @@ public TargetGrpcProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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() { @@ -243,7 +245,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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) { @@ -277,7 +280,7 @@ public TargetGrpcProxy setName(java.lang.String name) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -285,7 +288,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -294,7 +297,7 @@ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Server-defined URL with id for the resource. + * Output only. [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -302,7 +305,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * [Output Only] Server-defined URL with id for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java index 92580b50781..4e795941c63 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -50,7 +50,8 @@ public final class TargetGrpcProxyList extends com.google.api.client.json.Generi } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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 @@ -115,7 +116,8 @@ public TargetGrpcProxyList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java index 093c56ea1e4..d1f493c39f2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -45,7 +45,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,7 +108,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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 @@ -142,8 +143,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean proxyBind; /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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 @@ -164,7 +165,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String urlMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -172,7 +173,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -344,7 +345,8 @@ public TargetHttpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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() { @@ -352,7 +354,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. + * 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) { @@ -421,8 +424,8 @@ public TargetHttpProxy setProxyBind(java.lang.Boolean proxyBind) { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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() { @@ -430,8 +433,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional Target HTTP Proxy resides. This field is not - * applicable to global Target HTTP Proxies. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java index a7392cf3d15..76baf55751e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for lists of Target - * HTTP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java index 5e34d1a9076..437aef687bf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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 @@ -67,7 +68,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. + * 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) { @@ -155,7 +158,7 @@ public TargetHttpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java index 4a12a88c099..6327f41e582 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -89,7 +89,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,7 +152,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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 @@ -198,8 +199,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String quicOverride; /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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 @@ -396,7 +397,7 @@ public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -404,7 +405,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -576,7 +577,8 @@ public TargetHttpsProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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() { @@ -584,7 +586,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. + * 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) { @@ -680,8 +683,8 @@ public TargetHttpsProxy setQuicOverride(java.lang.String quicOverride) { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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() { @@ -689,8 +692,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TargetHttpsProxy resides. This field is not - * applicable to global TargetHttpsProxies. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java index c5e35673c5f..e3b6c0c7bde 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. } /** - * [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for lists of - * Target HTTP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpsProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpsProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java index 2f5c614d3de..30dd6b631cf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -50,7 +50,8 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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 @@ -67,7 +68,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetHttpsProxyList setItems(java.util.List items) { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. + * 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) { @@ -155,7 +158,7 @@ public TargetHttpsProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java index d8dc46444ae..be7ee592ef0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -34,7 +34,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,7 +66,8 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String instance; /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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 @@ -114,15 +115,15 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [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. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -130,7 +131,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -198,7 +199,8 @@ public TargetInstance setInstance(java.lang.String instance) { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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() { @@ -206,7 +208,8 @@ public java.lang.String getKind() { } /** - * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. + * 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) { @@ -312,8 +315,8 @@ public TargetInstance setSelfLink(java.lang.String selfLink) { } /** - * [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. + * 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() { @@ -321,8 +324,8 @@ public java.lang.String getZone() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java index 2b3a07f23b9..01d803ffaf3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -44,7 +44,7 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public TargetInstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetInstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java index 4ad42444a27..9ed13afb4c8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -50,7 +50,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetInstanceList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetInstanceList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetInstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java index 51f47eeb5ab..107a42242a0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -51,7 +51,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String backupPool; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +107,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.util.List instances; /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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 @@ -125,7 +125,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] URL of the region where the target pool resides. + * 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 @@ -194,7 +194,7 @@ public TargetPool setBackupPool(java.lang.String backupPool) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -202,7 +202,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -324,7 +324,7 @@ public TargetPool setInstances(java.util.List instances) { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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() { @@ -332,7 +332,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#targetPool for target pools. + * 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) { @@ -366,7 +366,7 @@ public TargetPool setName(java.lang.String name) { } /** - * [Output Only] URL of the region where the target pool resides. + * 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() { @@ -374,7 +374,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the target pool resides. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java index 965213fa705..a4eaf801e32 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -44,8 +44,8 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for aggregated lists of - * target pools. + * 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 @@ -62,14 +62,14 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public TargetPoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetPoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java index 0a8f1b2844c..e1930f67b71 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -42,8 +42,8 @@ public final class TargetPoolInstanceHealth extends com.google.api.client.json.G } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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 @@ -65,8 +65,8 @@ public TargetPoolInstanceHealth setHealthStatus(java.util.List hea } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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() { @@ -74,8 +74,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when checking the health - * of an instance. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java index 66c2c97ec52..313eb178dbd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -50,7 +50,8 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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 @@ -67,7 +68,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetPoolList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. + * 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) { @@ -155,7 +158,7 @@ public TargetPoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java index b63eac66aae..0f34d06b101 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -46,7 +46,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.lang.String certificateMap; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,8 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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 @@ -152,7 +153,7 @@ public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -160,7 +161,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,7 +204,8 @@ public TargetSslProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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() { @@ -211,7 +213,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java index e8d1f6506b7..a63574c696b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -50,7 +50,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetSslProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetSslProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetSslProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java index 9abb70a4721..86a88700008 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -34,7 +34,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,12 +55,20 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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 @@ -97,8 +105,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String proxyHeader; /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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 @@ -119,7 +127,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String service; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -127,7 +135,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -170,7 +178,8 @@ public TargetTcpProxy setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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() { @@ -178,7 +187,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. + * 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) { @@ -186,6 +196,23 @@ public TargetTcpProxy setKind(java.lang.String 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 @@ -266,8 +293,8 @@ public TargetTcpProxy setProxyHeader(java.lang.String proxyHeader) { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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() { @@ -275,8 +302,8 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the regional TCP proxy resides. This field is not - * applicable to global TCP proxy. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java index e6a659795d2..af685bb148e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js } /** - * [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for lists of Target - * TCP Proxies. + * 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 @@ -68,14 +68,14 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetTcpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetTcpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java index f2aae16d2ea..51094df31db 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -50,7 +50,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public TargetTcpProxyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public TargetTcpProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetTcpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java index 0b20beb9ea8..5447e2d91e4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -33,7 +33,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,8 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -108,6 +109,14 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs @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. @@ -140,7 +149,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.util.List tunnels; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -148,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -210,7 +219,8 @@ public TargetVpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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() { @@ -218,7 +228,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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) { @@ -358,6 +369,25 @@ public TargetVpnGateway setNetwork(java.lang.String 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java index a428470d62c..fcee0487cb5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -44,7 +44,8 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.util.Map items; /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -61,14 +62,14 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +117,8 @@ public TargetVpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetVpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java index d691fa57cbe..6eaf8c73a84 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -50,7 +50,8 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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 @@ -67,7 +68,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public TargetVpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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() { @@ -123,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. + * 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) { @@ -155,7 +158,7 @@ public TargetVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java index f20371fd8f7..478c7e5ed3d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -56,7 +56,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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 @@ -227,9 +227,9 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { } /** - * [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. + * 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 @@ -254,7 +254,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.util.List tests; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -262,7 +262,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { @@ -590,7 +590,7 @@ public UrlMap setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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() { @@ -598,7 +598,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * 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) { @@ -649,9 +649,9 @@ public UrlMap setPathMatchers(java.util.List pathMatchers) { } /** - * [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. + * 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() { @@ -659,9 +659,9 @@ public java.lang.String getRegion() { } /** - * [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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java index 47969709c14..717e1bf36c0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -50,7 +50,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public UrlMapList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public UrlMapList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java index 4ef0ac8e10f..97dc4836b3e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -44,7 +44,7 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public UrlMapsAggregatedList setItems(java.util.Map i } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public UrlMapsAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public UrlMapsAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -164,7 +164,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -173,7 +173,7 @@ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UrlMapsAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java index 20241b48f30..05fe83d9ac0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -30,14 +30,14 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJson { /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * 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] The internal IPv6 address range that is assigned to this subnetwork. + * 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 @@ -108,7 +108,7 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJs private java.lang.String subnetwork; /** - * [Output Only] The external IPv6 address range that is assigned to this 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() { @@ -116,7 +116,7 @@ public java.lang.String getExternalIpv6Prefix() { } /** - * [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * 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) { @@ -125,7 +125,7 @@ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefi } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * 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() { @@ -133,7 +133,7 @@ public java.lang.String getInternalIpv6Prefix() { } /** - * [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java index 1ddaab1abe0..44ad036dfd4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -30,7 +30,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client.json.GenericJson { /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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 @@ -46,7 +47,8 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client. private java.lang.String rangeName; /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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() { @@ -54,7 +56,8 @@ public java.lang.String getIpCidrRange() { } /** - * The range of IP addresses belonging to this subnetwork secondary range. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 842a539118c..534fc9e95cd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -50,8 +50,8 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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 @@ -69,7 +69,7 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +82,14 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +137,8 @@ public UsableSubnetworksAggregatedList setItems(java.util.List } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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() { @@ -146,8 +146,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for aggregated - * lists of usable subnetworks. + * 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) { @@ -181,7 +181,7 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * Output only. [Output Only] Informational warning messages for failures encountered from scopes. * @return value or {@code null} for none */ public java.util.List getScopedWarnings() { @@ -189,7 +189,7 @@ public java.util.List getScopedWarnings() { } /** - * [Output Only] Informational warning messages for failures encountered from scopes. + * 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) { @@ -198,7 +198,7 @@ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List getUnreachables() { @@ -223,7 +223,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java index b745011ac7e..dba5c153b73 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -30,7 +30,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.GenericJson { /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.Gene private java.util.List interfaceNatMappings; /** - * Name of the VM instance which the endpoint belongs to + * Output only. Name of the VM instance which the endpoint belongs to * @return value or {@code null} for none */ public java.lang.String getInstanceName() { @@ -51,7 +51,7 @@ public java.lang.String getInstanceName() { } /** - * Name of the VM instance which the endpoint belongs to + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java index 09332672258..69ee2a0bc82 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -30,8 +30,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google.api.client.json.GenericJson { /** - * 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: + * 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}. */ @@ -39,8 +39,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List drainNatIpPortRanges; /** - * 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: + * 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}. */ @@ -48,46 +48,46 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. private java.util.List natIpPortRanges; /** - * 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. + * 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; /** - * 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. + * 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; /** - * Information about mappings provided by rules in this NAT. + * 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; /** - * 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". + * 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; /** - * Primary IP of the VM for this NIC. + * 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; /** - * 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: + * 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 */ @@ -96,8 +96,8 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -107,8 +107,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.ut } /** - * 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: + * 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 */ @@ -117,8 +117,8 @@ public java.util.List getNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -128,8 +128,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.Li } /** - * 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. + * 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() { @@ -137,8 +137,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -147,8 +147,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.l } /** - * 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. + * 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() { @@ -156,8 +156,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -166,7 +166,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.I } /** - * Information about mappings provided by rules in this NAT. + * Output only. Information about mappings provided by rules in this NAT. * @return value or {@code null} for none */ public java.util.List getRuleMappings() { @@ -174,7 +174,7 @@ public java.util.List } /** - * Information about mappings provided by rules in this NAT. + * 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) { @@ -183,8 +183,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List< } /** - * 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". + * 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() { @@ -192,8 +192,8 @@ public java.lang.String getSourceAliasIpRange() { } /** - * 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". + * 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) { @@ -202,7 +202,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang } /** - * Primary IP of the VM for this NIC. + * Output only. Primary IP of the VM for this NIC. * @return value or {@code null} for none */ public java.lang.String getSourceVirtualIp() { @@ -210,7 +210,7 @@ public java.lang.String getSourceVirtualIp() { } /** - * Primary IP of the VM for this NIC. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java index a29036c0838..1b6a728406e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -30,50 +30,50 @@ public final class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends com.google.api.client.json.GenericJson { /** - * 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"]. + * 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; /** - * 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"]. + * 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; /** - * 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. + * 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; /** - * 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. + * 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; /** - * Rule number of the NAT Rule. + * 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; /** - * 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"]. + * 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() { @@ -81,9 +81,9 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -92,9 +92,9 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPor } /** - * 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"]. + * 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() { @@ -102,9 +102,9 @@ public java.util.List getNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -113,8 +113,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRang } /** - * 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. + * 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() { @@ -122,8 +122,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -132,8 +132,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrain } /** - * 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. + * 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() { @@ -141,8 +141,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -151,7 +151,7 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPo } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleNumber() { @@ -159,7 +159,7 @@ public java.lang.Integer getRuleNumber() { } /** - * Rule number of the NAT Rule. + * Output only. Rule number of the NAT Rule. * @param ruleNumber ruleNumber or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java index 286f93e7107..5fb6f39d7d1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -37,8 +37,8 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. private java.lang.String id; /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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 @@ -68,7 +68,7 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,8 +99,8 @@ public VmEndpointNatMappingsList setId(java.lang.String id) { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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() { @@ -108,8 +108,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists of Nat - * mappings of VM endpoints. + * 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) { @@ -158,7 +158,7 @@ public VmEndpointNatMappingsList setResult(java.util.List } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -166,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java index 2c90d277cdf..c33bf330196 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.String description; /** - * Required. A map of extension names (e.g., "cloudops") to their corresponding policy + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy * configurations. * The value may be {@code null}. */ @@ -52,14 +52,16 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.Map extensionPolicies; /** - * Optional. [Output Only] Link to the global policy that manages this zone policy, if applicable. + * 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] The unique identifier for the resource. This identifier is defined by the server. + * 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 @@ -74,14 +76,14 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.List instanceSelectors; /** - * [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * 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] Indicates if this policy is managed by a global policy. + * 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 @@ -102,7 +104,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ * 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 more recent + * 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}. */ @@ -110,35 +112,35 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.Integer priority; /** - * [Output Only] Server-defined fully-qualified URL for this resource. + * 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] Server-defined URL for this resource's resource id. + * 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] Current state of the policy: ACTIVE or DELETING. + * 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] Update timestamp inRFC3339 text format. + * 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] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -146,7 +148,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -172,7 +174,7 @@ public VmExtensionPolicy setDescription(java.lang.String description) { } /** - * Required. A map of extension names (e.g., "cloudops") to their corresponding policy + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy * configurations. * @return value or {@code null} for none */ @@ -181,7 +183,7 @@ public java.util.Map getExtensionPolic } /** - * Required. A map of extension names (e.g., "cloudops") to their corresponding policy + * Required. A map of extension names (for example, "ops-agent") to their corresponding policy * configurations. * @param extensionPolicies extensionPolicies or {@code null} for none */ @@ -191,7 +193,8 @@ public VmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java index 28f3a4ef8f7..2cc93446c09 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java @@ -30,8 +30,8 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.GenericJson { /** - * [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 + * 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. * @@ -43,14 +43,14 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene private java.lang.String etag; /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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 VM extension policy resources. + * Output only. [Output Only] A list of VM extension policy resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -63,46 +63,46 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene } /** - * Type of resource. + * 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. + * 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] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * 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. + * Output only. [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key private Warning warning; /** - * [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 + * 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. * @@ -115,8 +115,8 @@ public java.lang.String getEtag() { } /** - * [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 + * 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. * @@ -130,7 +130,7 @@ public VmExtensionPolicyList setEtag(java.lang.String etag) { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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() { @@ -138,7 +138,7 @@ public java.lang.String getId() { } /** - * [Output Only] Unique identifier for the resource; defined by the server. + * 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) { @@ -147,7 +147,7 @@ public VmExtensionPolicyList setId(java.lang.String id) { } /** - * [Output Only] A list of VM extension policy resources. + * Output only. [Output Only] A list of VM extension policy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -155,7 +155,7 @@ public java.util.List getItems() { } /** - * [Output Only] A list of VM extension policy resources. + * 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) { @@ -164,7 +164,7 @@ public VmExtensionPolicyList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -172,7 +172,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public VmExtensionPolicyList setKind(java.lang.String kind) { @@ -181,10 +181,10 @@ public VmExtensionPolicyList setKind(java.lang.String kind) { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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() { @@ -192,10 +192,10 @@ public java.lang.String getNextPageToken() { } /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. + * 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) { @@ -204,7 +204,7 @@ public VmExtensionPolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -212,7 +212,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { @@ -221,7 +221,7 @@ public VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -229,7 +229,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyList setUnreachables(java.util.List unreachables) { @@ -238,7 +238,7 @@ public VmExtensionPolicyList setUnreachables(java.util.List un } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -246,7 +246,7 @@ public Warning getWarning() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public VmExtensionPolicyList setWarning(Warning warning) { @@ -265,7 +265,7 @@ public VmExtensionPolicyList clone() { } /** - * [Output Only] Informational warning message. + * Output only. [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java index 521afd329ea..d8149f69b9b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -35,7 +35,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,15 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIpVersion; /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -111,14 +112,22 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String network; /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,7 +150,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.util.List vpnInterfaces; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -149,7 +158,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -194,7 +203,8 @@ public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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() { @@ -202,7 +212,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * 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) { @@ -211,7 +222,7 @@ public VpnGateway setId(java.math.BigInteger id) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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() { @@ -219,7 +230,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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) { @@ -360,7 +371,26 @@ public VpnGateway setNetwork(java.lang.String network) { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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() { @@ -368,7 +398,7 @@ public java.lang.String getRegion() { } /** - * [Output Only] URL of the region where the VPN gateway resides. + * 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) { @@ -377,7 +407,7 @@ public VpnGateway setRegion(java.lang.String region) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -385,7 +415,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java index ad57f221ca9..125137b6dcb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -61,14 +61,14 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java index 5d0c093170d..582e5d5df26 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -50,7 +50,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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 @@ -67,7 +67,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnGatewayList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * 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) { @@ -155,7 +155,7 @@ public VpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java index 7904e9eec5a..e70f0cef786 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java @@ -30,14 +30,14 @@ public final class VpnGatewayStatus extends com.google.api.client.json.GenericJson { /** - * List of VPN connection for this VpnGateway. + * 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; /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @return value or {@code null} for none */ public java.util.List getVpnConnections() { @@ -45,7 +45,7 @@ public java.util.List getVpnConnections() { } /** - * List of VPN connection for this VpnGateway. + * Output only. List of VPN connection for this VpnGateway. * @param vpnConnections vpnConnections or {@code null} for none */ public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java index 67a40c89518..ff635e7b322 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -30,29 +30,29 @@ public final class VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { /** - * The VPN gateway interface this VPN tunnel is associated with. + * 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; /** - * 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. + * 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; /** - * URL reference to the VPN tunnel. + * 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; /** - * The VPN gateway interface this VPN tunnel is associated with. + * Output only. The VPN gateway interface this VPN tunnel is associated with. * @return value or {@code null} for none */ public java.lang.Long getLocalGatewayInterface() { @@ -60,7 +60,7 @@ public java.lang.Long getLocalGatewayInterface() { } /** - * The VPN gateway interface this VPN tunnel is associated with. + * 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) { @@ -69,8 +69,8 @@ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatew } /** - * 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. + * 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() { @@ -78,8 +78,8 @@ public java.lang.Long getPeerGatewayInterface() { } /** - * 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. + * 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) { @@ -88,7 +88,7 @@ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGateway } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @return value or {@code null} for none */ public java.lang.String getTunnelUrl() { @@ -96,7 +96,7 @@ public java.lang.String getTunnelUrl() { } /** - * URL reference to the VPN tunnel. + * Output only. URL reference to the VPN tunnel. * @param tunnelUrl tunnelUrl or {@code null} for none */ public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java index 1e97486d287..af1945dd5b6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -31,16 +31,16 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.json.GenericJson { /** - * 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. + * 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; /** - * 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. + * 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 @@ -67,8 +67,8 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.j } /** - * 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. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getPeerExternalGateway() { } /** - * 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. + * 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) { @@ -86,8 +86,8 @@ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String pee } /** - * 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. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getPeerGcpGateway() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java index 244d89c5e97..a0c47f43cf1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -30,7 +30,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.json.GenericJson { /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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 @@ -47,21 +48,22 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String interconnectAttachment; /** - * [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. + * 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] 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. + * 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}. */ @@ -69,7 +71,8 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String ipv6Address; /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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() { @@ -77,7 +80,8 @@ public java.lang.Long getId() { } /** - * [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway. + * 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) { @@ -109,13 +113,14 @@ public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String } /** - * [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. + * 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() { @@ -123,13 +128,14 @@ public java.lang.String getIpAddress() { } /** - * [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. + * 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) { @@ -138,8 +144,8 @@ public VpnGatewayVpnGatewayInterface setIpAddress(java.lang.String ipAddress) { } /** - * [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. + * 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 */ @@ -148,8 +154,8 @@ public java.lang.String getIpv6Address() { } /** - * [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. + * 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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java index 5febf7b3d74..02513e59931 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -31,6 +31,14 @@ @SuppressWarnings("javadoc") public final class VpnTunnel extends com.google.api.client.json.GenericJson { + /** + * Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect tunnels to indicate + * different bandwidth limits. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String capacityTier; + /** * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. * The value may be {@code null}. @@ -39,7 +47,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private VpnTunnelCipherSuite cipherSuite; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,7 +83,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private java.lang.Integer ikeVersion; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -123,6 +131,14 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { @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 @@ -254,6 +270,25 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Integer vpnGatewayInterface; + /** + * Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect tunnels to indicate + * different bandwidth limits. + * @return value or {@code null} for none + */ + public java.lang.String getCapacityTier() { + return capacityTier; + } + + /** + * Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect tunnels to indicate + * different bandwidth limits. + * @param capacityTier capacityTier or {@code null} for none + */ + public VpnTunnel setCapacityTier(java.lang.String capacityTier) { + this.capacityTier = capacityTier; + return this; + } + /** * 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 @@ -272,7 +307,7 @@ public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -280,7 +315,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { @@ -359,7 +394,7 @@ public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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() { @@ -367,7 +402,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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) { @@ -511,6 +546,25 @@ public VpnTunnel setName(java.lang.String 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java index 8defd580f15..803aead4170 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -61,14 +61,14 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-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. + * Output only. [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnTunnelAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. + * Output only. [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnTunnelAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java index 66f5b6260ef..467d94bfe67 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -50,7 +50,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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 @@ -67,7 +67,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public VpnTunnelList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * 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) { @@ -155,7 +155,7 @@ public VpnTunnelList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java b/clients/google-api-services-compute/beta/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/beta/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/beta/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Wire.java index a2ebc4201ae..d2d7f2d7532 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Wire.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Wire.java @@ -30,25 +30,25 @@ public final class Wire extends com.google.api.client.json.GenericJson { /** - * [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. + * 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; /** - * Wire endpoints are specific Interconnect connections. + * 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] 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: + * 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. @@ -58,16 +58,16 @@ public final class Wire extends com.google.api.client.json.GenericJson { private java.lang.String label; /** - * [Output Only] Properties of the wire. + * 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] 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. + * 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() { @@ -75,9 +75,9 @@ public java.lang.Boolean getAdminEnabled() { } /** - * [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. + * 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) { @@ -86,7 +86,7 @@ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -94,7 +94,7 @@ public java.util.List getEndpoints() { } /** - * Wire endpoints are specific Interconnect connections. + * Output only. Wire endpoints are specific Interconnect connections. * @param endpoints endpoints or {@code null} for none */ public Wire setEndpoints(java.util.List endpoints) { @@ -103,9 +103,9 @@ public Wire setEndpoints(java.util.List endpoints) { } /** - * [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: + * 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. @@ -116,9 +116,9 @@ public java.lang.String getLabel() { } /** - * [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: + * 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. @@ -130,7 +130,7 @@ public Wire setLabel(java.lang.String label) { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @return value or {@code null} for none */ public WireProperties getWireProperties() { @@ -138,7 +138,7 @@ public WireProperties getWireProperties() { } /** - * [Output Only] Properties of the wire. + * Output only. [Output Only] Properties of the wire. * @param wireProperties wireProperties or {@code null} for none */ public Wire setWireProperties(WireProperties wireProperties) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java index e074606ba56..752bbd5ed82 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -39,7 +39,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.Boolean adminEnabled; /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,15 +61,15 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.util.Map endpoints; /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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 @@ -87,21 +87,21 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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] Server-defined URL for the resource. + * 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; /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private WireProperties wireProperties; /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,7 +156,7 @@ public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -164,7 +164,7 @@ public java.lang.String getCreationTimestamp() { } /** - * [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -209,8 +209,8 @@ public WireGroup setEndpoints(java.util.Map endpoints } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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() { @@ -218,8 +218,8 @@ public java.math.BigInteger getId() { } /** - * [Output Only] The unique identifier for the resource type. The server generates this - * identifier. + * 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) { @@ -228,7 +228,7 @@ public WireGroup setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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() { @@ -236,7 +236,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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) { @@ -270,7 +270,7 @@ public WireGroup setName(java.lang.String name) { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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() { @@ -278,7 +278,7 @@ public java.lang.Boolean getReconciling() { } /** - * [Output Only] Indicates whether there are wire changes yet to be processed. + * 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) { @@ -287,7 +287,7 @@ public WireGroup setReconciling(java.lang.Boolean reconciling) { } /** - * [Output Only] Server-defined URL for the resource. + * Output only. [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -295,7 +295,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for the resource. + * 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) { @@ -304,7 +304,7 @@ public WireGroup setSelfLink(java.lang.String selfLink) { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @return value or {@code null} for none */ public WireGroupTopology getTopology() { @@ -312,7 +312,7 @@ public WireGroupTopology getTopology() { } /** - * Topology details for the wire group configuration. + * Output only. Topology details for the wire group configuration. * @param topology topology or {@code null} for none */ public WireGroup setTopology(WireGroupTopology topology) { @@ -355,7 +355,7 @@ public WireGroup setWireProperties(WireProperties wireProperties) { } /** - * The single/redundant wire(s) managed by the wire group. + * Output only. The single/redundant wire(s) managed by the wire group. * @return value or {@code null} for none */ public java.util.List getWires() { @@ -363,7 +363,7 @@ public java.util.List getWires() { } /** - * The single/redundant wire(s) managed by the wire group. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java index eae81afc621..b677fb9cd8a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -56,7 +56,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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 @@ -80,7 +80,8 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +144,7 @@ public WireGroupList setItems(java.util.List items) { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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() { @@ -151,7 +152,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * 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) { @@ -200,7 +201,8 @@ public WireGroupList setSelfLink(java.lang.String selfLink) { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -208,7 +210,8 @@ public java.util.List getUnreachables() { } /** - * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public WireGroupList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index bbe19b70c85..9af850296af 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -30,14 +30,14 @@ public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * Topology details for all endpoints in the wire group. + * 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; /** - * Topology details for all endpoints in the wire group. + * Output only. Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -45,7 +45,7 @@ public java.util.List getEndpoints() { } /** - * Topology details for all endpoints in the wire group. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index c871813ea31..78a82e14a9a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -30,23 +30,23 @@ public final class WireGroupTopologyEndpoint extends com.google.api.client.json.GenericJson { /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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; /** - * Endpoint label from the wire group. + * 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; /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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() { @@ -54,8 +54,8 @@ public java.lang.String getCity() { } /** - * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located - * in. + * 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) { @@ -64,7 +64,7 @@ public WireGroupTopologyEndpoint setCity(java.lang.String city) { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @return value or {@code null} for none */ public java.lang.String getLabel() { @@ -72,7 +72,7 @@ public java.lang.String getLabel() { } /** - * Endpoint label from the wire group. + * Output only. Endpoint label from the wire group. * @param label label or {@code null} for none */ public WireGroupTopologyEndpoint setLabel(java.lang.String label) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java new file mode 100644 index 00000000000..7332c3016cf --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.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 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/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java index fdb831631b4..1d968742891 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -50,7 +50,8 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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 @@ -67,7 +68,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +116,8 @@ public XpnHostList setItems(java.util.List items) { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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,7 +125,8 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. + * 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) { @@ -155,7 +158,7 @@ public XpnHostList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +166,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java index 0675cfe1818..156d6c6381a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java @@ -68,7 +68,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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 @@ -103,7 +103,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -195,7 +195,7 @@ public Zone setId(java.math.BigInteger id) { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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() { @@ -203,7 +203,7 @@ public java.lang.String getKind() { } /** - * [Output Only] Type of the resource. Always compute#zone for zones. + * 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) { @@ -280,7 +280,7 @@ public Zone setStatus(java.lang.String status) { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -288,7 +288,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * [Output Only] Reserved for future use. + * Output only. [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java index 5291d3e8c13..479ab946be8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -50,7 +50,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { } /** - * Type of resource. + * Output only. Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { private java.lang.String nextPageToken; /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public ZoneList setItems(java.util.List items) { } /** - * Type of resource. + * Output only. Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Type of resource. + * Output only. Type of resource. * @param kind kind or {@code null} for none */ public ZoneList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ZoneList setNextPageToken(java.lang.String nextPageToken) { } /** - * [Output Only] Server-defined URL for this resource. + * Output only. [Output Only] Server-defined URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -163,7 +163,7 @@ public java.lang.String getSelfLink() { } /** - * [Output Only] Server-defined URL for this resource. + * 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) { 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 c7b84beea79..af7130c3e38 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-rev20251110-2.0.0 - Compute Engine API beta-rev20251110-2.0.0 + beta-rev20260306-2.0.0 + Compute Engine API beta-rev20260306-2.0.0 jar 2011 From cc9ca08ab7ba504d765b2b013391da38463a0bc4 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 16 Mar 2026 13:28:23 -0400 Subject: [PATCH 4/5] Revert "chore: regenerate compute alpha client" This reverts commit e96a19da35d5f32ad74af9bb175a1ad87b1959c3. --- .../alpha/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 6948 ++--------------- .../compute/model/AcceleratorType.java | 21 +- .../model/AcceleratorTypeAggregatedList.java | 24 +- .../compute/model/AcceleratorTypeList.java | 18 +- .../services/compute/model/AccessConfig.java | 12 +- .../api/services/compute/model/Address.java | 69 +- .../compute/model/AddressAggregatedList.java | 24 +- .../services/compute/model/AddressList.java | 12 +- .../model/AllocationAggregateReservation.java | 24 +- ...UAllocationReservedInstanceProperties.java | 2 +- .../AllocationSpecificSKUReservation.java | 12 +- .../services/compute/model/AttachedDisk.java | 120 +- .../model/AttachedDiskInitializeParams.java | 24 +- .../services/compute/model/Autoscaler.java | 81 +- .../model/AutoscalerAggregatedList.java | 27 +- .../compute/model/AutoscalerList.java | 15 +- .../api/services/compute/model/Backend.java | 57 - .../BackendBackendOrchestrationInfo.java | 66 - .../services/compute/model/BackendBucket.java | 36 +- .../model/BackendBucketAggregatedList.java | 12 +- .../compute/model/BackendBucketList.java | 12 +- .../model/BackendBucketListUsable.java | 18 +- .../compute/model/BackendBucketUsedBy.java | 6 +- .../compute/model/BackendService.java | 117 +- .../model/BackendServiceAggregatedList.java | 18 +- .../BackendServiceDynamicForwarding.java | 24 - ...dServiceDynamicForwardingForwardProxy.java | 90 - .../model/BackendServiceFailoverPolicy.java | 6 +- .../model/BackendServiceGroupHealth.java | 12 +- .../compute/model/BackendServiceIAP.java | 6 +- .../compute/model/BackendServiceList.java | 15 +- .../model/BackendServiceListUsable.java | 18 +- .../BackendServiceOrchestrationInfo.java | 66 - .../compute/model/BackendServiceUsedBy.java | 12 +- .../api/services/compute/model/BgpRoute.java | 30 +- .../compute/model/BgpRouteAsPath.java | 30 +- ...InstanceResourcePerInstanceProperties.java | 6 +- .../compute/model/CacheInvalidationRule.java | 93 - .../services/compute/model/CachePolicy.java | 405 - .../model/CachePolicyCacheKeyPolicy.java | 307 - .../CachePolicyNegativeCachingPolicy.java | 102 - ...pacityAdviceRequestDistributionPolicy.java | 6 +- ...pacityAdviceRequestInstanceProperties.java | 27 - ...ceRequestInstancePropertiesScheduling.java | 24 - ...ityAdviceResponseRecommendationScores.java | 54 - ...cityAdviceResponseRecommendationShard.java | 6 +- .../services/compute/model/Commitment.java | 138 +- .../model/CommitmentAggregatedList.java | 24 +- .../compute/model/CommitmentList.java | 15 +- .../compute/model/CommitmentParams.java | 78 - .../model/CommitmentResourceStatus.java | 24 +- ...ResourceStatusCancellationInformation.java | 39 +- .../compute/model/CompositeHealthCheck.java | 57 +- .../CompositeHealthCheckAggregatedList.java | 18 +- .../model/CompositeHealthCheckHealth.java | 117 - .../model/CompositeHealthCheckList.java | 12 +- ...ksGetHealthResponseHealthSourceHealth.java | 90 - .../compute/model/CrossSiteNetwork.java | 39 +- .../compute/model/CrossSiteNetworkList.java | 18 +- .../api/services/compute/model/DateTime.java | 290 - .../api/services/compute/model/Disk.java | 333 +- .../compute/model/DiskAggregatedList.java | 24 +- .../compute/model/DiskAsyncReplication.java | 54 +- .../compute/model/DiskConvertParams.java | 168 - .../api/services/compute/model/DiskList.java | 12 +- .../model/DiskPairReplicationState.java | 48 +- .../services/compute/model/DiskParams.java | 24 +- .../DiskSettingsResourcePolicyDetails.java | 18 +- .../api/services/compute/model/DiskType.java | 12 +- .../compute/model/DiskTypeAggregatedList.java | 18 +- .../services/compute/model/DiskTypeList.java | 12 +- .../model/DiskUpdateKmsKeyRequest.java | 84 - .../compute/model/DisksConvertRequest.java | 63 - .../compute/model/DistributionPolicy.java | 18 +- .../model/ExchangedPeeringRoutesList.java | 18 +- .../compute/model/ExternalVpnGateway.java | 30 +- .../compute/model/ExternalVpnGatewayList.java | 12 +- .../api/services/compute/model/Firewall.java | 27 +- .../services/compute/model/FirewallList.java | 15 +- ...ewallPoliciesListAssociationsResponse.java | 6 +- .../compute/model/FirewallPolicy.java | 117 +- .../model/FirewallPolicyAssociation.java | 12 +- .../compute/model/FirewallPolicyList.java | 9 +- .../model/FirewallPolicyRolloutOperation.java | 90 - ...allPolicyRolloutOperationRolloutInput.java | 117 - ...llPolicyRolloutOperationRolloutStatus.java | 114 - ...loutOperationRolloutStatusNextRollout.java | 96 - ...OperationRolloutStatusRolloutMetadata.java | 117 - .../compute/model/FirewallPolicyRule.java | 18 +- .../model/FirewallPolicyRuleSecureTag.java | 12 +- .../compute/model/FixedOrPercent.java | 9 +- .../compute/model/FlexibleTimeRange.java | 3 +- .../compute/model/ForwardingRule.java | 159 +- .../model/ForwardingRuleAggregatedList.java | 24 +- .../ForwardingRuleAttachedExtension.java | 66 - .../compute/model/ForwardingRuleList.java | 12 +- .../compute/model/FutureReservation.java | 129 +- .../model/FutureReservationParams.java | 78 - .../model/FutureReservationStatus.java | 81 +- ...vationStatusExistingMatchingUsageInfo.java | 12 +- ...reReservationStatusLastKnownGoodState.java | 45 +- ...tKnownGoodStateFutureReservationSpecs.java | 18 +- ...ureReservationsAggregatedListResponse.java | 27 +- .../model/FutureReservationsListResponse.java | 24 +- .../model/GetVersionOperationMetadata.java | 63 - .../GetVersionOperationMetadataSbomInfo.java | 96 - .../model/GlobalListVmExtensionsResponse.java | 443 -- .../compute/model/GlobalVmExtension.java | 84 - .../model/GlobalVmExtensionPolicy.java | 51 +- .../model/GlobalVmExtensionPolicyList.java | 18 +- ...obalVmExtensionPolicyRolloutOperation.java | 6 +- ...ionPolicyRolloutOperationRolloutInput.java | 99 +- ...onPolicyRolloutOperationRolloutStatus.java | 24 +- ...OperationRolloutStatusRolloutMetadata.java | 48 +- ...sRolloutMetadataLocationRolloutStatus.java | 67 - .../compute/model/GuestAttributes.java | 27 +- .../services/compute/model/HaController.java | 96 +- .../compute/model/HaControllerStatus.java | 72 +- .../HaControllerStatusFailoverProgress.java | 36 +- ...usFailoverProgressLastFailoverAttempt.java | 14 +- .../model/HaControllerStatusZoneStatus.java | 18 +- ...HaControllerStatusZoneStatusLastError.java | 14 +- .../model/HaControllersAggregatedList.java | 24 +- .../compute/model/HaControllersList.java | 12 +- .../model/HealthAggregationPolicy.java | 57 +- ...HealthAggregationPolicyAggregatedList.java | 18 +- .../model/HealthAggregationPolicyList.java | 12 +- .../services/compute/model/HealthCheck.java | 27 +- .../compute/model/HealthCheckList.java | 12 +- .../compute/model/HealthCheckService.java | 54 +- .../HealthCheckServiceAggregatedList.java | 18 +- .../model/HealthCheckServicesList.java | 54 +- .../model/HealthChecksAggregatedList.java | 18 +- .../services/compute/model/HealthSource.java | 51 +- .../model/HealthSourceAggregatedList.java | 18 +- .../compute/model/HealthSourceHealth.java | 117 - .../compute/model/HealthSourceList.java | 6 +- ...lthSourcesGetHealthResponseSourceInfo.java | 120 - ...etHealthResponseSourceInfoBackendInfo.java | 117 - .../compute/model/HttpHeaderMatch.java | 6 +- .../compute/model/HttpHealthCheck.java | 15 +- .../compute/model/HttpHealthCheckList.java | 12 +- .../model/HttpQueryParameterMatch.java | 6 +- .../compute/model/HttpRouteAction.java | 57 - .../compute/model/HttpRouteRuleMatch.java | 72 +- .../compute/model/HttpsHealthCheck.java | 12 +- .../compute/model/HttpsHealthCheckList.java | 12 +- .../api/services/compute/model/Image.java | 192 +- .../api/services/compute/model/ImageList.java | 12 +- .../model/ImageOptimizationPolicy.java | 69 - .../services/compute/model/ImageParams.java | 24 +- .../api/services/compute/model/Instance.java | 159 +- .../compute/model/InstanceAggregatedList.java | 24 +- .../model/InstanceConsumptionData.java | 12 +- .../model/InstanceConsumptionInfo.java | 24 +- .../services/compute/model/InstanceGroup.java | 104 +- .../model/InstanceGroupAggregatedList.java | 62 +- .../compute/model/InstanceGroupList.java | 56 +- .../compute/model/InstanceGroupManager.java | 105 +- .../InstanceGroupManagerActionsSummary.java | 269 +- .../InstanceGroupManagerAggregatedList.java | 65 +- .../model/InstanceGroupManagerList.java | 56 +- .../model/InstanceGroupManagerParams.java | 21 +- .../InstanceGroupManagerResizeRequest.java | 78 +- ...stanceGroupManagerResizeRequestStatus.java | 79 +- ...ManagerResizeRequestStatusLastAttempt.java | 8 +- ...roupManagerResizeRequestsListResponse.java | 56 +- .../model/InstanceGroupManagerStatus.java | 120 +- ...GroupManagerStatusAcceleratorTopology.java | 117 - ...pologyAcceleratorTopologyStateDetails.java | 370 - ...eGroupManagerStatusAllInstancesConfig.java | 24 +- ...oupManagerStatusBulkInstanceOperation.java | 12 +- ...ulkInstanceOperationLastProgressCheck.java | 20 +- ...oupManagerStatusInstanceStatusSummary.java | 404 - .../InstanceGroupManagerStatusStateful.java | 66 +- ...nagerStatusStatefulPerInstanceConfigs.java | 15 +- ...stanceGroupManagerStatusVersionTarget.java | 18 +- .../InstanceGroupManagerUpdatePolicy.java | 24 - ...tanceGroupManagersApplyUpdatesRequest.java | 24 - ...ConfigureAcceleratorTopologiesRequest.java | 102 - ...questAcceleratorTopologyConfiguration.java | 99 - ...vailableAcceleratorTopologiesResponse.java | 24 - ...logiesResponseAcceleratorTopologyInfo.java | 69 - ...ogiesResponseAcceleratorTopologyState.java | 420 - ...stanceGroupManagersListErrorsResponse.java | 30 +- ...pManagersListManagedInstancesResponse.java | 30 +- ...oupManagersListPerInstanceConfigsResp.java | 38 +- ...nceGroupManagersResizeAdvancedRequest.java | 27 - .../InstanceGroupManagersScopedList.java | 28 +- .../model/InstanceGroupsListInstances.java | 59 +- .../model/InstanceGroupsScopedList.java | 22 +- .../services/compute/model/InstanceList.java | 15 +- .../compute/model/InstanceListReferrers.java | 18 +- .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../compute/model/InstanceParams.java | 24 +- .../compute/model/InstanceProperties.java | 21 +- .../compute/model/InstanceSettings.java | 21 +- .../model/InstanceSettingsMetadata.java | 6 +- .../compute/model/InstanceTemplate.java | 57 +- .../model/InstanceTemplateAggregatedList.java | 12 +- .../compute/model/InstanceTemplateList.java | 18 +- .../compute/model/InstanceWithNamedPorts.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 9 +- .../compute/model/InstantSnapshot.java | 186 +- .../model/InstantSnapshotAggregatedList.java | 24 +- .../compute/model/InstantSnapshotGroup.java | 75 +- .../InstantSnapshotGroupResourceStatus.java | 12 +- .../compute/model/InstantSnapshotList.java | 12 +- .../compute/model/InstantSnapshotParams.java | 78 - .../services/compute/model/Interconnect.java | 228 +- .../compute/model/InterconnectAttachment.java | 291 +- .../InterconnectAttachmentAggregatedList.java | 24 +- ...ectAttachmentConfigurationConstraints.java | 33 +- .../model/InterconnectAttachmentGroup.java | 30 +- ...redAvailabilitySLAIntendedSlaBlockers.java | 78 +- ...AttachmentGroupLogicalStructureRegion.java | 6 +- ...hmentGroupLogicalStructureRegionMetro.java | 12 +- ...upLogicalStructureRegionMetroFacility.java | 6 +- ...gicalStructureRegionMetroFacilityZone.java | 18 +- ...ateMembersInterconnectAttachmentInput.java | 6 +- ...erconnectAttachmentGroupsListResponse.java | 9 +- ...nectAttachmentGroupsOperationalStatus.java | 12 +- ...oupsOperationalStatusAttachmentStatus.java | 42 +- .../model/InterconnectAttachmentList.java | 18 +- .../compute/model/InterconnectGroup.java | 30 +- ...yCapabilityIntendedCapabilityBlockers.java | 66 +- ...erconnectGroupPhysicalStructureMetros.java | 12 +- ...roupPhysicalStructureMetrosFacilities.java | 12 +- ...hysicalStructureMetrosFacilitiesZones.java | 24 +- .../model/InterconnectGroupsListResponse.java | 9 +- .../InterconnectGroupsOperationalStatus.java | 24 +- ...psOperationalStatusInterconnectStatus.java | 27 +- .../compute/model/InterconnectList.java | 15 +- .../compute/model/InterconnectLocation.java | 129 +- ...nectLocationCrossSiteInterconnectInfo.java | 27 +- .../model/InterconnectLocationList.java | 18 +- .../model/InterconnectLocationRegionInfo.java | 36 +- .../model/InterconnectRemoteLocation.java | 222 +- ...InterconnectRemoteLocationConstraints.java | 30 +- .../model/InterconnectRemoteLocationList.java | 18 +- ...ectRemoteLocationPermittedConnections.java | 12 +- .../compute/model/IpAddressesList.java | 15 +- .../services/compute/model/IpOwnerList.java | 18 +- .../api/services/compute/model/License.java | 57 +- .../services/compute/model/LicenseCode.java | 69 +- .../model/LicenseCodeLicenseAlias.java | 12 +- .../services/compute/model/LicenseParams.java | 78 - .../compute/model/LicensesListResponse.java | 6 +- .../model/ListInstantSnapshotGroups.java | 21 +- .../compute/model/ListSnapshotGroups.java | 21 +- .../model/ListVmExtensionStatesResponse.java | 443 -- .../model/ListVmExtensionsResponse.java | 443 -- .../compute/model/LocationPolicy.java | 48 +- .../LocationPolicyZoneConfiguration.java | 69 - .../services/compute/model/MachineImage.java | 81 +- .../compute/model/MachineImageList.java | 18 +- .../compute/model/MachineImageParams.java | 36 - .../services/compute/model/MachineType.java | 15 +- .../model/MachineTypeAggregatedList.java | 24 +- .../compute/model/MachineTypeList.java | 15 +- .../compute/model/ManagedInstance.java | 246 +- .../ManagedInstanceAllInstancesConfig.java | 12 +- .../ManagedInstanceCurrentActionDetails.java | 81 +- .../model/ManagedInstanceInstanceHealth.java | 33 +- .../model/ManagedInstanceLastAttempt.java | 12 +- ...stancePropertiesFromFlexibilityPolicy.java | 12 +- .../model/ManagedInstanceScheduling.java | 12 +- .../compute/model/ManagedInstanceVersion.java | 18 +- .../api/services/compute/model/Metadata.java | 6 +- .../api/services/compute/model/MultiMig.java | 45 +- .../compute/model/MultiMigMember.java | 51 +- .../compute/model/MultiMigMemberList.java | 15 +- .../compute/model/MultiMigStatus.java | 18 +- .../MultiMigStatusAcceleratorTopology.java | 24 +- ...logyAcceleratorTopologyStateLastCheck.java | 20 +- .../services/compute/model/MultiMigsList.java | 12 +- .../api/services/compute/model/NatIpInfo.java | 12 +- .../model/NatIpInfoNatIpInfoMapping.java | 18 +- .../api/services/compute/model/Network.java | 57 +- .../compute/model/NetworkAttachment.java | 90 +- .../NetworkAttachmentConnectedEndpoint.java | 33 +- .../model/NetworkEdgeSecurityService.java | 45 +- ...workEdgeSecurityServiceAggregatedList.java | 27 +- .../compute/model/NetworkEndpointGroup.java | 63 +- .../NetworkEndpointGroupAggregatedList.java | 27 +- ...rkEndpointGroupLbNetworkEndpointGroup.java | 12 +- .../model/NetworkEndpointGroupList.java | 18 +- .../model/NetworkEndpointGroupPscData.java | 24 +- ...orkEndpointGroupsListNetworkEndpoints.java | 6 +- .../NetworkEndpointGroupsScopedList.java | 22 +- .../NetworkEndpointWithHealthStatus.java | 12 +- .../NetworkFirewallPolicyAggregatedList.java | 24 +- .../compute/model/NetworkInterface.java | 108 +- .../services/compute/model/NetworkList.java | 12 +- .../compute/model/NetworkPeering.java | 27 +- .../services/compute/model/NetworkPolicy.java | 66 +- .../model/NetworkPolicyAggregatedList.java | 24 +- .../compute/model/NetworkPolicyList.java | 9 +- ...etworkPolicyTrafficClassificationRule.java | 21 +- ...icyTrafficClassificationRuleSecureTag.java | 12 +- .../compute/model/NetworkProfile.java | 66 +- .../model/NetworkProfileNetworkFeatures.java | 12 +- .../model/NetworkProfilesListResponse.java | 24 +- .../compute/model/NetworkRoutingConfig.java | 12 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 12 +- .../api/services/compute/model/NodeGroup.java | 48 +- .../model/NodeGroupAggregatedList.java | 24 +- .../services/compute/model/NodeGroupList.java | 15 +- .../model/NodeGroupMaintenanceWindow.java | 24 +- .../services/compute/model/NodeGroupNode.java | 30 +- .../compute/model/NodeGroupsListNodes.java | 56 +- .../services/compute/model/NodeTemplate.java | 63 +- .../model/NodeTemplateAggregatedList.java | 24 +- .../compute/model/NodeTemplateList.java | 15 +- .../api/services/compute/model/NodeType.java | 33 +- .../compute/model/NodeTypeAggregatedList.java | 24 +- .../services/compute/model/NodeTypeList.java | 15 +- .../compute/model/NotificationEndpoint.java | 51 +- .../NotificationEndpointAggregatedList.java | 18 +- .../model/NotificationEndpointList.java | 12 +- .../api/services/compute/model/Operation.java | 60 +- .../model/OperationAggregatedList.java | 18 +- .../services/compute/model/OperationList.java | 9 +- ...urityPoliciesListAssociationsResponse.java | 6 +- .../compute/model/PacketMirroring.java | 36 +- .../model/PacketMirroringAggregatedList.java | 18 +- .../PacketMirroringForwardingRuleInfo.java | 6 +- .../compute/model/PacketMirroringList.java | 15 +- ...oringMirroredResourceInfoInstanceInfo.java | 6 +- ...rroringMirroredResourceInfoSubnetInfo.java | 6 +- .../model/PacketMirroringNetworkInfo.java | 6 +- .../services/compute/model/PathMatcher.java | 21 +- .../PeriodicPartialMaintenanceSchedule.java | 163 - .../compute/model/PreviewFeature.java | 42 +- .../compute/model/PreviewFeatureList.java | 15 +- .../compute/model/PreviewFeatureStatus.java | 12 +- .../PreviewFeatureStatusReleaseStatus.java | 6 +- .../api/services/compute/model/Project.java | 36 +- .../model/ProjectsGetXpnResources.java | 36 +- .../compute/model/PublicAdvertisedPrefix.java | 90 +- .../model/PublicAdvertisedPrefixList.java | 12 +- .../compute/model/PublicDelegatedPrefix.java | 120 +- .../PublicDelegatedPrefixAggregatedList.java | 21 +- .../model/PublicDelegatedPrefixList.java | 12 +- ...legatedPrefixPublicDelegatedSubPrefix.java | 51 +- .../compute/model/QueuedResource.java | 66 +- .../compute/model/QueuedResourceList.java | 18 +- .../compute/model/QueuedResourceStatus.java | 36 +- .../model/QueuedResourcesAggregatedList.java | 24 +- .../compute/model/RecoverableSnapshot.java | 93 +- .../RecoverableSnapshotAggregatedList.java | 27 +- .../model/RecoverableSnapshotList.java | 21 +- .../RecoverableSnapshotOriginalSnapshot.java | 252 +- .../api/services/compute/model/Reference.java | 6 +- .../api/services/compute/model/Region.java | 34 +- .../compute/model/RegionAutoscalerList.java | 12 +- .../compute/model/RegionDiskTypeList.java | 15 +- .../model/RegionDiskUpdateKmsKeyRequest.java | 84 - .../model/RegionInstanceGroupList.java | 50 +- .../model/RegionInstanceGroupManagerList.java | 56 +- ...roupManagerResizeRequestsListResponse.java | 65 +- ...nceGroupManagersAdoptInstancesRequest.java | 72 - ...tanceGroupManagersApplyUpdatesRequest.java | 24 - ...stanceGroupManagersListErrorsResponse.java | 24 +- ...eGroupManagersListInstanceConfigsResp.java | 38 +- ...nceGroupManagersListInstancesResponse.java | 24 +- ...nceGroupManagersResizeAdvancedRequest.java | 27 - .../RegionInstanceGroupsListInstances.java | 50 +- .../services/compute/model/RegionList.java | 12 +- ...PoliciesGetEffectiveFirewallsResponse.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 39 +- .../RegionSnapshotUpdateKmsKeyRequest.java | 78 - .../compute/model/ReliabilityRisk.java | 27 +- .../model/ReliabilityRisksListResponse.java | 15 +- .../compute/model/ReplicationDetails.java | 24 +- .../compute/model/ReplicationDiskPair.java | 12 +- .../services/compute/model/Reservation.java | 177 +- .../model/ReservationAggregatedList.java | 18 +- .../compute/model/ReservationBlock.java | 147 +- .../ReservationBlockPhysicalTopology.java | 6 +- ...ervationBlockPhysicalTopologyInstance.java | 6 +- .../compute/model/ReservationList.java | 15 +- .../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 | 114 +- ...ReservationSubBlocksGetVersionRequest.java | 66 - .../compute/model/ResourcePolicy.java | 48 +- .../model/ResourcePolicyAggregatedList.java | 18 +- .../model/ResourcePolicyDailyCycle.java | 12 +- .../model/ResourcePolicyHourlyCycle.java | 12 +- .../compute/model/ResourcePolicyList.java | 15 +- .../model/ResourcePolicyResourceStatus.java | 15 +- ...rceStatusInstanceSchedulePolicyStatus.java | 21 +- .../ResourcePolicyWeeklyCycleDayOfWeek.java | 12 +- .../compute/model/ResourceStatus.java | 111 +- ...sourceStatusEffectiveInstanceMetadata.java | 24 - ...ourceStatusReservationConsumptionInfo.java | 33 +- .../api/services/compute/model/Rollout.java | 86 +- .../services/compute/model/RolloutPlan.java | 39 +- .../model/RolloutPlansListResponse.java | 15 +- ...outWaveDetailsOrchestratedWaveDetails.java | 54 - ...OrchestratedWaveDetailsLocationStatus.java | 66 - .../compute/model/RolloutsListResponse.java | 15 +- .../api/services/compute/model/Route.java | 162 +- .../api/services/compute/model/RouteList.java | 12 +- .../api/services/compute/model/Router.java | 18 +- .../compute/model/RouterAggregatedList.java | 18 +- .../services/compute/model/RouterBgpPeer.java | 36 +- .../compute/model/RouterInterface.java | 36 +- .../services/compute/model/RouterList.java | 12 +- .../model/RouterStatusBgpPeerStatus.java | 132 +- .../compute/model/RouterStatusNatStatus.java | 63 +- .../RouterStatusNatStatusNatRuleStatus.java | 39 +- .../compute/model/RouterStatusResponse.java | 6 +- .../compute/model/RoutersListBgpRoutes.java | 21 +- .../compute/model/RoutersListNamedSets.java | 21 +- .../model/RoutersListRoutePolicies.java | 24 +- .../compute/model/SavedAttachedDisk.java | 57 +- .../api/services/compute/model/SavedDisk.java | 48 +- .../services/compute/model/Screenshot.java | 6 +- .../model/SecurityPoliciesAggregatedList.java | 24 +- .../compute/model/SecurityPolicy.java | 66 +- .../model/SecurityPolicyAssociation.java | 18 +- .../SecurityPolicyDdosProtectionConfig.java | 54 +- .../compute/model/SecurityPolicyList.java | 15 +- .../compute/model/SecurityPolicyRule.java | 30 +- ...cyRulePreconfiguredWafConfigExclusion.java | 27 - .../compute/model/SerialPortOutput.java | 15 +- .../compute/model/ServiceAttachment.java | 69 +- .../ServiceAttachmentAggregatedList.java | 18 +- .../compute/model/ServiceAttachmentList.java | 9 +- .../model/ShieldedInstanceIdentity.java | 12 +- .../compute/model/ShieldedVmIdentity.java | 12 +- .../api/services/compute/model/Snapshot.java | 294 +- .../compute/model/SnapshotAggregatedList.java | 24 +- .../services/compute/model/SnapshotGroup.java | 54 +- .../services/compute/model/SnapshotList.java | 12 +- .../compute/model/SnapshotParams.java | 24 +- .../model/SnapshotRecycleBinPolicy.java | 87 - .../model/SnapshotRecycleBinPolicyRule.java | 66 - ...napshotRecycleBinPolicyRuleRuleConfig.java | 69 - .../compute/model/SnapshotResourceStatus.java | 12 +- .../model/SnapshotUpdateKmsKeyRequest.java | 78 - ...otsGetEffectiveRecycleBinRuleResponse.java | 66 - .../compute/model/SslCertificate.java | 42 +- .../model/SslCertificateAggregatedList.java | 24 +- .../compute/model/SslCertificateList.java | 12 +- .../SslCertificateManagedSslCertificate.java | 15 +- .../model/SslPoliciesAggregatedList.java | 24 +- .../compute/model/SslPoliciesList.java | 51 +- .../api/services/compute/model/SslPolicy.java | 120 +- .../services/compute/model/StoragePool.java | 108 +- .../model/StoragePoolAggregatedList.java | 24 +- .../compute/model/StoragePoolDisk.java | 66 +- .../compute/model/StoragePoolList.java | 24 +- .../compute/model/StoragePoolListDisks.java | 65 +- .../compute/model/StoragePoolParams.java | 78 - .../model/StoragePoolResourceStatus.java | 30 +- .../compute/model/StoragePoolType.java | 15 +- .../model/StoragePoolTypeAggregatedList.java | 12 +- .../compute/model/StoragePoolTypeList.java | 15 +- .../services/compute/model/Subnetwork.java | 183 +- .../model/SubnetworkAggregatedList.java | 24 +- .../compute/model/SubnetworkList.java | 15 +- .../model/SubnetworkSecondaryRange.java | 114 +- .../compute/model/TargetGrpcProxy.java | 39 +- .../compute/model/TargetGrpcProxyList.java | 9 +- .../compute/model/TargetHttpProxy.java | 33 +- .../model/TargetHttpProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpProxyList.java | 15 +- .../compute/model/TargetHttpsProxy.java | 33 +- .../model/TargetHttpsProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpsProxyList.java | 15 +- .../compute/model/TargetInstance.java | 33 +- .../model/TargetInstanceAggregatedList.java | 18 +- .../compute/model/TargetInstanceList.java | 12 +- .../services/compute/model/TargetPool.java | 24 +- .../model/TargetPoolAggregatedList.java | 24 +- .../model/TargetPoolInstanceHealth.java | 12 +- .../compute/model/TargetPoolList.java | 15 +- .../compute/model/TargetSslProxy.java | 15 +- .../compute/model/TargetSslProxyList.java | 12 +- .../compute/model/TargetTcpProxy.java | 51 +- .../model/TargetTcpProxyAggregatedList.java | 24 +- .../compute/model/TargetTcpProxyList.java | 12 +- .../compute/model/TargetVpnGateway.java | 15 +- .../model/TargetVpnGatewayAggregatedList.java | 21 +- .../compute/model/TargetVpnGatewayList.java | 15 +- .../api/services/compute/model/TimeZone.java | 90 - .../compute/model/UpcomingMaintenance.java | 24 - .../api/services/compute/model/UrlMap.java | 30 +- .../services/compute/model/UrlMapList.java | 12 +- .../compute/model/UrlMapsAggregatedList.java | 18 +- .../compute/model/UsableSubnetwork.java | 12 +- .../model/UsableSubnetworkSecondaryRange.java | 9 +- .../UsableSubnetworksAggregatedList.java | 30 +- .../compute/model/VmEndpointNatMappings.java | 6 +- ...dpointNatMappingsInterfaceNatMappings.java | 72 +- ...gsInterfaceNatMappingsNatRuleMappings.java | 66 +- .../model/VmEndpointNatMappingsList.java | 18 +- .../services/compute/model/VmExtension.java | 90 - .../compute/model/VmExtensionPolicy.java | 72 +- ...ExtensionPolicyAggregatedListResponse.java | 24 +- .../compute/model/VmExtensionPolicyList.java | 74 +- .../compute/model/VmExtensionState.java | 213 - .../services/compute/model/VpnGateway.java | 33 +- .../model/VpnGatewayAggregatedList.java | 18 +- .../compute/model/VpnGatewayList.java | 12 +- .../compute/model/VpnGatewayStatus.java | 6 +- .../compute/model/VpnGatewayStatusTunnel.java | 24 +- .../model/VpnGatewayStatusVpnConnection.java | 24 +- .../model/VpnGatewayVpnGatewayInterface.java | 66 +- .../api/services/compute/model/VpnTunnel.java | 12 +- .../model/VpnTunnelAggregatedList.java | 18 +- .../services/compute/model/VpnTunnelList.java | 12 +- .../api/services/compute/model/Wire.java | 48 +- .../api/services/compute/model/WireGroup.java | 54 +- .../services/compute/model/WireGroupList.java | 15 +- .../compute/model/WireGroupServiceLevel.java | 15 +- .../compute/model/WireGroupTopology.java | 6 +- .../model/WireGroupTopologyEndpoint.java | 18 +- .../services/compute/model/XpnHostList.java | 15 +- .../api/services/compute/model/Zone.java | 33 +- .../api/services/compute/model/ZoneList.java | 12 +- .../compute/model/ZoneResourceStatus.java | 72 - .../alpha/2.0.0/pom.xml | 4 +- 536 files changed, 7970 insertions(+), 25353 deletions(-) delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DateTime.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlot.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TimeZone.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.java delete mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.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 4ef1d0164e1..8ef38116729 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-rev20260306-2.0.0 + alpha-rev20251110-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260306-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20251110-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java index eb77419ee14..9f7414d43f7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java @@ -103,7 +103,7 @@ public class Compute extends com.google.api.client.googleapis.services.json.Abst * {@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}
    • + *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
    • *
    * @param jsonFactory JSON factory, which may be: @@ -17866,242 +17866,6 @@ public BulkSetLabels set(String parameterName, Object value) { return (BulkSetLabels) super.set(parameterName, value); } } - /** - * Converts a persistent disk to support Gen4+ VMs. - * - * Create a request for the method "disks.convert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Convert#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.DisksConvertRequest} - * @return the request - */ - public Convert convert(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksConvertRequest content) throws java.io.IOException { - Convert result = new Convert(project, zone, disk, content); - initialize(result); - return result; - } - - public class Convert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/disks/{disk}/convert"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Converts a persistent disk to support Gen4+ VMs. - * - * Create a request for the method "disks.convert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Convert#execute()} method to invoke the remote operation.

    - * {@link - * Convert#initialize(com.google.api.client.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.DisksConvertRequest} - * @since 1.13 - */ - protected Convert(java.lang.String project, java.lang.String zone, java.lang.String disk, com.google.api.services.compute.model.DisksConvertRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); - } - - @Override - public Convert set$Xgafv(java.lang.String $Xgafv) { - return (Convert) super.set$Xgafv($Xgafv); - } - - @Override - public Convert setAccessToken(java.lang.String accessToken) { - return (Convert) super.setAccessToken(accessToken); - } - - @Override - public Convert setAlt(java.lang.String alt) { - return (Convert) super.setAlt(alt); - } - - @Override - public Convert setCallback(java.lang.String callback) { - return (Convert) super.setCallback(callback); - } - - @Override - public Convert setFields(java.lang.String fields) { - return (Convert) super.setFields(fields); - } - - @Override - public Convert setKey(java.lang.String key) { - return (Convert) super.setKey(key); - } - - @Override - public Convert setOauthToken(java.lang.String oauthToken) { - return (Convert) super.setOauthToken(oauthToken); - } - - @Override - public Convert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Convert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Convert setQuotaUser(java.lang.String quotaUser) { - return (Convert) super.setQuotaUser(quotaUser); - } - - @Override - public Convert setUploadType(java.lang.String uploadType) { - return (Convert) super.setUploadType(uploadType); - } - - @Override - public Convert setUploadProtocol(java.lang.String uploadProtocol) { - return (Convert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Convert setUserIp(java.lang.String userIp) { - return (Convert) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Convert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[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 Convert setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 Convert 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 Convert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Convert set(String parameterName, Object value) { - return (Convert) 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 @@ -21825,7 +21589,8 @@ public TestIamPermissions set(String parameterName, Object 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. + * selected fields included as part of update-mask. Only the following fields can be modified: + * user_license. * * Create a request for the method "disks.update". * @@ -21859,7 +21624,8 @@ public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensions/{extensionName}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 details of a specific VM extension. - * - * Create a request for the method "globalVmExtensionPolicies.getVmExtension". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. - *

    {@link GetVmExtension#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 extensionName - * @since 1.13 - */ - protected GetVmExtension(java.lang.String project, java.lang.String extensionName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtension.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { - return (GetVmExtension) super.set$Xgafv($Xgafv); - } - - @Override - public GetVmExtension setAccessToken(java.lang.String accessToken) { - return (GetVmExtension) super.setAccessToken(accessToken); - } - - @Override - public GetVmExtension setAlt(java.lang.String alt) { - return (GetVmExtension) super.setAlt(alt); - } - - @Override - public GetVmExtension setCallback(java.lang.String callback) { - return (GetVmExtension) super.setCallback(callback); - } - - @Override - public GetVmExtension setFields(java.lang.String fields) { - return (GetVmExtension) super.setFields(fields); - } - - @Override - public GetVmExtension setKey(java.lang.String key) { - return (GetVmExtension) super.setKey(key); - } - - @Override - public GetVmExtension setOauthToken(java.lang.String oauthToken) { - return (GetVmExtension) super.setOauthToken(oauthToken); - } - - @Override - public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVmExtension) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetVmExtension setQuotaUser(java.lang.String quotaUser) { - return (GetVmExtension) super.setQuotaUser(quotaUser); - } - - @Override - public GetVmExtension setUploadType(java.lang.String uploadType) { - return (GetVmExtension) super.setUploadType(uploadType); - } - - @Override - public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVmExtension) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetVmExtension setUserIp(java.lang.String userIp) { - return (GetVmExtension) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetVmExtension setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 extensionName; - - /** - - */ - public java.lang.String getExtensionName() { - return extensionName; - } - - public GetVmExtension setExtensionName(java.lang.String extensionName) { - this.extensionName = extensionName; - return this; - } - - @Override - public GetVmExtension set(String parameterName, Object value) { - return (GetVmExtension) super.set(parameterName, value); - } - } /** * Creates a new project level GlobalVmExtensionPolicy. * @@ -45427,414 +44987,6 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * Lists all VM extensions within a specific zone for a project. This is a read-only API. - * - * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. - * - * @param project Required. Project ID for this request. - * @return the request - */ - public ListVmExtensions listVmExtensions(java.lang.String project) throws java.io.IOException { - ListVmExtensions result = new ListVmExtensions(project); - initialize(result); - return result; - } - - public class ListVmExtensions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 VM extensions within a specific zone for a project. This is a read-only API. - * - * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. - *

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

    - * - * @param project Required. Project ID for this request. - * @since 1.13 - */ - protected ListVmExtensions(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalListVmExtensionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { - return (ListVmExtensions) super.set$Xgafv($Xgafv); - } - - @Override - public ListVmExtensions setAccessToken(java.lang.String accessToken) { - return (ListVmExtensions) super.setAccessToken(accessToken); - } - - @Override - public ListVmExtensions setAlt(java.lang.String alt) { - return (ListVmExtensions) super.setAlt(alt); - } - - @Override - public ListVmExtensions setCallback(java.lang.String callback) { - return (ListVmExtensions) super.setCallback(callback); - } - - @Override - public ListVmExtensions setFields(java.lang.String fields) { - return (ListVmExtensions) super.setFields(fields); - } - - @Override - public ListVmExtensions setKey(java.lang.String key) { - return (ListVmExtensions) super.setKey(key); - } - - @Override - public ListVmExtensions setOauthToken(java.lang.String oauthToken) { - return (ListVmExtensions) super.setOauthToken(oauthToken); - } - - @Override - public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListVmExtensions) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { - return (ListVmExtensions) super.setQuotaUser(quotaUser); - } - - @Override - public ListVmExtensions setUploadType(java.lang.String uploadType) { - return (ListVmExtensions) super.setUploadType(uploadType); - } - - @Override - public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { - return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListVmExtensions setUserIp(java.lang.String userIp) { - return (ListVmExtensions) 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 ListVmExtensions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 ListVmExtensions setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListVmExtensions setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListVmExtensions setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListVmExtensions setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public ListVmExtensions set(String parameterName, Object value) { - return (ListVmExtensions) super.set(parameterName, value); - } - } /** * Updates a global VM extension policy. * @@ -58362,13 +57514,15 @@ public ApplyUpdatesToInstances set(String parameterName, Object value) { } } /** - * Updates the accelerator topologies configuration. + * 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.configureAcceleratorTopologies". + * 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 ConfigureAcceleratorTopologies#execute()} method to invoke the remote - * operation. + * 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 @@ -58376,32 +57530,36 @@ public ApplyUpdatesToInstances set(String parameterName, Object value) { 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.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} * @return the request */ - public ConfigureAcceleratorTopologies configureAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest content) throws java.io.IOException { - ConfigureAcceleratorTopologies result = new ConfigureAcceleratorTopologies(project, zone, instanceGroupManager, content); + 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 ConfigureAcceleratorTopologies extends ComputeRequest { + public class CreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/configureAcceleratorTopologies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 accelerator topologies configuration. + * 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.configureAcceleratorTopologies". + * 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 ConfigureAcceleratorTopologies#execute()} method to invoke the - * remote operation.

    {@link ConfigureAcceleratorTopologies#initialize(com.google.api.client.go - * ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

    + * 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 @@ -58409,10 +57567,10 @@ public class ConfigureAcceleratorTopologies extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.createInstances". + * 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 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.

    + * 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. - 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} + * @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 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); + 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(), @@ -58670,63 +57818,63 @@ protected CreateInstances(java.lang.String project, java.lang.String zone, java. } @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -58740,7 +57888,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateInstances setProject(java.lang.String project) { + 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 " + @@ -58751,43 +57899,37 @@ public CreateInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * 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. It should conform to RFC1035. + /** 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. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ - public CreateInstances setZone(java.lang.String zone) { + public Delete setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ + /** 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. It should conform to RFC1035. + /** The name of the managed instance group to delete. */ 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) { + /** The name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -58800,7 +57942,7 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -58813,7 +57955,8 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -58830,70 +57973,91 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * 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. * - * Create a request for the method "instanceGroupManagers.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 to delete. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} * @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); + 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 Delete extends ComputeRequest { + public class DeleteInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "instanceGroupManagers.delete". + * 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 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.

    + * 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 to delete. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} * @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); + 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(), @@ -58905,63 +58069,63 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -58975,7 +58139,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -59000,274 +58164,23 @@ public java.lang.String getZone() { /** * The name of thezone where the managed instance group is located. */ - public Delete setZone(java.lang.String zone) { + public DeleteInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group to delete. */ + /** 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 to delete. + /** The name of the managed instance group. */ 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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) { + /** The name of the managed instance group. */ + public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -75961,246 +74874,6 @@ public GetShieldedVmIdentity set(String parameterName, Object value) { return (GetShieldedVmIdentity) super.set(parameterName, value); } } - /** - * Retrieves details of a specific VM extension state. This is a read-only API. - * - * Create a request for the method "instances.getVmExtensionState". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetVmExtensionState#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param instance Name or id of the instance resource. - * @param extensionName The name of the extension to get the state for. - * @return the request - */ - public GetVmExtensionState getVmExtensionState(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String extensionName) throws java.io.IOException { - GetVmExtensionState result = new GetVmExtensionState(project, zone, instance, extensionName); - initialize(result); - return result; - } - - public class GetVmExtensionState extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 EXTENSION_NAME_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 VM extension state. This is a read-only API. - * - * Create a request for the method "instances.getVmExtensionState". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVmExtensionState#execute()} method to invoke the remote - * operation.

    {@link GetVmExtensionState#initialize(com.google.api.client.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 instance Name or id of the instance resource. - * @param extensionName The name of the extension to get the state for. - * @since 1.13 - */ - protected GetVmExtensionState(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String extensionName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionState.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), - "Parameter extensionName must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetVmExtensionState set$Xgafv(java.lang.String $Xgafv) { - return (GetVmExtensionState) super.set$Xgafv($Xgafv); - } - - @Override - public GetVmExtensionState setAccessToken(java.lang.String accessToken) { - return (GetVmExtensionState) super.setAccessToken(accessToken); - } - - @Override - public GetVmExtensionState setAlt(java.lang.String alt) { - return (GetVmExtensionState) super.setAlt(alt); - } - - @Override - public GetVmExtensionState setCallback(java.lang.String callback) { - return (GetVmExtensionState) super.setCallback(callback); - } - - @Override - public GetVmExtensionState setFields(java.lang.String fields) { - return (GetVmExtensionState) super.setFields(fields); - } - - @Override - public GetVmExtensionState setKey(java.lang.String key) { - return (GetVmExtensionState) super.setKey(key); - } - - @Override - public GetVmExtensionState setOauthToken(java.lang.String oauthToken) { - return (GetVmExtensionState) super.setOauthToken(oauthToken); - } - - @Override - public GetVmExtensionState setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVmExtensionState) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetVmExtensionState setQuotaUser(java.lang.String quotaUser) { - return (GetVmExtensionState) super.setQuotaUser(quotaUser); - } - - @Override - public GetVmExtensionState setUploadType(java.lang.String uploadType) { - return (GetVmExtensionState) super.setUploadType(uploadType); - } - - @Override - public GetVmExtensionState setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVmExtensionState) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetVmExtensionState setUserIp(java.lang.String userIp) { - return (GetVmExtensionState) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetVmExtensionState setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 GetVmExtensionState setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 resource. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name or id of the instance resource. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name or id of the instance resource. */ - public GetVmExtensionState 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 extension to get the state for. */ - @com.google.api.client.util.Key - private java.lang.String extensionName; - - /** The name of the extension to get the state for. - */ - public java.lang.String getExtensionName() { - return extensionName; - } - - /** The name of the extension to get the state for. */ - public GetVmExtensionState setExtensionName(java.lang.String extensionName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), - "Parameter extensionName must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.extensionName = extensionName; - return this; - } - - @Override - public GetVmExtensionState set(String parameterName, Object value) { - return (GetVmExtensionState) super.set(parameterName, value); - } - } /** * Creates an instance resource in the specified project using the data included in the request. * @@ -77440,479 +76113,6 @@ public ListReferrers set(String parameterName, Object value) { return (ListReferrers) super.set(parameterName, value); } } - /** - * Lists all VM extensions states for a specific instance. This is a read-only API. - * - * Create a request for the method "instances.listVmExtensionStates". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListVmExtensionStates#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param zone Required. Name of the zone for this request. - * @param instance Name of the target instance scoping this request. - * @return the request - */ - public ListVmExtensionStates listVmExtensionStates(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - ListVmExtensionStates result = new ListVmExtensionStates(project, zone, instance); - initialize(result); - return result; - } - - public class ListVmExtensionStates extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); - - /** - * Lists all VM extensions states for a specific instance. This is a read-only API. - * - * Create a request for the method "instances.listVmExtensionStates". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListVmExtensionStates#execute()} method to invoke the remote - * operation.

    {@link ListVmExtensionStates#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 Required. Name of the zone for this request. - * @param instance Name of the target instance scoping this request. - * @since 1.13 - */ - protected ListVmExtensionStates(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.ListVmExtensionStatesResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListVmExtensionStates set$Xgafv(java.lang.String $Xgafv) { - return (ListVmExtensionStates) super.set$Xgafv($Xgafv); - } - - @Override - public ListVmExtensionStates setAccessToken(java.lang.String accessToken) { - return (ListVmExtensionStates) super.setAccessToken(accessToken); - } - - @Override - public ListVmExtensionStates setAlt(java.lang.String alt) { - return (ListVmExtensionStates) super.setAlt(alt); - } - - @Override - public ListVmExtensionStates setCallback(java.lang.String callback) { - return (ListVmExtensionStates) super.setCallback(callback); - } - - @Override - public ListVmExtensionStates setFields(java.lang.String fields) { - return (ListVmExtensionStates) super.setFields(fields); - } - - @Override - public ListVmExtensionStates setKey(java.lang.String key) { - return (ListVmExtensionStates) super.setKey(key); - } - - @Override - public ListVmExtensionStates setOauthToken(java.lang.String oauthToken) { - return (ListVmExtensionStates) super.setOauthToken(oauthToken); - } - - @Override - public ListVmExtensionStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListVmExtensionStates) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListVmExtensionStates setQuotaUser(java.lang.String quotaUser) { - return (ListVmExtensionStates) super.setQuotaUser(quotaUser); - } - - @Override - public ListVmExtensionStates setUploadType(java.lang.String uploadType) { - return (ListVmExtensionStates) super.setUploadType(uploadType); - } - - @Override - public ListVmExtensionStates setUploadProtocol(java.lang.String uploadProtocol) { - return (ListVmExtensionStates) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListVmExtensionStates setUserIp(java.lang.String userIp) { - return (ListVmExtensionStates) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public ListVmExtensionStates setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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 zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Required. Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Required. Name of the zone for this request. */ - public ListVmExtensionStates setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the target instance scoping this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the target instance scoping this request. */ - public ListVmExtensionStates 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 ListVmExtensionStates setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListVmExtensionStates setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListVmExtensionStates setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListVmExtensionStates setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListVmExtensionStates setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public ListVmExtensionStates set(String parameterName, Object value) { - return (ListVmExtensionStates) super.set(parameterName, value); - } - } /** * Patches partner metadata of the specified instance. * @@ -85189,26 +83389,6 @@ public Update setClearSecureTag(java.lang.Boolean clearSecureTag) { 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 @@ -112109,12 +110289,6 @@ public Get set(String parameterName, Object 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 @@ -112144,12 +110318,6 @@ public class Insert extends ComputeRequestThe typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.OrganizationSnapshotRecycleBinPolicy.List request = compute.organizationSnapshotRecycleBinPolicy().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public OrganizationSnapshotRecycleBinPolicy organizationSnapshotRecycleBinPolicy() { - return new OrganizationSnapshotRecycleBinPolicy(); - } - - /** - * The "organizationSnapshotRecycleBinPolicy" collection of methods. - */ - public class OrganizationSnapshotRecycleBinPolicy { - - /** - * Returns the specified SnapshotRecycleBinPolicy. - * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param organization Organization ID for this request. - * @return the request - */ - public Get get(java.lang.String organization) throws java.io.IOException { - Get result = new Get(organization); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; - - private final java.util.regex.Pattern ORGANIZATION_PATTERN = - java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); - - /** - * Returns the specified SnapshotRecycleBinPolicy. - * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    - * - * @param organization Organization ID for this request. - * @since 1.13 - */ - protected Get(java.lang.String organization) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotRecycleBinPolicy.class); - this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), - "Parameter organization must conform to the pattern " + - "organizations/[0-9]{0,20}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Organization ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String organization; - - /** Organization ID for this request. - */ - public java.lang.String getOrganization() { - return organization; - } - - /** Organization ID for this request. */ - public Get setOrganization(java.lang.String organization) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), - "Parameter organization must conform to the pattern " + - "organizations/[0-9]{0,20}"); - } - this.organization = organization; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Patches the SnapshotRecycleBinPolicy. - * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 organization Organization ID for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} - * @return the request - */ - public Patch patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) throws java.io.IOException { - Patch result = new Patch(organization, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; - - private final java.util.regex.Pattern ORGANIZATION_PATTERN = - java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); - - /** - * Patches the SnapshotRecycleBinPolicy. - * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.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 organization Organization ID for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), - "Parameter organization must conform to the pattern " + - "organizations/[0-9]{0,20}"); - } - } - - @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); - } - - /** Organization ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String organization; - - /** Organization ID for this request. - */ - public java.lang.String getOrganization() { - return organization; - } - - /** Organization ID for this request. */ - public Patch setOrganization(java.lang.String organization) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), - "Parameter organization must conform to the pattern " + - "organizations/[0-9]{0,20}"); - } - this.organization = organization; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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 PacketMirrorings collection. * @@ -158308,214 +156110,6 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. @@ -164931,7 +162525,8 @@ public TestIamPermissions set(String parameterName, Object 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. + * selected fields included as part of update-mask. Only the following fields can be modified: + * user_license. * * Create a request for the method "regionDisks.update". * @@ -164965,7 +162560,8 @@ public class Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}/getHealth"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. @@ -175613,245 +172999,6 @@ public AbandonInstances set(String parameterName, Object value) { return (AbandonInstances) super.set(parameterName, value); } } - /** - * Flags the specified instances to be adopted to the managed instance group. Adopting an instance - * does not change the instance status, but it adds the instance to any target pools that are - * applied by the managed instance group. This method increases the targetSize of the managed - * instance group by the number of instances that you adopt. This operation is marked as DONE when - * the action is scheduled even if the instances have not been adopted to the group yet. You must - * separately verify the status of the adopting action with the listManagedInstances method. - * - * Create a request for the method "regionInstanceGroupManagers.adoptInstances". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AdoptInstances#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. It should conform to RFC1035. - * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a - resource ID. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} - * @return the request - */ - public AdoptInstances adoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) throws java.io.IOException { - AdoptInstances result = new AdoptInstances(project, region, instanceGroupManager, content); - initialize(result); - return result; - } - - public class AdoptInstances extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/adoptInstances"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 adopted to the managed instance group. Adopting an instance - * does not change the instance status, but it adds the instance to any target pools that are - * applied by the managed instance group. This method increases the targetSize of the managed - * instance group by the number of instances that you adopt. This operation is marked as DONE when - * the action is scheduled even if the instances have not been adopted to the group yet. You must - * separately verify the status of the adopting action with the listManagedInstances method. - * - * Create a request for the method "regionInstanceGroupManagers.adoptInstances". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AdoptInstances#execute()} method to invoke the remote operation. - *

    {@link AdoptInstances#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. It should conform to RFC1035. - * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a - resource ID. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} - * @since 1.13 - */ - protected AdoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); - } - - @Override - public AdoptInstances set$Xgafv(java.lang.String $Xgafv) { - return (AdoptInstances) super.set$Xgafv($Xgafv); - } - - @Override - public AdoptInstances setAccessToken(java.lang.String accessToken) { - return (AdoptInstances) super.setAccessToken(accessToken); - } - - @Override - public AdoptInstances setAlt(java.lang.String alt) { - return (AdoptInstances) super.setAlt(alt); - } - - @Override - public AdoptInstances setCallback(java.lang.String callback) { - return (AdoptInstances) super.setCallback(callback); - } - - @Override - public AdoptInstances setFields(java.lang.String fields) { - return (AdoptInstances) super.setFields(fields); - } - - @Override - public AdoptInstances setKey(java.lang.String key) { - return (AdoptInstances) super.setKey(key); - } - - @Override - public AdoptInstances setOauthToken(java.lang.String oauthToken) { - return (AdoptInstances) super.setOauthToken(oauthToken); - } - - @Override - public AdoptInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AdoptInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public AdoptInstances setQuotaUser(java.lang.String quotaUser) { - return (AdoptInstances) super.setQuotaUser(quotaUser); - } - - @Override - public AdoptInstances setUploadType(java.lang.String uploadType) { - return (AdoptInstances) super.setUploadType(uploadType); - } - - @Override - public AdoptInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AdoptInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public AdoptInstances setUserIp(java.lang.String userIp) { - return (AdoptInstances) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public AdoptInstances setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,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 should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. It should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region scoping this request. It should conform to RFC1035. */ - public AdoptInstances setRegion(java.lang.String region) { - this.region = region; - return this; - } - - /** - * Name of the managed instance group. It 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. It should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * Name of the managed instance group. It should conform to RFC1035 or be a resource ID. - */ - public AdoptInstances 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 AdoptInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AdoptInstances set(String parameterName, Object value) { - return (AdoptInstances) super.set(parameterName, value); - } - } /** * Apply updates to selected instances the managed instance group. * @@ -192188,12 +189335,6 @@ public Get set(String parameterName, Object 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 @@ -192223,12 +189364,6 @@ public class Insert extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
    +   *   {@code Compute.ReservationSubBlocks.List request = compute.reservationSubBlocks().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ReservationSlots reservationSlots() { - return new ReservationSlots(); + public ReservationSubBlocks reservationSubBlocks() { + return new ReservationSubBlocks(); } /** - * The "reservationSlots" collection of methods. + * The "reservationSubBlocks" collection of methods. */ - public class ReservationSlots { + public class ReservationSubBlocks { /** - * Retrieves information about the specified reservation slot. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "reservationSlots.get". + * 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 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. + * @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 reservationSlot) throws java.io.IOException { - Get result = new Get(project, zone, parentName, reservationSlot); + 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}/reservationSlots/{reservationSlot}"; + public class Get extends ComputeRequest { - 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})"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}"; /** - * Retrieves information about the specified reservation slot. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "reservationSlots.get". + * 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 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. + * @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 reservationSlot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsGetResponse.class); + 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/([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."); + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override @@ -224742,220 +221865,6 @@ 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); - } - } - /** - * 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 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."); - } - - @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; @@ -224967,7 +221876,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetVersion setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { this.project = project; return this; } @@ -224983,128 +221892,87 @@ public java.lang.String getZone() { } /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public GetVersion setZone(java.lang.String zone) { + 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/{reserva - * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub - * _block_name} + * 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_nam - e}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + /** 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/{reserva - * tion_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub - * _block_name} + * 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/([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})"); - } + public Get setParentName(java.lang.String parentName) { this.parentName = parentName; return this; } /** - * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + * 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 reservationSlot; + private java.lang.String reservationSubBlock; - /** The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getReservationSlot() { - return reservationSlot; + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; } /** - * The name of the reservation slot. Name should conform to RFC1035 or be a resource ID. + * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. */ - public GetVersion setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; + public Get 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). - */ + /** View of the subBlock. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String view; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** View of the subBlock. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getView() { + return view; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** View of the subBlock. */ + public Get setView(java.lang.String view) { + this.view = view; return this; } @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves a list of reservation slots under a single reservation. + * Retrieves a list of reservation subBlocks under a single reservation. * - * Create a request for the method "reservationSlots.list". + * 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 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 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 { @@ -225113,40 +221981,31 @@ public List list(java.lang.String project, java.lang.String zone, java.lang.Stri return result; } - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; + public class List extends ComputeRequest { - 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})"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; /** - * Retrieves a list of reservation slots under a single reservation. + * Retrieves a list of reservation subBlocks under a single reservation. * - * Create a request for the method "reservationSlots.list". + * 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 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 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.ReservationSlotsListResponse.class); + 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/([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})"); - } } @Override @@ -225219,64 +222078,57 @@ public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** The project ID for this request. */ + /** 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. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request, formatted as RFC1035. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request, formatted as RFC1035. */ + /** 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, formatted as reservations/{reservation - * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo - * ck_name} + * 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, formatted as reservations/{reservation_name}/r - eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + /** 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, formatted as reservations/{reservation - * _name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_blo - * ck_name} + * 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/([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; } @@ -225551,243 +222403,254 @@ public List set(String parameterName, Object value) { } } /** - * Update a reservation slot in the specified sub-block. + * Allows customers to perform maintenance on a reservation subBlock * - * Create a request for the method "reservationSlots.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#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} + * @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 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); + 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 Update extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + public class PerformMaintenance extends ComputeRequest { - 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})"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; /** - * Update a reservation slot in the specified sub-block. + * Allows customers to perform maintenance on a reservation subBlock * - * Create a request for the method "reservationSlots.update". + * 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 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.

    + * 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 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} + * @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 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); + 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/([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."); + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** 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) { + /** Project ID for this request. */ + public PerformMaintenance setProject(java.lang.String project) { this.project = project; return this; } - /** The name of the zone for this request, formatted as RFC1035. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request, formatted as RFC1035. + /** Name of the zone for this request. Zone name should conform to 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) { + /** 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 sub-block resource. */ + /** + * 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 sub-block resource. + /** 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 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})"); - } + /** + * 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) { this.parentName = parentName; return this; } - /** The name of the slot resource. */ + /** + * 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 reservationSlot; + private java.lang.String reservationSubBlock; - /** The name of the slot resource. + /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getReservationSlot() { - return reservationSlot; + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; } - /** The name of the slot resource. */ - public Update setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; + /** + * 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; } - /** The fields to be updated as part of this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** The fields to be updated as part of this request. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getRequestId() { + return requestId; } - /** The fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) 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. + * Allows customers to report a faulty subBlock. * - * Create a request for the method "reservationSubBlocks.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. @@ -225795,30 +222658,29 @@ public class ReservationSubBlocks { * 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 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); + 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 Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; + public class ReportFaulty extends ComputeRequest { - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; /** - * Retrieves information about the specified reservation subBlock. + * Allows customers to report a faulty subBlock. * - * Create a request for the method "reservationSubBlocks.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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. @@ -225826,89 +222688,75 @@ public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; - - 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."); - } - - @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 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/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 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."); - } - - @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 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."); - } - - @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) { + public ReportFaulty setZone(java.lang.String zone) { this.zone = zone; return this; } @@ -227152,11 +222810,6 @@ public java.lang.String getParentName() { * 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; } @@ -234792,480 +230445,6 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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); - } - } } @@ -250687,372 +245866,6 @@ public TestIamPermissions set(String parameterName, Object value) { } - /** - * An accessor for creating requests from the SnapshotRecycleBinPolicy collection. - * - *

    The typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.SnapshotRecycleBinPolicy.List request = compute.snapshotRecycleBinPolicy().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public SnapshotRecycleBinPolicy snapshotRecycleBinPolicy() { - return new SnapshotRecycleBinPolicy(); - } - - /** - * The "snapshotRecycleBinPolicy" collection of methods. - */ - public class SnapshotRecycleBinPolicy { - - /** - * Returns the specified SnapshotRecycleBinPolicy. - * - * Create a request for the method "snapshotRecycleBinPolicy.get". - * - * This request holds the 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/snapshotRecycleBinPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 SnapshotRecycleBinPolicy. - * - * Create a request for the method "snapshotRecycleBinPolicy.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote 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.SnapshotRecycleBinPolicy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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); - } - } - /** - * Patches the SnapshotRecycleBinPolicy. - * - * Create a request for the method "snapshotRecycleBinPolicy.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.SnapshotRecycleBinPolicy} - * @return the request - */ - public Patch patch(java.lang.String project, com.google.api.services.compute.model.SnapshotRecycleBinPolicy 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/snapshotRecycleBinPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 SnapshotRecycleBinPolicy. - * - * Create a request for the method "snapshotRecycleBinPolicy.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.SnapshotRecycleBinPolicy} - * @since 1.13 - */ - protected Patch(java.lang.String project, com.google.api.services.compute.model.SnapshotRecycleBinPolicy 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])?))"); - } - } - - @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 SnapshotSettings collection. * @@ -252311,185 +247124,6 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } - /** - * Returns the effective recycle bin rule for a snapshot by merging org and project level rules. If - * no rules are defined at org and project level, the standard default rule is returned. - * - * Create a request for the method "snapshots.getEffectiveRecycleBinRule". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveRecycleBinRule#execute()} method to invoke the remote - * operation. - * - * @param project Project ID for this request. - * @param snapshot Name of the Snapshot resource to get the effective recycle bin rule for. - * @return the request - */ - public GetEffectiveRecycleBinRule getEffectiveRecycleBinRule(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { - GetEffectiveRecycleBinRule result = new GetEffectiveRecycleBinRule(project, snapshot); - initialize(result); - return result; - } - - public class GetEffectiveRecycleBinRule extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/snapshots/{snapshot}/getEffectiveRecycleBinRule"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 effective recycle bin rule for a snapshot by merging org and project level rules. - * If no rules are defined at org and project level, the standard default rule is returned. - * - * Create a request for the method "snapshots.getEffectiveRecycleBinRule". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveRecycleBinRule#execute()} method to invoke the remote - * operation.

    {@link GetEffectiveRecycleBinRule#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 snapshot Name of the Snapshot resource to get the effective recycle bin rule for. - * @since 1.13 - */ - protected GetEffectiveRecycleBinRule(java.lang.String project, java.lang.String snapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotsGetEffectiveRecycleBinRuleResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetEffectiveRecycleBinRule set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveRecycleBinRule) super.set$Xgafv($Xgafv); - } - - @Override - public GetEffectiveRecycleBinRule setAccessToken(java.lang.String accessToken) { - return (GetEffectiveRecycleBinRule) super.setAccessToken(accessToken); - } - - @Override - public GetEffectiveRecycleBinRule setAlt(java.lang.String alt) { - return (GetEffectiveRecycleBinRule) super.setAlt(alt); - } - - @Override - public GetEffectiveRecycleBinRule setCallback(java.lang.String callback) { - return (GetEffectiveRecycleBinRule) super.setCallback(callback); - } - - @Override - public GetEffectiveRecycleBinRule setFields(java.lang.String fields) { - return (GetEffectiveRecycleBinRule) super.setFields(fields); - } - - @Override - public GetEffectiveRecycleBinRule setKey(java.lang.String key) { - return (GetEffectiveRecycleBinRule) super.setKey(key); - } - - @Override - public GetEffectiveRecycleBinRule setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveRecycleBinRule) super.setOauthToken(oauthToken); - } - - @Override - public GetEffectiveRecycleBinRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveRecycleBinRule) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetEffectiveRecycleBinRule setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveRecycleBinRule) super.setQuotaUser(quotaUser); - } - - @Override - public GetEffectiveRecycleBinRule setUploadType(java.lang.String uploadType) { - return (GetEffectiveRecycleBinRule) super.setUploadType(uploadType); - } - - @Override - public GetEffectiveRecycleBinRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveRecycleBinRule) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetEffectiveRecycleBinRule setUserIp(java.lang.String userIp) { - return (GetEffectiveRecycleBinRule) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetEffectiveRecycleBinRule setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 get the effective recycle bin rule for. */ - @com.google.api.client.util.Key - private java.lang.String snapshot; - - /** Name of the Snapshot resource to get the effective recycle bin rule for. - */ - public java.lang.String getSnapshot() { - return snapshot; - } - - /** Name of the Snapshot resource to get the effective recycle bin rule for. */ - public GetEffectiveRecycleBinRule 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 GetEffectiveRecycleBinRule set(String parameterName, Object value) { - return (GetEffectiveRecycleBinRule) super.set(parameterName, value); - } - } /** * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * @@ -253796,11 +248430,10 @@ public TestIamPermissions set(String parameterName, Object value) { * * @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); + public UpdateKmsKey updateKmsKey(java.lang.String project, java.lang.String snapshot) throws java.io.IOException { + UpdateKmsKey result = new UpdateKmsKey(project, snapshot); initialize(result); return result; } @@ -253828,11 +248461,10 @@ public class UpdateKmsKey extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensions/{extensionName}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 EXTENSION_NAME_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 VM extension. - * - * Create a request for the method "zoneVmExtensionPolicies.getVmExtension". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. - *

    {@link GetVmExtension#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 Name of the zone for this request. - * @param extensionName - * @since 1.13 - */ - protected GetVmExtension(java.lang.String project, java.lang.String zone, java.lang.String extensionName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtension.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), - "Parameter extensionName must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { - return (GetVmExtension) super.set$Xgafv($Xgafv); - } - - @Override - public GetVmExtension setAccessToken(java.lang.String accessToken) { - return (GetVmExtension) super.setAccessToken(accessToken); - } - - @Override - public GetVmExtension setAlt(java.lang.String alt) { - return (GetVmExtension) super.setAlt(alt); - } - - @Override - public GetVmExtension setCallback(java.lang.String callback) { - return (GetVmExtension) super.setCallback(callback); - } - - @Override - public GetVmExtension setFields(java.lang.String fields) { - return (GetVmExtension) super.setFields(fields); - } - - @Override - public GetVmExtension setKey(java.lang.String key) { - return (GetVmExtension) super.setKey(key); - } - - @Override - public GetVmExtension setOauthToken(java.lang.String oauthToken) { - return (GetVmExtension) super.setOauthToken(oauthToken); - } - - @Override - public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVmExtension) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetVmExtension setQuotaUser(java.lang.String quotaUser) { - return (GetVmExtension) super.setQuotaUser(quotaUser); - } - - @Override - public GetVmExtension setUploadType(java.lang.String uploadType) { - return (GetVmExtension) super.setUploadType(uploadType); - } - - @Override - public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVmExtension) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetVmExtension setUserIp(java.lang.String userIp) { - return (GetVmExtension) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetVmExtension setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 GetVmExtension setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String extensionName; - - /** - - */ - public java.lang.String getExtensionName() { - return extensionName; - } - - public GetVmExtension setExtensionName(java.lang.String extensionName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXTENSION_NAME_PATTERN.matcher(extensionName).matches(), - "Parameter extensionName must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.extensionName = extensionName; - return this; - } - - @Override - public GetVmExtension set(String parameterName, Object value) { - return (GetVmExtension) super.set(parameterName, value); - } - } /** * Creates a new zone-level VM extension policy within a project. * @@ -297916,446 +292341,6 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * Lists all VM extensions within a specific zone for a project. This is a read-only API. - * - * Create a request for the method "zoneVmExtensionPolicies.listVmExtensions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. - * - * @param project Required. Project ID for this request. - * @param zone Name of the zone for this request. - * @return the request - */ - public ListVmExtensions listVmExtensions(java.lang.String project, java.lang.String zone) throws java.io.IOException { - ListVmExtensions result = new ListVmExtensions(project, zone); - initialize(result); - return result; - } - - public class ListVmExtensions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/vmExtensions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 extensions within a specific zone for a project. This is a read-only API. - * - * Create a request for the method "zoneVmExtensionPolicies.listVmExtensions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. - *

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

    - * - * @param project Required. Project ID for this request. - * @param zone Name of the zone for this request. - * @since 1.13 - */ - protected ListVmExtensions(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListVmExtensionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { - return (ListVmExtensions) super.set$Xgafv($Xgafv); - } - - @Override - public ListVmExtensions setAccessToken(java.lang.String accessToken) { - return (ListVmExtensions) super.setAccessToken(accessToken); - } - - @Override - public ListVmExtensions setAlt(java.lang.String alt) { - return (ListVmExtensions) super.setAlt(alt); - } - - @Override - public ListVmExtensions setCallback(java.lang.String callback) { - return (ListVmExtensions) super.setCallback(callback); - } - - @Override - public ListVmExtensions setFields(java.lang.String fields) { - return (ListVmExtensions) super.setFields(fields); - } - - @Override - public ListVmExtensions setKey(java.lang.String key) { - return (ListVmExtensions) super.setKey(key); - } - - @Override - public ListVmExtensions setOauthToken(java.lang.String oauthToken) { - return (ListVmExtensions) super.setOauthToken(oauthToken); - } - - @Override - public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListVmExtensions) super.setPrettyPrint(prettyPrint); - } - - @Override - public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { - return (ListVmExtensions) super.setQuotaUser(quotaUser); - } - - @Override - public ListVmExtensions setUploadType(java.lang.String uploadType) { - return (ListVmExtensions) super.setUploadType(uploadType); - } - - @Override - public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { - return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListVmExtensions setUserIp(java.lang.String userIp) { - return (ListVmExtensions) 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 ListVmExtensions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-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 ListVmExtensions setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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 ListVmExtensions setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListVmExtensions setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListVmExtensions setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListVmExtensions setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public ListVmExtensions set(String parameterName, Object value) { - return (ListVmExtensions) super.set(parameterName, value); - } - } /** * Modifies an existing zone VM extension policy. * @@ -299231,7 +293216,8 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@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}
  • + *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java index c6d65048c01..08e2952935c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -62,8 +62,7 @@ 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] The type of the resource. Alwayscompute#acceleratorType for accelerator types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -84,14 +83,14 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -175,8 +174,7 @@ public AcceleratorType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -184,8 +182,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * [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) { @@ -228,7 +225,7 @@ public AcceleratorType setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [Output Only] Server-defined, fully qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -236,7 +233,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [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) { @@ -245,7 +242,7 @@ public AcceleratorType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -253,7 +250,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public AcceleratorType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java index 8ef1a82145b..01a36ed3d8c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for - * aggregated lists of accelerator types. + * [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 @@ -62,14 +62,14 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AcceleratorTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AcceleratorTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java index 8573d2e33b6..d6ce17db7a8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -50,8 +50,8 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. + * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator + * types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi 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 @@ -116,8 +116,8 @@ public AcceleratorTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. + * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. + * [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) { @@ -158,7 +158,7 @@ public AcceleratorTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 AcceleratorTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java index c75f8b296d1..a580a435efb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -49,7 +49,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.Integer externalIpv6PrefixLength; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.String networkTier; /** - * Output only. [Output Only] The public DNS domain name for the instance. + * [Output Only] The public DNS domain name for the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,7 +183,7 @@ public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6Pr } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -191,7 +191,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * [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) { @@ -275,7 +275,7 @@ public AccessConfig setNetworkTier(java.lang.String networkTier) { } /** - * Output only. [Output Only] The public DNS domain name for the instance. + * [Output Only] The public DNS domain name for the instance. * @return value or {@code null} for none */ public java.lang.String getPublicDnsName() { @@ -283,7 +283,7 @@ public java.lang.String getPublicDnsName() { } /** - * Output only. [Output Only] The public DNS domain name for the instance. + * [Output Only] The public DNS domain name for the instance. * @param publicDnsName publicDnsName or {@code null} for none */ public AccessConfig setPublicDnsName(java.lang.String publicDnsName) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java index f967635148e..1b937310746 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Address.java @@ -54,7 +54,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String addressType; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,8 +68,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -105,7 +104,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String ipv6EndpointType; /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * [Output Only] Type of the resource. Always compute#address for addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,9 +190,9 @@ public final class Address extends com.google.api.client.json.GenericJson { 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.* + * [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 @@ -207,17 +206,17 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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 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. + * [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 @@ -276,7 +275,7 @@ public Address setAddressType(java.lang.String addressType) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -284,7 +283,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Address setCreationTimestamp(java.lang.String creationTimestamp) { @@ -310,8 +309,7 @@ public Address setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -319,8 +317,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -396,7 +393,7 @@ public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { } /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * [Output Only] Type of the resource. Always compute#address for addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -404,7 +401,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * [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) { @@ -632,9 +629,9 @@ public Address setPurpose(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.* + * [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() { @@ -642,9 +639,9 @@ public java.lang.String getRegion() { } /** - * 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.* + * [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) { @@ -670,7 +667,7 @@ public Address setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -678,7 +675,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Address setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -687,10 +684,10 @@ public Address setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * 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. + * [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() { @@ -698,10 +695,10 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java index 981d91082fb..ce17cb61122 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -44,8 +44,8 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. + * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of + * addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AddressAggregatedList setItems(java.util.Map } /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. + * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of + * addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. + * [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) { @@ -159,7 +159,7 @@ public AddressAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -167,7 +167,7 @@ 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 AddressAggregatedList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AddressAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java index 62ab8af2ff8..68e6eb54491 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -50,7 +50,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * [Output Only] Type of resource. Always compute#addressList for lists of addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public AddressList setItems(java.util.List
      items) { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * [Output Only] Type of resource. Always compute#addressList for lists of addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * [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) { @@ -155,7 +155,7 @@ public AddressList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 AddressList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java index 9684fa1e3a2..f35db35aee5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -40,22 +40,22 @@ public final class AllocationAggregateReservation extends com.google.api.client. private java.lang.Integer hostCount; /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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. Number of instances currently in use in this reservation. + * Number of instances currently in use in this reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer inUseInstanceCount; /** - * Output only. [Output only] List of resources currently in use. + * [Output only] List of resources currently in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,8 +102,8 @@ public AllocationAggregateReservation setHostCount(java.lang.Integer hostCount) } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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() { @@ -111,8 +111,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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 AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseHostCount) { @@ -121,7 +121,7 @@ public AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseH } /** - * Output only. Number of instances currently in use in this reservation. + * Number of instances currently in use in this reservation. * @return value or {@code null} for none */ public java.lang.Integer getInUseInstanceCount() { @@ -129,7 +129,7 @@ public java.lang.Integer getInUseInstanceCount() { } /** - * Output only. Number of instances currently in use in this reservation. + * Number of instances currently in use in this reservation. * @param inUseInstanceCount inUseInstanceCount or {@code null} for none */ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer inUseInstanceCount) { @@ -138,7 +138,7 @@ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer in } /** - * Output only. [Output only] List of resources currently in use. + * [Output only] List of resources currently in use. * @return value or {@code null} for none */ public java.util.List getInUseResources() { @@ -146,7 +146,7 @@ public java.util.List getInU } /** - * Output only. [Output only] List of resources currently in use. + * [Output only] List of resources currently in use. * @param inUseResources inUseResources or {@code null} for none */ public AllocationAggregateReservation setInUseResources(java.util.List inUseResources) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java index 5a212f176c5..54dce0f90d4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -17,7 +17,7 @@ package com.google.api.services.compute.model; /** - * Properties of the SKU instances being reserved. Next ID: 10 + * Properties of the SKU instances being reserved. Next ID: 9 * *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java index de9079076b2..d928aa8151f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -30,7 +30,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. + * [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 @@ -44,7 +44,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.Long count; /** - * Output only. [Output Only] Indicates how many instances are in use. + * [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 @@ -72,7 +72,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.String sourceInstanceTemplate; /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. + * [Output Only] Indicates how many instances are actually usable currently. * @return value or {@code null} for none */ public java.lang.Long getAssuredCount() { @@ -80,7 +80,7 @@ public java.lang.Long getAssuredCount() { } /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. + * [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) { @@ -106,7 +106,7 @@ public AllocationSpecificSKUReservation setCount(java.lang.Long count) { } /** - * Output only. [Output Only] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. * @return value or {@code null} for none */ public java.lang.Long getInUseCount() { @@ -114,7 +114,7 @@ public java.lang.Long getInUseCount() { } /** - * Output only. [Output Only] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. * @param inUseCount inUseCount or {@code null} for none */ public AllocationSpecificSKUReservation setInUseCount(java.lang.Long inUseCount) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java index 35d4504dab6..cbd43c65f04 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -30,8 +30,7 @@ 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. + * [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 @@ -117,9 +116,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -147,25 +145,25 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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. + * [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List licenses; /** - * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is - * not allowed to be detached from the instance, or to be used as the source of the snapshot - * creation, and the image creation. The instance with at least one locked attached disk is not - * allow to be used as source of machine image creation, instant snapshot creation, and not - * allowed to be deleted with --keep-disk parameter set to true for locked disks. + * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed + * to be detached from the instance, or to be used as the source of the snapshot creation, and the + * image creation. The instance with at least one locked attached disk is not allow to be used as + * source of machine image creation, instant snapshot creation, and not allowed to be deleted with + * --keep-disk parameter set to true for locked disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -180,16 +178,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { 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. + * 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 + * [Output Only] shielded vm initial state stored on disk * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,8 +217,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. + * [Output Only] A list of user provided licenses. It represents a list of URLs to the license + * resource. Unlike regular licenses, user provided licenses can be modified after the disk is + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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() { @@ -228,8 +234,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. + * [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) { @@ -417,9 +422,8 @@ public AttachedDisk setGuestOsFeatures(java.util.List guestOsFea } /** - * 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. + * [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() { @@ -427,9 +431,8 @@ public java.lang.Integer getIndex() { } /** - * 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. + * [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) { @@ -486,7 +489,7 @@ public AttachedDisk setInterface(java.lang.String interface__) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -494,7 +497,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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) { @@ -503,7 +506,7 @@ public AttachedDisk setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -511,7 +514,7 @@ public java.util.List getLicenses() { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @param licenses licenses or {@code null} for none */ public AttachedDisk setLicenses(java.util.List licenses) { @@ -520,11 +523,11 @@ public AttachedDisk setLicenses(java.util.List licenses) { } /** - * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is - * not allowed to be detached from the instance, or to be used as the source of the snapshot - * creation, and the image creation. The instance with at least one locked attached disk is not - * allow to be used as source of machine image creation, instant snapshot creation, and not - * allowed to be deleted with --keep-disk parameter set to true for locked disks. + * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed + * to be detached from the instance, or to be used as the source of the snapshot creation, and the + * image creation. The instance with at least one locked attached disk is not allow to be used as + * source of machine image creation, instant snapshot creation, and not allowed to be deleted with + * --keep-disk parameter set to true for locked disks. * @return value or {@code null} for none */ public java.lang.Boolean getLocked() { @@ -532,11 +535,11 @@ public java.lang.Boolean getLocked() { } /** - * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is - * not allowed to be detached from the instance, or to be used as the source of the snapshot - * creation, and the image creation. The instance with at least one locked attached disk is not - * allow to be used as source of machine image creation, instant snapshot creation, and not - * allowed to be deleted with --keep-disk parameter set to true for locked disks. + * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed + * to be detached from the instance, or to be used as the source of the snapshot creation, and the + * image creation. The instance with at least one locked attached disk is not allow to be used as + * source of machine image creation, instant snapshot creation, and not allowed to be deleted with + * --keep-disk parameter set to true for locked disks. * @param locked locked or {@code null} for none */ public AttachedDisk setLocked(java.lang.Boolean locked) { @@ -564,9 +567,9 @@ public AttachedDisk setMode(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. + * 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() { @@ -574,9 +577,9 @@ public java.lang.String getSavedState() { } /** - * 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. + * 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) { @@ -585,7 +588,7 @@ public AttachedDisk setSavedState(java.lang.String savedState) { } /** - * Output only. [Output Only] shielded vm initial state stored on disk + * [Output Only] shielded vm initial state stored on disk * @return value or {@code null} for none */ public InitialStateConfig getShieldedInstanceInitialState() { @@ -593,7 +596,7 @@ public InitialStateConfig getShieldedInstanceInitialState() { } /** - * Output only. [Output Only] shielded vm initial state stored on disk + * [Output Only] shielded vm initial state stored on disk * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none */ public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { @@ -653,6 +656,27 @@ public AttachedDisk setType(java.lang.String type) { return this; } + /** + * [Output Only] A list of user provided licenses. It represents a list of URLs to the license + * resource. Unlike regular licenses, user provided licenses can be modified after the disk is + * created. + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * [Output Only] A list of user provided licenses. It represents a list of URLs to the license + * resource. Unlike regular licenses, user provided licenses can be modified after the disk is + * created. + * @param userLicenses userLicenses or {@code null} for none + */ + public AttachedDisk setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public AttachedDisk set(String fieldName, Object value) { return (AttachedDisk) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index d6970391ad7..9927defc051 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -178,11 +178,9 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -618,11 +616,9 @@ public AttachedDiskInitializeParams setReplicaZones(java.util.List getResourceManagerTags() { @@ -630,11 +626,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public AttachedDiskInitializeParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java index 8fb74a0a0b1..0e71506aa31 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -53,7 +53,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private AutoscalingPolicy autoscalingPolicy; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,15 +67,14 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,25 +92,25 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { 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. + * [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). + * [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. + * [Output Only] Status information of existing scaling schedules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,7 +124,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -163,8 +162,8 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). + * [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 @@ -196,7 +195,7 @@ public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -204,7 +203,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { @@ -230,8 +229,7 @@ public Autoscaler setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -239,8 +237,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -249,7 +246,7 @@ public Autoscaler setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -257,7 +254,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * [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) { @@ -291,10 +288,10 @@ public Autoscaler setName(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. + * [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() { @@ -302,10 +299,10 @@ public java.lang.Integer getRecommendedSize() { } /** - * 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. + * [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) { @@ -314,8 +311,8 @@ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { } /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). + * [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() { @@ -323,8 +320,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). + * [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) { @@ -333,7 +330,7 @@ public Autoscaler setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Status information of existing scaling schedules. + * [Output Only] Status information of existing scaling schedules. * @return value or {@code null} for none */ public java.util.Map getScalingScheduleStatus() { @@ -341,7 +338,7 @@ public java.util.Map getScalingScheduleStatus() { } /** - * Output only. [Output Only] Status information of existing scaling schedules. + * [Output Only] Status information of existing scaling schedules. * @param scalingScheduleStatus scalingScheduleStatus or {@code null} for none */ public Autoscaler setScalingScheduleStatus(java.util.Map scalingScheduleStatus) { @@ -367,7 +364,7 @@ public Autoscaler setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -375,7 +372,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Autoscaler setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -455,8 +452,8 @@ public Autoscaler setTarget(java.lang.String target) { } /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). + * [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() { @@ -464,8 +461,8 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java index 0b34b95a635..579ee9e1a4a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -44,8 +44,8 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for - * aggregated lists of autoscalers. + * [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of + * autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,15 +62,14 @@ 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,8 +117,8 @@ public AutoscalerAggregatedList setItems(java.util.Map getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java index 3fe3fa8efb5..a53c5719b71 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -50,8 +50,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. + * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public AutoscalerList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. + * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. + * [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) { @@ -158,7 +155,7 @@ public AutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 AutoscalerList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java index d60df557631..b40ba7c0d02 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java @@ -189,13 +189,6 @@ public final class Backend extends com.google.api.client.json.GenericJson { @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 @@ -208,16 +201,6 @@ public final class Backend extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String preference; - /** - * Represents a service backend (e.g., Cloud Run service, PSC Service Attachment). e.g. - * "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" for Cloud - * Run service. "compute.googleapis.com/projects/123456789/regions/us- - * central1/serviceAttachments/my-service-attachment" for PSC Service Attachment. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String service; - /** * The value may be {@code null}. */ @@ -592,23 +575,6 @@ public Backend setMaxUtilization(java.lang.Float 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 @@ -636,29 +602,6 @@ public Backend setPreference(java.lang.String preference) { return this; } - /** - * Represents a service backend (e.g., Cloud Run service, PSC Service Attachment). e.g. - * "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" for Cloud - * Run service. "compute.googleapis.com/projects/123456789/regions/us- - * central1/serviceAttachments/my-service-attachment" for PSC Service Attachment. - * @return value or {@code null} for none - */ - public java.lang.String getService() { - return service; - } - - /** - * Represents a service backend (e.g., Cloud Run service, PSC Service Attachment). e.g. - * "run.googleapis.com/projects/123456789/locations/us-central1/services/my-service" for Cloud - * Run service. "compute.googleapis.com/projects/123456789/regions/us- - * central1/serviceAttachments/my-service-attachment" for PSC Service Attachment. - * @param service service or {@code null} for none - */ - public Backend setService(java.lang.String service) { - this.service = service; - return this; - } - /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java deleted file mode 100644 index b296411823a..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.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.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/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java index b771bc12479..5c9634eb5fd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -99,7 +99,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. Type of the resource. + * Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -135,9 +135,9 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson 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. + * [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 @@ -151,14 +151,14 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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] List of resources referencing that backend bucket. + * [Output Only] List of resources referencing that backend bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -324,7 +324,7 @@ public BackendBucket setId(java.math.BigInteger id) { } /** - * Output only. Type of the resource. + * Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -332,7 +332,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of the resource. + * Type of the resource. * @param kind kind or {@code null} for none */ public BackendBucket setKind(java.lang.String kind) { @@ -408,9 +408,9 @@ public BackendBucket setParams(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. + * [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() { @@ -418,9 +418,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -446,7 +446,7 @@ public BackendBucket setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -454,7 +454,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public BackendBucket setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -463,7 +463,7 @@ public BackendBucket setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] List of resources referencing that backend bucket. + * [Output Only] List of resources referencing that backend bucket. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -471,7 +471,7 @@ public java.util.List getUsedBy() { } /** - * Output only. [Output Only] List of resources referencing that backend bucket. + * [Output Only] List of resources referencing that backend bucket. * @param usedBy usedBy or {@code null} for none */ public BackendBucket setUsedBy(java.util.List usedBy) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java index f4416b7bc94..8333e93f482 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso 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 @@ -109,7 +109,7 @@ public BackendBucketAggregatedList setItems(java.util.Map items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public BackendBucketList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 BackendBucketList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java index ee9f13e6fba..02ce2377248 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java @@ -50,8 +50,8 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. + * [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 @@ -68,7 +68,7 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge 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 @@ -116,8 +116,8 @@ public BackendBucketListUsable setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. + * [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) { @@ -158,7 +158,7 @@ public BackendBucketListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 BackendBucketListUsable setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java index e7045e0c2e3..da75c481ccb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java @@ -30,14 +30,14 @@ public final class BackendBucketUsedBy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * [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. + * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -45,7 +45,7 @@ public java.lang.String getReference() { } /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java index bb421cd8506..1b561672057 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -135,7 +135,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private ConsistentHashLoadBalancerSettings consistentHash; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -339,8 +339,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String ipAddressSelectionPolicy; /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. + * [Output Only] Type of resource. Always compute#backendService for backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -469,13 +468,6 @@ public final class BackendService extends com.google.api.client.json.GenericJson @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 @@ -550,9 +542,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson 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. + * [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 @@ -582,7 +574,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -662,12 +654,27 @@ public final class BackendService extends com.google.api.client.json.GenericJson private BackendServiceTlsSettings tlsSettings; /** - * Output only. [Output Only] List of resources referencing given backend service. + * [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; + /** + * The network scope of the backends that can be added to the backend service. This field can be + * either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK. + * + * A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends + * in global VPC networks. + * + * When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have + * backends in regional networks in the same scope as the backend service. Note: if not specified + * then GLOBAL_VPC_NETWORK will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpcNetworkScope; + /** * 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. @@ -868,7 +875,7 @@ public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consi } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -876,7 +883,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1365,8 +1372,7 @@ public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSele } /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. + * [Output Only] Type of resource. Always compute#backendService for backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -1374,8 +1380,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. + * [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) { @@ -1656,23 +1661,6 @@ public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetwork 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 @@ -1835,9 +1823,9 @@ public BackendService setProtocol(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. + * [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() { @@ -1845,9 +1833,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -1911,7 +1899,7 @@ public BackendService setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1919,7 +1907,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public BackendService setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -2095,7 +2083,7 @@ public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { } /** - * Output only. [Output Only] List of resources referencing given backend service. + * [Output Only] List of resources referencing given backend service. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -2103,7 +2091,7 @@ public java.util.List getUsedBy() { } /** - * Output only. [Output Only] List of resources referencing given backend service. + * [Output Only] List of resources referencing given backend service. * @param usedBy usedBy or {@code null} for none */ public BackendService setUsedBy(java.util.List usedBy) { @@ -2111,6 +2099,39 @@ public BackendService setUsedBy(java.util.List usedBy) { return this; } + /** + * The network scope of the backends that can be added to the backend service. This field can be + * either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK. + * + * A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends + * in global VPC networks. + * + * When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have + * backends in regional networks in the same scope as the backend service. Note: if not specified + * then GLOBAL_VPC_NETWORK will be used. + * @return value or {@code null} for none + */ + public java.lang.String getVpcNetworkScope() { + return vpcNetworkScope; + } + + /** + * The network scope of the backends that can be added to the backend service. This field can be + * either GLOBAL_VPC_NETWORK orREGIONAL_VPC_NETWORK. + * + * A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends + * in global VPC networks. + * + * When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have + * backends in regional networks in the same scope as the backend service. Note: if not specified + * then GLOBAL_VPC_NETWORK will be used. + * @param vpcNetworkScope vpcNetworkScope or {@code null} for none + */ + public BackendService setVpcNetworkScope(java.lang.String vpcNetworkScope) { + this.vpcNetworkScope = vpcNetworkScope; + return this; + } + @Override public BackendService set(String fieldName, Object value) { return (BackendService) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java index 313198d23b6..e0afada0240 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public BackendServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public BackendServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java index cf815c0675f..0cedf515d3b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java @@ -29,13 +29,6 @@ @SuppressWarnings("javadoc") public final class BackendServiceDynamicForwarding extends com.google.api.client.json.GenericJson { - /** - * Dynamic Forwarding Proxy configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceDynamicForwardingForwardProxy forwardProxy; - /** * IP:PORT based dynamic forwarding configuration. * The value may be {@code null}. @@ -43,23 +36,6 @@ public final class BackendServiceDynamicForwarding extends com.google.api.client @com.google.api.client.util.Key private BackendServiceDynamicForwardingIpPortSelection ipPortSelection; - /** - * Dynamic Forwarding Proxy configuration. - * @return value or {@code null} for none - */ - public BackendServiceDynamicForwardingForwardProxy getForwardProxy() { - return forwardProxy; - } - - /** - * Dynamic Forwarding Proxy configuration. - * @param forwardProxy forwardProxy or {@code null} for none - */ - public BackendServiceDynamicForwarding setForwardProxy(BackendServiceDynamicForwardingForwardProxy forwardProxy) { - this.forwardProxy = forwardProxy; - return this; - } - /** * IP:PORT based dynamic forwarding configuration. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java deleted file mode 100644 index 030061819d7..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.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.model; - -/** - * Defines Dynamic Forwarding Proxy configuration. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class BackendServiceDynamicForwardingForwardProxy extends com.google.api.client.json.GenericJson { - - /** - * A boolean flag enabling dynamic forwarding proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enabled; - - /** - * Determines the dynamic forwarding proxy mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyMode; - - /** - * A boolean flag enabling dynamic forwarding proxy. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnabled() { - return enabled; - } - - /** - * A boolean flag enabling dynamic forwarding proxy. - * @param enabled enabled or {@code null} for none - */ - public BackendServiceDynamicForwardingForwardProxy setEnabled(java.lang.Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Determines the dynamic forwarding proxy mode. - * @return value or {@code null} for none - */ - public java.lang.String getProxyMode() { - return proxyMode; - } - - /** - * Determines the dynamic forwarding proxy mode. - * @param proxyMode proxyMode or {@code null} for none - */ - public BackendServiceDynamicForwardingForwardProxy setProxyMode(java.lang.String proxyMode) { - this.proxyMode = proxyMode; - return this; - } - - @Override - public BackendServiceDynamicForwardingForwardProxy set(String fieldName, Object value) { - return (BackendServiceDynamicForwardingForwardProxy) super.set(fieldName, value); - } - - @Override - public BackendServiceDynamicForwardingForwardProxy clone() { - return (BackendServiceDynamicForwardingForwardProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java index 6d41f11341d..efdb6b23e77 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -38,7 +38,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * This can be set to true only if the protocol isTCP. * * The default is false. * The value may be {@code null}. @@ -73,7 +73,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.js private java.lang.Float failoverRatio; /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * This can be set to true only if the protocol isTCP. * * The default is false. * @return value or {@code null} for none @@ -83,7 +83,7 @@ public java.lang.Boolean getDisableConnectionDrainOnFailover() { } /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * This can be set to true only if the protocol isTCP. * * The default is false. * @param disableConnectionDrainOnFailover disableConnectionDrainOnFailover or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java index 2df9c4eb5fe..bc3239368af 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -45,8 +45,8 @@ public final class BackendServiceGroupHealth extends com.google.api.client.json. private java.util.List healthStatus; /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. + * [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 @@ -89,8 +89,8 @@ public BackendServiceGroupHealth setHealthStatus(java.util.List he } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. + * [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() { @@ -98,8 +98,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java index e8084deee88..f6f65dd63bf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -62,7 +62,7 @@ public final class BackendServiceIAP extends com.google.api.client.json.GenericJ private java.lang.String oauth2ClientSecret; /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * [Output Only] SHA256 hash value for the field oauth2_client_secret above. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,7 +145,7 @@ public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecr } /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * [Output Only] SHA256 hash value for the field oauth2_client_secret above. * @return value or {@code null} for none */ public java.lang.String getOauth2ClientSecretSha256() { @@ -153,7 +153,7 @@ public java.lang.String getOauth2ClientSecretSha256() { } /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java index a9fbe1babdc..55bacc0e85b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -50,8 +50,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. + * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic 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 @@ -116,8 +115,7 @@ public BackendServiceList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. + * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. + * [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) { @@ -158,7 +155,7 @@ public BackendServiceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 BackendServiceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java index eeee3073ad5..68b53b5decb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -50,8 +50,8 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. + * [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 @@ -68,7 +68,7 @@ public final class BackendServiceListUsable 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 @@ -116,8 +116,8 @@ public BackendServiceListUsable setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. + * [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) { @@ -158,7 +158,7 @@ public BackendServiceListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 BackendServiceListUsable setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java deleted file mode 100644 index a3e10b1d879..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java index d1f47ab4d6d..cebbcab9361 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java @@ -30,16 +30,16 @@ 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. + * [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. + * [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() { @@ -47,8 +47,8 @@ public java.lang.String getReference() { } /** - * Output only. [Output Only] Server-defined URL for resources referencing given BackendService - * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java index f4e2917b118..9c057f2e6c6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -30,42 +30,42 @@ public final class BgpRoute extends com.google.api.client.json.GenericJson { /** - * Output only. [Output only] AS-PATH for the route + * [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. + * [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 + * [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 + * [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) + * [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 + * [Output only] AS-PATH for the route * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -73,7 +73,7 @@ public java.util.List getAsPaths() { } /** - * Output only. [Output only] AS-PATH for the route + * [Output only] AS-PATH for the route * @param asPaths asPaths or {@code null} for none */ public BgpRoute setAsPaths(java.util.List asPaths) { @@ -82,7 +82,7 @@ public BgpRoute setAsPaths(java.util.List asPaths) { } /** - * Output only. [Output only] BGP communities in human-readable A:B format. + * [Output only] BGP communities in human-readable A:B format. * @return value or {@code null} for none */ public java.util.List getCommunities() { @@ -90,7 +90,7 @@ public java.util.List getCommunities() { } /** - * Output only. [Output only] BGP communities in human-readable A:B format. + * [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) { @@ -99,7 +99,7 @@ public BgpRoute setCommunities(java.util.List communities) { } /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * [Output only] Destination IP range for the route, in human-readable CIDR format * @return value or {@code null} for none */ public BgpRouteNetworkLayerReachabilityInformation getDestination() { @@ -107,7 +107,7 @@ public BgpRouteNetworkLayerReachabilityInformation getDestination() { } /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * [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) { @@ -116,7 +116,7 @@ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation desti } /** - * Output only. [Output only] BGP multi-exit discriminator + * [Output only] BGP multi-exit discriminator * @return value or {@code null} for none */ public java.lang.Long getMed() { @@ -124,7 +124,7 @@ public java.lang.Long getMed() { } /** - * Output only. [Output only] BGP multi-exit discriminator + * [Output only] BGP multi-exit discriminator * @param med med or {@code null} for none */ public BgpRoute setMed(java.lang.Long med) { @@ -133,7 +133,7 @@ public BgpRoute setMed(java.lang.Long med) { } /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @return value or {@code null} for none */ public java.lang.String getOrigin() { @@ -141,7 +141,7 @@ public java.lang.String getOrigin() { } /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @param origin origin or {@code null} for none */ public BgpRoute setOrigin(java.lang.String origin) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java index 34de456cbc3..da0ffd82c86 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -30,30 +30,30 @@ 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. + * [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. + * [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) + * [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. + * [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() { @@ -61,7 +61,7 @@ public java.util.List getAsns() { } /** - * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * [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) { @@ -70,9 +70,9 @@ public BgpRouteAsPath setAsns(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. + * [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() { @@ -80,9 +80,9 @@ public java.util.List getAsns32() { } /** - * 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. + * [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) { @@ -91,7 +91,7 @@ public BgpRouteAsPath setAsns32(java.util.List asns32) { } /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @return value or {@code null} for none */ public java.lang.String getType() { @@ -99,7 +99,7 @@ public java.lang.String getType() { } /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java index e8d1e697aa7..aca17118fa4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -38,7 +38,7 @@ public final class BulkInsertInstanceResourcePerInstanceProperties extends com.g private java.lang.String hostname; /** - * Output only. This field is only temporary. It will be removed. Do not use it. + * 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 @@ -64,7 +64,7 @@ public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.Str } /** - * Output only. This field is only temporary. It will be removed. Do not use it. + * 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() { @@ -72,7 +72,7 @@ public java.lang.String getName() { } /** - * Output only. This field is only temporary. It will be removed. Do not use it. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java index cb23dd5a6fa..25df3e9b811 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CacheInvalidationRule.java @@ -29,17 +29,6 @@ @SuppressWarnings("javadoc") public final class CacheInvalidationRule extends com.google.api.client.json.GenericJson { - /** - * If set, this invalidation rule will only apply to requests routed to the given backend service - * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, - * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service - * `bs1` in the same scope as the URL map, the path would be `projects/my- - * project/global/backendServices/bs1`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String backendService; - /** * A list of cache tags used to identify cached objects. * @@ -54,15 +43,6 @@ public final class CacheInvalidationRule extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.util.List cacheTags; - /** - * If set, this invalidation rule will only apply to responses with the given content-type. - * Parameters are not allowed and are ignored from the response when matching. Wildcards are not - * allowed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String contentType; - /** * If set, this invalidation rule will only apply to requests with a Host header matching host. * The value may be {@code null}. @@ -70,45 +50,12 @@ public final class CacheInvalidationRule extends com.google.api.client.json.Gene @com.google.api.client.util.Key private java.lang.String host; - /** - * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid - * range is 200-599. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer httpStatus; - /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String path; - /** - * If set, this invalidation rule will only apply to requests routed to the given backend service - * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, - * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service - * `bs1` in the same scope as the URL map, the path would be `projects/my- - * project/global/backendServices/bs1`. - * @return value or {@code null} for none - */ - public java.lang.String getBackendService() { - return backendService; - } - - /** - * If set, this invalidation rule will only apply to requests routed to the given backend service - * or backend bucket. For example, for a backend bucket `bb1` in the same scope as the URL map, - * the path would be `projects/my-project/global/backendBuckets/bb1`; and for a backend service - * `bs1` in the same scope as the URL map, the path would be `projects/my- - * project/global/backendServices/bs1`. - * @param backendService backendService or {@code null} for none - */ - public CacheInvalidationRule setBackendService(java.lang.String backendService) { - this.backendService = backendService; - return this; - } - /** * A list of cache tags used to identify cached objects. * @@ -140,27 +87,6 @@ public CacheInvalidationRule setCacheTags(java.util.List cache return this; } - /** - * If set, this invalidation rule will only apply to responses with the given content-type. - * Parameters are not allowed and are ignored from the response when matching. Wildcards are not - * allowed. - * @return value or {@code null} for none - */ - public java.lang.String getContentType() { - return contentType; - } - - /** - * If set, this invalidation rule will only apply to responses with the given content-type. - * Parameters are not allowed and are ignored from the response when matching. Wildcards are not - * allowed. - * @param contentType contentType or {@code null} for none - */ - public CacheInvalidationRule setContentType(java.lang.String contentType) { - this.contentType = contentType; - return this; - } - /** * If set, this invalidation rule will only apply to requests with a Host header matching host. * @return value or {@code null} for none @@ -178,25 +104,6 @@ public CacheInvalidationRule setHost(java.lang.String host) { return this; } - /** - * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid - * range is 200-599. - * @return value or {@code null} for none - */ - public java.lang.Integer getHttpStatus() { - return httpStatus; - } - - /** - * If set, this invalidation rule will only apply to responses with the given HTTP status. Valid - * range is 200-599. - * @param httpStatus httpStatus or {@code null} for none - */ - public CacheInvalidationRule setHttpStatus(java.lang.Integer httpStatus) { - this.httpStatus = httpStatus; - return this; - } - /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java deleted file mode 100644 index 637cb5ec264..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicy.java +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -/* - * This code 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 cachePolicy.cacheMode settings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List cacheBypassRequestHeaderNames; - - /** - * The CacheKeyPolicy for this CachePolicy. - * 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, the default - * value is 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 Duration 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. 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. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration 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). - * 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 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 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 cachePolicy.cacheMode settings. - * @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 cachePolicy.cacheMode settings. - * @param cacheBypassRequestHeaderNames cacheBypassRequestHeaderNames or {@code null} for none - */ - public CachePolicy setCacheBypassRequestHeaderNames(java.util.List cacheBypassRequestHeaderNames) { - this.cacheBypassRequestHeaderNames = cacheBypassRequestHeaderNames; - return this; - } - - /** - * The CacheKeyPolicy for this CachePolicy. - * @return value or {@code null} for none - */ - public CachePolicyCacheKeyPolicy getCacheKeyPolicy() { - return cacheKeyPolicy; - } - - /** - * The CacheKeyPolicy for this CachePolicy. - * @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, the default - * value is 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 route. If not specified, the default - * value is CACHE_ALL_STATIC. - * @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. 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 Duration 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 CachePolicy setClientTtl(Duration 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. 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. - * @return value or {@code null} for none - */ - public Duration 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. 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. - * @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 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). - * Infrequently accessed objects may be evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public Duration 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). - * Infrequently accessed objects may be evicted from the cache before the defined TTL. - * @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 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 CachePolicy 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 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. - * @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 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/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java deleted file mode 100644 index 83241e3f631..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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 excluded_query_parameters or included_query_parameters, 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 a 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 - * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 excluded_query_parameters or included_query_parameters, 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 a 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 excluded_query_parameters or included_query_parameters, 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 a 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 - * included_query_parameters and excluded_query_parameters. 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 a 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 - * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 included_query_parameters or excluded_query_parameters, 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/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java deleted file mode 100644 index 99e81ac96dd..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java index 26ac0c12280..f3d78921e43 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestDistributionPolicy.java @@ -31,7 +31,7 @@ public final class CapacityAdviceRequestDistributionPolicy extends com.google.ap /** * The distribution shape to which the group converges. You can only specify the following values: - * ANY,ANY_SINGLE_ZONE,BALANCED. + * ANY,ANY_SINGLE_ZONE. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,7 +46,7 @@ public final class CapacityAdviceRequestDistributionPolicy extends com.google.ap /** * The distribution shape to which the group converges. You can only specify the following values: - * ANY,ANY_SINGLE_ZONE,BALANCED. + * ANY,ANY_SINGLE_ZONE. * @return value or {@code null} for none */ public java.lang.String getTargetShape() { @@ -55,7 +55,7 @@ public java.lang.String getTargetShape() { /** * The distribution shape to which the group converges. You can only specify the following values: - * ANY,ANY_SINGLE_ZONE,BALANCED. + * ANY,ANY_SINGLE_ZONE. * @param targetShape targetShape or {@code null} for none */ public CapacityAdviceRequestDistributionPolicy setTargetShape(java.lang.String targetShape) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java index 4d5f99e3f89..eb3965e3774 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstanceProperties.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class CapacityAdviceRequestInstanceProperties extends com.google.api.client.json.GenericJson { - /** - * Input only. Specifies the topology required to create a partition for VMs that have - * interconnected GPUs or TPUs. Example values: 2x2 for ct5l-hightpu-4t. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acceleratorTopology; - /** * Specifies the scheduling options. * The value may be {@code null}. @@ -44,25 +36,6 @@ public final class CapacityAdviceRequestInstanceProperties extends com.google.ap @com.google.api.client.util.Key private CapacityAdviceRequestInstancePropertiesScheduling scheduling; - /** - * Input only. Specifies the topology required to create a partition for VMs that have - * interconnected GPUs or TPUs. Example values: 2x2 for ct5l-hightpu-4t. - * @return value or {@code null} for none - */ - public java.lang.String getAcceleratorTopology() { - return acceleratorTopology; - } - - /** - * Input only. Specifies the topology required to create a partition for VMs that have - * interconnected GPUs or TPUs. Example values: 2x2 for ct5l-hightpu-4t. - * @param acceleratorTopology acceleratorTopology or {@code null} for none - */ - public CapacityAdviceRequestInstanceProperties setAcceleratorTopology(java.lang.String acceleratorTopology) { - this.acceleratorTopology = acceleratorTopology; - return this; - } - /** * Specifies the scheduling options. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java index ec15474f5f7..a2fa1fd1198 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceRequestInstancePropertiesScheduling.java @@ -29,13 +29,6 @@ @SuppressWarnings("javadoc") public final class CapacityAdviceRequestInstancePropertiesScheduling extends com.google.api.client.json.GenericJson { - /** - * The maximum time that instances can run before Compute Engine terminates them. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String maxRunDuration; - /** * Specifies the provisioning model of the instance. * The value may be {@code null}. @@ -43,23 +36,6 @@ public final class CapacityAdviceRequestInstancePropertiesScheduling extends com @com.google.api.client.util.Key private java.lang.String provisioningModel; - /** - * The maximum time that instances can run before Compute Engine terminates them. - * @return value or {@code null} for none - */ - public String getMaxRunDuration() { - return maxRunDuration; - } - - /** - * The maximum time that instances can run before Compute Engine terminates them. - * @param maxRunDuration maxRunDuration or {@code null} for none - */ - public CapacityAdviceRequestInstancePropertiesScheduling setMaxRunDuration(String maxRunDuration) { - this.maxRunDuration = maxRunDuration; - return this; - } - /** * Specifies the provisioning model of the instance. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java index e6406684831..3261a84c323 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationScores.java @@ -29,22 +29,6 @@ @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 history data and current conditions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String estimatedUptime; - - /** - * Output only. The likely maximum time that you will have to wait until Compute Engine provisions - * your instances. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String estimatedWaitDuration; - /** * 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. @@ -62,44 +46,6 @@ public final class CapacityAdviceResponseRecommendationScores extends com.google @com.google.api.client.util.Key private java.lang.Double uptimeScore; - /** - * 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 history 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 history data and current conditions. - * @param estimatedUptime estimatedUptime or {@code null} for none - */ - public CapacityAdviceResponseRecommendationScores setEstimatedUptime(String estimatedUptime) { - this.estimatedUptime = estimatedUptime; - return this; - } - - /** - * Output only. The likely maximum time that you will have to wait until Compute Engine provisions - * your instances. - * @return value or {@code null} for none - */ - public String getEstimatedWaitDuration() { - return estimatedWaitDuration; - } - - /** - * Output only. The likely maximum time that you will have to wait until Compute Engine provisions - * your instances. - * @param estimatedWaitDuration estimatedWaitDuration or {@code null} for none - */ - public CapacityAdviceResponseRecommendationScores setEstimatedWaitDuration(String estimatedWaitDuration) { - this.estimatedWaitDuration = estimatedWaitDuration; - 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java index cf1960ceb7d..22435677d1c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CapacityAdviceResponseRecommendationShard.java @@ -54,7 +54,7 @@ public final class CapacityAdviceResponseRecommendationShard extends com.google. private java.lang.String provisioningModel; /** - * Output only. The zone name for this shard. + * The zone name for this shard. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -114,7 +114,7 @@ public CapacityAdviceResponseRecommendationShard setProvisioningModel(java.lang. } /** - * Output only. The zone name for this shard. + * The zone name for this shard. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -122,7 +122,7 @@ public java.lang.String getZone() { } /** - * Output only. The zone name for this shard. + * The zone name for this shard. * @param zone zone or {@code null} for none */ public CapacityAdviceResponseRecommendationShard setZone(java.lang.String zone) { 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 057eb408d04..cedbd614404 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 @@ -58,7 +58,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String category; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. + * [Output Only] Commitment end time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,15 +95,14 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List existingReservations; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#commitment for commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -135,14 +134,6 @@ public final class Commitment extends com.google.api.client.json.GenericJson { @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 @@ -155,8 +146,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String plan; /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. + * [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 @@ -176,7 +166,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List reservations; /** - * Output only. [Output Only] Status information for Commitment resource. + * [Output Only] Status information for Commitment resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,14 +181,14 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List resources; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -213,23 +203,23 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String splitSourceCommitment; /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. + * [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. + * [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. + * [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -245,11 +235,10 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * 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,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, - * STORAGE_OPTIMIZED_Z3. 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. + * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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 @@ -308,7 +297,7 @@ public Commitment setCategory(java.lang.String category) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -316,7 +305,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -365,7 +354,7 @@ public Commitment setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. + * [Output Only] Commitment end time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getEndTimestamp() { @@ -373,7 +362,7 @@ public java.lang.String getEndTimestamp() { } /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. + * [Output Only] Commitment end time inRFC3339 text format. * @param endTimestamp endTimestamp or {@code null} for none */ public Commitment setEndTimestamp(java.lang.String endTimestamp) { @@ -397,8 +386,7 @@ public Commitment setExistingReservations(java.util.List exist } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -406,8 +394,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -416,7 +403,7 @@ public Commitment setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. + * [Output Only] Type of the resource. Always compute#commitment for commitments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -424,7 +411,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. + * [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) { @@ -493,25 +480,6 @@ public Commitment setName(java.lang.String 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 @@ -538,8 +506,7 @@ public Commitment setPlan(java.lang.String plan) { } /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. + * [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() { @@ -547,8 +514,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. + * [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) { @@ -586,7 +552,7 @@ public Commitment setReservations(java.util.List reservations) { } /** - * Output only. [Output Only] Status information for Commitment resource. + * [Output Only] Status information for Commitment resource. * @return value or {@code null} for none */ public CommitmentResourceStatus getResourceStatus() { @@ -594,7 +560,7 @@ public CommitmentResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for Commitment resource. + * [Output Only] Status information for Commitment resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { @@ -622,7 +588,7 @@ public Commitment setResources(java.util.List resources) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -630,7 +596,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Commitment setSelfLink(java.lang.String selfLink) { @@ -639,7 +605,7 @@ public Commitment setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -647,7 +613,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Commitment setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -675,7 +641,7 @@ public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitmen } /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. + * [Output Only] Commitment start time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getStartTimestamp() { @@ -683,7 +649,7 @@ public java.lang.String getStartTimestamp() { } /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. + * [Output Only] Commitment start time inRFC3339 text format. * @param startTimestamp startTimestamp or {@code null} for none */ public Commitment setStartTimestamp(java.lang.String startTimestamp) { @@ -692,9 +658,9 @@ public Commitment setStartTimestamp(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. + * [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() { @@ -702,9 +668,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -713,7 +679,7 @@ public Commitment setStatus(java.lang.String status) { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -721,7 +687,7 @@ public java.lang.String getStatusMessage() { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [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) { @@ -739,11 +705,10 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * 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,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, - * STORAGE_OPTIMIZED_Z3. 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. + * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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() { @@ -760,11 +725,10 @@ public java.lang.String getType() { * 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,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, - * STORAGE_OPTIMIZED_Z3. 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. + * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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/CommitmentAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java index f2e7e93ec6f..ebea0717115 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -44,8 +44,8 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for - * aggregated lists of commitments. + * [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of + * commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class CommitmentAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public CommitmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CommitmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java index 1b42ceec78e..888c1afdb74 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -50,8 +50,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. + * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public CommitmentList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. + * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. + * [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) { @@ -158,7 +155,7 @@ public CommitmentList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 CommitmentList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentParams.java deleted file mode 100644 index 1fd71eaebf2..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java index 8b96dfeab67..c0077d757b3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -30,23 +30,23 @@ public final class CommitmentResourceStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] An optional, contains all the needed information of cancellation. + * [Output Only] An optional, contains all the needed information of cancellation. * The value may be {@code null}. */ @com.google.api.client.util.Key private CommitmentResourceStatusCancellationInformation cancellationInformation; /** - * 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. + * [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] An optional, contains all the needed information of cancellation. + * [Output Only] An optional, contains all the needed information of cancellation. * @return value or {@code null} for none */ public CommitmentResourceStatusCancellationInformation getCancellationInformation() { @@ -54,7 +54,7 @@ public CommitmentResourceStatusCancellationInformation getCancellationInformatio } /** - * Output only. [Output Only] An optional, contains all the needed information of cancellation. + * [Output Only] An optional, contains all the needed information of cancellation. * @param cancellationInformation cancellationInformation or {@code null} for none */ public CommitmentResourceStatus setCancellationInformation(CommitmentResourceStatusCancellationInformation cancellationInformation) { @@ -63,9 +63,9 @@ public CommitmentResourceStatus setCancellationInformation(CommitmentResourceSta } /** - * 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. + * [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() { @@ -73,9 +73,9 @@ public java.lang.String getCustomTermEligibilityEndTimestamp() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java index 11f7d1a7dfa..a898b418a33 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatusCancellationInformation.java @@ -30,44 +30,43 @@ public final class CommitmentResourceStatusCancellationInformation extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] An optional amount of CUDs canceled so far in the last 365 days. + * [Output Only] An optional amount of CUDs canceled so far in the last 365 days. * The value may be {@code null}. */ @com.google.api.client.util.Key private Money canceledCommitment; /** - * Output only. [Output Only] An optional last update time of canceled_commitment.RFC3339 text - * format. + * [Output Only] An optional last update time of canceled_commitment.RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String canceledCommitmentLastUpdatedTimestamp; /** - * Output only. [Output Only] An optional,the cancellation cap for how much commitments can be - * canceled in a rolling 365 per billing account. + * [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a + * rolling 365 per billing account. * The value may be {@code null}. */ @com.google.api.client.util.Key private Money cancellationCap; /** - * Output only. [Output Only] An optional, cancellation fee. + * [Output Only] An optional, cancellation fee. * The value may be {@code null}. */ @com.google.api.client.util.Key private Money cancellationFee; /** - * Output only. [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. + * [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String cancellationFeeExpirationTimestamp; /** - * Output only. [Output Only] An optional amount of CUDs canceled so far in the last 365 days. + * [Output Only] An optional amount of CUDs canceled so far in the last 365 days. * @return value or {@code null} for none */ public Money getCanceledCommitment() { @@ -75,7 +74,7 @@ public Money getCanceledCommitment() { } /** - * Output only. [Output Only] An optional amount of CUDs canceled so far in the last 365 days. + * [Output Only] An optional amount of CUDs canceled so far in the last 365 days. * @param canceledCommitment canceledCommitment or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCanceledCommitment(Money canceledCommitment) { @@ -84,8 +83,7 @@ public CommitmentResourceStatusCancellationInformation setCanceledCommitment(Mon } /** - * Output only. [Output Only] An optional last update time of canceled_commitment.RFC3339 text - * format. + * [Output Only] An optional last update time of canceled_commitment.RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCanceledCommitmentLastUpdatedTimestamp() { @@ -93,8 +91,7 @@ public java.lang.String getCanceledCommitmentLastUpdatedTimestamp() { } /** - * Output only. [Output Only] An optional last update time of canceled_commitment.RFC3339 text - * format. + * [Output Only] An optional last update time of canceled_commitment.RFC3339 text format. * @param canceledCommitmentLastUpdatedTimestamp canceledCommitmentLastUpdatedTimestamp or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCanceledCommitmentLastUpdatedTimestamp(java.lang.String canceledCommitmentLastUpdatedTimestamp) { @@ -103,8 +100,8 @@ public CommitmentResourceStatusCancellationInformation setCanceledCommitmentLast } /** - * Output only. [Output Only] An optional,the cancellation cap for how much commitments can be - * canceled in a rolling 365 per billing account. + * [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a + * rolling 365 per billing account. * @return value or {@code null} for none */ public Money getCancellationCap() { @@ -112,8 +109,8 @@ public Money getCancellationCap() { } /** - * Output only. [Output Only] An optional,the cancellation cap for how much commitments can be - * canceled in a rolling 365 per billing account. + * [Output Only] An optional,the cancellation cap for how much commitments can be canceled in a + * rolling 365 per billing account. * @param cancellationCap cancellationCap or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCancellationCap(Money cancellationCap) { @@ -122,7 +119,7 @@ public CommitmentResourceStatusCancellationInformation setCancellationCap(Money } /** - * Output only. [Output Only] An optional, cancellation fee. + * [Output Only] An optional, cancellation fee. * @return value or {@code null} for none */ public Money getCancellationFee() { @@ -130,7 +127,7 @@ public Money getCancellationFee() { } /** - * Output only. [Output Only] An optional, cancellation fee. + * [Output Only] An optional, cancellation fee. * @param cancellationFee cancellationFee or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCancellationFee(Money cancellationFee) { @@ -139,7 +136,7 @@ public CommitmentResourceStatusCancellationInformation setCancellationFee(Money } /** - * Output only. [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. + * [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCancellationFeeExpirationTimestamp() { @@ -147,7 +144,7 @@ public java.lang.String getCancellationFeeExpirationTimestamp() { } /** - * Output only. [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. + * [Output Only] An optional, cancellation fee expiration time.RFC3339 text format. * @param cancellationFeeExpirationTimestamp cancellationFeeExpirationTimestamp or {@code null} for none */ public CommitmentResourceStatusCancellationInformation setCancellationFeeExpirationTimestamp(java.lang.String cancellationFeeExpirationTimestamp) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java index 54846cd5537..91e7eed3e7d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java @@ -34,7 +34,7 @@ public final class CompositeHealthCheck extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,16 +78,15 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener private java.util.List healthSources; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -105,30 +104,30 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener 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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -136,7 +135,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { @@ -267,8 +266,7 @@ public CompositeHealthCheck setHealthSources(java.util.List he } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -276,8 +274,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -286,8 +283,8 @@ public CompositeHealthCheck setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -295,8 +292,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [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) { @@ -330,9 +327,9 @@ public CompositeHealthCheck setName(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. + * [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() { @@ -340,9 +337,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -351,7 +348,7 @@ public CompositeHealthCheck setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -359,7 +356,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { @@ -368,7 +365,7 @@ public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -376,7 +373,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java index 88a96d851a4..82598e5f984 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java @@ -44,7 +44,7 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public CompositeHealthCheckAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CompositeHealthCheckAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckHealth.java deleted file mode 100644 index 3c49117c05d..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java index d0904ef3566..c811ce5d44d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java @@ -50,8 +50,8 @@ public final class CompositeHealthCheckList extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public CompositeHealthCheckList setItems(java.util.List it } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CompositeHealthChecksGetHealthResponseHealthSourceHealth.java deleted file mode 100644 index d9dfb0d1a97..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java index b58929ff142..1ec94a91b94 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -33,7 +33,7 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,16 +47,15 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,21 +73,21 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -96,7 +95,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -122,8 +121,8 @@ public CrossSiteNetwork setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -131,8 +130,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -141,8 +140,7 @@ public CrossSiteNetwork setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -150,8 +148,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [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) { @@ -185,7 +182,7 @@ public CrossSiteNetwork setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -193,7 +190,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public CrossSiteNetwork setSelfLink(java.lang.String selfLink) { @@ -202,7 +199,7 @@ public CrossSiteNetwork setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -210,7 +207,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public CrossSiteNetwork setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java index 24e29d0450f..110bd4bdc2d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -56,8 +56,7 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -81,8 +80,7 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,8 +143,7 @@ public CrossSiteNetworkList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -154,8 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [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) { @@ -204,8 +200,7 @@ public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public CrossSiteNetworkList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DateTime.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DateTime.java deleted file mode 100644 index a25410c20e5..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Disk.java index 4056660515a..97ee36c3074 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Disk.java @@ -72,14 +72,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private DiskAsyncReplication asyncPrimaryDisk; /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,8 +141,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -157,7 +156,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * [Output Only] Type of the resource. Always compute#disk for disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -184,14 +183,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * [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. + * [Output Only] Last detach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -220,11 +219,11 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String locationHint; /** - * Output only. [Output Only] The field indicates if the disk is created from a locked source - * image. Attachment of a disk created from a locked source image will cause the following - * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other - * instance - Disk detachment. And the disk can only be deleted when the instance is deleted - * - Creation of images or snapshots - Disk cloning + * [Output Only] The field indicates if the disk is created from a locked source image. Attachment + * of a disk created from a locked source image will cause the following operations to become + * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk + * detachment. And the disk can only be deleted when the instance is deleted - Creation of + * images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -297,9 +296,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -321,7 +320,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * Output only. [Output Only] Status information for the disk resource. + * [Output Only] Status information for the disk resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -335,21 +334,21 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -368,16 +367,16 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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. + * [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 @@ -397,10 +396,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -442,10 +441,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -463,8 +462,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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 + * [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. @@ -484,8 +483,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String sourceMachineImage; /** - * The device name of a disk within a given machine image. The source_machine_image must be - * specified. + * Input only. The device name of a disk within a given machine image. The source_machine_image + * must be specified. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -500,11 +499,11 @@ public final class Disk extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * Output only. [Output Only] The unique ID of the machine image used to create this disk. This - * value identifies the exact machine image that was used to create this persistent disk. For - * example, if you created the persistent disk from a machine image that was later deleted and - * recreated under the same name, the source machine image ID would identify the exact version of - * the machine image that was used. + * [Output Only] The unique ID of the machine image used to create this disk. This value + * identifies the exact machine image that was used to create this persistent disk. For example, + * if you created the persistent disk from a machine image that was later deleted and recreated + * under the same name, the source machine image ID would identify the exact version of the + * machine image that was used. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -529,10 +528,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -550,9 +549,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -586,7 +585,18 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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}. */ @@ -594,8 +604,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -665,7 +675,7 @@ public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { } /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * [Output Only] A list of disks this disk is asynchronously replicated to. * @return value or {@code null} for none */ public java.util.Map getAsyncSecondaryDisks() { @@ -673,7 +683,7 @@ public java.util.Map getAsyncSecondaryDisks() } /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * [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) { @@ -682,7 +692,7 @@ public Disk setAsyncSecondaryDisks(java.util.Map guestOsFeatures) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -833,8 +842,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -862,7 +870,7 @@ public Disk setInterface(java.lang.String interface__) { } /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * [Output Only] Type of the resource. Always compute#disk for disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -870,7 +878,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * [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) { @@ -965,7 +973,7 @@ public Disk setLabels(java.util.Map labels) { } /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * [Output Only] Last attach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastAttachTimestamp() { @@ -973,7 +981,7 @@ public java.lang.String getLastAttachTimestamp() { } /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * [Output Only] Last attach timestamp inRFC3339 text format. * @param lastAttachTimestamp lastAttachTimestamp or {@code null} for none */ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { @@ -982,7 +990,7 @@ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { } /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * [Output Only] Last detach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastDetachTimestamp() { @@ -990,7 +998,7 @@ public java.lang.String getLastDetachTimestamp() { } /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * [Output Only] Last detach timestamp inRFC3339 text format. * @param lastDetachTimestamp lastDetachTimestamp or {@code null} for none */ public Disk setLastDetachTimestamp(java.lang.String lastDetachTimestamp) { @@ -1052,11 +1060,11 @@ public Disk setLocationHint(java.lang.String locationHint) { } /** - * Output only. [Output Only] The field indicates if the disk is created from a locked source - * image. Attachment of a disk created from a locked source image will cause the following - * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other - * instance - Disk detachment. And the disk can only be deleted when the instance is deleted - * - Creation of images or snapshots - Disk cloning + * [Output Only] The field indicates if the disk is created from a locked source image. Attachment + * of a disk created from a locked source image will cause the following operations to become + * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk + * detachment. And the disk can only be deleted when the instance is deleted - Creation of + * images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1070,11 +1078,11 @@ public java.lang.Boolean getLocked() { } /** - * Output only. [Output Only] The field indicates if the disk is created from a locked source - * image. Attachment of a disk created from a locked source image will cause the following - * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other - * instance - Disk detachment. And the disk can only be deleted when the instance is deleted - * - Creation of images or snapshots - Disk cloning + * [Output Only] The field indicates if the disk is created from a locked source image. Attachment + * of a disk created from a locked source image will cause the following operations to become + * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk + * detachment. And the disk can only be deleted when the instance is deleted - Creation of + * images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1230,9 +1238,9 @@ public Disk setProvisionedThroughput(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. + * [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() { @@ -1240,9 +1248,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -1287,7 +1295,7 @@ public Disk setResourcePolicies(java.util.List resourcePolicie } /** - * Output only. [Output Only] Status information for the disk resource. + * [Output Only] Status information for the disk resource. * @return value or {@code null} for none */ public DiskResourceStatus getResourceStatus() { @@ -1295,7 +1303,7 @@ public DiskResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for the disk resource. + * [Output Only] Status information for the disk resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Disk setResourceStatus(DiskResourceStatus resourceStatus) { @@ -1321,7 +1329,7 @@ public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1329,7 +1337,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1338,7 +1346,7 @@ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1346,7 +1354,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -1355,7 +1363,7 @@ public Disk setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1363,7 +1371,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Disk setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1399,8 +1407,8 @@ public Disk setSizeGb(java.lang.Long sizeGb) { } /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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() { @@ -1408,8 +1416,8 @@ public java.lang.String getSourceConsistencyGroupPolicy() { } /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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) { @@ -1418,8 +1426,8 @@ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGr } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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() { @@ -1427,8 +1435,8 @@ public java.lang.String getSourceConsistencyGroupPolicyId() { } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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) { @@ -1466,10 +1474,10 @@ public Disk setSourceDisk(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. + * [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() { @@ -1477,10 +1485,10 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -1565,10 +1573,10 @@ public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncrypt } /** - * 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. + * [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() { @@ -1576,10 +1584,10 @@ public java.lang.String getSourceImageId() { } /** - * 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. + * [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) { @@ -1613,8 +1621,8 @@ public Disk setSourceInstantSnapshot(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 + * [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. @@ -1625,8 +1633,8 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * 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 + * [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. @@ -1661,8 +1669,8 @@ public Disk setSourceMachineImage(java.lang.String sourceMachineImage) { } /** - * The device name of a disk within a given machine image. The source_machine_image must be - * specified. + * Input only. The device name of a disk within a given machine image. The source_machine_image + * must be specified. * @return value or {@code null} for none */ public java.lang.String getSourceMachineImageDiskDeviceName() { @@ -1670,8 +1678,8 @@ public java.lang.String getSourceMachineImageDiskDeviceName() { } /** - * The device name of a disk within a given machine image. The source_machine_image must be - * specified. + * Input only. The device name of a disk within a given machine image. The source_machine_image + * must be specified. * @param sourceMachineImageDiskDeviceName sourceMachineImageDiskDeviceName or {@code null} for none */ public Disk setSourceMachineImageDiskDeviceName(java.lang.String sourceMachineImageDiskDeviceName) { @@ -1699,11 +1707,11 @@ public Disk setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceMachi } /** - * Output only. [Output Only] The unique ID of the machine image used to create this disk. This - * value identifies the exact machine image that was used to create this persistent disk. For - * example, if you created the persistent disk from a machine image that was later deleted and - * recreated under the same name, the source machine image ID would identify the exact version of - * the machine image that was used. + * [Output Only] The unique ID of the machine image used to create this disk. This value + * identifies the exact machine image that was used to create this persistent disk. For example, + * if you created the persistent disk from a machine image that was later deleted and recreated + * under the same name, the source machine image ID would identify the exact version of the + * machine image that was used. * @return value or {@code null} for none */ public java.lang.String getSourceMachineImageId() { @@ -1711,11 +1719,11 @@ public java.lang.String getSourceMachineImageId() { } /** - * Output only. [Output Only] The unique ID of the machine image used to create this disk. This - * value identifies the exact machine image that was used to create this persistent disk. For - * example, if you created the persistent disk from a machine image that was later deleted and - * recreated under the same name, the source machine image ID would identify the exact version of - * the machine image that was used. + * [Output Only] The unique ID of the machine image used to create this disk. This value + * identifies the exact machine image that was used to create this persistent disk. For example, + * if you created the persistent disk from a machine image that was later deleted and recreated + * under the same name, the source machine image ID would identify the exact version of the + * machine image that was used. * @param sourceMachineImageId sourceMachineImageId or {@code null} for none */ public Disk setSourceMachineImageId(java.lang.String sourceMachineImageId) { @@ -1766,10 +1774,10 @@ public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotE } /** - * 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. + * [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() { @@ -1777,10 +1785,10 @@ public java.lang.String getSourceSnapshotId() { } /** - * 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. + * [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) { @@ -1814,9 +1822,9 @@ public Disk setSourceStorageObject(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. + * [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() { @@ -1824,9 +1832,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -1898,7 +1906,32 @@ public Disk setType(java.lang.String type) { } /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @param userLicenses userLicenses or {@code null} for none + */ + public Disk setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + + /** + * [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 */ @@ -1907,7 +1940,7 @@ public java.util.List getUsers() { } /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in + * [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 */ @@ -1917,8 +1950,8 @@ public Disk setUsers(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. + * [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() { @@ -1926,8 +1959,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java index a396284404a..b61dce2084d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -44,8 +44,8 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. + * [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 @@ -62,14 +62,14 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public DiskAggregatedList setItems(java.util.Map items) } /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. + * [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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. + * [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) { @@ -159,7 +159,7 @@ public DiskAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -167,7 +167,7 @@ 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 DiskAggregatedList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java index e31cddc0dd0..c8fb4fbcba9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -30,16 +30,16 @@ 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. + * [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. + * [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 @@ -56,19 +56,19 @@ public final class DiskAsyncReplication extends com.google.api.client.json.Gener 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. + * [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. + * [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() { @@ -76,8 +76,8 @@ public java.lang.String getConsistencyGroupPolicy() { } /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. + * [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) { @@ -86,8 +86,8 @@ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consisten } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. + * [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() { @@ -95,8 +95,8 @@ public java.lang.String getConsistencyGroupPolicyId() { } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. + * [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) { @@ -128,11 +128,11 @@ public DiskAsyncReplication setDisk(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. + * [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() { @@ -140,11 +140,11 @@ public java.lang.String getDiskId() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.java deleted file mode 100644 index 0857cfec6d8..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskConvertParams.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.model; - -/** - * Model definition for DiskConvertParams. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class DiskConvertParams extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceStopInProgressSnapshot; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedIops; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long provisionedThroughput; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean quickConversionOnly; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean resetSupportedVmFamilies; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetDiskType; - - /** - * @return value or {@code null} for none - */ - public java.lang.Boolean getForceStopInProgressSnapshot() { - return forceStopInProgressSnapshot; - } - - /** - * @param forceStopInProgressSnapshot forceStopInProgressSnapshot or {@code null} for none - */ - public DiskConvertParams setForceStopInProgressSnapshot(java.lang.Boolean forceStopInProgressSnapshot) { - this.forceStopInProgressSnapshot = forceStopInProgressSnapshot; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedIops() { - return provisionedIops; - } - - /** - * @param provisionedIops provisionedIops or {@code null} for none - */ - public DiskConvertParams setProvisionedIops(java.lang.Long provisionedIops) { - this.provisionedIops = provisionedIops; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Long getProvisionedThroughput() { - return provisionedThroughput; - } - - /** - * @param provisionedThroughput provisionedThroughput or {@code null} for none - */ - public DiskConvertParams setProvisionedThroughput(java.lang.Long provisionedThroughput) { - this.provisionedThroughput = provisionedThroughput; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Boolean getQuickConversionOnly() { - return quickConversionOnly; - } - - /** - * @param quickConversionOnly quickConversionOnly or {@code null} for none - */ - public DiskConvertParams setQuickConversionOnly(java.lang.Boolean quickConversionOnly) { - this.quickConversionOnly = quickConversionOnly; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.Boolean getResetSupportedVmFamilies() { - return resetSupportedVmFamilies; - } - - /** - * @param resetSupportedVmFamilies resetSupportedVmFamilies or {@code null} for none - */ - public DiskConvertParams setResetSupportedVmFamilies(java.lang.Boolean resetSupportedVmFamilies) { - this.resetSupportedVmFamilies = resetSupportedVmFamilies; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getTargetDiskType() { - return targetDiskType; - } - - /** - * @param targetDiskType targetDiskType or {@code null} for none - */ - public DiskConvertParams setTargetDiskType(java.lang.String targetDiskType) { - this.targetDiskType = targetDiskType; - return this; - } - - @Override - public DiskConvertParams set(String fieldName, Object value) { - return (DiskConvertParams) super.set(fieldName, value); - } - - @Override - public DiskConvertParams clone() { - return (DiskConvertParams) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java index af6eab69258..340802d6056 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -50,7 +50,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * [Output Only] Type of resource. Always compute#diskList for lists of disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public DiskList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * [Output Only] Type of resource. Always compute#diskList for lists of disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * [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) { @@ -155,7 +155,7 @@ public DiskList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 DiskList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java index 977563c1cec..2a9e2a25060 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskPairReplicationState.java @@ -30,14 +30,14 @@ public final class DiskPairReplicationState extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The status of disk creation. - - * ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after - * starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The - * primary disk is healthily replicating to the secondary device i.e. last_replication_time is - * within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The - * replication is lagging above the SLO limit due to the disk's change rate being above the - * supported limit. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The - * replication is lagging, and the RPO is not being met due to some internal issue. - + * [Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: + * The device is doing the initial replication after starting the replication. - + * ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to + * the secondary device i.e. last_replication_time is within RPO. - + * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The replication is lagging above the + * SLO limit due to the disk's change rate being above the supported limit. - + * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The replication is lagging, and + * the RPO is not being met due to some internal issue. - * ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some * internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the * process of being stopped. This is a transient state. - @@ -57,14 +57,14 @@ public final class DiskPairReplicationState extends com.google.api.client.json.G private ReplicationDiskPair replicationDiskPair; /** - * Output only. [Output Only] The status of disk creation. - - * ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after - * starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The - * primary disk is healthily replicating to the secondary device i.e. last_replication_time is - * within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The - * replication is lagging above the SLO limit due to the disk's change rate being above the - * supported limit. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The - * replication is lagging, and the RPO is not being met due to some internal issue. - + * [Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: + * The device is doing the initial replication after starting the replication. - + * ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to + * the secondary device i.e. last_replication_time is within RPO. - + * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The replication is lagging above the + * SLO limit due to the disk's change rate being above the supported limit. - + * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The replication is lagging, and + * the RPO is not being met due to some internal issue. - * ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some * internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the * process of being stopped. This is a transient state. - @@ -79,14 +79,14 @@ public java.lang.String getDataReplicationState() { } /** - * Output only. [Output Only] The status of disk creation. - - * ASYNC_REPLICATION_STATE_INITIALIZING: The device is doing the initial replication after - * starting the replication. - ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The - * primary disk is healthily replicating to the secondary device i.e. last_replication_time is - * within RPO. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The - * replication is lagging above the SLO limit due to the disk's change rate being above the - * supported limit. - ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The - * replication is lagging, and the RPO is not being met due to some internal issue. - + * [Output Only] The status of disk creation. - ASYNC_REPLICATION_STATE_INITIALIZING: + * The device is doing the initial replication after starting the replication. - + * ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY: The primary disk is healthily replicating to + * the secondary device i.e. last_replication_time is within RPO. - + * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN: The replication is lagging above the + * SLO limit due to the disk's change rate being above the supported limit. - + * ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING: The replication is lagging, and + * the RPO is not being met due to some internal issue. - * ASYNC_REPLICATION_STATE_REPLICATION_STUCK: The replication is completely stuck due to some * internal error. - ASYNC_REPLICATION_STATE_STOPPING: The replication is under the * process of being stopped. This is a transient state. - diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java index ca12f2eb573..1ffac25638f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -30,22 +30,18 @@ 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -53,11 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public DiskParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java index a9b4ebc59cd..100518549c9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskSettingsResourcePolicyDetails.java @@ -35,9 +35,9 @@ public final class DiskSettingsResourcePolicyDetails extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] A list of Disk Types that will be excluded from applying the - * Resource Policy referenced here. If absent, Disks created in any DiskType can use the - * referenced default Resource Policy. + * [Output Only] A list of Disk Types that will be excluded from applying the Resource Policy + * referenced here. If absent, Disks created in any DiskType can use the referenced default + * Resource Policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,9 +51,9 @@ public final class DiskSettingsResourcePolicyDetails extends com.google.api.clie private java.lang.String resourcePolicy; /** - * Output only. [Output Only] A list of Disk Types that will be excluded from applying the - * Resource Policy referenced here. If absent, Disks created in any DiskType can use the - * referenced default Resource Policy. + * [Output Only] A list of Disk Types that will be excluded from applying the Resource Policy + * referenced here. If absent, Disks created in any DiskType can use the referenced default + * Resource Policy. * @return value or {@code null} for none */ public java.util.List getExcludedDiskTypes() { @@ -61,9 +61,9 @@ public java.util.List getExcludedDiskTypes() { } /** - * Output only. [Output Only] A list of Disk Types that will be excluded from applying the - * Resource Policy referenced here. If absent, Disks created in any DiskType can use the - * referenced default Resource Policy. + * [Output Only] A list of Disk Types that will be excluded from applying the Resource Policy + * referenced here. If absent, Disks created in any DiskType can use the referenced default + * Resource Policy. * @param excludedDiskTypes excludedDiskTypes or {@code null} for none */ public DiskSettingsResourcePolicyDetails setExcludedDiskTypes(java.util.List excludedDiskTypes) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java index 3036f941ac3..c31d8cc7bbc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -79,7 +79,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * [Output Only] Type of the resource. Always compute#diskType for disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -216,7 +216,7 @@ public DiskType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * [Output Only] Type of the resource. Always compute#diskType for disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -224,7 +224,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * [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) { @@ -288,7 +288,7 @@ public DiskType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -296,7 +296,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public DiskType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java index cf1cb69068d..c1ded43bc49 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public DiskTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java index c14af4a2a50..514356f0f16 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -50,7 +50,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * [Output Only] Type of resource. Always compute#diskTypeList for disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public DiskTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * [Output Only] Type of resource. Always compute#diskTypeList for disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * [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) { @@ -155,7 +155,7 @@ public DiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 DiskTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DiskUpdateKmsKeyRequest.java deleted file mode 100644 index e4541064f90..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.java deleted file mode 100644 index b293a3ff69f..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DisksConvertRequest.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.model; - -/** - * Model definition for DisksConvertRequest. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class DisksConvertRequest extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private DiskConvertParams params; - - /** - * @return value or {@code null} for none - */ - public DiskConvertParams getParams() { - return params; - } - - /** - * @param params params or {@code null} for none - */ - public DisksConvertRequest setParams(DiskConvertParams params) { - this.params = params; - return this; - } - - @Override - public DisksConvertRequest set(String fieldName, Object value) { - return (DisksConvertRequest) super.set(fieldName, value); - } - - @Override - public DisksConvertRequest clone() { - return (DisksConvertRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java index 5559090d792..b9ce02ac6f5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -38,11 +38,7 @@ public final class DistributionPolicy extends com.google.api.client.json.Generic 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. + * Zones where the regional managed instance group will create and manage its instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,11 +64,7 @@ public DistributionPolicy setTargetShape(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. + * Zones where the regional managed instance group will create and manage its instances. * @return value or {@code null} for none */ public java.util.List getZones() { @@ -80,11 +72,7 @@ public java.util.List getZones() { } /** - * 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. + * Zones where the regional managed instance group will create and manage its instances. * @param zones zones or {@code null} for none */ public DistributionPolicy setZones(java.util.List zones) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java index 5e63c8f113a..b29773cfbb2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -50,8 +50,8 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json } /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. + * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering + * routes lists. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json 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 @@ -116,8 +116,8 @@ public ExchangedPeeringRoutesList setItems(java.util.List } /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. + * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering + * routes lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. + * [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) { @@ -158,7 +158,7 @@ public ExchangedPeeringRoutesList setNextPageToken(java.lang.String nextPageToke } /** - * 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() { @@ -166,7 +166,7 @@ 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 ExchangedPeeringRoutesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java index 268e207e284..415b69cc2c6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -40,7 +40,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,8 +54,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -73,8 +72,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.util.List interfaces; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for - * externalVpnGateways. + * [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -128,14 +126,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String redundancyType; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -143,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -169,8 +167,7 @@ public ExternalVpnGateway setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -178,8 +175,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -213,8 +209,7 @@ public ExternalVpnGateway setInterfaces(java.util.List items) } /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @return value or {@code null} for none */ @@ -146,7 +146,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @param kind kind or {@code null} for none */ @@ -179,7 +179,7 @@ public ExternalVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -187,7 +187,7 @@ 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 ExternalVpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java index 274c5b66d82..de173045fb0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -47,7 +47,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,15 +109,14 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableLogging; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#firewall for firewall rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -185,7 +184,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -272,7 +271,7 @@ public Firewall setAllowed(java.util.List allowed) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -280,7 +279,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { @@ -405,8 +404,7 @@ public Firewall setEnableLogging(java.lang.Boolean enableLogging) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -414,8 +412,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -424,7 +421,7 @@ public Firewall setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * [Output Only] Type of the resource. Always compute#firewall for firewall rules. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -432,7 +429,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * [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) { @@ -581,7 +578,7 @@ public Firewall setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -589,7 +586,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Firewall setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java index c80b819385c..96b60b0b731 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -50,8 +50,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. + * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public FirewallList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. + * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. + * [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) { @@ -158,7 +155,7 @@ public FirewallList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 FirewallList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java index 3f0fd7877bd..609dcacbde5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class FirewallPoliciesListAssociationsResponse extends com.google.a private java.util.List associations; /** - * Output only. [Output Only] Type of firewallPolicy associations. + * [Output Only] Type of firewallPolicy associations. * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. * The value may be {@code null}. */ @@ -62,7 +62,7 @@ public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,8 +85,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies + * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,22 +107,16 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.util.List packetMirroringRules; /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. + * [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; /** - * Indicates the source of this Firewall Policy. This field is optional on creation and defaults - * to USER_DEFINED. - * - * The USER_DEFINED value indicates a regular firewall policy. - * - * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This - * SYSTEM value is reserved for internal services and cannot be set by users during policy - * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or + * SYSTEM if created by managed services like GKE. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,24 +132,17 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson 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. + * [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; /** - * Configuration and status of the progressive rollout of this resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallPolicyRolloutOperation rolloutOperation; - - /** - * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy - * can not exceed a set number of tuples. + * [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 @@ -179,7 +165,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -232,7 +218,7 @@ public FirewallPolicy setAssociations(java.util.List } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -240,7 +226,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -383,8 +369,7 @@ public FirewallPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies + * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -392,8 +377,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies + * [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) { @@ -438,8 +422,8 @@ public FirewallPolicy setPacketMirroringRules(java.util.List } /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. + * [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() { @@ -447,8 +431,8 @@ public java.lang.String getParent() { } /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. + * [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) { @@ -457,14 +441,8 @@ public FirewallPolicy setParent(java.lang.String parent) { } /** - * Indicates the source of this Firewall Policy. This field is optional on creation and defaults - * to USER_DEFINED. - * - * The USER_DEFINED value indicates a regular firewall policy. - * - * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This - * SYSTEM value is reserved for internal services and cannot be set by users during policy - * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or + * SYSTEM if created by managed services like GKE. * @return value or {@code null} for none */ public java.lang.String getPolicySource() { @@ -472,14 +450,8 @@ public java.lang.String getPolicySource() { } /** - * Indicates the source of this Firewall Policy. This field is optional on creation and defaults - * to USER_DEFINED. - * - * The USER_DEFINED value indicates a regular firewall policy. - * - * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This - * SYSTEM value is reserved for internal services and cannot be set by users during policy - * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or + * SYSTEM if created by managed services like GKE. * @param policySource policySource or {@code null} for none */ public FirewallPolicy setPolicySource(java.lang.String policySource) { @@ -509,9 +481,9 @@ public FirewallPolicy setPolicyType(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. + * [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() { @@ -519,9 +491,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -530,25 +502,8 @@ public FirewallPolicy setRegion(java.lang.String region) { } /** - * Configuration and status of the progressive rollout of this resource. - * @return value or {@code null} for none - */ - public FirewallPolicyRolloutOperation getRolloutOperation() { - return rolloutOperation; - } - - /** - * Configuration and status of the progressive rollout of this resource. - * @param rolloutOperation rolloutOperation or {@code null} for none - */ - public FirewallPolicy setRolloutOperation(FirewallPolicyRolloutOperation rolloutOperation) { - this.rolloutOperation = rolloutOperation; - 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. + * [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() { @@ -556,8 +511,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy - * can not exceed a set number of tuples. + * [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) { @@ -604,7 +559,7 @@ public FirewallPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -612,7 +567,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index da4f0aa51e9..ed43590239d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -45,7 +45,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String displayName; /** - * Output only. [Output Only] The firewall policy ID of the association. + * [Output Only] The firewall policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.Integer priority; /** - * Output only. [Output Only] The short name of the firewall policy of the association. + * [Output Only] The short name of the firewall policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -113,7 +113,7 @@ public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { } /** - * Output only. [Output Only] The firewall policy ID of the association. + * [Output Only] The firewall policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicyId() { @@ -121,7 +121,7 @@ public java.lang.String getFirewallPolicyId() { } /** - * Output only. [Output Only] The firewall policy ID of the association. + * [Output Only] The firewall policy ID of the association. * @param firewallPolicyId firewallPolicyId or {@code null} for none */ public FirewallPolicyAssociation setFirewallPolicyId(java.lang.String firewallPolicyId) { @@ -172,7 +172,7 @@ public FirewallPolicyAssociation setPriority(java.lang.Integer priority) { } /** - * Output only. [Output Only] The short name of the firewall policy of the association. + * [Output Only] The short name of the firewall policy of the association. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -180,7 +180,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the firewall policy of the association. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java index 5ced755c298..5f6cb2a7687 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -50,8 +50,7 @@ public final class FirewallPolicyList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies + * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,8 +108,7 @@ public FirewallPolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies + * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -118,8 +116,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.java deleted file mode 100644 index 3420c86026f..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperation.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.model; - -/** - * Represents progressive rollout input parameters and current 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 FirewallPolicyRolloutOperation extends com.google.api.client.json.GenericJson { - - /** - * Input parameters to be used by the next not yet scheduled rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallPolicyRolloutOperationRolloutInput rolloutInput; - - /** - * [Output only] Current status of the rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallPolicyRolloutOperationRolloutStatus rolloutStatus; - - /** - * Input parameters to be used by the next not yet scheduled rollout. - * @return value or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutInput getRolloutInput() { - return rolloutInput; - } - - /** - * Input parameters to be used by the next not yet scheduled rollout. - * @param rolloutInput rolloutInput or {@code null} for none - */ - public FirewallPolicyRolloutOperation setRolloutInput(FirewallPolicyRolloutOperationRolloutInput rolloutInput) { - this.rolloutInput = rolloutInput; - return this; - } - - /** - * [Output only] Current status of the rollout. - * @return value or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatus getRolloutStatus() { - return rolloutStatus; - } - - /** - * [Output only] Current status of the rollout. - * @param rolloutStatus rolloutStatus or {@code null} for none - */ - public FirewallPolicyRolloutOperation setRolloutStatus(FirewallPolicyRolloutOperationRolloutStatus rolloutStatus) { - this.rolloutStatus = rolloutStatus; - return this; - } - - @Override - public FirewallPolicyRolloutOperation set(String fieldName, Object value) { - return (FirewallPolicyRolloutOperation) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRolloutOperation clone() { - return (FirewallPolicyRolloutOperation) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.java deleted file mode 100644 index 31a4bbd7721..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutInput.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.model; - -/** - * Represents progressive rollout input 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 FirewallPolicyRolloutOperationRolloutInput extends com.google.api.client.json.GenericJson { - - /** - * The name of the rollout plan. Ex. organizations//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 UUID of the retry action. Only needed if this is a retry for an existing rollout. This can - * be used after the user canceled a rollout and want to retry it with no changes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String retryUuid; - - /** - * The name of the rollout plan. Ex. organizations//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/. - * @param name name or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutInput 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 FirewallPolicyRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { - this.predefinedRolloutPlan = predefinedRolloutPlan; - return this; - } - - /** - * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can - * be used after the user canceled a rollout and want to retry it with no changes. - * @return value or {@code null} for none - */ - public java.lang.String getRetryUuid() { - return retryUuid; - } - - /** - * The UUID of the retry action. Only needed if this is a retry for an existing rollout. This can - * be used after the user canceled a rollout and want to retry it with no changes. - * @param retryUuid retryUuid or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { - this.retryUuid = retryUuid; - return this; - } - - @Override - public FirewallPolicyRolloutOperationRolloutInput set(String fieldName, Object value) { - return (FirewallPolicyRolloutOperationRolloutInput) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRolloutOperationRolloutInput clone() { - return (FirewallPolicyRolloutOperationRolloutInput) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.java deleted file mode 100644 index 0afa242a5d3..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatus.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.model; - -/** - * Represents progressive rollout current 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 FirewallPolicyRolloutOperationRolloutStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output only] The next rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallPolicyRolloutOperationRolloutStatusNextRollout nextRollout; - - /** - * [Output only] The ongoing rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List ongoingRollouts; - - /** - * [Output only] The last previously executed rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout; - - /** - * [Output only] The next rollout. - * @return value or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusNextRollout getNextRollout() { - return nextRollout; - } - - /** - * [Output only] The next rollout. - * @param nextRollout nextRollout or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatus setNextRollout(FirewallPolicyRolloutOperationRolloutStatusNextRollout nextRollout) { - this.nextRollout = nextRollout; - return this; - } - - /** - * [Output only] The ongoing rollout. - * @return value or {@code null} for none - */ - public java.util.List getOngoingRollouts() { - return ongoingRollouts; - } - - /** - * [Output only] The ongoing rollout. - * @param ongoingRollouts ongoingRollouts or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatus setOngoingRollouts(java.util.List ongoingRollouts) { - this.ongoingRollouts = ongoingRollouts; - return this; - } - - /** - * [Output only] The last previously executed rollout. - * @return value or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata getPreviousRollout() { - return previousRollout; - } - - /** - * [Output only] The last previously executed rollout. - * @param previousRollout previousRollout or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatus setPreviousRollout(FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata previousRollout) { - this.previousRollout = previousRollout; - return this; - } - - @Override - public FirewallPolicyRolloutOperationRolloutStatus set(String fieldName, Object value) { - return (FirewallPolicyRolloutOperationRolloutStatus) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRolloutOperationRolloutStatus clone() { - return (FirewallPolicyRolloutOperationRolloutStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.java deleted file mode 100644 index 5b845cd8e1b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusNextRollout.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.model; - -/** - * Model definition for FirewallPolicyRolloutOperationRolloutStatusNextRollout. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class FirewallPolicyRolloutOperationRolloutStatusNextRollout extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] The id of the next rollout. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String rolloutId; - - /** - * The name of the rollout plan to be used by the next not yet started rollout. This field is auto - * populated based on RolloutInput when a new rollout is scheduled. This can be manually changed - * before the scheduled rollout starts. Ex. organizations//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 id of the next rollout. - * @return value or {@code null} for none - */ - public java.lang.String getRolloutId() { - return rolloutId; - } - - /** - * Output only. [Output only] The id of the next rollout. - * @param rolloutId rolloutId or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusNextRollout setRolloutId(java.lang.String rolloutId) { - this.rolloutId = rolloutId; - return this; - } - - /** - * The name of the rollout plan to be used by the next not yet started rollout. This field is auto - * populated based on RolloutInput when a new rollout is scheduled. This can be manually changed - * before the scheduled rollout starts. Ex. organizations//locations/global/rolloutPlans/ - * @return value or {@code null} for none - */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; - } - - /** - * The name of the rollout plan to be used by the next not yet started rollout. This field is auto - * populated based on RolloutInput when a new rollout is scheduled. This can be manually changed - * before the scheduled rollout starts. Ex. organizations//locations/global/rolloutPlans/ - * @param rolloutPlan rolloutPlan or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusNextRollout setRolloutPlan(java.lang.String rolloutPlan) { - this.rolloutPlan = rolloutPlan; - return this; - } - - @Override - public FirewallPolicyRolloutOperationRolloutStatusNextRollout set(String fieldName, Object value) { - return (FirewallPolicyRolloutOperationRolloutStatusNextRollout) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRolloutOperationRolloutStatusNextRollout clone() { - return (FirewallPolicyRolloutOperationRolloutStatusNextRollout) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.java deleted file mode 100644 index 812a25140d1..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata.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.model; - -/** - * Represents the status of the progressive rollout instance, either completed or ongoing. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output only] The name of the rollout organizations//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 used by this rollout - * organizations//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 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 name of the rollout organizations//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 organizations//locations/global/rollouts/ - * @param rollout rollout or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata setRollout(java.lang.String rollout) { - this.rollout = rollout; - return this; - } - - /** - * Output only. [Output only] The name of the rollout plan used by this rollout - * organizations//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 used by this rollout - * organizations//locations/global/rolloutPlans/ - * @param rolloutPlan rolloutPlan or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata setRolloutPlan(java.lang.String rolloutPlan) { - this.rolloutPlan = rolloutPlan; - return this; - } - - /** - * Output only. [Output only] The state of the rollout. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [Output only] The state of the rollout. - * @param state state or {@code null} for none - */ - public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata setState(java.lang.String state) { - this.state = state; - return this; - } - - @Override - public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata set(String fieldName, Object value) { - return (FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata) super.set(fieldName, value); - } - - @Override - public FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata clone() { - return (FirewallPolicyRolloutOperationRolloutStatusRolloutMetadata) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java index 6d2b0ebd702..c5c7032c624 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -72,8 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.Boolean enableLogging; /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. + * [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 @@ -104,7 +104,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.String ruleName; /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * [Output Only] Calculation of the complexity of a single firewall policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -274,8 +274,8 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { } /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. + * [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() { @@ -283,8 +283,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. + * [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) { @@ -350,7 +350,7 @@ public FirewallPolicyRule setRuleName(java.lang.String ruleName) { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * [Output Only] Calculation of the complexity of a single firewall policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -358,7 +358,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java index 3aa52411ce1..b8b606b7f46 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -37,8 +37,8 @@ public final class FirewallPolicyRuleSecureTag extends com.google.api.client.jso 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. + * [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 @@ -62,8 +62,8 @@ public FirewallPolicyRuleSecureTag setName(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. + * [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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java index d244d6d7f04..96e626ed323 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -30,8 +30,7 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Absolute value of VM instances calculated based on the specific - * mode. + * [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 * @@ -59,8 +58,7 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson private java.lang.Integer percent; /** - * Output only. [Output Only] Absolute value of VM instances calculated based on the specific - * mode. + * [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 * @@ -74,8 +72,7 @@ public java.lang.Integer getCalculated() { } /** - * Output only. [Output Only] Absolute value of VM instances calculated based on the specific - * mode. + * [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 * diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java index 36f13e72ddc..d28846f8d69 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java @@ -17,7 +17,8 @@ package com.google.api.services.compute.model; /** - * Specifies a flexible time range with flexible start time and duration. + * A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start + * time, (2) a flexible end time, (3) a flexible duration. * * It is possible to specify a contradictory time range that cannot be matched by any Interval. This * causes a validation error. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index 2566dcf6630..acc5a660ce3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -73,12 +73,6 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key("IPAddress") private java.lang.String iPAddress; - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key("IPAddresses") - private java.util.List iPAddresses; - /** * The IP protocol to which this rule applies. * @@ -130,11 +124,17 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean allowPscGlobalAccess; /** - * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. + * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to + * inject packets into the consumer's network. If set to true, the target service attachment must + * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC + * forwarding rules should not use this field. + * + * This field was never released to any customers and is deprecated and will be removed in the + * future. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.List attachedExtensions; + private java.lang.Boolean allowPscPacketInjection; /** * [Output Only] Specifies the availability group of the forwarding rule. This field is for use by @@ -155,28 +155,27 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson 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. + * [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] Applicable only to the parent forwarding rule of global external - * passthrough load balancers. This field contains the list of child forwarding rule URLs - * associated with the parent forwarding rule: one for each availability group. - * AVAILABILITY_GROUP0 will be the first element, and AVAILABILITY_GROUP1 will be the second - * element. + * [Output Only] Applicable only to the parent forwarding rule of global external passthrough load + * balancers. This field contains the list of child forwarding rule URLs associated with the + * parent forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first + * element, and AVAILABILITY_GROUP1 will be the second element. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List childForwardingRules; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -273,8 +272,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean isMirroringCollector; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. + * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -387,8 +385,8 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean noAutomateDnsZone; /** - * Output only. [Output Only] Applicable only to the child forwarding rules of global external - * passthrough load balancers. This field contains the URL of the parent forwarding rule. + * [Output Only] Applicable only to the child forwarding rules of global external passthrough load + * balancers. This field contains the URL of the parent forwarding rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -455,9 +453,9 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson 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. + * [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 @@ -471,7 +469,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -620,21 +618,6 @@ public ForwardingRule setIPAddress(java.lang.String iPAddress) { return this; } - /** - * @return value or {@code null} for none - */ - public java.util.List getIPAddresses() { - return iPAddresses; - } - - /** - * @param iPAddresses iPAddresses or {@code null} for none - */ - public ForwardingRule setIPAddresses(java.util.List iPAddresses) { - this.iPAddresses = iPAddresses; - return this; - } - /** * The IP protocol to which this rule applies. * @@ -748,19 +731,31 @@ public ForwardingRule setAllowPscGlobalAccess(java.lang.Boolean allowPscGlobalAc } /** - * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. + * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to + * inject packets into the consumer's network. If set to true, the target service attachment must + * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC + * forwarding rules should not use this field. + * + * This field was never released to any customers and is deprecated and will be removed in the + * future. * @return value or {@code null} for none */ - public java.util.List getAttachedExtensions() { - return attachedExtensions; + public java.lang.Boolean getAllowPscPacketInjection() { + return allowPscPacketInjection; } /** - * Output only. [Output Only]. The extensions that are attached to this ForwardingRule. - * @param attachedExtensions attachedExtensions or {@code null} for none + * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to + * inject packets into the consumer's network. If set to true, the target service attachment must + * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC + * forwarding rules should not use this field. + * + * This field was never released to any customers and is deprecated and will be removed in the + * future. + * @param allowPscPacketInjection allowPscPacketInjection or {@code null} for none */ - public ForwardingRule setAttachedExtensions(java.util.List attachedExtensions) { - this.attachedExtensions = attachedExtensions; + public ForwardingRule setAllowPscPacketInjection(java.lang.Boolean allowPscPacketInjection) { + this.allowPscPacketInjection = allowPscPacketInjection; return this; } @@ -807,10 +802,10 @@ public ForwardingRule setBackendService(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. + * [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() { @@ -818,10 +813,10 @@ public java.lang.String getBaseForwardingRule() { } /** - * 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. + * [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) { @@ -830,11 +825,10 @@ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) } /** - * Output only. [Output Only] Applicable only to the parent forwarding rule of global external - * passthrough load balancers. This field contains the list of child forwarding rule URLs - * associated with the parent forwarding rule: one for each availability group. - * AVAILABILITY_GROUP0 will be the first element, and AVAILABILITY_GROUP1 will be the second - * element. + * [Output Only] Applicable only to the parent forwarding rule of global external passthrough load + * balancers. This field contains the list of child forwarding rule URLs associated with the + * parent forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first + * element, and AVAILABILITY_GROUP1 will be the second element. * @return value or {@code null} for none */ public java.util.List getChildForwardingRules() { @@ -842,11 +836,10 @@ public java.util.List getChildForwardingRules() { } /** - * Output only. [Output Only] Applicable only to the parent forwarding rule of global external - * passthrough load balancers. This field contains the list of child forwarding rule URLs - * associated with the parent forwarding rule: one for each availability group. - * AVAILABILITY_GROUP0 will be the first element, and AVAILABILITY_GROUP1 will be the second - * element. + * [Output Only] Applicable only to the parent forwarding rule of global external passthrough load + * balancers. This field contains the list of child forwarding rule URLs associated with the + * parent forwarding rule: one for each availability group. AVAILABILITY_GROUP0 will be the first + * element, and AVAILABILITY_GROUP1 will be the second element. * @param childForwardingRules childForwardingRules or {@code null} for none */ public ForwardingRule setChildForwardingRules(java.util.List childForwardingRules) { @@ -855,7 +848,7 @@ public ForwardingRule setChildForwardingRules(java.util.List c } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -863,7 +856,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1114,8 +1107,7 @@ public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringColle } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. + * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -1123,8 +1115,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. + * [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) { @@ -1409,8 +1400,8 @@ public ForwardingRule setNoAutomateDnsZone(java.lang.Boolean noAutomateDnsZone) } /** - * Output only. [Output Only] Applicable only to the child forwarding rules of global external - * passthrough load balancers. This field contains the URL of the parent forwarding rule. + * [Output Only] Applicable only to the child forwarding rules of global external passthrough load + * balancers. This field contains the URL of the parent forwarding rule. * @return value or {@code null} for none */ public java.lang.String getParentForwardingRule() { @@ -1418,8 +1409,8 @@ public java.lang.String getParentForwardingRule() { } /** - * Output only. [Output Only] Applicable only to the child forwarding rules of global external - * passthrough load balancers. This field contains the URL of the parent forwarding rule. + * [Output Only] Applicable only to the child forwarding rules of global external passthrough load + * balancers. This field contains the URL of the parent forwarding rule. * @param parentForwardingRule parentForwardingRule or {@code null} for none */ public ForwardingRule setParentForwardingRule(java.lang.String parentForwardingRule) { @@ -1560,9 +1551,9 @@ public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatu } /** - * 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. + * [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() { @@ -1570,9 +1561,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -1598,7 +1589,7 @@ public ForwardingRule setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1606,7 +1597,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java index 01fcda7261e..b3edbe7c261 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -44,8 +44,8 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for - * lists of forwarding rules. + * [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of + * forwarding rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ForwardingRuleAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ForwardingRuleAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleAttachedExtension.java deleted file mode 100644 index b6bda2496c5..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java index eadbc548ba5..f54e7f24f8a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -50,7 +50,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public ForwardingRuleList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ForwardingRuleList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ForwardingRuleList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 ForwardingRuleList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java index 8d1901147cb..12dc3ab2d6f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class FutureReservation extends com.google.api.client.json.GenericJson { - /** - * Advanced control for cluster management, applicable only to DENSE deployment type future - * reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationAdvancedDeploymentControl advancedDeploymentControl; - /** * Aggregate reservation details for the future reservation. * The value may be {@code null}. @@ -81,14 +73,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ 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. + * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,16 +102,15 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.Boolean enableEmergentMaintenance; /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,14 +136,6 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ @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}. @@ -199,14 +175,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.String schedulingType; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -236,7 +212,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationSpecificSKUProperties specificSkuProperties; /** - * Output only. [Output only] Status of the Future Reservation + * [Output only] Status of the Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -250,31 +226,12 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationTimeWindow timeWindow; /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. + * [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; - /** - * Advanced control for cluster management, applicable only to DENSE deployment type future - * reservations. - * @return value or {@code null} for none - */ - public ReservationAdvancedDeploymentControl getAdvancedDeploymentControl() { - return advancedDeploymentControl; - } - - /** - * Advanced control for cluster management, applicable only to DENSE deployment type future - * reservations. - * @param advancedDeploymentControl advancedDeploymentControl or {@code null} for none - */ - public FutureReservation setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl advancedDeploymentControl) { - this.advancedDeploymentControl = advancedDeploymentControl; - return this; - } - /** * Aggregate reservation details for the future reservation. * @return value or {@code null} for none @@ -377,23 +334,7 @@ public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commi } /** - * @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. + * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -401,8 +342,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text - * format. + * [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) { @@ -464,8 +404,8 @@ public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEm } /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. + * [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() { @@ -473,8 +413,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. + * [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) { @@ -483,8 +423,7 @@ public FutureReservation setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future - * reservations. + * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -492,8 +431,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future - * reservations. + * [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) { @@ -547,25 +485,6 @@ public FutureReservation setNamePrefix(java.lang.String 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 @@ -658,7 +577,7 @@ public FutureReservation setSchedulingType(java.lang.String schedulingType) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -666,7 +585,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -675,7 +594,7 @@ public FutureReservation setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -683,7 +602,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -747,7 +666,7 @@ public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUPr } /** - * Output only. [Output only] Status of the Future Reservation + * [Output only] Status of the Future Reservation * @return value or {@code null} for none */ public FutureReservationStatus getStatus() { @@ -755,7 +674,7 @@ public FutureReservationStatus getStatus() { } /** - * Output only. [Output only] Status of the Future Reservation + * [Output only] Status of the Future Reservation * @param status status or {@code null} for none */ public FutureReservation setStatus(FutureReservationStatus status) { @@ -781,7 +700,7 @@ public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { } /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. + * [Output Only] URL of the Zone where this future reservation resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -789,7 +708,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationParams.java deleted file mode 100644 index 44e7aaa116d..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java index 2595b4830d2..59fbc1a6f59 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -30,39 +30,38 @@ public final class FutureReservationStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The current status of the requested amendment. + * [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. + * 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. [Output Only] Represents the existing matching usage for the future reservation. + * [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. + * 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 + * [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}. */ @@ -70,17 +69,17 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge 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. + * 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 + * Current state of this Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,7 +92,7 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusSpecificSKUProperties specificSkuProperties; /** - * Output only. [Output Only] The current status of the requested amendment. + * [Output Only] The current status of the requested amendment. * @return value or {@code null} for none */ public java.lang.String getAmendmentStatus() { @@ -101,7 +100,7 @@ public java.lang.String getAmendmentStatus() { } /** - * Output only. [Output Only] The current status of the requested amendment. + * [Output Only] The current status of the requested amendment. * @param amendmentStatus amendmentStatus or {@code null} for none */ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStatus) { @@ -110,7 +109,7 @@ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStat } /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. + * Fully qualified urls of the automatically created reservations at start_time. * @return value or {@code null} for none */ public java.util.List getAutoCreatedReservations() { @@ -118,7 +117,7 @@ public java.util.List getAutoCreatedReservations() { } /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. + * 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) { @@ -127,7 +126,7 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List items; /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list - * response. + * [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 @@ -69,14 +68,14 @@ public final class FutureReservationsAggregatedListResponse extends com.google.a 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,9 +138,8 @@ public FutureReservationsAggregatedListResponse setItems(java.util.Map getUnreachables() { @@ -208,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java index 26c435a877b..967fa4b6712 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -56,8 +56,8 @@ public final class FutureReservationsListResponse extends com.google.api.client. } /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations + * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of + * reservations * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,14 @@ public final class FutureReservationsListResponse extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,8 +144,8 @@ public FutureReservationsListResponse setItems(java.util.List } /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations + * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of + * reservations * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -153,8 +153,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations + * [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) { @@ -186,7 +186,7 @@ public FutureReservationsListResponse setNextPageToken(java.lang.String nextPage } /** - * 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() { @@ -194,7 +194,7 @@ 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 FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { @@ -203,7 +203,7 @@ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java deleted file mode 100644 index 9333f196ff6..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java deleted file mode 100644 index 1e457d9c5ac..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.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.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 { - - /** - * SBOM versions currently applied to the resource. The key is the component name and the value is - * the version. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map currentComponentVersions; - - /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value - * is the version. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map targetComponentVersions; - - /** - * SBOM versions currently applied to the resource. The key is the component name and the value is - * the version. - * @return value or {@code null} for none - */ - public java.util.Map getCurrentComponentVersions() { - return currentComponentVersions; - } - - /** - * SBOM versions currently applied to the resource. The key is the component name and the value is - * the version. - * @param currentComponentVersions currentComponentVersions or {@code null} for none - */ - public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { - this.currentComponentVersions = currentComponentVersions; - return this; - } - - /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value - * is the version. - * @return value or {@code null} for none - */ - public java.util.Map getTargetComponentVersions() { - return targetComponentVersions; - } - - /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value - * is the version. - * @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/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.java deleted file mode 100644 index 812322f9c6d..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalListVmExtensionsResponse.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.model; - -/** - * Model definition for GlobalListVmExtensionsResponse. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class GlobalListVmExtensionsResponse extends com.google.api.client.json.GenericJson { - - /** - * 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. Unique identifier 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 VM extensions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List 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. Server-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. 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. 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 GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. A list of VM extensions. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. A list of VM extensions. - * @param items items or {@code null} for none - */ - public GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse 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 GlobalListVmExtensionsResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public GlobalListVmExtensionsResponse set(String fieldName, Object value) { - return (GlobalListVmExtensionsResponse) super.set(fieldName, value); - } - - @Override - public GlobalListVmExtensionsResponse clone() { - return (GlobalListVmExtensionsResponse) super.clone(); - } - - /** - * Output only. Informational warning message. - */ - public static final class Warning extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List data; - - static { - // hack to force ProGuard to consider Data used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(Data.class); - } - - /** - * [Output Only] A human-readable description of the warning code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @param code code or {@code null} for none - */ - public Warning setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @return value or {@code null} for none - */ - public java.util.List getData() { - return data; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @param data data or {@code null} for none - */ - public Warning setData(java.util.List data) { - this.data = data; - return this; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @param message message or {@code null} for none - */ - public Warning setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warning set(String fieldName, Object value) { - return (Warning) super.set(fieldName, value); - } - - @Override - public Warning clone() { - return (Warning) super.clone(); - } - - /** - * Model definition for GlobalListVmExtensionsResponseWarningData. - */ - public static final class Data extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * [Output Only] A warning data value corresponding to the key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @param key key or {@code null} for none - */ - public Data setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @param value value or {@code null} for none - */ - public Data setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public Data set(String fieldName, Object value) { - return (Data) super.set(fieldName, value); - } - - @Override - public Data clone() { - return (Data) super.clone(); - } - - } - } -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java deleted file mode 100644 index a13fc0abe95..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.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.model; - -/** - * Model definition for GlobalVmExtension. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class GlobalVmExtension 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.util.List versions; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * @param name name or {@code null} for none - */ - public GlobalVmExtension setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.util.List getVersions() { - return versions; - } - - /** - * @param versions versions or {@code null} for none - */ - public GlobalVmExtension setVersions(java.util.List versions) { - this.versions = versions; - return this; - } - - @Override - public GlobalVmExtension set(String fieldName, Object value) { - return (GlobalVmExtension) super.set(fieldName, value); - } - - @Override - public GlobalVmExtension clone() { - return (GlobalVmExtension) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java index b52d5081698..a571737cc93 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,8 +52,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.Map extensionPolicies; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -68,7 +67,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.List instanceSelectors; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for * globalVmExtensionPolicies. * The value may be {@code null}. */ @@ -105,36 +104,36 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private GlobalVmExtensionPolicyRolloutOperation rolloutOperation; /** - * Output only. [Output Only] The scoped resource status. It's only for tracking the purging - * status of the policy. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -142,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public GlobalVmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -187,8 +186,7 @@ public GlobalVmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public GlobalVmExtensionPolicyList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java index 84a7cc8f18f..6a4402d2d7f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java @@ -37,7 +37,7 @@ public final class GlobalVmExtensionPolicyRolloutOperation extends com.google.ap private GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput; /** - * Output only. [Output Only] The rollout status of the policy. + * [Output Only] The rollout status of the policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public GlobalVmExtensionPolicyRolloutOperation setRolloutInput(GlobalVmExtension } /** - * Output only. [Output Only] The rollout status of the policy. + * [Output Only] The rollout status of the policy. * @return value or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { @@ -69,7 +69,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { } /** - * Output only. [Output Only] The rollout status of the policy. + * [Output Only] The rollout status of the policy. * @param rolloutStatus rolloutStatus or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperation setRolloutStatus(GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java index 9a91e54bcec..b38f098b052 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java @@ -30,19 +30,12 @@ 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. + * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a + * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the + * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the + * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If + * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the + * zonal policy was updated out of band by a zonal API, it's a conflict. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,41 +49,28 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutInput extends c 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. + * Optional. Predefined rollout plan. * 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. + * Optional. The UUID of the retry action. Only set it if this is a retry for an existing + * resource. This is for the user re-populate the resource without changes. An error will be + * returned if the retry_uuid is set but the resource get modified. * 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. + * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a + * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the + * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the + * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If + * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the + * zonal policy was updated out of band by a zonal API, it's a conflict. * @return value or {@code null} for none */ public java.lang.String getConflictBehavior() { @@ -98,19 +78,12 @@ public java.lang.String getConflictBehavior() { } /** - * 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. + * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a + * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the + * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the + * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If + * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the + * zonal policy was updated out of band by a zonal API, it's a conflict. * @param conflictBehavior conflictBehavior or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setConflictBehavior(java.lang.String conflictBehavior) { @@ -136,9 +109,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setName(java.lang.Str } /** - * 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. + * Optional. Predefined rollout plan. * @return value or {@code null} for none */ public java.lang.String getPredefinedRolloutPlan() { @@ -146,9 +117,7 @@ public java.lang.String getPredefinedRolloutPlan() { } /** - * 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. + * Optional. Predefined rollout plan. * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { @@ -157,13 +126,9 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutP } /** - * 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. + * Optional. The UUID of the retry action. Only set it if this is a retry for an existing + * resource. This is for the user re-populate the resource without changes. An error will be + * returned if the retry_uuid is set but the resource get modified. * @return value or {@code null} for none */ public java.lang.String getRetryUuid() { @@ -171,13 +136,9 @@ public java.lang.String getRetryUuid() { } /** - * 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. + * Optional. The UUID of the retry action. Only set it if this is a retry for an existing + * resource. This is for the user re-populate the resource without changes. An error will be + * returned if the retry_uuid is set but the resource get modified. * @param retryUuid retryUuid or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java index 4b905fd66b1..a2f7a1ab433 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java @@ -30,24 +30,24 @@ 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. + * [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. + * [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. + * [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() { @@ -55,8 +55,8 @@ public java.util.List currentRollouts) { @@ -65,8 +65,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setCurrentRollouts(j } /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. + * [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() { @@ -74,8 +74,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata getPr } /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java index 52e24e59562..9f532f3b012 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java @@ -30,56 +30,28 @@ 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/. + * [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/. + * [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. + * [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/. + * [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. * @return value or {@code null} for none */ public java.lang.String getRollout() { @@ -87,7 +59,7 @@ public java.lang.String getRollout() { } /** - * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * [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) { @@ -96,8 +68,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. + * [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() { @@ -105,8 +76,7 @@ public java.lang.String getRolloutPlan() { } /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. + * [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) { @@ -115,7 +85,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * Output only. [Output Only] The overall state of the rollout. + * [Output Only] The overall state of the rollout. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -123,7 +93,7 @@ public java.lang.String getState() { } /** - * Output only. [Output Only] The overall state of the rollout. + * [Output Only] The overall state of the rollout. * @param state state or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java deleted file mode 100644 index 692e5153c0e..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java index 03028ade01e..d17716bd84f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -30,8 +30,7 @@ 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. + * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,14 +45,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String queryPath; /** - * Output only. [Output Only] The value of the requested queried path. + * [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. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,15 +66,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String variableKey; /** - * Output only. [Output Only] The value found for the requested key. + * [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. + * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -83,8 +81,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest - * attributes entry. + * [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) { @@ -112,7 +109,7 @@ public GuestAttributes setQueryPath(java.lang.String queryPath) { } /** - * Output only. [Output Only] The value of the requested queried path. + * [Output Only] The value of the requested queried path. * @return value or {@code null} for none */ public GuestAttributesValue getQueryValue() { @@ -120,7 +117,7 @@ public GuestAttributesValue getQueryValue() { } /** - * Output only. [Output Only] The value of the requested queried path. + * [Output Only] The value of the requested queried path. * @param queryValue queryValue or {@code null} for none */ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { @@ -129,7 +126,7 @@ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { } /** - * 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() { @@ -137,7 +134,7 @@ 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 GuestAttributes setSelfLink(java.lang.String selfLink) { @@ -163,7 +160,7 @@ public GuestAttributes setVariableKey(java.lang.String variableKey) { } /** - * Output only. [Output Only] The value found for the requested key. + * [Output Only] The value found for the requested key. * @return value or {@code null} for none */ public java.lang.String getVariableValue() { @@ -171,7 +168,7 @@ public java.lang.String getVariableValue() { } /** - * Output only. [Output Only] The value found for the requested key. + * [Output Only] The value found for the requested key. * @param variableValue variableValue or {@code null} for none */ public GuestAttributes setVariableValue(java.lang.String variableValue) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java index f08342a3d02..8893abc41a5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java @@ -30,17 +30,15 @@ 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). + * Advanced configuration option. If specified, these Backend Services need to be pre-created and + * configured as managed. * 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. + * [Output Only] Creation timestamp in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,14 +51,6 @@ public final class HaController extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String description; - /** - * Capacity guarantee settings for the event of a failover. This determines whether capacity is - * guaranteed to be available in the zones used by the HaController. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String failoverCapacity; - /** * Indicates how failover should be initiated. * The value may be {@code null}. @@ -69,8 +59,7 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.lang.String failoverInitiation; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -89,7 +78,7 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.lang.String instanceName; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,8 +104,8 @@ public final class HaController extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -130,21 +119,21 @@ public final class HaController extends com.google.api.client.json.GenericJson { private java.lang.String secondaryZoneCapacity; /** - * Output only. [Output only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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 information for the HaController resource. + * [Output Only] Status information for the HaController resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -158,10 +147,8 @@ public final class HaController extends com.google.api.client.json.GenericJson { 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). + * Advanced configuration option. If specified, these Backend Services need to be pre-created and + * configured as managed. * @return value or {@code null} for none */ public java.util.List getBackendServices() { @@ -169,10 +156,8 @@ public java.util.List getBackendServices() { } /** - * 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). + * Advanced configuration option. If specified, these Backend Services need to be pre-created and + * configured as managed. * @param backendServices backendServices or {@code null} for none */ public HaController setBackendServices(java.util.List backendServices) { @@ -181,7 +166,7 @@ public HaController setBackendServices(java.util.List backendS } /** - * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * [Output Only] Creation timestamp in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -189,7 +174,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * [Output Only] Creation timestamp in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HaController setCreationTimestamp(java.lang.String creationTimestamp) { @@ -214,25 +199,6 @@ public HaController setDescription(java.lang.String description) { return this; } - /** - * Capacity guarantee settings for the event of a failover. This determines whether capacity is - * guaranteed to be available in the zones used by the HaController. - * @return value or {@code null} for none - */ - public java.lang.String getFailoverCapacity() { - return failoverCapacity; - } - - /** - * Capacity guarantee settings for the event of a failover. This determines whether capacity is - * guaranteed to be available in the zones used by the HaController. - * @param failoverCapacity failoverCapacity or {@code null} for none - */ - public HaController setFailoverCapacity(java.lang.String failoverCapacity) { - this.failoverCapacity = failoverCapacity; - return this; - } - /** * Indicates how failover should be initiated. * @return value or {@code null} for none @@ -251,8 +217,7 @@ public HaController setFailoverInitiation(java.lang.String failoverInitiation) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -260,8 +225,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -297,7 +261,7 @@ public HaController setInstanceName(java.lang.String instanceName) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -305,7 +269,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#haController for HaControllers. + * [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) { @@ -358,8 +322,8 @@ public HaController setNetworkingAutoConfiguration(HaControllerNetworkingAutoCon } /** - * 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. + * [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() { @@ -367,8 +331,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -394,7 +358,7 @@ public HaController setSecondaryZoneCapacity(java.lang.String secondaryZoneCapac } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -402,7 +366,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public HaController setSelfLink(java.lang.String selfLink) { @@ -411,7 +375,7 @@ public HaController setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -419,7 +383,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -428,7 +392,7 @@ public HaController setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] Status information for the HaController resource. + * [Output Only] Status information for the HaController resource. * @return value or {@code null} for none */ public HaControllerStatus getStatus() { @@ -436,7 +400,7 @@ public HaControllerStatus getStatus() { } /** - * Output only. [Output Only] Status information for the HaController resource. + * [Output Only] Status information for the HaController resource. * @param status status or {@code null} for none */ public HaController setStatus(HaControllerStatus status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java index 4c72b316e46..1751530b51e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatus.java @@ -30,62 +30,62 @@ 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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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 + * [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. + * [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() { @@ -93,8 +93,8 @@ public HaControllerStatusFailoverProgress getFailoverProgress() { } /** - * Output only. [Output Only] Contains the details of the ongoing failover. This message is not - * displayed if failover is NOT in progress. + * [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) { @@ -103,7 +103,7 @@ public HaControllerStatus setFailoverProgress(HaControllerStatusFailoverProgress } /** - * Output only. [Output Only] Contains the details of the last successful failover. + * [Output Only] Contains the details of the last successful failover. * @return value or {@code null} for none */ public HaControllerStatusFailoverProgress getLastFailoverInfo() { @@ -111,7 +111,7 @@ public HaControllerStatusFailoverProgress getLastFailoverInfo() { } /** - * Output only. [Output Only] Contains the details of the last successful failover. + * [Output Only] Contains the details of the last successful failover. * @param lastFailoverInfo lastFailoverInfo or {@code null} for none */ public HaControllerStatus setLastFailoverInfo(HaControllerStatusFailoverProgress lastFailoverInfo) { @@ -120,7 +120,7 @@ public HaControllerStatus setLastFailoverInfo(HaControllerStatusFailoverProgress } /** - * Output only. [Output Only] Indicates if the failover is currently in-progress. + * [Output Only] Indicates if the failover is currently in-progress. * @return value or {@code null} for none */ public java.lang.Boolean getOngoingFailover() { @@ -128,7 +128,7 @@ public java.lang.Boolean getOngoingFailover() { } /** - * Output only. [Output Only] Indicates if the failover is currently in-progress. + * [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) { @@ -137,8 +137,8 @@ public HaControllerStatus setOngoingFailover(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. + * [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() { @@ -146,8 +146,8 @@ public java.lang.String getPrimaryInstance() { } /** - * 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. + * [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) { @@ -156,9 +156,9 @@ public HaControllerStatus setPrimaryInstance(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. + * [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() { @@ -166,9 +166,9 @@ public java.lang.String getPrimaryZone() { } /** - * 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. + * [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) { @@ -177,8 +177,8 @@ public HaControllerStatus setPrimaryZone(java.lang.String primaryZone) { } /** - * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the - * secondary zone. + * [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() { @@ -186,8 +186,8 @@ public java.lang.Boolean getReadyForFailover() { } /** - * Output only. [Output Only] Indicates if the resource is ready for initiating a failover to the - * secondary zone. + * [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) { @@ -196,7 +196,7 @@ public HaControllerStatus setReadyForFailover(java.lang.Boolean readyForFailover } /** - * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * [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() { @@ -204,7 +204,7 @@ public java.util.Map getZoneStatus() { } /** - * Output only. [Output Only] Map of zone statuses. Key: name of the zone Value: ZoneStatus + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java index c374bc1dbd0..b40f2428430 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgress.java @@ -30,38 +30,38 @@ 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. + * [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. [Output Only] Indicates if failover has been triggered automatically or manually. + * [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. + * [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 + * [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. + * [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() { @@ -69,8 +69,8 @@ public String getFailoverCompleteTimestamp() { } /** - * Output only. [Output Only] Timestamp of the failover completion. Filled only if the failover is - * completed, in lastFailoverInfo. + * [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) { @@ -79,7 +79,7 @@ public HaControllerStatusFailoverProgress setFailoverCompleteTimestamp(String fa } /** - * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. + * [Output Only] Indicates if failover has been triggered automatically or manually. * @return value or {@code null} for none */ public java.lang.String getFailoverTrigger() { @@ -87,7 +87,7 @@ public java.lang.String getFailoverTrigger() { } /** - * Output only. [Output Only] Indicates if failover has been triggered automatically or manually. + * [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) { @@ -96,7 +96,7 @@ public HaControllerStatusFailoverProgress setFailoverTrigger(java.lang.String fa } /** - * Output only. [Output Only] Timestamp of the last failover trigger. + * [Output Only] Timestamp of the last failover trigger. * @return value or {@code null} for none */ public String getFailoverTriggerTimestamp() { @@ -104,7 +104,7 @@ public String getFailoverTriggerTimestamp() { } /** - * Output only. [Output Only] Timestamp of the last failover trigger. + * [Output Only] Timestamp of the last failover trigger. * @param failoverTriggerTimestamp failoverTriggerTimestamp or {@code null} for none */ public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(String failoverTriggerTimestamp) { @@ -113,8 +113,8 @@ public HaControllerStatusFailoverProgress setFailoverTriggerTimestamp(String fai } /** - * Output only. [Output Only] Contains details of the last failed failover. This field is filled - * only if the current failover is failing + * [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() { @@ -122,8 +122,8 @@ public HaControllerStatusFailoverProgressLastFailoverAttempt getLastFailoverAtte } /** - * Output only. [Output Only] Contains details of the last failed failover. This field is filled - * only if the current failover is failing + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java index bcddc4e7c72..ecfc53820b6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusFailoverProgressLastFailoverAttempt.java @@ -30,21 +30,21 @@ public final class HaControllerStatusFailoverProgressLastFailoverAttempt extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. + * [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. + * [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. + * [Output Only] Encountered errors during the last attempt to process failover. * @return value or {@code null} for none */ public Errors getErrors() { @@ -52,7 +52,7 @@ public Errors getErrors() { } /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. + * [Output Only] Encountered errors during the last attempt to process failover. * @param errors errors or {@code null} for none */ public HaControllerStatusFailoverProgressLastFailoverAttempt setErrors(Errors errors) { @@ -61,7 +61,7 @@ public HaControllerStatusFailoverProgressLastFailoverAttempt setErrors(Errors er } /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * [Output Only] Show timestamp only if there is an error.RFC3339 text format. * @return value or {@code null} for none */ public String getTimestamp() { @@ -69,7 +69,7 @@ public String getTimestamp() { } /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * [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) { @@ -88,7 +88,7 @@ public HaControllerStatusFailoverProgressLastFailoverAttempt clone() { } /** - * Output only. [Output Only] Encountered errors during the last attempt to process failover. + * [Output Only] Encountered errors during the last attempt to process failover. */ public static final class Errors extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java index f10664639fc..2132e73aec6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatus.java @@ -30,28 +30,28 @@ public final class HaControllerStatusZoneStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Indicates if the zone is primary at this moment. + * [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. + * [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. + * [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. + * [Output Only] Indicates if the zone is primary at this moment. * @return value or {@code null} for none */ public java.lang.Boolean getIsPrimary() { @@ -59,7 +59,7 @@ public java.lang.Boolean getIsPrimary() { } /** - * Output only. [Output Only] Indicates if the zone is primary at this moment. + * [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) { @@ -68,7 +68,7 @@ public HaControllerStatusZoneStatus setIsPrimary(java.lang.Boolean isPrimary) { } /** - * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. + * [Output Only] Indicates if the zone is ready for initiating a failover. * @return value or {@code null} for none */ public java.lang.Boolean getIsZoneReady() { @@ -76,7 +76,7 @@ public java.lang.Boolean getIsZoneReady() { } /** - * Output only. [Output Only] Indicates if the zone is ready for initiating a failover. + * [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) { @@ -85,7 +85,7 @@ public HaControllerStatusZoneStatus setIsZoneReady(java.lang.Boolean isZoneReady } /** - * Output only. [Output Only] This field is filled only if the current operation is failing. + * [Output Only] This field is filled only if the current operation is failing. * @return value or {@code null} for none */ public HaControllerStatusZoneStatusLastError getLastError() { @@ -93,7 +93,7 @@ public HaControllerStatusZoneStatusLastError getLastError() { } /** - * Output only. [Output Only] This field is filled only if the current operation is failing. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java index 79e49949e77..e1199bd9461 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllerStatusZoneStatusLastError.java @@ -30,21 +30,21 @@ public final class HaControllerStatusZoneStatusLastError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Encountered errors. + * [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. + * [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. + * [Output Only] Encountered errors. * @return value or {@code null} for none */ public Errors getErrors() { @@ -52,7 +52,7 @@ public Errors getErrors() { } /** - * Output only. [Output Only] Encountered errors. + * [Output Only] Encountered errors. * @param errors errors or {@code null} for none */ public HaControllerStatusZoneStatusLastError setErrors(Errors errors) { @@ -61,7 +61,7 @@ public HaControllerStatusZoneStatusLastError setErrors(Errors errors) { } /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * [Output Only] Show timestamp only if there is an error.RFC3339 text format. * @return value or {@code null} for none */ public String getTimestamp() { @@ -69,7 +69,7 @@ public String getTimestamp() { } /** - * Output only. [Output Only] Show timestamp only if there is an error.RFC3339 text format. + * [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) { @@ -88,7 +88,7 @@ public HaControllerStatusZoneStatusLastError clone() { } /** - * Output only. [Output Only] Encountered errors. + * [Output Only] Encountered errors. */ public static final class Errors extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java index 62efd68fe1b..d4cc4e13714 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersAggregatedList.java @@ -50,8 +50,8 @@ public final class HaControllersAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for - * lists of HaControllers. + * [Output Only] Type of resource. Alwayscompute#haControllersAggregatedList for lists of + * HaControllers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class HaControllersAggregatedList extends com.google.api.client.jso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public HaControllersAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HaControllersAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java index 7bbb0930db2..6ad90876fcf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersList.java @@ -65,14 +65,14 @@ public final class HaControllersList extends com.google.api.client.json.GenericJ 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 private java.lang.String selfLink; /** - * Output only. [Output only] Unreachable resources. + * [Output only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,7 +156,7 @@ public HaControllersList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -164,7 +164,7 @@ 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 HaControllersList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public HaControllersList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output only] Unreachable resources. + * [Output only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output only] Unreachable resources. + * [Output only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HaControllersList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java index 5854e52ebe9..9576c103227 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java @@ -34,7 +34,7 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,16 +72,15 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge private java.lang.Long healthyPercentThreshold; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health + * aggregation policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,30 +121,30 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge 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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -153,7 +152,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -269,8 +268,7 @@ public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthy } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -278,8 +276,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -288,8 +285,8 @@ public HealthAggregationPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. + * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health + * aggregation policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -297,8 +294,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. + * [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) { @@ -384,9 +381,9 @@ public HealthAggregationPolicy setPolicyType(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. + * [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() { @@ -394,9 +391,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -405,7 +402,7 @@ public HealthAggregationPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -413,7 +410,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { @@ -422,7 +419,7 @@ public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -430,7 +427,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java index ef8315f5b60..f4afe8045ce 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java @@ -50,7 +50,7 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,14 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public HealthAggregationPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthAggregationPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java index bf5d73570e9..effd9cc356e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java @@ -50,8 +50,8 @@ public final class HealthAggregationPolicyList extends com.google.api.client.jso } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. + * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health + * aggregation policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public HealthAggregationPolicyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public HealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 HealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java index d11a186b351..248326b00eb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -30,7 +30,7 @@ public final class HealthCheckService extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,16 +99,14 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.lang.String healthStatusAggregationStrategy; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,30 +143,30 @@ public final class HealthCheckService extends com.google.api.client.json.Generic 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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -176,7 +174,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -360,8 +358,7 @@ public HealthCheckService setHealthStatusAggregationStrategy(java.lang.String he } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -369,8 +366,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -379,8 +375,7 @@ public HealthCheckService setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. + * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -388,8 +383,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. + * [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) { @@ -467,9 +461,9 @@ public HealthCheckService setNotificationEndpoints(java.util.List items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthCheckServiceAggregatedList extends com.google.api.clien 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthCheckServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthCheckServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java index e80bc5dfb36..e77f8500ff9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -30,14 +30,14 @@ public final class HealthCheckServicesList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier 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. + * A list of HealthCheckService resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,25 +50,25 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge private Warning warning; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -99,7 +99,7 @@ public HealthCheckServicesList setId(java.lang.String id) { } /** - * Output only. A list of HealthCheckService resources. + * A list of HealthCheckService resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -107,7 +107,7 @@ public java.util.List getItems() { } /** - * Output only. A list of HealthCheckService resources. + * A list of HealthCheckService resources. * @param items items or {@code null} for none */ public HealthCheckServicesList setItems(java.util.List items) { @@ -116,8 +116,8 @@ public HealthCheckServicesList setItems(java.util.List items } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. + * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of + * HealthCheckServices. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. + * [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) { @@ -135,10 +135,10 @@ public HealthCheckServicesList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 HealthCheckServicesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java index 65b6d6c9236..18d8d8076ef 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthChecksAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthChecksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java index e645a8cd5d1..ee2c30bd156 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSource.java @@ -33,7 +33,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,14 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.lang.String healthAggregationPolicy; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,23 +91,23 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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. + * [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,7 +133,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.util.List sources; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -142,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { @@ -248,8 +247,7 @@ public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregatio } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -257,8 +255,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -267,7 +264,7 @@ public HealthSource setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -275,7 +272,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [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) { @@ -309,9 +306,9 @@ public HealthSource setName(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. + * [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() { @@ -319,9 +316,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -330,7 +327,7 @@ public HealthSource setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -338,7 +335,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public HealthSource setSelfLink(java.lang.String selfLink) { @@ -347,7 +344,7 @@ public HealthSource setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -355,7 +352,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java index 1ec07ab4b13..9f69f1113b0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthSourceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthSourceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceHealth.java deleted file mode 100644 index 9b562b64733..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java index 6bb05406796..f2077b0a56e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourceList.java @@ -50,7 +50,7 @@ public final class HealthSourceList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HealthSourceList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfo.java deleted file mode 100644 index 8b9e296a844..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthSourcesGetHealthResponseSourceInfoBackendInfo.java deleted file mode 100644 index a498ff4e5c6..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java index f7f6e7a324b..cb4c89b509a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -117,7 +117,7 @@ public final class HttpHeaderMatch extends com.google.api.client.json.GenericJso * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -316,7 +316,7 @@ public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -334,7 +334,7 @@ public java.lang.String getRegexMatch() { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @param regexMatch regexMatch or {@code null} for none */ public HttpHeaderMatch setRegexMatch(java.lang.String regexMatch) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java index 2d598fd0195..a3941ce3d4b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -80,8 +80,7 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. + * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +120,7 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -250,8 +249,7 @@ public HttpHealthCheck setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. + * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -259,8 +257,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. + * [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) { @@ -347,7 +344,7 @@ public HttpHealthCheck setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -355,7 +352,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public HttpHealthCheck setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java index 42f2fddf7a6..1df376c1629 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -50,7 +50,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi 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 @@ -115,7 +115,7 @@ public HttpHealthCheckList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public HttpHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 HttpHealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java index 3393e1b57b1..5d4f2e2caf8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -64,7 +64,7 @@ public final class HttpQueryParameterMatch extends com.google.api.client.json.Ge * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -156,7 +156,7 @@ public java.lang.String getRegexMatch() { * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @param regexMatch regexMatch or {@code null} for none */ public HttpQueryParameterMatch setRegexMatch(java.lang.String regexMatch) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java index 0bdf5c09517..406373c5fe0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class HttpRouteAction extends com.google.api.client.json.GenericJson { - /** - * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer - * schemes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private 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. @@ -62,15 +54,6 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private HttpFaultInjection faultInjectionPolicy; - /** - * Image optimization policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED - * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend - * bucket serving the route, or cache policy must be configured on the same route - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ImageOptimizationPolicy imageOptimizationPolicy; - /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed @@ -150,25 +133,6 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.List weightedBackendServices; - /** - * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer - * schemes. - * @return value or {@code null} for none - */ - public CachePolicy getCachePolicy() { - return cachePolicy; - } - - /** - * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer - * schemes. - * @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. @@ -225,27 +189,6 @@ public HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjection return this; } - /** - * Image optimization policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED - * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend - * bucket serving the route, or cache policy must be configured on the same route - * @return value or {@code null} for none - */ - public ImageOptimizationPolicy getImageOptimizationPolicy() { - return imageOptimizationPolicy; - } - - /** - * Image optimization policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED - * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend - * bucket serving the route, or cache policy must be configured on the same route - * @param imageOptimizationPolicy imageOptimizationPolicy or {@code null} for none - */ - public HttpRouteAction setImageOptimizationPolicy(ImageOptimizationPolicy imageOptimizationPolicy) { - this.imageOptimizationPolicy = imageOptimizationPolicy; - return this; - } - /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java index cd8eebf2f5c..27d237f9ccf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -96,18 +96,14 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic 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. + * If specified, the route is a pattern match expression that must match the :path header once 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: + * A pattern match allows you to match - The value must be between 1 and 1024 + * characters - The pattern must start with a leading slash ("/") - There may be no + * more than 5 operators in pattern * - * - 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. + * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,10 +115,8 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * * 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. + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * specified. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,7 +146,7 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -289,18 +283,14 @@ public HttpRouteRuleMatch setMetadataFilters(java.util.List meta } /** - * If specified, this field defines a path template pattern that must match the :path header after - * the query string is removed. + * If specified, the route is a pattern match expression that must match the :path header once 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: + * A pattern match allows you to match - The value must be between 1 and 1024 + * characters - The pattern must start with a leading slash ("/") - There may be no + * more than 5 operators in pattern * - * - 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. + * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. * @return value or {@code null} for none */ public java.lang.String getPathTemplateMatch() { @@ -308,18 +298,14 @@ public java.lang.String getPathTemplateMatch() { } /** - * 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: + * If specified, the route is a pattern match expression that must match the :path header once the + * query string is removed. * - * - 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. + * A pattern match allows you to match - The value must be between 1 and 1024 + * characters - The pattern must start with a leading slash ("/") - There may be no + * more than 5 operators in pattern * - * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. + * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. * @param pathTemplateMatch pathTemplateMatch or {@code null} for none */ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatch) { @@ -333,10 +319,8 @@ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatc * * 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. + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * specified. * @return value or {@code null} for none */ public java.lang.String getPrefixMatch() { @@ -349,10 +333,8 @@ public java.lang.String getPrefixMatch() { * * 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. + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * specified. * @param prefixMatch prefixMatch or {@code null} for none */ public HttpRouteRuleMatch setPrefixMatch(java.lang.String prefixMatch) { @@ -391,7 +373,7 @@ public HttpRouteRuleMatch setQueryParameterMatches(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public HttpsHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpsHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 HttpsHealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java index 7eee1026876..b89f492fb07 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Image.java @@ -46,14 +46,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long archiveSizeBytes; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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 deprecation status associated with this image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +74,8 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * 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 @@ -110,8 +110,7 @@ public final class Image extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -134,7 +133,7 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey imageEncryptionKey; /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. + * [Output Only] Type of the resource. Always compute#image for images. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -245,21 +244,21 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -294,9 +293,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -324,9 +323,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -354,9 +353,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -370,9 +369,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -385,6 +384,17 @@ public final class Image extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List storageLocations; + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + /** * The architecture of the image. Valid values are ARM64 or X86_64. * @return value or {@code null} for none @@ -420,7 +430,7 @@ public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -428,7 +438,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Image setCreationTimestamp(java.lang.String creationTimestamp) { @@ -437,7 +447,7 @@ public Image setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. The deprecation status associated with this image. + * The deprecation status associated with this image. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -445,7 +455,7 @@ public DeprecationStatus getDeprecated() { } /** - * Output only. The deprecation status associated with this image. + * The deprecation status associated with this image. * @param deprecated deprecated or {@code null} for none */ public Image setDeprecated(DeprecationStatus deprecated) { @@ -488,8 +498,8 @@ public Image setDiskSizeGb(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. + * 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() { @@ -497,8 +507,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * 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. + * 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) { @@ -557,8 +567,7 @@ public Image setGuestOsFeatures(java.util.List guestOsFeatures) } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -566,8 +575,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -611,7 +619,7 @@ public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { } /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. + * [Output Only] Type of the resource. Always compute#image for images. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -619,7 +627,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. + * [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) { @@ -906,7 +914,7 @@ public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -914,7 +922,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -923,7 +931,7 @@ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -931,7 +939,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Image setSelfLink(java.lang.String selfLink) { @@ -940,7 +948,7 @@ public Image setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -948,7 +956,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Image setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1022,9 +1030,9 @@ public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncrypti } /** - * 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. + * [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() { @@ -1032,9 +1040,9 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -1091,9 +1099,9 @@ public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryp } /** - * 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. + * [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() { @@ -1101,9 +1109,9 @@ public java.lang.String getSourceImageId() { } /** - * 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. + * [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) { @@ -1160,9 +1168,9 @@ public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshot } /** - * 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. + * [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() { @@ -1170,9 +1178,9 @@ public java.lang.String getSourceSnapshotId() { } /** - * 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. + * [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) { @@ -1198,9 +1206,9 @@ public Image setSourceType(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. + * [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() { @@ -1208,9 +1216,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -1235,6 +1243,31 @@ public Image setStorageLocations(java.util.List storageLocatio return this; } + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @param userLicenses userLicenses or {@code null} for none + */ + public Image setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public Image set(String fieldName, Object value) { return (Image) super.set(fieldName, value); @@ -1268,13 +1301,10 @@ public static final class RawDisk extends com.google.api.client.json.GenericJson 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: - + * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are + * valid formats for the URL: - * 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 + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_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 @@ -1325,13 +1355,10 @@ public RawDisk setSha1Checksum(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: - + * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are + * valid formats for the URL: - * 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 + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_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 @@ -1343,13 +1370,10 @@ public java.lang.String getSource() { } /** - * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is - * stored. The following are valid formats: - + * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are + * valid formats for the URL: - * 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 + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java index 5dadcb0dd06..a61438b1d5b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -50,7 +50,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public ImageList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ImageList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 ImageList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java deleted file mode 100644 index 4f942439b3b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.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.model; - -/** - * The configuration for Cloud CDN's image optimization feature. This feature dynamically processes - * and delivers images from the network edge. Image Optimization is only available for Global - * External Application Load Balancers. Either Cloud CDN must be enabled on the backend service or - * backend bucket serving the route, or cache policy must be configured on the same route. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class ImageOptimizationPolicy extends com.google.api.client.json.GenericJson { - - /** - * Specifies whether to interpret query parameters for image optimization. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String queryParameterInterpretation; - - /** - * Specifies whether to interpret query parameters for image optimization. - * @return value or {@code null} for none - */ - public java.lang.String getQueryParameterInterpretation() { - return queryParameterInterpretation; - } - - /** - * Specifies whether to interpret query parameters for image optimization. - * @param queryParameterInterpretation queryParameterInterpretation or {@code null} for none - */ - public ImageOptimizationPolicy setQueryParameterInterpretation(java.lang.String queryParameterInterpretation) { - this.queryParameterInterpretation = queryParameterInterpretation; - return this; - } - - @Override - public ImageOptimizationPolicy set(String fieldName, Object value) { - return (ImageOptimizationPolicy) super.set(fieldName, value); - } - - @Override - public ImageOptimizationPolicy clone() { - return (ImageOptimizationPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java index e15c382b178..8d4975d6e7a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -30,22 +30,18 @@ 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/456` 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. + * Resource manager tags to be bound to the image. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. 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/456` 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. + * Resource manager tags to be bound to the image. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -53,11 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the image. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public ImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java index 44f9c683399..cbfa16dcf8c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Instance.java @@ -55,14 +55,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ConfidentialInstanceConfig confidentialInstanceConfig; /** - * Output only. [Output Only] The CPU platform used by this instance. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,8 +146,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String hostname; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -188,7 +187,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String keyRevocationActionType; /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * [Output Only] Type of the resource. Always compute#instance for instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -214,21 +213,21 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * [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. + * [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. + * [Output Only] Last suspended timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -321,7 +320,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String postKeyRevocationActionType; /** - * Output only. Total amount of preserved state for SUSPENDED instances. Read-only in the api. + * Total amount of preserved state for SUSPENDED instances. Read-only in the api. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString @@ -350,22 +349,22 @@ public final class Instance extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -387,14 +386,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.List secureTags; /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -432,14 +431,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy; /** - * Output only. Deprecating, please use shielded_instance_config. + * Deprecating, please use shielded_instance_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private ShieldedVmConfig shieldedVmConfig; /** - * Output only. Deprecating, please use shielded_instance_integrity_policy. + * Deprecating, please use shielded_instance_integrity_policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -460,24 +459,24 @@ public final class Instance extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. + * [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. + * [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. + * [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -494,8 +493,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Tags tags; /** - * Output only. [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. - * Specifies upcoming maintenance for the instance. + * [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. Specifies + * upcoming maintenance for the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -508,8 +507,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -569,7 +568,7 @@ public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confide } /** - * Output only. [Output Only] The CPU platform used by this instance. + * [Output Only] The CPU platform used by this instance. * @return value or {@code null} for none */ public java.lang.String getCpuPlatform() { @@ -577,7 +576,7 @@ public java.lang.String getCpuPlatform() { } /** - * Output only. [Output Only] The CPU platform used by this instance. + * [Output Only] The CPU platform used by this instance. * @param cpuPlatform cpuPlatform or {@code null} for none */ public Instance setCpuPlatform(java.lang.String cpuPlatform) { @@ -586,7 +585,7 @@ public Instance setCpuPlatform(java.lang.String cpuPlatform) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -594,7 +593,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Instance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -795,8 +794,7 @@ public Instance setHostname(java.lang.String hostname) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -804,8 +802,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -894,7 +891,7 @@ public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionT } /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * [Output Only] Type of the resource. Always compute#instance for instances. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -902,7 +899,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * [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) { @@ -993,7 +990,7 @@ public Instance setLabels(java.util.Map labels) { } /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * [Output Only] Last start timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStartTimestamp() { @@ -1001,7 +998,7 @@ public java.lang.String getLastStartTimestamp() { } /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * [Output Only] Last start timestamp inRFC3339 text format. * @param lastStartTimestamp lastStartTimestamp or {@code null} for none */ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { @@ -1010,7 +1007,7 @@ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { } /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * [Output Only] Last stop timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStopTimestamp() { @@ -1018,7 +1015,7 @@ public java.lang.String getLastStopTimestamp() { } /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * [Output Only] Last stop timestamp inRFC3339 text format. * @param lastStopTimestamp lastStopTimestamp or {@code null} for none */ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { @@ -1027,7 +1024,7 @@ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { } /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * [Output Only] Last suspended timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastSuspendedTimestamp() { @@ -1035,7 +1032,7 @@ public java.lang.String getLastSuspendedTimestamp() { } /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * [Output Only] Last suspended timestamp inRFC3339 text format. * @param lastSuspendedTimestamp lastSuspendedTimestamp or {@code null} for none */ public Instance setLastSuspendedTimestamp(java.lang.String lastSuspendedTimestamp) { @@ -1243,7 +1240,7 @@ public Instance setPostKeyRevocationActionType(java.lang.String postKeyRevocatio } /** - * Output only. Total amount of preserved state for SUSPENDED instances. Read-only in the api. + * Total amount of preserved state for SUSPENDED instances. Read-only in the api. * @return value or {@code null} for none */ public java.lang.Long getPreservedStateSizeGb() { @@ -1251,7 +1248,7 @@ public java.lang.Long getPreservedStateSizeGb() { } /** - * Output only. Total amount of preserved state for SUSPENDED instances. Read-only in the api. + * Total amount of preserved state for SUSPENDED instances. Read-only in the api. * @param preservedStateSizeGb preservedStateSizeGb or {@code null} for none */ public Instance setPreservedStateSizeGb(java.lang.Long preservedStateSizeGb) { @@ -1313,8 +1310,8 @@ public Instance setResourcePolicies(java.util.List resourcePol } /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. + * [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() { @@ -1322,8 +1319,8 @@ public ResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. + * [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) { @@ -1332,7 +1329,7 @@ public Instance setResourceStatus(ResourceStatus resourceStatus) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -1340,7 +1337,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -1349,7 +1346,7 @@ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1357,7 +1354,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1402,7 +1399,7 @@ public Instance setSecureTags(java.util.List secureTags) { } /** - * 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() { @@ -1410,7 +1407,7 @@ 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 Instance setSelfLink(java.lang.String selfLink) { @@ -1419,7 +1416,7 @@ public Instance setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1427,7 +1424,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Instance setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1510,7 +1507,7 @@ public Instance setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPoli } /** - * Output only. Deprecating, please use shielded_instance_config. + * Deprecating, please use shielded_instance_config. * @return value or {@code null} for none */ public ShieldedVmConfig getShieldedVmConfig() { @@ -1518,7 +1515,7 @@ public ShieldedVmConfig getShieldedVmConfig() { } /** - * Output only. Deprecating, please use shielded_instance_config. + * Deprecating, please use shielded_instance_config. * @param shieldedVmConfig shieldedVmConfig or {@code null} for none */ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { @@ -1527,7 +1524,7 @@ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { } /** - * Output only. Deprecating, please use shielded_instance_integrity_policy. + * Deprecating, please use shielded_instance_integrity_policy. * @return value or {@code null} for none */ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { @@ -1535,7 +1532,7 @@ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { } /** - * Output only. Deprecating, please use shielded_instance_integrity_policy. + * Deprecating, please use shielded_instance_integrity_policy. * @param shieldedVmIntegrityPolicy shieldedVmIntegrityPolicy or {@code null} for none */ public Instance setShieldedVmIntegrityPolicy(ShieldedVmIntegrityPolicy shieldedVmIntegrityPolicy) { @@ -1578,8 +1575,8 @@ public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceM } /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. + * [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() { @@ -1587,8 +1584,8 @@ public java.lang.Boolean getStartRestricted() { } /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. + * [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) { @@ -1597,9 +1594,9 @@ public Instance setStartRestricted(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. + * [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() { @@ -1607,9 +1604,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -1618,7 +1615,7 @@ public Instance setStatus(java.lang.String status) { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -1626,7 +1623,7 @@ public java.lang.String getStatusMessage() { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [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) { @@ -1658,8 +1655,8 @@ public Instance setTags(Tags tags) { } /** - * Output only. [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. - * Specifies upcoming maintenance for the instance. + * [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. Specifies + * upcoming maintenance for the instance. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -1667,8 +1664,8 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * Output only. [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. - * Specifies upcoming maintenance for the instance. + * [Output Only] DEPRECATED: Please useresource_status.upcoming_maintenance instead. Specifies + * upcoming maintenance for the instance. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public Instance setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { @@ -1692,8 +1689,8 @@ public Instance setWorkloadIdentityConfig(WorkloadIdentityConfig workloadIdentit } /** - * 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. + * [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() { @@ -1701,8 +1698,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java index e9839b02983..8ace3b07ae4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -44,8 +44,8 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for - * aggregated lists of Instance resources. + * [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 @@ -62,14 +62,14 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java index 0802df8ace4..a460f6a71e8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -30,21 +30,21 @@ public final class InstanceConsumptionData extends com.google.api.client.json.GenericJson { /** - * Output only. Resources consumed by the instance. + * 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. + * 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. + * Resources consumed by the instance. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumptionInfo() { @@ -52,7 +52,7 @@ public InstanceConsumptionInfo getConsumptionInfo() { } /** - * Output only. Resources consumed by the instance. + * Resources consumed by the instance. * @param consumptionInfo consumptionInfo or {@code null} for none */ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { @@ -61,7 +61,7 @@ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consum } /** - * Output only. Server-defined URL for the instance. + * Server-defined URL for the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -69,7 +69,7 @@ public java.lang.String getInstance() { } /** - * Output only. Server-defined URL for the instance. + * Server-defined URL for the instance. * @param instance instance or {@code null} for none */ public InstanceConsumptionData setInstance(java.lang.String instance) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java index 045c36fe60e..9964f0ec7b8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -30,35 +30,35 @@ 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 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 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 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 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. + * The number of virtual CPUs that are available to the instance. * @return value or {@code null} for none */ public java.lang.Integer getGuestCpus() { @@ -66,7 +66,7 @@ public java.lang.Integer getGuestCpus() { } /** - * Output only. The number of virtual CPUs that are available to the instance. + * 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) { @@ -75,7 +75,7 @@ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { } /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * 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() { @@ -83,7 +83,7 @@ public java.lang.Integer getLocalSsdGb() { } /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * 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) { @@ -92,7 +92,7 @@ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * Output only. The amount of physical memory available to the instance, defined in MiB. + * The amount of physical memory available to the instance, defined in MiB. * @return value or {@code null} for none */ public java.lang.Integer getMemoryMb() { @@ -100,7 +100,7 @@ public java.lang.Integer getMemoryMb() { } /** - * Output only. The amount of physical memory available to the instance, defined in MiB. + * 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) { @@ -109,7 +109,7 @@ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { } /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * The minimal guaranteed number of virtual CPUs that are reserved. * @return value or {@code null} for none */ public java.lang.Integer getMinNodeCpus() { @@ -117,7 +117,7 @@ public java.lang.Integer getMinNodeCpus() { } /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java index 52702e2215c..95dd1ecb580 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -43,8 +43,7 @@ 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. + * [Output Only] The creation timestamp for this instance group inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,24 +57,22 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson 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. + * [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. + * [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. + * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,54 +108,52 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). + * [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. + * [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] Server-defined URL for this resource with the resource id. + * [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 total number of instances in the instance group. + * [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). + * [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). + * [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. + * [Output Only] The creation timestamp for this instance group inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -166,8 +161,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text - * format. + * [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) { @@ -193,8 +187,8 @@ public InstanceGroup setDescription(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. + * [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 */ @@ -203,8 +197,8 @@ public java.lang.String getFingerprint() { } /** - * 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. + * [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 * @@ -215,8 +209,8 @@ public byte[] decodeFingerprint() { } /** - * 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. + * [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 */ @@ -226,8 +220,8 @@ public InstanceGroup setFingerprint(java.lang.String 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. + * [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() * *

      @@ -242,8 +236,7 @@ public InstanceGroup encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] A unique identifier for this instance group, generated by the - * server. + * [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() { @@ -251,8 +244,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this instance group, generated by the - * server. + * [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) { @@ -261,8 +253,7 @@ public InstanceGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance - * groups. + * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -270,8 +261,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance - * groups. + * [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) { @@ -347,8 +337,8 @@ public InstanceGroup setNetwork(java.lang.String network) { } /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). + * [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() { @@ -356,8 +346,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). + * [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) { @@ -366,7 +356,7 @@ public InstanceGroup setRegion(java.lang.String region) { } /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * [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() { @@ -374,7 +364,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * [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) { @@ -383,7 +373,7 @@ public InstanceGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -391,7 +381,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -400,7 +390,7 @@ public InstanceGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] The total number of instances in the instance group. + * [Output Only] The total number of instances in the instance group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -408,7 +398,7 @@ public java.lang.Integer getSize() { } /** - * Output only. [Output Only] The total number of instances in the instance group. + * [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) { @@ -417,9 +407,9 @@ public InstanceGroup setSize(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). + * [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() { @@ -427,9 +417,9 @@ public java.lang.String getSubnetwork() { } /** - * 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). + * [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) { @@ -438,8 +428,7 @@ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { } /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). + * [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() { @@ -447,8 +436,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java index e5e5e311a40..5d0836701f5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -30,7 +30,7 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,46 +44,46 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -91,7 +91,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -117,8 +117,8 @@ public InstanceGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +193,7 @@ public InstanceGroupAggregatedList setUnreachables(java.util.List items) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. + * [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) { @@ -135,10 +135,10 @@ public InstanceGroupList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 InstanceGroupList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index 2c6d16b2442..ccd463be7fa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -66,16 +66,15 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String baseInstanceName; /** - * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 - * text format. + * [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. [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. + * [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 @@ -116,8 +115,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String fingerprint; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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 @@ -132,7 +130,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; /** - * Output only. [Output Only] The URL of the Instance Group resource. + * [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,8 +154,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String instanceTemplate; /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for - * managed instance groups. + * [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 @@ -202,8 +200,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerParams params; /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). + * [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 @@ -217,29 +215,28 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerResourcePolicies resourcePolicies; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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] The URL for this managed instance group. The server defines this - * URL. + * [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; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -270,7 +267,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private StatefulPolicy statefulPolicy; /** - * Output only. [Output Only] The status of this managed instance group. + * [Output Only] The status of this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -348,8 +345,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List versions; /** - * Output only. [Output Only] The URL of azone where the managed instance group is located (for - * zonal resources). + * [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 @@ -423,8 +420,7 @@ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceNam } /** - * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 - * text format. + * [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() { @@ -432,8 +428,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 - * text format. + * [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) { @@ -442,8 +437,8 @@ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimest } /** - * Output only. [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. + * [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() { @@ -451,8 +446,8 @@ public InstanceGroupManagerActionsSummary getCurrentActions() { } /** - * Output only. [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. + * [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) { @@ -577,8 +572,7 @@ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -586,8 +580,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -615,7 +608,7 @@ public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerIns } /** - * Output only. [Output Only] The URL of the Instance Group resource. + * [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { @@ -623,7 +616,7 @@ public java.lang.String getInstanceGroup() { } /** - * Output only. [Output Only] The URL of the Instance Group resource. + * [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { @@ -672,8 +665,8 @@ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplat } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for - * managed instance groups. + * [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() { @@ -681,8 +674,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for - * managed instance groups. + * [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) { @@ -782,8 +775,8 @@ public InstanceGroupManager setParams(InstanceGroupManagerParams params) { } /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). + * [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() { @@ -791,8 +784,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). + * [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) { @@ -818,7 +811,7 @@ public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePoli } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -826,7 +819,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -835,7 +828,7 @@ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -843,7 +836,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -852,8 +845,7 @@ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] The URL for this managed instance group. The server defines this - * URL. + * [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() { @@ -861,8 +853,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this managed instance group. The server defines this - * URL. + * [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) { @@ -871,7 +862,7 @@ public InstanceGroupManager setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -879,7 +870,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceGroupManager setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -945,7 +936,7 @@ public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { } /** - * Output only. [Output Only] The status of this managed instance group. + * [Output Only] The status of this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerStatus getStatus() { @@ -953,7 +944,7 @@ public InstanceGroupManagerStatus getStatus() { } /** - * Output only. [Output Only] The status of this managed instance group. + * [Output Only] The status of this managed instance group. * @param status status or {@code null} for none */ public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { @@ -1128,8 +1119,8 @@ public InstanceGroupManager setVersions(java.util.List items; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupManagerAggregatedList for an aggregated list of managed instance - * groups. + * [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. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -92,7 +91,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -118,9 +117,8 @@ public InstanceGroupManagerAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List unreachables) { @@ -196,7 +193,7 @@ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List it } /** - * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList - * for a list of managed instance groups. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList - * for a list of managed instance groups. + * [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) { @@ -135,10 +135,10 @@ public InstanceGroupManagerList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupManagerList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupManagerList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java index b449f96a27d..60357bf4cba 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java @@ -30,20 +30,18 @@ public final class InstanceGroupManagerParams extends com.google.api.client.json.GenericJson { /** - * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value - * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and - * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and - * `{tag_value_short_name}`. For more information, seeManage tags for resources. + * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys + * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, + * seeManage tags for resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value - * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and - * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and - * `{tag_value_short_name}`. For more information, seeManage tags for resources. + * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys + * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, + * seeManage tags for resources. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -51,10 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value - * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and - * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and - * `{tag_value_short_name}`. For more information, seeManage tags for resources. + * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys + * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, + * seeManage tags for resources. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceGroupManagerParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java index dd51ac0463d..c0d722d928f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -41,8 +41,7 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer count; /** - * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text - * format. + * [Output Only] The creation timestamp for this resize request inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,8 +55,7 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String description; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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 @@ -73,8 +71,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.util.List instances; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupManagerResizeRequest for resize requests. + * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for + * resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,8 +96,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private QueuingPolicy queuingPolicy; /** - * Output only. [Output Only] The URL of aregion where the resize request is located. Populated - * only for regional resize requests. + * [Output Only] The URL of aregion where the resize request is located. Populated only for + * regional resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,36 +120,36 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer resizeBy; /** - * Output only. [Output Only] The URL for this resize request. The server defines this URL. + * [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. [Output Only] Server-defined URL for this resource with the resource id. + * [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] Current state of the request. + * [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. [Output only] Status of the request. + * [Output only] Status of the request. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerResizeRequestStatus status; /** - * Output only. [Output Only] The URL of azone where the resize request is located. Populated only - * for zonal resize requests. + * [Output Only] The URL of azone where the resize request is located. Populated only for zonal + * resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -177,8 +175,7 @@ public InstanceGroupManagerResizeRequest setCount(java.lang.Integer count) { } /** - * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text - * format. + * [Output Only] The creation timestamp for this resize request inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -186,8 +183,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text - * format. + * [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) { @@ -213,8 +209,7 @@ public InstanceGroupManagerResizeRequest setDescription(java.lang.String descrip } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -222,8 +217,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -253,8 +247,8 @@ public InstanceGroupManagerResizeRequest setInstances(java.util.List appliedAcceleratorTopologies; - - /** - * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. + * [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. [Output Only] The status of bulk instance operation. + * [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. [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. [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. + * [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. [Output Only] Stateful status of the given Instance Group Manager. + * [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. [Output Only] A status of consistency of Instances' versions with their target - * version specified by version field on Instance Group Manager. + * [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. [Output only] Status of all-instances configuration on the group. + * [Output only] Status of all-instances configuration on the group. * @return value or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { @@ -101,7 +85,7 @@ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { } /** - * Output only. [Output only] Status of all-instances configuration on the group. + * [Output only] Status of all-instances configuration on the group. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { @@ -110,26 +94,7 @@ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStat } /** - * Output only. [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. [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. [Output Only] The URL of theAutoscaler that targets this instance group manager. + * [Output Only] The URL of theAutoscaler that targets this instance group manager. * @return value or {@code null} for none */ public java.lang.String getAutoscaler() { @@ -137,7 +102,7 @@ public java.lang.String getAutoscaler() { } /** - * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. + * [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) { @@ -146,7 +111,7 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * Output only. [Output Only] The status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { @@ -154,7 +119,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation( } /** - * Output only. [Output Only] The status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none */ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { @@ -163,30 +128,11 @@ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerS } /** - * Output only. [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. [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. [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. + * [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() { @@ -194,11 +140,11 @@ public java.lang.Boolean getIsStable() { } /** - * Output only. [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. + * [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) { @@ -207,7 +153,7 @@ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { } /** - * Output only. [Output Only] Stateful status of the given Instance Group Manager. + * [Output Only] Stateful status of the given Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStateful getStateful() { @@ -215,7 +161,7 @@ public InstanceGroupManagerStatusStateful getStateful() { } /** - * Output only. [Output Only] Stateful status of the given Instance Group Manager. + * [Output Only] Stateful status of the given Instance Group Manager. * @param stateful stateful or {@code null} for none */ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { @@ -224,8 +170,8 @@ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful } /** - * Output only. [Output Only] A status of consistency of Instances' versions with their target - * version specified by version field on Instance Group Manager. + * [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() { @@ -233,8 +179,8 @@ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { } /** - * Output only. [Output Only] A status of consistency of Instances' versions with their target - * version specified by version field on Instance Group Manager. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java deleted file mode 100644 index 26fa1838eb2..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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. [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. [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. [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. [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. [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. [Output Only] The state of the accelerator topology. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [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. [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. [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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java deleted file mode 100644 index 4846161c97c..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -/* - * This code was generated by 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. [Output Only] Encountered errors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. [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. [Output Only] Encountered errors. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Output only. [Output Only] Encountered errors. - * @param error error or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { - this.error = error; - return this; - } - - /** - * Output only. [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. [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. [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(); - } - - /** - * Model definition for - * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors. - */ - 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(); - } - - /** - * Model definition for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails - * ErrorErrorsErrorDetails. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * @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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java index 3d76a225843..e0e76dce377 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagerStatusAllInstancesConfig extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Current all-instances configuration revision. This value is in - * RFC3339 text format. + * [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. [Output Only] A bit indicating whether this configuration has been applied to all - * managed instances in the group. + * [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. [Output Only] Current all-instances configuration revision. This value is in - * RFC3339 text format. + * [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() { @@ -55,8 +55,8 @@ public java.lang.String getCurrentRevision() { } /** - * Output only. [Output Only] Current all-instances configuration revision. This value is in - * RFC3339 text format. + * [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) { @@ -65,8 +65,8 @@ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang } /** - * Output only. [Output Only] A bit indicating whether this configuration has been applied to all - * managed instances in the group. + * [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() { @@ -74,8 +74,8 @@ public java.lang.Boolean getEffective() { } /** - * Output only. [Output Only] A bit indicating whether this configuration has been applied to all - * managed instances in the group. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java index 365ad1b4b88..989340fa3df 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -31,21 +31,21 @@ public final class InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * [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. [Output Only] Information from the last progress check of bulk instance operation. + * [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. [Output Only] Informs whether bulk instance operation is in progress. + * [Output Only] Informs whether bulk instance operation is in progress. * @return value or {@code null} for none */ public java.lang.Boolean getInProgress() { @@ -53,7 +53,7 @@ public java.lang.Boolean getInProgress() { } /** - * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * [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) { @@ -62,7 +62,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.B } /** - * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * [Output Only] Information from the last progress check of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { @@ -70,7 +70,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastP } /** - * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java index a807d179547..ecbde4accc4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -30,22 +30,22 @@ public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Errors encountered during bulk instance operation. + * [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. [Output Only] Timestamp of the last progress check of bulk instance operation. - * Timestamp is in RFC3339 text format. + * [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. [Output Only] Errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * @return value or {@code null} for none */ public Error getError() { @@ -53,7 +53,7 @@ public Error getError() { } /** - * Output only. [Output Only] Errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * @param error error or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { @@ -62,8 +62,8 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError } /** - * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. - * Timestamp is in RFC3339 text format. + * [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() { @@ -71,8 +71,8 @@ public String getTimestamp() { } /** - * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. - * Timestamp is in RFC3339 text format. + * [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) { @@ -91,7 +91,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() } /** - * Output only. [Output Only] Errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java deleted file mode 100644 index b83decbf8bf..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.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.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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java index 1c67ad04c5b..9206c3f3286 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -30,40 +30,40 @@ public final class InstanceGroupManagerStatusStateful extends com.google.api.client.json.GenericJson { /** - * Output only. [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. + * [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. [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. This field is deprecated in favor of has_stateful_config. + * [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. This field is deprecated in favor of has_stateful_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isStateful; /** - * Output only. [Output Only] Status of per-instance configurations on the instances. + * [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. [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. + * [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() { @@ -71,11 +71,11 @@ public java.lang.Boolean getHasStatefulConfig() { } /** - * Output only. [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. + * [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) { @@ -84,11 +84,11 @@ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean } /** - * Output only. [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. This field is deprecated in favor of has_stateful_config. + * [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. This field is deprecated in favor of has_stateful_config. * @return value or {@code null} for none */ public java.lang.Boolean getIsStateful() { @@ -96,11 +96,11 @@ public java.lang.Boolean getIsStateful() { } /** - * Output only. [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. This field is deprecated in favor of has_stateful_config. + * [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. This field is deprecated in favor of has_stateful_config. * @param isStateful isStateful or {@code null} for none */ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStateful) { @@ -109,7 +109,7 @@ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStat } /** - * Output only. [Output Only] Status of per-instance configurations on the instances. + * [Output Only] Status of per-instance configurations on the instances. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { @@ -117,7 +117,7 @@ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfig } /** - * Output only. [Output Only] Status of per-instance configurations on the instances. + * [Output Only] Status of per-instance configurations on the instances. * @param perInstanceConfigs perInstanceConfigs or {@code null} for none */ public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java index 0a11f261bbd..cd4fcc7b0cd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -30,18 +30,16 @@ 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. + * 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. + * 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() { @@ -49,9 +47,8 @@ public java.lang.Boolean getAllEffective() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java index 47ab8a1d668..daa48f86a9a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -30,18 +30,18 @@ public final class InstanceGroupManagerStatusVersionTarget extends com.google.api.client.json.GenericJson { /** - * Output only. [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. + * [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. [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. + * [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() { @@ -49,9 +49,9 @@ public java.lang.Boolean getIsReached() { } /** - * Output only. [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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java index 5cc7e672182..6c6818e78ac 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java @@ -29,13 +29,6 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerUpdatePolicy extends com.google.api.client.json.GenericJson { - /** - * Whether the boot disk is allowed to be updated with restart. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disruptionMode; - /** * 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 @@ -131,23 +124,6 @@ public final class InstanceGroupManagerUpdatePolicy extends com.google.api.clien @com.google.api.client.util.Key private java.lang.String type; - /** - * Whether the boot disk is allowed to be updated with restart. - * @return value or {@code null} for none - */ - public java.lang.String getDisruptionMode() { - return disruptionMode; - } - - /** - * Whether the boot disk is allowed to be updated with restart. - * @param disruptionMode disruptionMode or {@code null} for none - */ - public InstanceGroupManagerUpdatePolicy setDisruptionMode(java.lang.String disruptionMode) { - this.disruptionMode = disruptionMode; - return this; - } - /** * 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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java index cc379401820..e9c9cb6c5e8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java @@ -37,13 +37,6 @@ public final class InstanceGroupManagersApplyUpdatesRequest extends com.google.a @com.google.api.client.util.Key private java.lang.Boolean allInstances; - /** - * Whether the boot disk is allowed to be updated with restart. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disruptionMode; - /** * 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]. @@ -105,23 +98,6 @@ public InstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolea return this; } - /** - * Whether the boot disk is allowed to be updated with restart. - * @return value or {@code null} for none - */ - public java.lang.String getDisruptionMode() { - return disruptionMode; - } - - /** - * Whether the boot disk is allowed to be updated with restart. - * @param disruptionMode disruptionMode or {@code null} for none - */ - public InstanceGroupManagersApplyUpdatesRequest setDisruptionMode(java.lang.String disruptionMode) { - this.disruptionMode = disruptionMode; - 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]. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java deleted file mode 100644 index b71abcd8eef..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.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.model; - -/** - * InstanceGroupManagers.ConfigureAcceleratorTopologies - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class InstanceGroupManagersConfigureAcceleratorTopologiesRequest extends com.google.api.client.json.GenericJson { - - /** - * Map of accelerator topologies that should have their state changed to the specified value. The - * key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map acceleratorTopologyActions; - - /** - * Map of accelerator topologies that should have their state changed to the specified - * configuration. The map key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map acceleratorTopologyConfigurations; - - /** - * Map of accelerator topologies that should have their state changed to the specified value. The - * key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @return value or {@code null} for none - */ - public java.util.Map getAcceleratorTopologyActions() { - return acceleratorTopologyActions; - } - - /** - * Map of accelerator topologies that should have their state changed to the specified value. The - * key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @param acceleratorTopologyActions acceleratorTopologyActions or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyActions(java.util.Map acceleratorTopologyActions) { - this.acceleratorTopologyActions = acceleratorTopologyActions; - return this; - } - - /** - * Map of accelerator topologies that should have their state changed to the specified - * configuration. The map key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @return value or {@code null} for none - */ - public java.util.Map getAcceleratorTopologyConfigurations() { - return acceleratorTopologyConfigurations; - } - - /** - * Map of accelerator topologies that should have their state changed to the specified - * configuration. The map key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @param acceleratorTopologyConfigurations acceleratorTopologyConfigurations or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyConfigurations(java.util.Map acceleratorTopologyConfigurations) { - this.acceleratorTopologyConfigurations = acceleratorTopologyConfigurations; - return this; - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest clone() { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java deleted file mode 100644 index b3540f47759..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.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.model; - -/** - * Configuration for a single accelerator 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 InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String action; - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is - * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be - * provided on deactivating as well. This identifier is cleared on successful deform of a sub- - * slice. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalId; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getAction() { - return action; - } - - /** - * @param action action or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setAction(java.lang.String action) { - this.action = action; - return this; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is - * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be - * provided on deactivating as well. This identifier is cleared on successful deform of a sub- - * slice. - * @return value or {@code null} for none - */ - public java.lang.String getExternalId() { - return externalId; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is - * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be - * provided on deactivating as well. This identifier is cleared on successful deform of a sub- - * slice. - * @param externalId externalId or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setExternalId(java.lang.String externalId) { - this.externalId = externalId; - return this; - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration set(String fieldName, Object value) { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration clone() { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java index 35e3248c950..aabd38483fb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java @@ -36,13 +36,6 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.util.Map acceleratorTopologiesInfo; - /** - * URL to MMIG this MIG belongs to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String multiMig; - /** * The accelerator topology information returned per id of the topology location. * @return value or {@code null} for none @@ -60,23 +53,6 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setAcceler return this; } - /** - * URL to MMIG this MIG belongs to. - * @return value or {@code null} for none - */ - public java.lang.String getMultiMig() { - return multiMig; - } - - /** - * URL to MMIG this MIG belongs to. - * @param multiMig multiMig or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setMultiMig(java.lang.String multiMig) { - this.multiMig = multiMig; - return this; - } - @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java index 62245dff30e..5a2343fe5ef 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java @@ -43,26 +43,6 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.lang.String acceleratorTopologyHealth; - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instancesHealth; - - /** - * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level - * topology - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - /** * Topology in the format of: "16x16", "4x4x4", etc. * @return value or {@code null} for none @@ -95,55 +75,6 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerator return this; } - /** - * @return value or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState getAcceleratorTopologyState() { - return acceleratorTopologyState; - } - - /** - * @param acceleratorTopologyState acceleratorTopologyState or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setAcceleratorTopologyState(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState) { - this.acceleratorTopologyState = acceleratorTopologyState; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getInstancesHealth() { - return instancesHealth; - } - - /** - * @param instancesHealth instancesHealth or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setInstancesHealth(java.lang.String instancesHealth) { - this.instancesHealth = instancesHealth; - return this; - } - - /** - * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level - * topology - * @return value or {@code null} for none - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level - * topology - * @param parent parent or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java deleted file mode 100644 index 7920e4ab13b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.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.model; - -/** - * Specifies the 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 InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String currentState; - - /** - * Reason why the topology state change failed - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Timestamp when the last error happened - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String errorTimestamp; - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating - * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared - * on successful deform of a sub-slice. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalId; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getCurrentState() { - return currentState; - } - - /** - * @param currentState currentState or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setCurrentState(java.lang.String currentState) { - this.currentState = currentState; - return this; - } - - /** - * Reason why the topology state change failed - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Reason why the topology state change failed - * @param error error or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setError(Error error) { - this.error = error; - return this; - } - - /** - * Timestamp when the last error happened - * @return value or {@code null} for none - */ - public String getErrorTimestamp() { - return errorTimestamp; - } - - /** - * Timestamp when the last error happened - * @param errorTimestamp errorTimestamp or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setErrorTimestamp(String errorTimestamp) { - this.errorTimestamp = errorTimestamp; - return this; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating - * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared - * on successful deform of a sub-slice. - * @return value or {@code null} for none - */ - public java.lang.String getExternalId() { - return externalId; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating - * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared - * on successful deform of a sub-slice. - * @param externalId externalId or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setExternalId(java.lang.String externalId) { - this.externalId = externalId; - return this; - } - - @Override - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState set(String fieldName, Object value) { - return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState clone() { - return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.clone(); - } - - /** - * Reason why the topology state change failed - */ - 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(); - } - - /** - * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop - * ologyStateErrorErrors. - */ - 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(); - } - - /** - * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop - * ologyStateErrorErrorsErrorDetails. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * @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/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java index f00dea2d9f0..350007eb424 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The list of errors of the managed instance group. + * [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. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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 errors of the managed instance group. + * [Output Only] The list of errors of the managed instance group. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -55,7 +55,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] The list of errors of the managed instance group. + * [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListErrorsResponse setItems(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] The list of instances in the managed instance group. * @return value or {@code null} for none */ public java.util.List getManagedInstances() { @@ -55,7 +55,7 @@ public java.util.List getManagedInstances() { } /** - * Output only. [Output Only] The list of instances in the managed instance group. + * [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(jav } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -75,10 +75,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java index 39f9310f8a1..6e5441c60d9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -30,31 +30,31 @@ public final class InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The list of PerInstanceConfig. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [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. + * [Output Only] The list of PerInstanceConfig. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -62,7 +62,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] The list of PerInstanceConfig. + * [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { @@ -71,10 +71,10 @@ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List

      getInstanceGroupManagers() { @@ -61,8 +61,8 @@ public java.util.List getInstanceGroupManagers() { } /** - * Output only. [Output Only] The list of managed instance groups that are contained in the - * specified project and zone. + * [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) { @@ -71,8 +71,8 @@ public InstanceGroupManagersScopedList setInstanceGroupManagers(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. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -85,7 +84,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -111,9 +110,8 @@ public InstanceGroupsListInstances setItems(java.util.List getInstanceGroups() { @@ -59,7 +59,7 @@ public java.util.List getInstanceGroups() { } /** - * Output only. [Output Only] The list ofinstance groups that are contained in this scope. + * [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) { @@ -68,8 +68,8 @@ public InstanceGroupsScopedList setInstanceGroups(java.util.List } /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. + * [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() { @@ -77,8 +77,8 @@ public Warning getWarning() { } /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. + * [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) { @@ -97,8 +97,8 @@ public InstanceGroupsScopedList clone() { } /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. + * [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 { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java index 52708ff7c7d..e04d46dd714 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -50,8 +50,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. + * [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 @@ -68,7 +67,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public InstanceList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. + * [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) { @@ -158,7 +155,7 @@ public InstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 InstanceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java index 0a26dcf6469..77d1bf083d9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -44,8 +44,8 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. + * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance + * referrers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,7 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene 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 @@ -110,8 +110,8 @@ public InstanceListReferrers setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. + * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance + * referrers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -119,8 +119,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. + * [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) { @@ -152,7 +152,7 @@ public InstanceListReferrers setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -160,7 +160,7 @@ 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 InstanceListReferrers setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index 7d14a73c218..ffd6e4dfa37 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,30 +30,29 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Contents of the error. + * [Output Only] Contents of the error. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorManagedInstanceError error; /** - * Output only. [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. + * [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. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * [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. [Output Only] Contents of the error. + * [Output Only] Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -61,7 +60,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * Output only. [Output Only] Contents of the error. + * [Output Only] Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -70,8 +69,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * Output only. [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. + * [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() { @@ -79,8 +78,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * Output only. [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. + * [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) { @@ -89,8 +88,7 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * [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() { @@ -98,8 +96,7 @@ public java.lang.String getTimestamp() { } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index f92d0a732ed..c0704e627c8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ public final class InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * [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. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * [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. [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. + * [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. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * [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() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * [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) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * [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() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * [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) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * Output only. [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. + * [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() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * Output only. [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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 3006dd39ef3..73b93956f78 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Error code. + * [Output Only] Error code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String code; /** - * Output only. [Output Only] Error message. + * [Output Only] Error message. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String message; /** - * Output only. [Output Only] Error code. + * [Output Only] Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * Output only. [Output Only] Error code. + * [Output Only] Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * Output only. [Output Only] Error message. + * [Output Only] Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * Output only. [Output Only] Error message. + * [Output Only] Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java index 63c2e3a2f6b..95781dfac53 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -37,11 +37,9 @@ public final class InstanceParams extends com.google.api.client.json.GenericJson 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/456` 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. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,11 +63,9 @@ public InstanceParams setRequestValidForDuration(Duration requestValidForDuratio } /** - * 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/456` 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. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -77,11 +73,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java index 1b575f74844..e59d0fce5aa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -201,10 +201,9 @@ public final class InstanceProperties extends com.google.api.client.json.Generic 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 must be in the format `tagKeys/{tag_key_id}`, - * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when - * empty. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -657,10 +656,9 @@ public InstanceProperties setReservationAffinity(ReservationAffinity reservation } /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, - * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when - * empty. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -668,10 +666,9 @@ public java.util.Map getResourceManagerTags() { } /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, - * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when - * empty. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java index 279a076dd23..14ad4679fa3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -52,8 +52,7 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private java.lang.String fingerprint; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. + * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,8 +66,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs 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. + * [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 @@ -161,8 +160,7 @@ public InstanceSettings encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. + * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -170,8 +168,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. + * [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) { @@ -197,8 +194,8 @@ public InstanceSettings setMetadata(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. + * [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() { @@ -206,8 +203,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java index 560dee51139..41d708caacc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -37,7 +37,7 @@ public final class InstanceSettingsMetadata extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [Output Only] Type of the resource. Always compute#metadata for metadata. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public InstanceSettingsMetadata setItems(java.util.Map } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [Output Only] Type of the resource. Always compute#metadata for metadata. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java index 9baaf0cf1f2..af584b235ce 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -44,8 +44,7 @@ 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. + * [Output Only] The creation timestamp for this instance template inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,16 +58,16 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. + * [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. + * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance + * templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,22 +92,22 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private InstanceProperties properties; /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. + * [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. + * [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; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -132,8 +131,7 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private SourceInstanceParams sourceInstanceParams; /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. + * [Output Only] The creation timestamp for this instance template inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,8 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. + * [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) { @@ -168,8 +165,8 @@ public InstanceTemplate setDescription(java.lang.String description) { } /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. + * [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() { @@ -177,8 +174,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. + * [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) { @@ -187,8 +184,8 @@ public InstanceTemplate setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. + * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance + * templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -196,8 +193,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. + * [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) { @@ -248,8 +245,8 @@ public InstanceTemplate setProperties(InstanceProperties properties) { } /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. + * [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() { @@ -257,8 +254,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. + * [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) { @@ -267,7 +264,7 @@ public InstanceTemplate setRegion(java.lang.String region) { } /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * [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() { @@ -275,7 +272,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * [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) { @@ -284,7 +281,7 @@ public InstanceTemplate setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -292,7 +289,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public InstanceTemplate setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java index df3fbf15617..a493fec52ef 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -44,7 +44,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. 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 @@ -109,7 +109,7 @@ public InstanceTemplateAggregatedList setItems(java.util.Map items) { } /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. + * [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) { @@ -158,7 +158,7 @@ public InstanceTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 InstanceTemplateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java index 0337c8ee34c..c697b45db10 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -30,28 +30,28 @@ public final class InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The URL of the instance. + * [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. + * [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. + * [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. + * [Output Only] The URL of the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -59,7 +59,7 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. + * [Output Only] The URL of the instance. * @param instance instance or {@code null} for none */ public InstanceWithNamedPorts setInstance(java.lang.String instance) { @@ -68,7 +68,7 @@ public InstanceWithNamedPorts setInstance(java.lang.String instance) { } /** - * Output only. [Output Only] The named ports that belong to this instance group. + * [Output Only] The named ports that belong to this instance group. * @return value or {@code null} for none */ public java.util.List getNamedPorts() { @@ -76,7 +76,7 @@ public java.util.List getNamedPorts() { } /** - * Output only. [Output Only] The named ports that belong to this instance group. + * [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) { @@ -85,7 +85,7 @@ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts } /** - * Output only. [Output Only] The status of the instance. + * [Output Only] The status of the instance. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -93,7 +93,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the instance. + * [Output Only] The status of the instance. * @param status status or {@code null} for none */ public InstanceWithNamedPorts setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 4ef7f976b66..d82f3df25a9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ 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. + * [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. + * [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. + * [Output Only] The packet mirroring rules that apply to the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -81,14 +80,14 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output Only] The short name of the firewall policy. + * [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, + * [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}. */ @@ -96,8 +95,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy private java.lang.String type; /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. + * [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() { @@ -105,8 +104,8 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. + * [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) { @@ -115,7 +114,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayN } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -123,7 +122,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -132,7 +131,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(jav } /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * [Output Only] The packet mirroring rules that apply to the instance. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -140,7 +139,7 @@ public java.util.List getPacketMirroringRules() { } /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * [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) { @@ -149,8 +148,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMi } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -158,8 +156,7 @@ public java.lang.Integer getPriority() { } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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) { @@ -189,7 +186,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(ja } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -197,7 +194,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @param shortName shortName or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { @@ -206,7 +203,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortNam } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ @@ -215,7 +212,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index e9a6ca5f849..3d5173fb948 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,8 +30,7 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. The unique identifier for the security policy. This identifier is defined by the - * server. + * The unique identifier for the security policy. 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 @@ -45,8 +44,7 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPol private java.util.List rules; /** - * Output only. The unique identifier for the security policy. This identifier is defined by the - * server. + * The unique identifier for the security policy. This identifier is defined by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -54,8 +52,7 @@ public java.math.BigInteger getId() { } /** - * Output only. The unique identifier for the security policy. This identifier is defined by the - * server. + * The unique identifier for the security policy. This identifier is defined by the server. * @param id id or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java index 927c0fff327..ec95212a8d5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -32,15 +32,14 @@ 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +53,7 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String description; /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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 @@ -69,16 +68,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean guestFlush; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,24 +115,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso 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. + * [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. + * [Output Only] Status information for the instant snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -148,21 +137,21 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,51 +172,50 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso 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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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() { @@ -235,8 +223,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or - * X86_64. + * [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) { @@ -245,7 +232,7 @@ public InstantSnapshot setArchitecture(java.lang.String architecture) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -253,7 +240,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -279,7 +266,7 @@ public InstantSnapshot setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -287,7 +274,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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) { @@ -315,8 +302,7 @@ public InstantSnapshot setGuestFlush(java.lang.Boolean guestFlush) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -324,8 +310,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -334,8 +319,8 @@ public InstantSnapshot setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. + * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -343,8 +328,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. + * [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) { @@ -466,28 +451,8 @@ public InstantSnapshot setName(java.lang.String name) { } /** - * 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. + * [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() { @@ -495,9 +460,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -506,7 +470,7 @@ public InstantSnapshot setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Status information for the instant snapshot resource. + * [Output Only] Status information for the instant snapshot resource. * @return value or {@code null} for none */ public InstantSnapshotResourceStatus getResourceStatus() { @@ -514,7 +478,7 @@ public InstantSnapshotResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for the instant snapshot resource. + * [Output Only] Status information for the instant snapshot resource. * @param resourceStatus resourceStatus or {@code null} for none */ public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { @@ -540,7 +504,7 @@ public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -548,7 +512,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -557,7 +521,7 @@ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -565,7 +529,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public InstantSnapshot setSelfLink(java.lang.String selfLink) { @@ -574,7 +538,7 @@ public InstantSnapshot setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -582,7 +546,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { @@ -622,9 +586,9 @@ public InstantSnapshot setSourceDisk(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. + * [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() { @@ -632,9 +596,9 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -643,9 +607,9 @@ public InstantSnapshot setSourceDiskId(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. + * [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() { @@ -653,9 +617,9 @@ public java.lang.String getSourceInstantSnapshotGroup() { } /** - * 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. + * [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) { @@ -664,9 +628,9 @@ public InstantSnapshot setSourceInstantSnapshotGroup(java.lang.String sourceInst } /** - * 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. + * [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() { @@ -674,9 +638,9 @@ public java.lang.String getSourceInstantSnapshotGroupId() { } /** - * 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. + * [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) { @@ -685,8 +649,8 @@ public InstantSnapshot setSourceInstantSnapshotGroupId(java.lang.String sourceIn } /** - * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, - * FAILED, orREADY. + * [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() { @@ -694,8 +658,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, - * FAILED, orREADY. + * [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) { @@ -704,8 +668,8 @@ public InstantSnapshot setStatus(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. + * [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() { @@ -713,8 +677,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java index a2dec556c4a..142111e4ee5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -44,8 +44,8 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for - * aggregated lists of instantSnapshots. + * [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated + * lists of instantSnapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstantSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstantSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java index cc0835f0895..7bb49dd2dd7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java @@ -33,7 +33,7 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -48,16 +48,15 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,9 +74,8 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener 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. + * [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 @@ -90,14 +88,14 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private InstantSnapshotGroupResourceStatus resourceStatus; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,23 +108,22 @@ public final class InstantSnapshotGroup extends com.google.api.client.json.Gener private java.lang.String sourceConsistencyGroup; /** - * Output only. [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -134,7 +131,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshotGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -162,8 +159,7 @@ public InstantSnapshotGroup setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -171,8 +167,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -181,8 +176,8 @@ public InstantSnapshotGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for - * InstantSnapshotGroup resources. + * [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -190,8 +185,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for - * InstantSnapshotGroup resources. + * [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) { @@ -225,9 +220,8 @@ public InstantSnapshotGroup setName(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. + * [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() { @@ -235,9 +229,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -261,7 +254,7 @@ public InstantSnapshotGroup setResourceStatus(InstantSnapshotGroupResourceStatus } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -269,7 +262,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public InstantSnapshotGroup setSelfLink(java.lang.String selfLink) { @@ -278,7 +271,7 @@ public InstantSnapshotGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -286,7 +279,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { @@ -310,7 +303,7 @@ public InstantSnapshotGroup setSourceConsistencyGroup(java.lang.String sourceCon } /** - * Output only. [Output Only] + * [Output Only] * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -318,7 +311,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] + * [Output Only] * @param status status or {@code null} for none */ public InstantSnapshotGroup setStatus(java.lang.String status) { @@ -327,9 +320,8 @@ public InstantSnapshotGroup setStatus(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. + * [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() { @@ -337,9 +329,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java index 44d3387e7de..2479e6b5506 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java @@ -30,21 +30,21 @@ public final class InstantSnapshotGroupResourceStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] + * [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private String consistencyMembershipResolutionTime; /** - * Output only. [Output Only] + * [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private InstantSnapshotGroupSourceInfo sourceInfo; /** - * Output only. [Output Only] + * [Output Only] * @return value or {@code null} for none */ public String getConsistencyMembershipResolutionTime() { @@ -52,7 +52,7 @@ public String getConsistencyMembershipResolutionTime() { } /** - * Output only. [Output Only] + * [Output Only] * @param consistencyMembershipResolutionTime consistencyMembershipResolutionTime or {@code null} for none */ public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime(String consistencyMembershipResolutionTime) { @@ -61,7 +61,7 @@ public InstantSnapshotGroupResourceStatus setConsistencyMembershipResolutionTime } /** - * Output only. [Output Only] + * [Output Only] * @return value or {@code null} for none */ public InstantSnapshotGroupSourceInfo getSourceInfo() { @@ -69,7 +69,7 @@ public InstantSnapshotGroupSourceInfo getSourceInfo() { } /** - * Output only. [Output Only] + * [Output Only] * @param sourceInfo sourceInfo or {@code null} for none */ public InstantSnapshotGroupResourceStatus setSourceInfo(InstantSnapshotGroupSourceInfo sourceInfo) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java index 455da93a46a..da8ce7d29fa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -50,7 +50,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi 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 @@ -115,7 +115,7 @@ public InstantSnapshotList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public InstantSnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public InstantSnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 InstantSnapshotList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java deleted file mode 100644 index 50d9f5655fe..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java index ffc13d222d2..238d4ea66c5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -70,15 +70,14 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.util.List availableFeatures; /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -100,55 +99,46 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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 @@ -166,7 +156,7 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String interconnectType; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -253,9 +243,9 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -274,16 +264,16 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { 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. + * [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. + * [Output Only] Number of links actually provisioned in this interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -318,48 +308,49 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.Integer requestedLinkCount; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [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. + * [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. + * Specific subzone in the InterconnectLocation 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 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. + * [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 @@ -452,8 +443,7 @@ public Interconnect setAvailableFeatures(java.util.List availa } /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. + * [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() { @@ -461,8 +451,7 @@ public java.util.List getCircuitInfos() { } /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. + * [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) { @@ -471,7 +460,7 @@ public Interconnect setCircuitInfos(java.util.List circ } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -479,7 +468,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { @@ -524,26 +513,7 @@ public Interconnect setDescription(java.lang.String description) { } /** - * Output only. [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. [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. + * [Output Only] A list of outages expected for this Interconnect. * @return value or {@code null} for none */ public java.util.List getExpectedOutages() { @@ -551,7 +521,7 @@ public java.util.List getExpectedOutages() { } /** - * Output only. [Output Only] A list of outages expected for this Interconnect. + * [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) { @@ -560,8 +530,8 @@ public Interconnect setExpectedOutages(java.util.List getInterconnectAttachments() { @@ -626,8 +594,8 @@ public java.util.List getInterconnectAttachments() { } /** - * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use - * this Interconnect. + * [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) { @@ -636,8 +604,8 @@ public Interconnect setInterconnectAttachments(java.util.List } /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. + * [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() { @@ -645,8 +613,8 @@ public java.util.List getInterconnectGroups() { } /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. + * [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) { @@ -680,7 +648,7 @@ public Interconnect setInterconnectType(java.lang.String interconnectType) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -688,7 +656,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * [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) { @@ -921,9 +889,9 @@ public Interconnect setNocContactEmail(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. + * [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 @@ -935,9 +903,9 @@ public java.lang.String getOperationalStatus() { } /** - * 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. + * [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 @@ -969,9 +937,9 @@ public Interconnect setParams(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. + * [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() { @@ -979,9 +947,9 @@ public java.lang.String getPeerIpAddress() { } /** - * 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. + * [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) { @@ -990,7 +958,7 @@ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { } /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * [Output Only] Number of links actually provisioned in this interconnect. * @return value or {@code null} for none */ public java.lang.Integer getProvisionedLinkCount() { @@ -998,7 +966,7 @@ public java.lang.Integer getProvisionedLinkCount() { } /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * [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) { @@ -1072,7 +1040,7 @@ public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1080,7 +1048,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1089,7 +1057,7 @@ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1097,7 +1065,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Interconnect setSelfLink(java.lang.String selfLink) { @@ -1106,7 +1074,7 @@ public Interconnect setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1114,7 +1082,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -1123,12 +1091,12 @@ public Interconnect setSelfLinkWithId(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. + * [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() { @@ -1136,12 +1104,12 @@ public java.lang.String getState() { } /** - * 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. + * [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) { @@ -1150,7 +1118,8 @@ public Interconnect setState(java.lang.String state) { } /** - * To be deprecated. + * Specific subzone in the InterconnectLocation that represents where this connection is to be + * provisioned. * @return value or {@code null} for none */ public java.lang.String getSubzone() { @@ -1158,7 +1127,8 @@ public java.lang.String getSubzone() { } /** - * To be deprecated. + * Specific subzone in the InterconnectLocation that represents where this connection is to be + * provisioned. * @param subzone subzone or {@code null} for none */ public Interconnect setSubzone(java.lang.String subzone) { @@ -1167,8 +1137,8 @@ public Interconnect setSubzone(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. + * [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() { @@ -1176,8 +1146,8 @@ public java.util.List getWireGroups() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 735ec2b43fc..cc66e490e18 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -41,7 +41,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.Boolean adminEnabled; /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * [Output Only] URL of the AttachmentGroup that includes this Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,16 +119,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List candidateSubnets; /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. + * [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. + * [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 @@ -142,31 +142,31 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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. + * [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. + * [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. + * [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 @@ -180,9 +180,9 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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 @@ -224,16 +224,15 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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. + * [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 @@ -263,8 +262,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List ipsecInternalAddresses; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for - * interconnect attachments. + * [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect + * attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,10 +330,10 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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 @@ -375,25 +374,25 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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. + * [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 + * [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 @@ -413,21 +412,21 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String router; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -445,19 +444,19 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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 @@ -516,7 +515,7 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * [Output Only] URL of the AttachmentGroup that includes this Attachment. * @return value or {@code null} for none */ public java.lang.String getAttachmentGroup() { @@ -524,7 +523,7 @@ public java.lang.String getAttachmentGroup() { } /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * [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) { @@ -540,7 +539,7 @@ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGrou * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -555,7 +554,7 @@ public java.lang.String getBandwidth() { * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * @param bandwidth bandwidth or {@code null} for none */ public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { @@ -696,8 +695,8 @@ public InterconnectAttachment setCandidateSubnets(java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList - * for aggregated lists of interconnect attachments. + * [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 @@ -62,14 +62,14 @@ public final class InterconnectAttachmentAggregatedList extends com.google.api.c 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InterconnectAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java index 1988be83c63..e646f684b49 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -30,8 +30,8 @@ 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, + * [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 @@ -45,10 +45,9 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go 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. + * [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. @@ -58,8 +57,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go 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, + * [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 @@ -74,8 +73,8 @@ public java.lang.String getBgpMd5() { } /** - * 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, + * [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 @@ -91,10 +90,9 @@ public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String } /** - * 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. + * [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. @@ -105,10 +103,9 @@ public 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. + * [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. + * [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. + * [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() { @@ -97,8 +94,7 @@ public java.util.List getAttachments() { } /** - * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more - * detail. + * [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) { @@ -122,8 +118,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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() { @@ -131,8 +127,8 @@ public java.lang.String getDocumentationLink() { } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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) { @@ -141,8 +137,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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. + * [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() { @@ -150,8 +146,8 @@ public java.lang.String getExplanation() { } /** - * 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. + * [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) { @@ -160,8 +156,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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 + * [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 */ @@ -170,8 +166,8 @@ public java.util.List getMetros() { } /** - * 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 + * [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 */ @@ -181,9 +177,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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. + * [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() { @@ -191,9 +187,9 @@ public java.util.List getRegions() { } /** - * 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. + * [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) { @@ -202,9 +198,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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. + * [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() { @@ -212,9 +207,8 @@ public java.util.List getZones() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java index ac31099ab68..f267df5464a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -36,7 +36,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegion extends com private java.util.List metros; /** - * Output only. [Output Only] The name of a region, like "us-central1". + * [Output Only] The name of a region, like "us-central1". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,7 @@ public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.Lis } /** - * Output only. [Output Only] The name of a region, like "us-central1". + * [Output Only] The name of a region, like "us-central1". * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -66,7 +66,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The name of a region, like "us-central1". + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java index 45ba8bbc924..bba3ca5148d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -36,8 +36,8 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetro extend 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. + * [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 @@ -59,8 +59,8 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java } /** - * 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. + * [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() { @@ -68,8 +68,8 @@ public java.lang.String getMetro() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java index c0d019c94e5..41cf84fc4f2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -30,7 +30,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The name of a facility, like "iad-1234". + * [Output Only] The name of a facility, like "iad-1234". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilit private java.util.List zones; /** - * Output only. [Output Only] The name of a facility, like "iad-1234". + * [Output Only] The name of a facility, like "iad-1234". * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -51,7 +51,7 @@ public java.lang.String getFacility() { } /** - * Output only. [Output Only] The name of a facility, like "iad-1234". + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java index 51dea9c5bf9..aa732b0c6b9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -31,23 +31,23 @@ 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. + * [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". + * [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. + * [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() { @@ -55,8 +55,8 @@ public java.util.List getAttachments() { } /** - * 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. + * [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) { @@ -65,7 +65,7 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAtt } /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * [Output Only] The name of a zone, either "zone1" or "zone2". * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -73,7 +73,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java index a7295c49358..c7df0825b03 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput.java @@ -46,7 +46,7 @@ public final class InterconnectAttachmentGroupsCreateMembersInterconnectAttachme * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -332,7 +332,7 @@ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setA * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -347,7 +347,7 @@ public java.lang.String getBandwidth() { * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * @param bandwidth bandwidth or {@code null} for none */ public InterconnectAttachmentGroupsCreateMembersInterconnectAttachmentInput setBandwidth(java.lang.String bandwidth) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java index 887526bd499..79f57e9c00f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -79,8 +79,7 @@ public final class InterconnectAttachmentGroupsListResponse extends com.google.a private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,8 +197,7 @@ public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String sel } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -207,8 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java index 5789be05d78..f1ab8505df3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -42,7 +42,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupConfigured configured; /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupIntent intent; /** - * Output only. The operational state of the group, including only active Attachments. + * The operational state of the group, including only active Attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +92,7 @@ public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectA } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -100,7 +100,7 @@ public java.lang.String getGroupStatus() { } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -124,7 +124,7 @@ public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttac } /** - * Output only. The operational state of the group, including only active Attachments. + * The operational state of the group, including only active Attachments. * @return value or {@code null} for none */ public InterconnectAttachmentGroupConfigured getOperational() { @@ -132,7 +132,7 @@ public InterconnectAttachmentGroupConfigured getOperational() { } /** - * Output only. The operational state of the group, including only active Attachments. + * The operational state of the group, including only active Attachments. * @param operational operational or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java index 3122c881cc7..6bf525bd03e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -30,39 +30,39 @@ 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. + * 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 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. + * 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. + * 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Output only. Whether this Attachment is enabled. This becomes false when the customer drains - * their Attachment. + * 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) { @@ -80,7 +80,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEna } /** - * Output only. The URL of the Attachment being described. + * The URL of the Attachment being described. * @return value or {@code null} for none */ public java.lang.String getAttachment() { @@ -88,7 +88,7 @@ public java.lang.String getAttachment() { } /** - * Output only. The URL of the Attachment being described. + * The URL of the Attachment being described. * @param attachment attachment or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { @@ -97,9 +97,9 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachme } /** - * 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. + * 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() { @@ -107,9 +107,9 @@ public java.lang.String getIsActive() { } /** - * 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. + * 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) { @@ -118,7 +118,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive } /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * Whether this Attachment is active, and if so, whether BGP is up. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -126,7 +126,7 @@ public java.lang.String getStatus() { } /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java index d2a89e3a68e..136a013f418 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -50,8 +50,8 @@ public final class InterconnectAttachmentList extends com.google.api.client.json } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists - * of interconnect attachments. + * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of + * interconnect attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class InterconnectAttachmentList extends com.google.api.client.json 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 @@ -116,8 +116,8 @@ public InterconnectAttachmentList setItems(java.util.List interconnects; /** - * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup + * [Output Only] Type of the resource. Always compute#InterconnectGroup * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class InterconnectGroup extends com.google.api.client.json.GenericJ private InterconnectGroupPhysicalStructure physicalStructure; /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -188,8 +188,8 @@ public InterconnectGroup setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -197,8 +197,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -245,7 +245,7 @@ public InterconnectGroup setInterconnects(java.util.Map facilities; /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * [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. + * [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". + * [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 @@ -100,8 +100,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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() { @@ -109,8 +109,8 @@ public java.lang.String getDocumentationLink() { } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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) { @@ -119,8 +119,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * 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. + * [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() { @@ -128,8 +128,8 @@ public java.lang.String getExplanation() { } /** - * 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. + * [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) { @@ -138,7 +138,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * [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 */ @@ -147,7 +147,7 @@ public java.util.List getFacilities() { } /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * [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 */ @@ -157,7 +157,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * [Output Only] Interconnects used to explain this blocker in more detail. * @return value or {@code null} for none */ public java.util.List getInterconnects() { @@ -165,7 +165,7 @@ public java.util.List getInterconnects() { } /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * [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) { @@ -174,9 +174,9 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * 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. + * [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() { @@ -184,9 +184,9 @@ public java.util.List getMetros() { } /** - * 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. + * [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) { @@ -195,8 +195,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". + * [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() { @@ -204,8 +204,8 @@ public java.util.List getZones() { } /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java index 39179adb193..1c4b44ca7c0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -36,8 +36,8 @@ public final class InterconnectGroupPhysicalStructureMetros extends com.google.a 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. + * [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 @@ -59,8 +59,8 @@ public InterconnectGroupPhysicalStructureMetros setFacilities(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. + * [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() { @@ -53,8 +53,8 @@ public java.lang.String getFacility() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java index a71726bdb33..df961f862ac 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -30,24 +30,24 @@ 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. + * [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. + * [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. + * [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() { @@ -55,8 +55,8 @@ public java.util.List getInterconnects() { } /** - * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, - * facility, and zone. + * [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) { @@ -65,8 +65,8 @@ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects( } /** - * 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. + * [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() { @@ -74,8 +74,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java index bf7e43b98dc..076722dc0ce 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -79,8 +79,7 @@ public final class InterconnectGroupsListResponse extends com.google.api.client. private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,8 +197,7 @@ public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -207,8 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java index f042bf10e06..80d27d471e5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -30,21 +30,21 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { /** - * Output only. The configuration analysis, as returned by Get. + * 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. + * 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 intent of the resource, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,14 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.cl private java.util.List interconnectStatuses; /** - * Output only. The operational state of the group, including only active Interconnects. + * 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. + * The configuration analysis, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupConfigured getConfigured() { @@ -72,7 +72,7 @@ public InterconnectGroupConfigured getConfigured() { } /** - * Output only. The configuration analysis, as returned by Get. + * The configuration analysis, as returned by Get. * @param configured configured or {@code null} for none */ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { @@ -81,7 +81,7 @@ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfig } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -89,7 +89,7 @@ public java.lang.String getGroupStatus() { } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -98,7 +98,7 @@ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String group } /** - * Output only. The intent of the resource, as returned by Get. + * The intent of the resource, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupIntent getIntent() { @@ -106,7 +106,7 @@ public InterconnectGroupIntent getIntent() { } /** - * Output only. The intent of the resource, as returned by Get. + * The intent of the resource, as returned by Get. * @param intent intent or {@code null} for none */ public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { @@ -130,7 +130,7 @@ public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.Lis } /** - * Output only. The operational state of the group, including only active Interconnects. + * The operational state of the group, including only active Interconnects. * @return value or {@code null} for none */ public InterconnectGroupConfigured getOperational() { @@ -138,7 +138,7 @@ public InterconnectGroupConfigured getOperational() { } /** - * Output only. The operational state of the group, including only active Interconnects. + * The operational state of the group, including only active Interconnects. * @param operational operational or {@code null} for none */ public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java index 4dc45ceabc1..49fd3a7746a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -30,36 +30,35 @@ public final class InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { /** - * Output only. Whether the Interconnect is enabled. + * 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 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 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. + * 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. + * Whether the Interconnect is enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -67,7 +66,7 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Output only. Whether the Interconnect is enabled. + * Whether the Interconnect is enabled. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -76,8 +75,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(jav } /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. * @return value or {@code null} for none */ public InterconnectDiagnostics getDiagnostics() { @@ -85,8 +83,7 @@ public InterconnectDiagnostics getDiagnostics() { } /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. + * 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) { @@ -95,7 +92,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(Inte } /** - * Output only. The URL of the Interconnect being described. + * The URL of the Interconnect being described. * @return value or {@code null} for none */ public java.lang.String getInterconnect() { @@ -103,7 +100,7 @@ public java.lang.String getInterconnect() { } /** - * Output only. The URL of the Interconnect being described. + * The URL of the Interconnect being described. * @param interconnect interconnect or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { @@ -112,7 +109,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(jav } /** - * Output only. Whether this interconnect is participating in the redundant configuration. + * Whether this interconnect is participating in the redundant configuration. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -120,7 +117,7 @@ public java.lang.String getIsActive() { } /** - * Output only. Whether this interconnect is participating in the redundant configuration. + * Whether this interconnect is participating in the redundant configuration. * @param isActive isActive or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java index 1e714fff188..a1b7c05ded9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -50,8 +50,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. + * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs 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 @@ -116,8 +115,7 @@ public InterconnectList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. + * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. + * [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) { @@ -158,7 +155,7 @@ public InterconnectList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 InterconnectList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java index 42c140f1a46..283f3642173 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -33,8 +33,8 @@ 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. + * [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 @@ -83,7 +83,7 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String continent; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,85 +99,82 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.util.List crossSiteInterconnectInfos; /** - * Output only. [Output Only] An optional description of the resource. + * [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). + * [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). + * [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. + * [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. + * [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. + * [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). + * [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. + * [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. + * [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. + * [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] 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. + * [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 @@ -194,15 +191,15 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String status; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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() { @@ -210,8 +207,8 @@ public java.lang.String getAddress() { } /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. + * [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) { @@ -319,7 +316,7 @@ public InterconnectLocation setContinent(java.lang.String continent) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -327,7 +324,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -357,7 +354,7 @@ public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List getRegionInfos() { @@ -494,9 +486,8 @@ public java.util.List getRegionInfos() { } /** - * 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. + * [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) { @@ -505,7 +496,7 @@ public InterconnectLocation setRegionInfos(java.util.List getSingleRegionProductionCriticalPeerLocations() { @@ -549,9 +540,9 @@ public java.util.List getSingleRegionProductionCriticalPeerLoc } /** - * 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. + * [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) { @@ -583,7 +574,7 @@ public InterconnectLocation setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -591,7 +582,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index 83cdfd2d70a..cf046c1f817 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -31,26 +31,24 @@ 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 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 gbps for a single flow to this metro. This limits the total bandwidth - * which may be configured per wire. + * The maximum gbps for a single flow to this metro. This limits the total bandwidth which may be + * configured per wire. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxSingleFlowGbps; /** - * 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 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() { @@ -58,9 +56,8 @@ public java.lang.String getCity() { } /** - * 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 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) { @@ -69,8 +66,8 @@ public InterconnectLocationCrossSiteInterconnectInfo setCity(java.lang.String ci } /** - * Output only. The maximum gbps for a single flow to this metro. This limits the total bandwidth - * which may be configured per wire. + * The maximum gbps for a single flow to this metro. This limits the total bandwidth which may be + * configured per wire. * @return value or {@code null} for none */ public java.lang.Integer getMaxSingleFlowGbps() { @@ -78,8 +75,8 @@ public java.lang.Integer getMaxSingleFlowGbps() { } /** - * Output only. The maximum gbps for a single flow to this metro. This limits the total bandwidth - * which may be configured per wire. + * The maximum gbps for a single flow to this metro. This limits the total bandwidth which may be + * configured per wire. * @param maxSingleFlowGbps maxSingleFlowGbps or {@code null} for none */ public InterconnectLocationCrossSiteInterconnectInfo setMaxSingleFlowGbps(java.lang.Integer maxSingleFlowGbps) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java index 051f5900f98..c708d024142 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -50,8 +50,8 @@ public final class InterconnectLocationList extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. + * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of + * interconnect locations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class InterconnectLocationList 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 @@ -116,8 +116,8 @@ public InterconnectLocationList setItems(java.util.List it } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. + * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of + * interconnect locations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. + * [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) { @@ -158,7 +158,7 @@ public InterconnectLocationList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 InterconnectLocationList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 1e35db8faf6..76fa0dedf9f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -31,38 +31,38 @@ 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. + * 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. + * 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. + * 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. + * 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Long getExpectedRttMs() { } /** - * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM - * in this region. + * 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) { @@ -80,8 +80,8 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt } /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. + * 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() { @@ -89,8 +89,8 @@ public java.lang.Boolean getL2ForwardingEnabled() { } /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. + * 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) { @@ -99,7 +99,7 @@ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l } /** - * Output only. Identifies the network presence of this location. + * Identifies the network presence of this location. * @return value or {@code null} for none */ public java.lang.String getLocationPresence() { @@ -107,7 +107,7 @@ public java.lang.String getLocationPresence() { } /** - * Output only. Identifies the network presence of this location. + * Identifies the network presence of this location. * @param locationPresence locationPresence or {@code null} for none */ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { @@ -116,7 +116,7 @@ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locat } /** - * Output only. URL for the region of this location. + * URL for the region of this location. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -124,7 +124,7 @@ public java.lang.String getRegion() { } /** - * Output only. URL for the region of this location. + * URL for the region of this location. * @param region region or {@code null} for none */ public InterconnectLocationRegionInfo setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java index 7b2c024c61b..8e6f5f12516 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -33,170 +33,168 @@ 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. + * [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. + * [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". + * [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. + * [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 + * [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. + * [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. + * [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). + * [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). + * [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. + * [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. + * [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 + * [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. + * [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. + * [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. + * [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. + * [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). + * [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. + * [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". + * [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. + * [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. + * [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 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 + * [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}. */ @@ -204,8 +202,8 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json 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. + * [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() { @@ -213,8 +211,8 @@ public java.lang.String getAddress() { } /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. + * [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) { @@ -223,8 +221,8 @@ public InterconnectRemoteLocation setAddress(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. + * [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() { @@ -232,8 +230,8 @@ public InterconnectAttachmentConfigurationConstraints getAttachmentConfiguration } /** - * Output only. [Output Only] Subset of fields from InterconnectAttachment's - * |configurationConstraints| field that apply to all attachments for this remote location. + * [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) { @@ -242,8 +240,8 @@ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(Intercon } /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * [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() { @@ -251,8 +249,8 @@ public java.lang.String getCity() { } /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * [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) { @@ -261,8 +259,8 @@ public InterconnectRemoteLocation setCity(java.lang.String city) { } /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. + * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and + * associated InterconnectAttachments. * @return value or {@code null} for none */ public InterconnectRemoteLocationConstraints getConstraints() { @@ -270,8 +268,8 @@ public InterconnectRemoteLocationConstraints getConstraints() { } /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. + * [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) { @@ -280,8 +278,8 @@ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConst } /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * [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() { @@ -289,8 +287,8 @@ public java.lang.String getContinent() { } /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * [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) { @@ -299,7 +297,7 @@ public InterconnectRemoteLocation setContinent(java.lang.String continent) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -307,7 +305,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -316,7 +314,7 @@ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creation } /** - * Output only. [Output Only] An optional description of the resource. + * [Output Only] An optional description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -324,7 +322,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] An optional description of the resource. + * [Output Only] An optional description of the resource. * @param description description or {@code null} for none */ public InterconnectRemoteLocation setDescription(java.lang.String description) { @@ -333,7 +331,7 @@ public InterconnectRemoteLocation setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * [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() { @@ -341,7 +339,7 @@ public java.lang.String getFacilityProvider() { } /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * [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) { @@ -350,8 +348,7 @@ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityP } /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). + * [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() { @@ -359,8 +356,7 @@ public java.lang.String getFacilityProviderFacilityId() { } /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). + * [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) { @@ -369,8 +365,7 @@ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -378,8 +373,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -388,8 +382,8 @@ public InterconnectRemoteLocation setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. + * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect + * remote locations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -397,8 +391,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. + * [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) { @@ -407,8 +401,8 @@ public InterconnectRemoteLocation setKind(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 + * [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() { @@ -416,8 +410,8 @@ public java.lang.String getLacp() { } /** - * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take - * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * [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) { @@ -426,8 +420,8 @@ public InterconnectRemoteLocation setLacp(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. + * [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() { @@ -435,8 +429,8 @@ public java.lang.Integer getMaxLagSize100Gbps() { } /** - * 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. + * [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) { @@ -445,8 +439,8 @@ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagS } /** - * 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. + * [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() { @@ -454,8 +448,8 @@ public java.lang.Integer getMaxLagSize10Gbps() { } /** - * 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. + * [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) { @@ -464,8 +458,8 @@ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSi } /** - * 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. + * [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() { @@ -473,8 +467,8 @@ public java.lang.Integer getMaxLagSize400Gbps() { } /** - * 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. + * [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) { @@ -483,7 +477,7 @@ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagS } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -491,7 +485,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @param name name or {@code null} for none */ public InterconnectRemoteLocation setName(java.lang.String name) { @@ -500,8 +494,8 @@ public InterconnectRemoteLocation setName(java.lang.String name) { } /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). + * [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() { @@ -509,8 +503,8 @@ public java.lang.String getPeeringdbFacilityId() { } /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). + * [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) { @@ -519,7 +513,7 @@ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peerin } /** - * Output only. [Output Only] Permitted connections. + * [Output Only] Permitted connections. * @return value or {@code null} for none */ public java.util.List getPermittedConnections() { @@ -527,7 +521,7 @@ public java.util.List getPermitt } /** - * Output only. [Output Only] Permitted connections. + * [Output Only] Permitted connections. * @param permittedConnections permittedConnections or {@code null} for none */ public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { @@ -536,8 +530,8 @@ public InterconnectRemoteLocation setPermittedConnections(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses - * lists. + * [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses - * lists. + * [Output Only] Type of resource. Always compute#ipAddressesList for IP addresses lists. * @param kind kind or {@code null} for none */ public IpAddressesList setKind(java.lang.String kind) { @@ -158,7 +155,7 @@ public IpAddressesList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 IpAddressesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java index 4a19e2c50e7..cfb074d526d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/IpOwnerList.java @@ -50,7 +50,7 @@ public final class IpOwnerList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. + * [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,14 @@ public final class IpOwnerList extends com.google.api.client.json.GenericJson { 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public IpOwnerList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. + * [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -130,7 +130,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. + * [Output Only] Type of resource. Always compute#ipOwnerList for lists of IP owners. * @param kind kind or {@code null} for none */ public IpOwnerList setKind(java.lang.String kind) { @@ -162,7 +162,7 @@ public IpOwnerList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -170,7 +170,7 @@ 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 IpOwnerList setSelfLink(java.lang.String selfLink) { @@ -179,7 +179,7 @@ public IpOwnerList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -187,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public IpOwnerList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java index 2df15b24974..b090e4dfc27 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/License.java @@ -56,7 +56,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean chargesUseFee; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,7 +86,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.util.List incompatibleLicenses; /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,14 +129,6 @@ public final class License extends com.google.api.client.json.GenericJson { @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. @@ -162,14 +154,14 @@ public final class License extends com.google.api.client.json.GenericJson { private LicenseResourceRequirements resourceRequirements; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,7 +183,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean transferable; /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -251,7 +243,7 @@ public License setChargesUseFee(java.lang.Boolean chargesUseFee) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -259,7 +251,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public License setCreationTimestamp(java.lang.String creationTimestamp) { @@ -323,7 +315,7 @@ public License setIncompatibleLicenses(java.util.List incompat } /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -331,7 +323,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * [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) { @@ -428,25 +420,6 @@ public License setOsLicense(java.lang.Boolean 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. @@ -505,7 +478,7 @@ public License setResourceRequirements(LicenseResourceRequirements resourceRequi } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -513,7 +486,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public License setSelfLink(java.lang.String selfLink) { @@ -522,7 +495,7 @@ public License setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -530,7 +503,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -575,7 +548,7 @@ public License setTransferable(java.lang.Boolean transferable) { } /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * [Output Only] Last update timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getUpdateTimestamp() { @@ -583,7 +556,7 @@ public java.lang.String getUpdateTimestamp() { } /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * [Output Only] Last update timestamp inRFC3339 text format. * @param updateTimestamp updateTimestamp or {@code null} for none */ public License setUpdateTimestamp(java.lang.String updateTimestamp) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java index 85f546f4ddb..95f4b8e3f53 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -48,22 +48,21 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.lang.Boolean appendableToDisk; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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. + * [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. + * [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 @@ -78,7 +77,7 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List incompatibleLicenses; /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * [Output Only] Type of resource. Always compute#licenseCode for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,8 +106,8 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -140,7 +139,7 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List requiredCoattachedLicenses; /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -154,22 +153,22 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.lang.Boolean soleTenantOnly; /** - * Output only. [Output Only] Current state of this License Code. + * [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. + * [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. + * [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -212,7 +211,7 @@ public LicenseCode setAppendableToDisk(java.lang.Boolean appendableToDisk) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -220,7 +219,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { @@ -229,7 +228,7 @@ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output Only] Description of this License Code. + * [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -237,7 +236,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] Description of this License Code. + * [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCode setDescription(java.lang.String description) { @@ -246,8 +245,7 @@ public LicenseCode setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -255,8 +253,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -284,7 +281,7 @@ public LicenseCode setIncompatibleLicenses(java.util.List inco } /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * [Output Only] Type of resource. Always compute#licenseCode for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -292,7 +289,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * [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) { @@ -354,8 +351,8 @@ public LicenseCode setMultiTenantOnly(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. + * [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() { @@ -363,8 +360,8 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. + * [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) { @@ -432,7 +429,7 @@ public LicenseCode setRequiredCoattachedLicenses(java.util.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 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/456` 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/456` 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/456` 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/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java index 1c5fc4d949c..cee8ece927f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -60,7 +60,7 @@ public final class LicensesListResponse extends com.google.api.client.json.Gener 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 @@ -131,7 +131,7 @@ public LicensesListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -139,7 +139,7 @@ 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 LicensesListResponse setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java index e1e5f9b49c9..d05db1f6ff9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java @@ -56,7 +56,7 @@ public final class ListInstantSnapshotGroups extends com.google.api.client.json. } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,15 +73,14 @@ public final class ListInstantSnapshotGroups extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,7 +143,7 @@ public ListInstantSnapshotGroups setItems(java.util.List i } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -152,7 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ListInstantSnapshotGroups setKind(java.lang.String kind) { @@ -184,7 +183,7 @@ public ListInstantSnapshotGroups setNextPageToken(java.lang.String nextPageToken } /** - * 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() { @@ -192,7 +191,7 @@ 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 ListInstantSnapshotGroups setSelfLink(java.lang.String selfLink) { @@ -201,8 +200,7 @@ public ListInstantSnapshotGroups setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -210,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public ListInstantSnapshotGroups setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java index 2e7147df3ed..910ea430f92 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java @@ -50,7 +50,7 @@ public final class ListSnapshotGroups extends com.google.api.client.json.Generic private java.util.List items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,15 +67,14 @@ public final class ListSnapshotGroups extends com.google.api.client.json.Generic 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,7 +137,7 @@ public ListSnapshotGroups setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -146,7 +145,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ListSnapshotGroups setKind(java.lang.String kind) { @@ -178,7 +177,7 @@ public ListSnapshotGroups setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -186,7 +185,7 @@ 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 ListSnapshotGroups setSelfLink(java.lang.String selfLink) { @@ -195,8 +194,7 @@ public ListSnapshotGroups setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -204,8 +202,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public ListSnapshotGroups setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.java deleted file mode 100644 index 4d3c8b948fe..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionStatesResponse.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.model; - -/** - * Model definition for ListVmExtensionStatesResponse. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class ListVmExtensionStatesResponse extends com.google.api.client.json.GenericJson { - - /** - * 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. Unique identifier 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 VM extension policy resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List 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. Server-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. 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. 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * 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. A list of VM extension policy resources. - * @param items items or {@code null} for none - */ - public ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse 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 ListVmExtensionStatesResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ListVmExtensionStatesResponse set(String fieldName, Object value) { - return (ListVmExtensionStatesResponse) super.set(fieldName, value); - } - - @Override - public ListVmExtensionStatesResponse clone() { - return (ListVmExtensionStatesResponse) super.clone(); - } - - /** - * Output only. Informational warning message. - */ - public static final class Warning extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List data; - - static { - // hack to force ProGuard to consider Data used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(Data.class); - } - - /** - * [Output Only] A human-readable description of the warning code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @param code code or {@code null} for none - */ - public Warning setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @return value or {@code null} for none - */ - public java.util.List getData() { - return data; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @param data data or {@code null} for none - */ - public Warning setData(java.util.List data) { - this.data = data; - return this; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @param message message or {@code null} for none - */ - public Warning setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warning set(String fieldName, Object value) { - return (Warning) super.set(fieldName, value); - } - - @Override - public Warning clone() { - return (Warning) super.clone(); - } - - /** - * Model definition for ListVmExtensionStatesResponseWarningData. - */ - public static final class Data extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * [Output Only] A warning data value corresponding to the key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @param key key or {@code null} for none - */ - public Data setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @param value value or {@code null} for none - */ - public Data setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public Data set(String fieldName, Object value) { - return (Data) super.set(fieldName, value); - } - - @Override - public Data clone() { - return (Data) super.clone(); - } - - } - } -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.java deleted file mode 100644 index d206ebe135a..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ListVmExtensionsResponse.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.model; - -/** - * Model definition for ListVmExtensionsResponse. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class ListVmExtensionsResponse extends com.google.api.client.json.GenericJson { - - /** - * 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. Unique identifier 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 VM extensions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List 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. Server-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. 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. 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 ListVmExtensionsResponse 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 ListVmExtensionsResponse setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * Output only. A list of VM extensions. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * Output only. A list of VM extensions. - * @param items items or {@code null} for none - */ - public ListVmExtensionsResponse 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 ListVmExtensionsResponse setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * Output only. This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ListVmExtensionsResponse 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 ListVmExtensionsResponse 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 ListVmExtensionsResponse 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 ListVmExtensionsResponse setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ListVmExtensionsResponse set(String fieldName, Object value) { - return (ListVmExtensionsResponse) super.set(fieldName, value); - } - - @Override - public ListVmExtensionsResponse clone() { - return (ListVmExtensionsResponse) super.clone(); - } - - /** - * Output only. Informational warning message. - */ - public static final class Warning extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List data; - - static { - // hack to force ProGuard to consider Data used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(Data.class); - } - - /** - * [Output Only] A human-readable description of the warning code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @param code code or {@code null} for none - */ - public Warning setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @return value or {@code null} for none - */ - public java.util.List getData() { - return data; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @param data data or {@code null} for none - */ - public Warning setData(java.util.List data) { - this.data = data; - return this; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @param message message or {@code null} for none - */ - public Warning setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warning set(String fieldName, Object value) { - return (Warning) super.set(fieldName, value); - } - - @Override - public Warning clone() { - return (Warning) super.clone(); - } - - /** - * Model definition for ListVmExtensionsResponseWarningData. - */ - public static final class Data extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * [Output Only] A warning data value corresponding to the key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @param key key or {@code null} for none - */ - public Data setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @param value value or {@code null} for none - */ - public Data setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public Data set(String fieldName, Object value) { - return (Data) super.set(fieldName, value); - } - - @Override - public Data clone() { - return (Data) super.clone(); - } - - } - } -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java index 7c437efa39b..afd21b38b7c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -32,12 +32,7 @@ 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. + * must be represented as valid internal URLs, such as zones/us-central1-a. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,22 +45,9 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson @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. + * must be represented as valid internal URLs, such as zones/us-central1-a. * @return value or {@code null} for none */ public java.util.Map getLocations() { @@ -74,12 +56,7 @@ public java.util.Map getLocations() { /** * 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. + * must be represented as valid internal URLs, such as zones/us-central1-a. * @param locations locations or {@code null} for none */ public LocationPolicy setLocations(java.util.Map locations) { @@ -104,25 +81,6 @@ public LocationPolicy setTargetShape(java.lang.String 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); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java deleted file mode 100644 index df5e3278cbf..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java index d23f74aa935..c87aa7abe77 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -34,7 +34,7 @@ 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. + * [Output Only] The creation timestamp for this machine image inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,8 +56,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. + * [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 @@ -71,8 +70,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private InstanceProperties instanceProperties; /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. + * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,29 +139,28 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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 + * 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. + * [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; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -188,16 +185,16 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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 @@ -211,14 +208,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * Output only. [Output Only] Total size of the storage used by the machine image. + * [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. + * [Output Only] The creation timestamp for this machine image inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -226,7 +223,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * [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) { @@ -271,8 +268,7 @@ public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { } /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. + * [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() { @@ -280,8 +276,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. + * [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) { @@ -307,8 +302,7 @@ public MachineImage setInstanceProperties(InstanceProperties instanceProperties) } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. + * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -316,8 +310,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. + * [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) { @@ -506,7 +499,7 @@ public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -514,7 +507,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -523,8 +516,7 @@ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance + * 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() { @@ -532,8 +524,7 @@ public java.util.List getSavedDisks() { } /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance + * 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) { @@ -542,7 +533,7 @@ public MachineImage setSavedDisks(java.util.List savedDisks) { } /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * [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() { @@ -550,7 +541,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * [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) { @@ -559,7 +550,7 @@ public MachineImage setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -567,7 +558,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public MachineImage setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -618,8 +609,8 @@ public MachineImage setSourceInstance(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. + * [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() { @@ -627,8 +618,8 @@ public SourceInstanceProperties getSourceInstanceProperties() { } /** - * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source - * instance related properties. New properties will not be added to this field. + * [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) { @@ -637,8 +628,8 @@ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceI } /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * [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() { @@ -646,8 +637,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * [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) { @@ -673,7 +664,7 @@ public MachineImage setStorageLocations(java.util.List storage } /** - * Output only. [Output Only] Total size of the storage used by the machine image. + * [Output Only] Total size of the storage used by the machine image. * @return value or {@code null} for none */ public java.lang.Long getTotalStorageBytes() { @@ -681,7 +672,7 @@ public java.lang.Long getTotalStorageBytes() { } /** - * Output only. [Output Only] Total size of the storage used by the machine image. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java index 2447569de0b..68648fbbe07 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -50,8 +50,8 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. + * [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 @@ -68,7 +68,7 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs 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 @@ -116,8 +116,8 @@ public MachineImageList setItems(java.util.List items) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. + * [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) { @@ -158,7 +158,7 @@ public MachineImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 MachineImageList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java index 02e308422a6..b8d1c3806da 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineImageParams.java @@ -45,17 +45,6 @@ public final class MachineImageParams extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.util.List includedDisks; - /** - * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * 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. [Input Only] Specifies the list of disk device names that must be excluded from the * new machine image. @@ -94,31 +83,6 @@ public MachineImageParams setIncludedDisks(java.util.List incl return this; } - /** - * Input only. Resource manager tags to be bound to the machine image. Tag keys and values have - * the same definition as resource manager tags. Keys and values can be either in numeric format, - * 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); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java index 7e4f3185b03..ce8aea96b42 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -104,8 +104,7 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.Boolean isSharedCpu; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. + * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -147,7 +146,7 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -318,8 +317,7 @@ public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. + * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -327,8 +325,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. + * [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) { @@ -422,7 +419,7 @@ public MachineType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -430,7 +427,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public MachineType setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java index 8ca50f855de..35ac3fa24d1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for - * aggregated lists of machine types. + * [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 @@ -62,14 +62,14 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public MachineTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public MachineTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java index a94434edc45..1292b1205e6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -50,8 +50,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso } /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. + * [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 @@ -68,7 +67,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso 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 @@ -116,8 +115,7 @@ public MachineTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. + * [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) { @@ -158,7 +155,7 @@ public MachineTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 MachineTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 85119617b50..5df654baed9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -30,30 +30,28 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Current all-instances configuration revision applied to this - * instance. + * [Output Only] Current all-instances configuration revision applied to this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceAllInstancesConfig allInstancesConfig; /** - * 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. + * [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 @@ -66,84 +64,81 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstanceCurrentActionDetails currentActionDetails; /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. + * [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. + * [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] The overrides to instance properties resulting from - * InstanceFlexibilityPolicy. + * [Output Only] The overrides to instance properties resulting from InstanceFlexibilityPolicy. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceInstanceFlexibilityOverride instanceFlexibilityOverride; /** - * Output only. [Output Only] Health state of the instance per health-check. + * [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. + * [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] The intended template of the instance. This field is empty when - * current_action is one of { DELETING, ABANDONING }. + * [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] Information about the last attempt to create or delete the instance. + * [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. + * [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. + * [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. + * [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 + * [Output Only] Instance properties selected for this instance resulting from * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @@ -151,46 +146,44 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; /** - * Output only. [Output Only] Information about the termination timestamp of the instance, if - * applicable. + * [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. [Output only] The size of the VM represented by this Managed Instance. This is how - * much this Managed Instance contributes to the size of the group. + * [Output only] The size of the VM represented by this Managed Instance. This is how much this + * Managed Instance contributes to the size of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Float sizeInUnit; /** - * Output only. [Output Only] Tag describing the version. + * [Output Only] Tag describing the version. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String tag; /** - * Output only. [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. + * [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. + * [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] Current all-instances configuration revision applied to this - * instance. + * [Output Only] Current all-instances configuration revision applied to this instance. * @return value or {@code null} for none */ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { @@ -198,8 +191,7 @@ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { } /** - * Output only. [Output Only] Current all-instances configuration revision applied to this - * instance. + * [Output Only] Current all-instances configuration revision applied to this instance. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig allInstancesConfig) { @@ -208,22 +200,21 @@ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig a } /** - * 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. + * [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() { @@ -231,22 +222,21 @@ public java.lang.String getCurrentAction() { } /** - * 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. + * [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) { @@ -270,8 +260,8 @@ public ManagedInstance setCurrentActionDetails(ManagedInstanceCurrentActionDetai } /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. + * [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() { @@ -279,8 +269,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. + * [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) { @@ -289,8 +279,8 @@ public ManagedInstance setId(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. + * [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() { @@ -298,8 +288,8 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has - * not yet been created. + * [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) { @@ -308,8 +298,7 @@ public ManagedInstance setInstance(java.lang.String instance) { } /** - * Output only. [Output Only] The overrides to instance properties resulting from - * InstanceFlexibilityPolicy. + * [Output Only] The overrides to instance properties resulting from InstanceFlexibilityPolicy. * @return value or {@code null} for none */ public ManagedInstanceInstanceFlexibilityOverride getInstanceFlexibilityOverride() { @@ -317,8 +306,7 @@ public ManagedInstanceInstanceFlexibilityOverride getInstanceFlexibilityOverride } /** - * Output only. [Output Only] The overrides to instance properties resulting from - * InstanceFlexibilityPolicy. + * [Output Only] The overrides to instance properties resulting from InstanceFlexibilityPolicy. * @param instanceFlexibilityOverride instanceFlexibilityOverride or {@code null} for none */ public ManagedInstance setInstanceFlexibilityOverride(ManagedInstanceInstanceFlexibilityOverride instanceFlexibilityOverride) { @@ -327,7 +315,7 @@ public ManagedInstance setInstanceFlexibilityOverride(ManagedInstanceInstanceFle } /** - * Output only. [Output Only] Health state of the instance per health-check. + * [Output Only] Health state of the instance per health-check. * @return value or {@code null} for none */ public java.util.List getInstanceHealth() { @@ -335,7 +323,7 @@ public java.util.List getInstanceHealth() { } /** - * Output only. [Output Only] Health state of the instance per health-check. + * [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) { @@ -344,8 +332,7 @@ public ManagedInstance setInstanceHealth(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [Output Only] Type of the resource. Always compute#metadata for metadata. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -157,7 +157,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java index 88009e558c8..a4dd625a14b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMig.java @@ -30,7 +30,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { /** - * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,15 +44,15 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The 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#multiMig for multi-MIGs. + * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,9 +70,8 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output only] The URL of the region where the resource resides. You must specify - * this field as part of the HTTP request URL. You cannot set the region as a field in the request - * body. + * [Output only] The URL of the region where the resource resides. You must specify this field as + * part of the HTTP request URL. You cannot set the region as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,7 +85,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigResourcePolicies resourcePolicies; /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,7 +98,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigStatus status; /** - * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -107,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MultiMig setCreationTimestamp(java.lang.String creationTimestamp) { @@ -133,8 +132,8 @@ public MultiMig setDescription(java.lang.String description) { } /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The unique identifier for this resource type. The server generates this + * identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -142,8 +141,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The unique identifier for this resource type. The server generates this + * identifier. * @param id id or {@code null} for none */ public MultiMig setId(java.math.BigInteger id) { @@ -152,7 +151,7 @@ public MultiMig setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -160,7 +159,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @param kind kind or {@code null} for none */ public MultiMig setKind(java.lang.String kind) { @@ -194,9 +193,8 @@ public MultiMig setName(java.lang.String name) { } /** - * Output only. [Output only] The URL of the region where the resource resides. You must specify - * this field as part of the HTTP request URL. You cannot set the region as a field in the request - * body. + * [Output only] The URL of the region where the resource resides. You must specify this field as + * part of the HTTP request URL. You cannot set the region as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -204,9 +202,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output only] The URL of the region where the resource resides. You must specify - * this field as part of the HTTP request URL. You cannot set the region as a field in the request - * body. + * [Output only] The URL of the region where the resource resides. You must specify this field as + * part of the HTTP request URL. You cannot set the region as a field in the request body. * @param region region or {@code null} for none */ public MultiMig setRegion(java.lang.String region) { @@ -232,7 +229,7 @@ public MultiMig setResourcePolicies(MultiMigResourcePolicies resourcePolicies) { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -240,7 +237,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public MultiMig setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java index eb23d361f69..ad38405b4e7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMember.java @@ -30,58 +30,57 @@ public final class MultiMigMember extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * [Output Only] Creation timestamp of this multi-MIG member 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 unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The 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. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. + * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * Output only. [Output Only] Server-defined name for the multi-MIG member. + * [Output Only] The name of this multi-MIG member generated by Google Compute Engine. * 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 region where the multi-MIG resides. + * [Output Only] The URL of the region where the multi-MIG resides. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String region; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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] The status of this multi-MIG member + * [Output Only] The status of this multi-MIG member * The value may be {@code null}. */ @com.google.api.client.util.Key private MultiMigMemberStatus status; /** - * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -89,7 +88,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. + * [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MultiMigMember setCreationTimestamp(java.lang.String creationTimestamp) { @@ -98,8 +97,8 @@ public MultiMigMember setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The unique identifier for this resource type. The server generates this + * identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -107,8 +106,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The unique identifier for this resource type. The server generates this + * identifier. * @param id id or {@code null} for none */ public MultiMigMember setId(java.math.BigInteger id) { @@ -117,8 +116,7 @@ public MultiMigMember setId(java.math.BigInteger id) { } /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. + * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -126,8 +124,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. + * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. * @param kind kind or {@code null} for none */ public MultiMigMember setKind(java.lang.String kind) { @@ -136,7 +133,7 @@ public MultiMigMember setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Server-defined name for the multi-MIG member. + * [Output Only] The name of this multi-MIG member generated by Google Compute Engine. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -144,7 +141,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Server-defined name for the multi-MIG member. + * [Output Only] The name of this multi-MIG member generated by Google Compute Engine. * @param name name or {@code null} for none */ public MultiMigMember setName(java.lang.String name) { @@ -153,7 +150,7 @@ public MultiMigMember setName(java.lang.String name) { } /** - * Output only. [Output Only] The URL of the region where the multi-MIG resides. + * [Output Only] The URL of the region where the multi-MIG resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -161,7 +158,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of the region where the multi-MIG resides. + * [Output Only] The URL of the region where the multi-MIG resides. * @param region region or {@code null} for none */ public MultiMigMember setRegion(java.lang.String region) { @@ -170,7 +167,7 @@ public MultiMigMember setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -178,7 +175,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @param selfLink selfLink or {@code null} for none */ public MultiMigMember setSelfLink(java.lang.String selfLink) { @@ -187,7 +184,7 @@ public MultiMigMember setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] The status of this multi-MIG member + * [Output Only] The status of this multi-MIG member * @return value or {@code null} for none */ public MultiMigMemberStatus getStatus() { @@ -195,7 +192,7 @@ public MultiMigMemberStatus getStatus() { } /** - * Output only. [Output Only] The status of this multi-MIG member + * [Output Only] The status of this multi-MIG member * @param status status or {@code null} for none */ public MultiMigMember setStatus(MultiMigMemberStatus status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java index 5cc8e756e7b..10d198855c1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java @@ -50,8 +50,7 @@ public final class MultiMigMemberList extends com.google.api.client.json.Generic } /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. + * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class MultiMigMemberList extends com.google.api.client.json.Generic 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 @@ -116,8 +115,7 @@ public MultiMigMemberList setItems(java.util.List items) { } /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. + * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. + * Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG members. * @param kind kind or {@code null} for none */ public MultiMigMemberList setKind(java.lang.String kind) { @@ -158,7 +155,7 @@ public MultiMigMemberList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 MultiMigMemberList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java index e8919808afe..3cdebc8d6f6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java @@ -30,8 +30,8 @@ public final class MultiMigStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only - * one accelerator topology is supported. + * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one + * accelerator topology is supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,15 +44,15 @@ public final class MultiMigStatus extends com.google.api.client.json.GenericJson private java.util.List memberInstanceGroupManagers; /** - * Output only. [Output Only] The number of instance group manager members in this multi-MIG. + * [Output Only] The number of instance group manager members in this multi-MIG. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer membersCount; /** - * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only - * one accelerator topology is supported. + * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one + * accelerator topology is supported. * @return value or {@code null} for none */ public java.util.List getAppliedAcceleratorTopologies() { @@ -60,8 +60,8 @@ public java.util.List getAppliedAcceleratorTo } /** - * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only - * one accelerator topology is supported. + * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one + * accelerator topology is supported. * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none */ public MultiMigStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { @@ -85,7 +85,7 @@ public MultiMigStatus setMemberInstanceGroupManagers(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -122,7 +122,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public MultiMigsList setKind(java.lang.String kind) { @@ -152,7 +152,7 @@ public MultiMigsList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -160,7 +160,7 @@ 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 MultiMigsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java index ad71f5d0e5a..b880a69e7e6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -30,21 +30,21 @@ public final class NatIpInfo extends com.google.api.client.json.GenericJson { /** - * Output only. A list of all NAT IPs assigned to this NAT config. + * 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. + * 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. + * A list of all NAT IPs assigned to this NAT config. * @return value or {@code null} for none */ public java.util.List getNatIpInfoMappings() { @@ -52,7 +52,7 @@ public java.util.List getNatIpInfoMappings() { } /** - * Output only. A list of all NAT IPs assigned to this NAT config. + * 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) { @@ -61,7 +61,7 @@ public NatIpInfo setNatIpInfoMappings(java.util.List } /** - * Output only. Name of the NAT config which the NAT IP belongs to. + * Name of the NAT config which the NAT IP belongs to. * @return value or {@code null} for none */ public java.lang.String getNatName() { @@ -69,7 +69,7 @@ public java.lang.String getNatName() { } /** - * Output only. Name of the NAT config which the NAT IP belongs to. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java index 9ca1eff4dd7..223a66411ab 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -30,28 +30,28 @@ public final class NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { /** - * Output only. Specifies whether NAT IP is auto or manual. + * 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. + * 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. + * 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. + * Specifies whether NAT IP is auto or manual. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -59,7 +59,7 @@ public java.lang.String getMode() { } /** - * Output only. Specifies whether NAT IP is auto or manual. + * Specifies whether NAT IP is auto or manual. * @param mode mode or {@code null} for none */ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { @@ -68,7 +68,7 @@ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { } /** - * Output only. NAT IP address. For example: 203.0.113.11. + * NAT IP address. For example: 203.0.113.11. * @return value or {@code null} for none */ public java.lang.String getNatIp() { @@ -76,7 +76,7 @@ public java.lang.String getNatIp() { } /** - * Output only. NAT IP address. For example: 203.0.113.11. + * NAT IP address. For example: 203.0.113.11. * @param natIp natIp or {@code null} for none */ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { @@ -85,7 +85,7 @@ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { } /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getUsage() { } /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java index f091fb29c52..77872c28d5a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Network.java @@ -57,7 +57,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean autoCreateSubnetworks; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +79,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableUlaInternalIpv6; /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. + * [Output Only] URL of the firewall policy the network is associated with. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -94,8 +94,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIPv4; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -113,7 +112,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String internalIpv6Range; /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * [Output Only] Type of the resource. Always compute#network for networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -166,16 +165,16 @@ public final class Network extends com.google.api.client.json.GenericJson { private NetworkParams params; /** - * Output only. [Output Only] A list of network peerings for the resource. + * [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; /** - * Output only. [Output Only] URL of the region where the regional network resides. This field is - * not applicable to global network. 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] URL of the region where the regional network resides. This field is not + * applicable to global network. 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 @@ -197,7 +196,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -265,7 +264,7 @@ public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -273,7 +272,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Network setCreationTimestamp(java.lang.String creationTimestamp) { @@ -318,7 +317,7 @@ public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) } /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. + * [Output Only] URL of the firewall policy the network is associated with. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicy() { @@ -326,7 +325,7 @@ public java.lang.String getFirewallPolicy() { } /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. + * [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) { @@ -354,8 +353,7 @@ public Network setGatewayIPv4(java.lang.String gatewayIPv4) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -363,8 +361,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -398,7 +395,7 @@ public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { } /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * [Output Only] Type of the resource. Always compute#network for networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -406,7 +403,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * [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) { @@ -522,7 +519,7 @@ public Network setParams(NetworkParams params) { } /** - * Output only. [Output Only] A list of network peerings for the resource. + * [Output Only] A list of network peerings for the resource. * @return value or {@code null} for none */ public java.util.List getPeerings() { @@ -530,7 +527,7 @@ public java.util.List getPeerings() { } /** - * Output only. [Output Only] A list of network peerings for the resource. + * [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) { @@ -539,9 +536,9 @@ public Network setPeerings(java.util.List peerings) { } /** - * Output only. [Output Only] URL of the region where the regional network resides. This field is - * not applicable to global network. 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] URL of the region where the regional network resides. This field is not + * applicable to global network. 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() { @@ -549,9 +546,9 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional network resides. This field is - * not applicable to global network. 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] URL of the region where the regional network resides. This field is not + * applicable to global network. 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 Network setRegion(java.lang.String region) { @@ -596,7 +593,7 @@ public Network setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -604,7 +601,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java index 5320d7e3f2c..eecbab8e189 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -30,8 +30,8 @@ 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. + * [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 @@ -44,7 +44,7 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String connectionPreference; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,15 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,10 +92,10 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ 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. + * [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 @@ -118,23 +118,23 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ 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. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,8 +149,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List subnetworks; /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. + * [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() { @@ -158,8 +158,8 @@ public java.util.List getConnectionEndpoints } /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. + * [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) { @@ -183,7 +183,7 @@ public NetworkAttachment setConnectionPreference(java.lang.String connectionPref } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,8 +266,8 @@ public NetworkAttachment encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -275,8 +275,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -285,7 +285,7 @@ public NetworkAttachment setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. + * [Output Only] Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -293,7 +293,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. + * [Output Only] Type of the resource. * @param kind kind or {@code null} for none */ public NetworkAttachment setKind(java.lang.String kind) { @@ -327,10 +327,10 @@ public NetworkAttachment setName(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. + * [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() { @@ -338,10 +338,10 @@ public java.lang.String getNetwork() { } /** - * 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. + * [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) { @@ -388,9 +388,9 @@ public NetworkAttachment setProducerRejectLists(java.util.List } /** - * 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. + * [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() { @@ -398,9 +398,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -409,7 +409,7 @@ public NetworkAttachment setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -417,7 +417,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkAttachment setSelfLink(java.lang.String selfLink) { @@ -426,7 +426,7 @@ public NetworkAttachment setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -434,7 +434,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java index a1ba49eed7d..817d984f250 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -60,13 +60,6 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli @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}. @@ -82,8 +75,7 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli private java.lang.String subnetwork; /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. + * [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 @@ -163,23 +155,6 @@ public NetworkAttachmentConnectedEndpoint setSecondaryIpCidrRanges(java.util.Lis 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 @@ -215,8 +190,7 @@ public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetw } /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. + * [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() { @@ -224,8 +198,7 @@ public java.lang.String getSubnetworkCidrRange() { } /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java index 013691466fe..719c606976c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -30,7 +30,7 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,15 +56,14 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 + * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * The value may be {@code null}. */ @@ -83,8 +82,8 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json 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. + * [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 @@ -99,21 +98,21 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String securityPolicy; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -121,7 +120,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -212,8 +211,7 @@ public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -221,8 +219,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -231,7 +228,7 @@ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @return value or {@code null} for none */ @@ -240,7 +237,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @param kind kind or {@code null} for none */ @@ -275,8 +272,8 @@ public NetworkEdgeSecurityService setName(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. + * [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() { @@ -284,8 +281,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -313,7 +310,7 @@ public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPol } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -321,7 +318,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { @@ -330,7 +327,7 @@ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -338,7 +335,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java index 2817e613104..1fa727e85f7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -50,9 +50,8 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.util.Map items; /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security - * Services. + * [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 @@ -69,14 +68,14 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,9 +138,8 @@ public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEdgeSecurityServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java index 43ec70a5be9..bb105832a60 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -23,12 +23,6 @@ * 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 @@ -71,7 +65,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupCloudRun cloudRun; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,16 +89,15 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint + * group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,21 +157,21 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String pscTargetService; /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -193,7 +186,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupServerlessDeployment serverlessDeployment; /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. + * [Output only] Number of network endpoints in the network endpoint group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -214,7 +207,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String type; /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [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 @@ -295,7 +288,7 @@ public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -303,7 +296,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -352,8 +345,7 @@ public NetworkEndpointGroup setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -361,8 +353,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -371,8 +362,8 @@ public NetworkEndpointGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. + * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint + * group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -380,8 +371,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. + * [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) { @@ -514,7 +505,7 @@ public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetServic } /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * [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() { @@ -522,7 +513,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * [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) { @@ -531,7 +522,7 @@ public NetworkEndpointGroup setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -539,7 +530,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { @@ -548,7 +539,7 @@ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -556,7 +547,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkEndpointGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -584,7 +575,7 @@ public NetworkEndpointGroup setServerlessDeployment(NetworkEndpointGroupServerle } /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. + * [Output only] Number of network endpoints in the network endpoint group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -592,7 +583,7 @@ public java.lang.Integer getSize() { } /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. + * [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) { @@ -635,7 +626,7 @@ public NetworkEndpointGroup setType(java.lang.String type) { } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [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() { @@ -643,7 +634,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java index a2c8acc31ba..d257a2c16a2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -44,9 +44,8 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint - * groups. + * [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 @@ -63,14 +62,14 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,9 +117,8 @@ public NetworkEndpointGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEndpointGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java index efa4899f51a..b0d4b65954f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java @@ -56,8 +56,8 @@ public final class NetworkEndpointGroupLbNetworkEndpointGroup extends com.google private java.lang.String subnetwork; /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * [Deprecated] This field is deprecated. + * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This + * field is deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,8 +125,8 @@ public NetworkEndpointGroupLbNetworkEndpointGroup setSubnetwork(java.lang.String } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * [Deprecated] This field is deprecated. + * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This + * field is deprecated. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -134,8 +134,8 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * [Deprecated] This field is deprecated. + * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This + * field is deprecated. * @param zone zone or {@code null} for none */ public NetworkEndpointGroupLbNetworkEndpointGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java index 8d6eaa31913..a9e2537c619 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -50,8 +50,8 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G } /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. + * [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 @@ -68,7 +68,7 @@ public final class NetworkEndpointGroupList 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 @@ -116,8 +116,8 @@ public NetworkEndpointGroupList setItems(java.util.List it } /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. + * [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) { @@ -158,7 +158,7 @@ public NetworkEndpointGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 NetworkEndpointGroupList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java index 294c37e562a..88ee04444bb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -31,8 +31,8 @@ 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. + * [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 @@ -47,22 +47,22 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.jso private java.lang.Integer producerPort; /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * [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. + * [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. + * [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() { @@ -70,8 +70,8 @@ public java.lang.String getConsumerPscAddress() { } /** - * 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. + * [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) { @@ -99,7 +99,7 @@ public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPor } /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * [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() { @@ -107,7 +107,7 @@ public java.math.BigInteger getPscConnectionId() { } /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * [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) { @@ -116,7 +116,7 @@ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscCo } /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * [Output Only] The connection status of the PSC Forwarding Rule. * @return value or {@code null} for none */ public java.lang.String getPscConnectionStatus() { @@ -124,7 +124,7 @@ public java.lang.String getPscConnectionStatus() { } /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java index b1a4a35294e..cd49337f505 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -44,7 +44,7 @@ public final class NetworkEndpointGroupsListNetworkEndpoints extends com.google. private java.util.List items; /** - * Output only. [Output Only] The resource type, which is + * [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}. @@ -104,7 +104,7 @@ public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List getNetworkEndpointGroups() { @@ -59,7 +59,7 @@ public java.util.List getNetworkEndpointGroups() { } /** - * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * [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) { @@ -68,8 +68,8 @@ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List getHealths() { } /** - * Output only. [Output only] The health status of network endpoint. + * [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 @@ -73,7 +73,7 @@ public NetworkEndpointWithHealthStatus setHealths(java.util.List getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkFirewallPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index ca65f0c7651..c5df5ee9dd7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -58,20 +58,6 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs 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. @@ -121,8 +107,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs } /** - * 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. + * [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}. @@ -140,20 +126,12 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs private java.lang.String ipv6Address; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. + * [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. [Output Only] MAC address assigned to this network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String macAddress; - /** * [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 @@ -217,15 +195,6 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs @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. @@ -306,25 +275,6 @@ public NetworkInterface setAliasIpRanges(java.util.List aliasIpRan 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. @@ -459,8 +409,8 @@ public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6Ac } /** - * 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. + * [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 @@ -470,8 +420,8 @@ public java.lang.String getIpv6AccessType() { } /** - * 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. + * [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 @@ -503,8 +453,7 @@ public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. + * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -512,8 +461,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. + * [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) { @@ -521,23 +469,6 @@ public NetworkInterface setKind(java.lang.String kind) { return this; } - /** - * Output only. [Output Only] MAC address assigned to this network interface. - * @return value or {@code null} for none - */ - public java.lang.String getMacAddress() { - return macAddress; - } - - /** - * Output only. [Output Only] MAC address assigned to this network interface. - * @param macAddress macAddress or {@code null} for none - */ - public NetworkInterface setMacAddress(java.lang.String macAddress) { - this.macAddress = macAddress; - 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 @@ -685,27 +616,6 @@ public NetworkInterface setQueueCount(java.lang.Integer 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java index e4981ce773e..161aace29df 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -50,7 +50,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * [Output Only] Type of resource. Always compute#networkList for lists of networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public NetworkList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * [Output Only] Type of resource. Always compute#networkList for lists of networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * [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) { @@ -155,7 +155,7 @@ public NetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 NetworkList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index a7a6c814cf6..90888f98fd0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -50,7 +50,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.Boolean autoCreateRoutes; /** - * Output only. [Output Only] The effective state of the peering connection as a whole. + * [Output Only] The effective state of the peering connection as a whole. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,7 +118,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * [Output Only] Maximum Transmission Unit in bytes of the peer network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -133,14 +133,15 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String stackType; /** - * Output only. [Output Only] State for the peering. + * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` + * when there's a matching configuration in the peer network. * 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. + * [Output Only] Details about the current state of the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,7 +198,7 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { } /** - * Output only. [Output Only] The effective state of the peering connection as a whole. + * [Output Only] The effective state of the peering connection as a whole. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatus getConnectionStatus() { @@ -205,7 +206,7 @@ public NetworkPeeringConnectionStatus getConnectionStatus() { } /** - * Output only. [Output Only] The effective state of the peering connection as a whole. + * [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) { @@ -357,7 +358,7 @@ public NetworkPeering setNetwork(java.lang.String network) { } /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * [Output Only] Maximum Transmission Unit in bytes of the peer network. * @return value or {@code null} for none */ public java.lang.Integer getPeerMtu() { @@ -365,7 +366,7 @@ public java.lang.Integer getPeerMtu() { } /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * [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) { @@ -393,7 +394,8 @@ public NetworkPeering setStackType(java.lang.String stackType) { } /** - * Output only. [Output Only] State for the peering. + * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` + * when there's a matching configuration in the peer network. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -401,7 +403,8 @@ public java.lang.String getState() { } /** - * Output only. [Output Only] State for the peering. + * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` + * when there's a matching configuration in the peer network. * @param state state or {@code null} for none */ public NetworkPeering setState(java.lang.String state) { @@ -410,7 +413,7 @@ public NetworkPeering setState(java.lang.String state) { } /** - * Output only. [Output Only] Details about the current state of the peering. + * [Output Only] Details about the current state of the peering. * @return value or {@code null} for none */ public java.lang.String getStateDetails() { @@ -418,7 +421,7 @@ public java.lang.String getStateDetails() { } /** - * Output only. [Output Only] Details about the current state of the peering. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java index badc96b3d4a..0dd995dca57 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java @@ -30,14 +30,14 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] A list of associations that belong to this network policy. + * [Output Only] A list of associations that belong to this network 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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network - * policies + * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,45 +72,44 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * Output only. [Output Only] URL of the region where the regional network policy resides. 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] URL of the region where the regional network policy 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] Total count of all network policy rule tuples. A network policy can - * not exceed a set number of tuples. + * [Output Only] Total count of all network policy rule tuples. A network 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; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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] A list of traffic classification rules that belong to this policy. + * [Output Only] A list of traffic classification rules that belong to this policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List trafficClassificationRules; /** - * Output only. [Output Only] A list of associations that belong to this network policy. + * [Output Only] A list of associations that belong to this network policy. * @return value or {@code null} for none */ public java.util.List getAssociations() { @@ -119,7 +117,7 @@ public java.util.List getAssociations() { } /** - * Output only. [Output Only] A list of associations that belong to this network policy. + * [Output Only] A list of associations that belong to this network policy. * @param associations associations or {@code null} for none */ public NetworkPolicy setAssociations(java.util.List associations) { @@ -128,7 +126,7 @@ public NetworkPolicy setAssociations(java.util.List as } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -136,7 +134,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -179,8 +177,7 @@ public NetworkPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network - * policies + * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -188,8 +185,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network - * policies + * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies * @param kind kind or {@code null} for none */ public NetworkPolicy setKind(java.lang.String kind) { @@ -215,9 +211,8 @@ public NetworkPolicy setName(java.lang.String name) { } /** - * Output only. [Output Only] URL of the region where the regional network policy resides. 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] URL of the region where the regional network policy 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() { @@ -225,9 +220,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional network policy resides. 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] URL of the region where the regional network policy 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 NetworkPolicy setRegion(java.lang.String region) { @@ -236,8 +230,8 @@ public NetworkPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can - * not exceed a set number of tuples. + * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a + * set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -245,8 +239,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can - * not exceed a set number of tuples. + * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a + * set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -255,7 +249,7 @@ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -263,7 +257,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkPolicy setSelfLink(java.lang.String selfLink) { @@ -272,7 +266,7 @@ public NetworkPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -280,7 +274,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -289,7 +283,7 @@ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] A list of traffic classification rules that belong to this policy. + * [Output Only] A list of traffic classification rules that belong to this policy. * @return value or {@code null} for none */ public java.util.List getTrafficClassificationRules() { @@ -297,7 +291,7 @@ public java.util.List getTrafficClassifi } /** - * Output only. [Output Only] A list of traffic classification rules that belong to this policy. + * [Output Only] A list of traffic classification rules that belong to this policy. * @param trafficClassificationRules trafficClassificationRules or {@code null} for none */ public NetworkPolicy setTrafficClassificationRules(java.util.List trafficClassificationRules) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java index d476645f2fd..4dafaa22d20 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java @@ -50,8 +50,8 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for - * lists of network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for lists of network + * policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public NetworkPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java index 913ca8a4d6a..f87dcb81e7b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java @@ -50,8 +50,7 @@ public final class NetworkPolicyList extends com.google.api.client.json.GenericJ } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of - * network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,8 +108,7 @@ public NetworkPolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of - * network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -118,8 +116,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of - * network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. * @param kind kind or {@code null} for none */ public NetworkPolicyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java index e58090e5b01..ae1ba7866f8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java @@ -54,9 +54,8 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.Boolean disabled; /** - * Output only. [Output only] Type of the resource. - * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification - * rules + * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for + * network policy traffic classification rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +87,7 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.String ruleName; /** - * Output only. [Output Only] Calculation of the complexity of a single network policy rule. + * [Output Only] Calculation of the complexity of a single network policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -170,9 +169,8 @@ public NetworkPolicyTrafficClassificationRule setDisabled(java.lang.Boolean disa } /** - * Output only. [Output only] Type of the resource. - * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification - * rules + * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for + * network policy traffic classification rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -180,9 +178,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. - * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification - * rules + * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for + * network policy traffic classification rules * @param kind kind or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setKind(java.lang.String kind) { @@ -250,7 +247,7 @@ public NetworkPolicyTrafficClassificationRule setRuleName(java.lang.String ruleN } /** - * Output only. [Output Only] Calculation of the complexity of a single network policy rule. + * [Output Only] Calculation of the complexity of a single network policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -258,7 +255,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Calculation of the complexity of a single network policy rule. + * [Output Only] Calculation of the complexity of a single network policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java index cab865cf5bb..434d469ce7e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java @@ -37,8 +37,8 @@ public final class NetworkPolicyTrafficClassificationRuleSecureTag extends com.g 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. + * [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 @@ -62,8 +62,8 @@ public NetworkPolicyTrafficClassificationRuleSecureTag setName(java.lang.String } /** - * 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. + * [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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * 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. + * [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 NetworkPolicyTrafficClassificationRuleSecureTag setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java index 0e3cfd5fd64..1eaec17410c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -30,79 +30,77 @@ public final class NetworkProfile extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -110,7 +108,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { @@ -119,7 +117,7 @@ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output Only] An optional description of this resource. + * [Output Only] An optional description of this resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -127,7 +125,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] An optional description of this resource. + * [Output Only] An optional description of this resource. * @param description description or {@code null} for none */ public NetworkProfile setDescription(java.lang.String description) { @@ -136,7 +134,7 @@ public NetworkProfile setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Features supported by the network. + * [Output Only] Features supported by the network. * @return value or {@code null} for none */ public NetworkProfileNetworkFeatures getFeatures() { @@ -144,7 +142,7 @@ public NetworkProfileNetworkFeatures getFeatures() { } /** - * Output only. [Output Only] Features supported by the network. + * [Output Only] Features supported by the network. * @param features features or {@code null} for none */ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { @@ -153,8 +151,7 @@ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -162,8 +159,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -172,8 +168,7 @@ public NetworkProfile setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network - * profiles. + * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -181,8 +176,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network - * profiles. + * [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) { @@ -191,7 +185,7 @@ public NetworkProfile setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Location to which the network is restricted. + * [Output Only] Location to which the network is restricted. * @return value or {@code null} for none */ public NetworkProfileLocation getLocation() { @@ -199,7 +193,7 @@ public NetworkProfileLocation getLocation() { } /** - * Output only. [Output Only] Location to which the network is restricted. + * [Output Only] Location to which the network is restricted. * @param location location or {@code null} for none */ public NetworkProfile setLocation(NetworkProfileLocation location) { @@ -208,7 +202,7 @@ public NetworkProfile setLocation(NetworkProfileLocation location) { } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -216,7 +210,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @param name name or {@code null} for none */ public NetworkProfile setName(java.lang.String name) { @@ -225,7 +219,7 @@ public NetworkProfile setName(java.lang.String name) { } /** - * Output only. [Output Only] Type of the network profile. + * [Output Only] Type of the network profile. * @return value or {@code null} for none */ public NetworkProfileProfileType getProfileType() { @@ -233,7 +227,7 @@ public NetworkProfileProfileType getProfileType() { } /** - * Output only. [Output Only] Type of the network profile. + * [Output Only] Type of the network profile. * @param profileType profileType or {@code null} for none */ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { @@ -242,7 +236,7 @@ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -250,7 +244,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkProfile setSelfLink(java.lang.String selfLink) { @@ -259,7 +253,7 @@ public NetworkProfile setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -267,7 +261,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java index 243b31e663f..d1e0a74e002 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -276,14 +276,14 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j private java.util.List subnetStackTypes; /** - * Output only. Specifies which subnetwork purposes are supported. + * 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. + * Specifies which subnetwork stack types are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -894,7 +894,7 @@ public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List getSubnetworkPurposes() { @@ -902,7 +902,7 @@ public java.util.List getSubnetworkPurposes() { } /** - * Output only. Specifies which subnetwork purposes are supported. + * Specifies which subnetwork purposes are supported. * @param subnetworkPurposes subnetworkPurposes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { @@ -911,7 +911,7 @@ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List getSubnetworkStackTypes() { @@ -919,7 +919,7 @@ public java.util.List getSubnetworkStackTypes() { } /** - * Output only. Specifies which subnetwork stack types are supported. + * Specifies which subnetwork stack types are supported. * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java index d126fc2f0bb..b045ed464b2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -56,8 +56,7 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. + * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,15 +73,14 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,8 +143,7 @@ public NetworkProfilesListResponse setItems(java.util.List items } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. + * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -154,8 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. + * [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) { @@ -187,7 +183,7 @@ public NetworkProfilesListResponse setNextPageToken(java.lang.String nextPageTok } /** - * 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() { @@ -195,7 +191,7 @@ 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 NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { @@ -204,8 +200,7 @@ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public NetworkProfilesListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java index 195b392152e..390f610176d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -56,14 +56,14 @@ public final class NetworkRoutingConfig extends com.google.api.client.json.Gener private java.lang.String bgpInterRegionCost; /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * [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. + * [Output Only] Effective value of the bgp_inter_region_cost field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,7 +137,7 @@ public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegio } /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * [Output Only] Effective value of the bgp_always_compare_med field. * @return value or {@code null} for none */ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { @@ -145,7 +145,7 @@ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { } /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * [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) { @@ -154,7 +154,7 @@ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean ef } /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * [Output Only] Effective value of the bgp_inter_region_cost field. * @return value or {@code null} for none */ public java.lang.String getEffectiveBgpInterRegionCost() { @@ -162,7 +162,7 @@ public java.lang.String getEffectiveBgpInterRegionCost() { } /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 57b26100431..87552222ac0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ 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. + * [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. + * [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. + * [Output Only] The packet mirroring rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,22 +78,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output Only] The short name of the firewall policy. + * [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. + * [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. + * [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() { @@ -102,8 +101,8 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. + * [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) { @@ -112,7 +111,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayNa } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -120,7 +119,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -129,7 +128,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java } /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. + * [Output Only] The packet mirroring rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -137,7 +136,7 @@ public java.util.List getPacketMirroringRules() { } /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. + * [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) { @@ -146,8 +145,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMir } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -155,8 +153,7 @@ public java.lang.Integer getPriority() { } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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) { @@ -182,7 +179,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(jav } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -190,7 +187,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @param shortName shortName or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { @@ -199,7 +196,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName } /** - * Output only. [Output Only] The type of the firewall policy. + * [Output Only] The type of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -207,7 +204,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The type of the firewall policy. + * [Output Only] The type of the firewall policy. * @param type type or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index e43c15856e4..3972693f23a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,8 +30,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The unique identifier for the security policy. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the security policy. 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 @@ -45,8 +45,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPoli private java.util.List rules; /** - * Output only. [Output Only] The unique identifier for the security policy. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the security policy. This identifier is defined by the + * server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -54,8 +54,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the security policy. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the security policy. This identifier is defined by the + * server. * @param id id or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java index 62c8c404731..5fc20509973 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -42,7 +42,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private NodeGroupAutoscalingPolicy autoscalingPolicy; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,15 +62,14 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,14 +126,14 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String nodeTemplate; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -148,7 +147,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private ShareSettings shareSettings; /** - * Output only. [Output Only] The total number of nodes in the node group. + * [Output Only] The total number of nodes in the node group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -161,8 +160,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. + * [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 @@ -186,7 +184,7 @@ public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPoli } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -194,7 +192,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -263,8 +261,7 @@ public NodeGroup encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -272,8 +269,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -282,7 +278,7 @@ public NodeGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -290,7 +286,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * [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) { @@ -417,7 +413,7 @@ public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -425,7 +421,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeGroup setSelfLink(java.lang.String selfLink) { @@ -434,7 +430,7 @@ public NodeGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -442,7 +438,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NodeGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -468,7 +464,7 @@ public NodeGroup setShareSettings(ShareSettings shareSettings) { } /** - * Output only. [Output Only] The total number of nodes in the node group. + * [Output Only] The total number of nodes in the node group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -476,7 +472,7 @@ public java.lang.Integer getSize() { } /** - * Output only. [Output Only] The total number of nodes in the node group. + * [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) { @@ -500,8 +496,7 @@ public NodeGroup setStatus(java.lang.String status) { } /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. + * [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() { @@ -509,8 +504,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java index edaad394eeb..8cd8b43da57 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for - * aggregated lists of node groups. + * [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 @@ -62,14 +62,14 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java index 238b1f18114..b9a428b708a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -50,8 +50,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. + * [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 @@ -68,7 +67,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public NodeGroupList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. + * [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) { @@ -158,7 +155,7 @@ public NodeGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 NodeGroupList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java index b38511bda24..a1eda5e82fb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -31,16 +31,16 @@ 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. + * [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; /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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 @@ -55,8 +55,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json 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. + * [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() { @@ -64,8 +64,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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 NodeGroupMaintenanceWindow setDuration(java.lang.String duration) { @@ -74,8 +74,8 @@ public NodeGroupMaintenanceWindow setDuration(java.lang.String duration) { } /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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() { @@ -83,8 +83,8 @@ public Duration getMaintenanceDuration() { } /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java index b1af48a0a34..93ab16ab3e6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -43,7 +43,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Output only. Node resources that are reserved by all instances. + * Node resources that are reserved by all instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Output only. Instance data that shows consumed resources on the node. + * Instance data that shows consumed resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String nodeType; /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +131,14 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String status; /** - * Output only. Total amount of available resources on the node. + * 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. + * [Output Only] The information about an upcoming maintenance event. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +162,7 @@ public NodeGroupNode setAccelerators(java.util.List accelerat } /** - * Output only. Node resources that are reserved by all instances. + * Node resources that are reserved by all instances. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumedResources() { @@ -170,7 +170,7 @@ public InstanceConsumptionInfo getConsumedResources() { } /** - * Output only. Node resources that are reserved by all instances. + * Node resources that are reserved by all instances. * @param consumedResources consumedResources or {@code null} for none */ public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { @@ -213,7 +213,7 @@ public NodeGroupNode setDisks(java.util.List disks) { } /** - * Output only. Instance data that shows consumed resources on the node. + * Instance data that shows consumed resources on the node. * @return value or {@code null} for none */ public java.util.List getInstanceConsumptionData() { @@ -221,7 +221,7 @@ public java.util.List getInstanceConsumptionData() { } /** - * Output only. Instance data that shows consumed resources on the node. + * Instance data that shows consumed resources on the node. * @param instanceConsumptionData instanceConsumptionData or {@code null} for none */ public NodeGroupNode setInstanceConsumptionData(java.util.List instanceConsumptionData) { @@ -281,7 +281,7 @@ public NodeGroupNode setNodeType(java.lang.String nodeType) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -289,7 +289,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -347,7 +347,7 @@ public NodeGroupNode setStatus(java.lang.String status) { } /** - * Output only. Total amount of available resources on the node. + * Total amount of available resources on the node. * @return value or {@code null} for none */ public InstanceConsumptionInfo getTotalResources() { @@ -355,7 +355,7 @@ public InstanceConsumptionInfo getTotalResources() { } /** - * Output only. Total amount of available resources on the node. + * Total amount of available resources on the node. * @param totalResources totalResources or {@code null} for none */ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { @@ -364,7 +364,7 @@ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { } /** - * Output only. [Output Only] The information about an upcoming maintenance event. + * [Output Only] The information about an upcoming maintenance event. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -372,7 +372,7 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * Output only. [Output Only] The information about an upcoming maintenance event. + * [Output Only] The information about an upcoming maintenance event. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java index 699a60fca23..b983f28193d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -30,7 +30,7 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -116,8 +116,8 @@ public NodeGroupsListNodes setItems(java.util.List items) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. + * [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) { @@ -135,10 +135,10 @@ public NodeGroupsListNodes setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public NodeGroupsListNodes setWarning(Warning warning) { @@ -202,7 +202,7 @@ public NodeGroupsListNodes clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java index 8f43e3e7e08..0baa92731bb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -52,7 +52,7 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private java.lang.String cpuOvercommitType; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,16 +78,14 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,22 +124,21 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,15 +156,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private ServerBinding serverBinding; /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. + * [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. + * [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -206,7 +203,7 @@ public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -214,7 +211,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -255,8 +252,7 @@ public NodeTemplate setDisks(java.util.List disks) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -264,8 +260,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -274,8 +269,7 @@ public NodeTemplate setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. + * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -283,8 +277,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. + * [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) { @@ -369,8 +362,7 @@ public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeT } /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. + * [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() { @@ -378,8 +370,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. + * [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) { @@ -388,7 +379,7 @@ public NodeTemplate setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -396,7 +387,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeTemplate setSelfLink(java.lang.String selfLink) { @@ -405,7 +396,7 @@ public NodeTemplate setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -413,7 +404,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NodeTemplate setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -447,8 +438,8 @@ public NodeTemplate setServerBinding(ServerBinding serverBinding) { } /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. + * [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() { @@ -456,8 +447,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. + * [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) { @@ -466,7 +457,7 @@ public NodeTemplate setStatus(java.lang.String status) { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -474,7 +465,7 @@ public java.lang.String getStatusMessage() { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java index 8108caade4f..99eb552c0f4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for - * aggregated lists of node templates. + * [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 @@ -62,14 +62,14 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTemplateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTemplateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java index 975a9ec6bb3..4dec3311cd1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -50,8 +50,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. + * [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 @@ -68,7 +67,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs 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 @@ -116,8 +115,7 @@ public NodeTemplateList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. + * [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) { @@ -158,7 +155,7 @@ public NodeTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 NodeTemplateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java index 725932bec54..31150c01170 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -77,7 +77,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,7 +91,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.Integer localSsdGb; /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * [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 @@ -112,22 +112,21 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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 name of the zone where the node type resides, such as us- - * central1-a. + * [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 @@ -236,7 +235,7 @@ public NodeType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -244,7 +243,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * [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) { @@ -270,7 +269,7 @@ public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * [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() { @@ -278,7 +277,7 @@ public java.lang.Integer getMaxVms() { } /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * [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) { @@ -321,7 +320,7 @@ public NodeType setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -329,7 +328,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeType setSelfLink(java.lang.String selfLink) { @@ -338,7 +337,7 @@ public NodeType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -346,7 +345,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NodeType setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -355,8 +354,7 @@ public NodeType setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. + * [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() { @@ -364,8 +362,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java index b5f8aa4ddf8..2985c263e70 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated - * lists of node types. + * [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 @@ -62,14 +62,14 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java index 87afc1e14e8..499df967122 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -50,8 +50,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. + * [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 @@ -68,7 +67,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public NodeTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. + * [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) { @@ -158,7 +155,7 @@ public NodeTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 NodeTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java index 29423ff6380..df4ed94b238 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -35,7 +35,7 @@ public final class NotificationEndpoint extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,16 +56,15 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private NotificationEndpointGrpcSettings grpcSettings; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,23 +82,23 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener 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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -107,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { @@ -150,8 +149,7 @@ public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grp } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -159,8 +157,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -169,8 +166,8 @@ public NotificationEndpoint setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -178,8 +175,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [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) { @@ -213,9 +210,9 @@ public NotificationEndpoint setName(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. + * [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() { @@ -223,9 +220,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -234,7 +231,7 @@ public NotificationEndpoint setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -242,7 +239,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NotificationEndpoint setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java index 8a8ca6062f3..02b6fbacfec 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java @@ -44,7 +44,7 @@ public final class NotificationEndpointAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class NotificationEndpointAggregatedList extends com.google.api.cli 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public NotificationEndpointAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NotificationEndpointAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java index 1c0a447d4f3..092c5f23afb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -50,8 +50,8 @@ public final class NotificationEndpointList extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NotificationEndpointList setItems(java.util.List it } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java index 2428efb1436..bc616004dd7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,12 +84,6 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; - /** - * 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`. @@ -128,8 +122,7 @@ public final class Operation extends com.google.api.client.json.GenericJson { private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. + * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,8 +136,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -183,15 +176,15 @@ public final class Operation extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. + * [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 @@ -357,21 +350,6 @@ public Operation setError(Error error) { 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`. @@ -462,8 +440,7 @@ public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOper } /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. + * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -471,8 +448,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. + * [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) { @@ -498,8 +474,8 @@ public Operation setName(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. + * [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() { @@ -507,8 +483,8 @@ public java.lang.String getOperationGroupId() { } /** - * 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. + * [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) { @@ -593,7 +569,7 @@ public Operation setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -601,7 +577,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Operation setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -610,8 +586,8 @@ public Operation setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. + * [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() { @@ -619,8 +595,8 @@ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOp } /** - * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java index 0a42c170556..923f1b730d8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -44,8 +44,8 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for - * aggregated lists of operations. + * [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 @@ -69,7 +69,7 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public OperationAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public OperationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java index b993539d1db..c7c27b93315 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -50,8 +50,7 @@ public final class OperationList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. + * [Output Only] Type of resource. Always `compute#operations` for Operations resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +115,7 @@ public OperationList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. + * [Output Only] Type of resource. Always `compute#operations` for Operations resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java index 5608b2e6ea6..92f1e45bacd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class OrganizationSecurityPoliciesListAssociationsResponse extends private java.util.List associations; /** - * Output only. [Output Only] Type of securityPolicy associations. + * [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * The value may be {@code null}. @@ -63,7 +63,7 @@ public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java } /** - * Output only. [Output Only] Type of securityPolicy associations. + * [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @return value or {@code null} for none @@ -73,7 +73,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of securityPolicy associations. + * [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @param kind kind or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java index 8d6a3631048..2808340e7c3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -43,7 +43,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringForwardingRuleInfo collectorIlb; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,16 +74,14 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringFilter filter; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,14 +134,14 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private java.lang.String region; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -169,7 +167,7 @@ public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collect } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -177,7 +175,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { @@ -243,8 +241,7 @@ public PacketMirroring setFilter(PacketMirroringFilter filter) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -252,8 +249,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -262,8 +258,7 @@ public PacketMirroring setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. + * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -271,8 +266,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. + * [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) { @@ -388,7 +382,7 @@ public PacketMirroring setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -396,7 +390,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public PacketMirroring setSelfLink(java.lang.String selfLink) { @@ -405,7 +399,7 @@ public PacketMirroring setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -413,7 +407,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public PacketMirroring setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java index 1037f9cab3d..595728e2281 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -44,7 +44,7 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public PacketMirroringAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PacketMirroringAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java index 94108ee8069..ec03ec70a94 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -30,7 +30,7 @@ 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. + * [Output Only] Unique identifier for the forwarding rule; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,7 +45,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.clie private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * [Output Only] Unique identifier for the forwarding rule; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -53,7 +53,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java index 3d7fba4d7f1..c7915c3357f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -50,8 +50,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. + * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi 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 @@ -116,8 +115,7 @@ public PacketMirroringList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. + * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. + * [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) { @@ -158,7 +155,7 @@ public PacketMirroringList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 PacketMirroringList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java index 17b0f288da5..6cb0e091a11 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * [Output Only] Unique identifier for the instance; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.g private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * [Output Only] Unique identifier for the instance; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java index afcc0dfdf19..4001f06eabd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * [Output Only] Unique identifier for the subnetwork; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.goo private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * [Output Only] Unique identifier for the subnetwork; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java index aba6b27e954..254d520c669 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. + * [Output Only] Unique identifier for the network; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. + * [Output Only] Unique identifier for the network; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java index 862d369b8cb..9f3e11621fe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -146,11 +146,8 @@ public final class PathMatcher extends com.google.api.client.json.GenericJson { /** * 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. + * matching is all that's required. 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. @@ -429,11 +426,8 @@ public PathMatcher setName(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. + * matching is all that's required. 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. @@ -447,11 +441,8 @@ public java.util.List getPathRules() { /** * 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. + * matching is all that's required. 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. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java deleted file mode 100644 index 907653b9c79..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java index 67589c68ecf..65df1d11db3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -37,30 +37,28 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private java.lang.String activationStatus; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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. + * [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. + * [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. + * [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 @@ -81,14 +79,14 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private PreviewFeatureRolloutOperation rolloutOperation; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output only] Status of the feature. + * [Output only] Status of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,7 +110,7 @@ public PreviewFeature setActivationStatus(java.lang.String activationStatus) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -120,7 +118,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { @@ -129,7 +127,7 @@ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output Only] Description of the feature. + * [Output Only] Description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -137,7 +135,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] Description of the feature. + * [Output Only] Description of the feature. * @param description description or {@code null} for none */ public PreviewFeature setDescription(java.lang.String description) { @@ -146,8 +144,7 @@ public PreviewFeature setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -155,8 +152,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -165,8 +161,7 @@ public PreviewFeature setId(java.math.BigInteger id) { } /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. + * [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() { @@ -174,8 +169,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. + * [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) { @@ -218,7 +212,7 @@ public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rollout } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -226,7 +220,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public PreviewFeature setSelfLink(java.lang.String selfLink) { @@ -235,7 +229,7 @@ public PreviewFeature setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output only] Status of the feature. + * [Output only] Status of the feature. * @return value or {@code null} for none */ public PreviewFeatureStatus getStatus() { @@ -243,7 +237,7 @@ public PreviewFeatureStatus getStatus() { } /** - * Output only. [Output only] Status of the feature. + * [Output only] Status of the feature. * @param status status or {@code null} for none */ public PreviewFeature setStatus(PreviewFeatureStatus status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java index f099ab2a800..7db8ee1c6d8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -66,15 +66,14 @@ public final class PreviewFeatureList extends com.google.api.client.json.Generic 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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,7 +167,7 @@ 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 PreviewFeatureList setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public PreviewFeatureList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java index 6b0cd6054f8..af6b1bbc4e8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -30,14 +30,14 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The description of the feature. + * [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. + * [Output Only] Link to the public documentation for the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,7 +50,7 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.Gener private PreviewFeatureStatusReleaseStatus releaseStatus; /** - * Output only. [Output Only] The description of the feature. + * [Output Only] The description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -58,7 +58,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] The description of the feature. + * [Output Only] The description of the feature. * @param description description or {@code null} for none */ public PreviewFeatureStatus setDescription(java.lang.String description) { @@ -67,7 +67,7 @@ public PreviewFeatureStatus setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Link to the public documentation for the feature. + * [Output Only] Link to the public documentation for the feature. * @return value or {@code null} for none */ public java.lang.String getHelpLink() { @@ -75,7 +75,7 @@ public java.lang.String getHelpLink() { } /** - * Output only. [Output Only] Link to the public documentation for the feature. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java index bbefbcc3470..f26a5843a8a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -30,7 +30,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The stage of the feature. + * [Output Only] The stage of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.clie private Date updateDate; /** - * Output only. [Output Only] The stage of the feature. + * [Output Only] The stage of the feature. * @return value or {@code null} for none */ public java.lang.String getStage() { @@ -52,7 +52,7 @@ public java.lang.String getStage() { } /** - * Output only. [Output Only] The stage of the feature. + * [Output Only] The stage of the feature. * @param stage stage or {@code null} for none */ public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java index b8c5d5a80e3..7c97bff47df 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Project.java @@ -33,8 +33,8 @@ 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. + * [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}. @@ -97,15 +97,15 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * [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; /** - * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It - * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of + * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * The value may be {@code null}. @@ -144,7 +144,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private UsageExportLocation usageExportLocation; /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * [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 @@ -159,8 +159,8 @@ public final class Project extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -170,8 +170,8 @@ public java.lang.String getCloudArmorTier() { } /** - * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the - * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + * [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 @@ -311,7 +311,7 @@ public Project setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * [Output Only] Type of the resource. Always compute#project for projects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -319,7 +319,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * [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) { @@ -328,8 +328,8 @@ public Project setKind(java.lang.String kind) { } /** - * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It - * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of + * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @return value or {@code null} for none @@ -339,8 +339,8 @@ public java.lang.String getManagedProtectionTier() { } /** - * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It - * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of + * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @param managedProtectionTier managedProtectionTier or {@code null} for none @@ -423,7 +423,7 @@ public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { } /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * [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() { @@ -431,7 +431,7 @@ public java.lang.String getVmDnsSetting() { } /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java index cd70d815772..b7574ceac6c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -30,18 +30,18 @@ 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) + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,8 +55,8 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.Ge private java.util.List resources; /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) + * [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() { @@ -64,8 +64,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) + * [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) { @@ -74,10 +74,10 @@ public ProjectsGetXpnResources setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -85,10 +85,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java index e2e5d61066d..b474e13ab5d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -32,14 +32,14 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The version of BYOIP API. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,8 +72,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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 @@ -94,8 +94,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String ipv6AccessType; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised + * prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,15 +112,6 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen @com.google.api.client.util.Key private java.lang.String name; - /** - * Network tier to be used for this prefix. All child delegated prefixes will inherit this field. - * If this field is not specified, it defaults to the network tier of the project that the - * PublicAdvertisedPrefix belongs to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String networkTier; - /** * 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 @@ -134,22 +125,22 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String pdpScope; /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. + * [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. + * [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. + * [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -175,7 +166,7 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String status; /** - * Output only. [Output Only] The version of BYOIP API. + * [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -183,7 +174,7 @@ public java.lang.String getByoipApiVersion() { } /** - * Output only. [Output Only] The version of BYOIP API. + * [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -192,7 +183,7 @@ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersio } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -200,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -308,8 +299,8 @@ public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -317,8 +308,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -361,8 +352,8 @@ public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised + * prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -370,8 +361,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. + * [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) { @@ -404,27 +395,6 @@ public PublicAdvertisedPrefix setName(java.lang.String name) { return this; } - /** - * Network tier to be used for this prefix. All child delegated prefixes will inherit this field. - * If this field is not specified, it defaults to the network tier of the project that the - * PublicAdvertisedPrefix belongs to. - * @return value or {@code null} for none - */ - public java.lang.String getNetworkTier() { - return networkTier; - } - - /** - * Network tier to be used for this prefix. All child delegated prefixes will inherit this field. - * If this field is not specified, it defaults to the network tier of the project that the - * PublicAdvertisedPrefix belongs to. - * @param networkTier networkTier or {@code null} for none - */ - public PublicAdvertisedPrefix setNetworkTier(java.lang.String networkTier) { - this.networkTier = networkTier; - 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 @@ -453,8 +423,8 @@ public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { } /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. + * [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() { @@ -462,8 +432,8 @@ public java.util.List getPublicDele } /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. + * [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) { @@ -472,7 +442,7 @@ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(java.util.List items; /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated - * prefixes. + * [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 @@ -70,7 +69,7 @@ public final class PublicDelegatedPrefixAggregatedList extends com.google.api.cl private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,9 +117,8 @@ public PublicDelegatedPrefixAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PublicDelegatedPrefixAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java index c6896a733e8..661e1a7fb4a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -50,8 +50,8 @@ public final class PublicDelegatedPrefixList extends com.google.api.client.json. } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public + * delegated prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public PublicDelegatedPrefixList setItems(java.util.List } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public + * delegated prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java index f72aed87a8c..1e8cbccdc3a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -51,8 +51,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String description; /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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 @@ -66,8 +66,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String ipCidrRange; /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. + * [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 @@ -95,23 +95,22 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String name; /** - * Output only. [Output Only] The purpose of the sub public delegated prefix. Inherited from - * parent prefix. + * [Output Only] The purpose of the sub public delegated prefix. Inherited from parent prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String purpose; /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. + * [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. + * [Output Only] The status of the sub public delegated prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -169,8 +168,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.St } /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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() { @@ -178,8 +177,8 @@ public java.lang.Boolean getEnableEnhancedIpv4Allocation() { } /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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) { @@ -205,8 +204,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.St } /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. + * [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() { @@ -214,8 +213,8 @@ public java.lang.String getIpv6AccessType() { } /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. + * [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) { @@ -275,8 +274,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String na } /** - * Output only. [Output Only] The purpose of the sub public delegated prefix. Inherited from - * parent prefix. + * [Output Only] The purpose of the sub public delegated prefix. Inherited from parent prefix. * @return value or {@code null} for none */ public java.lang.String getPurpose() { @@ -284,8 +282,7 @@ public java.lang.String getPurpose() { } /** - * Output only. [Output Only] The purpose of the sub public delegated prefix. Inherited from - * parent prefix. + * [Output Only] The purpose of the sub public delegated prefix. Inherited from parent prefix. * @param purpose purpose or {@code null} for none */ public PublicDelegatedPrefixPublicDelegatedSubPrefix setPurpose(java.lang.String purpose) { @@ -294,8 +291,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setPurpose(java.lang.String } /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. + * [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() { @@ -303,8 +300,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. + * [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) { @@ -313,7 +310,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String } /** - * Output only. [Output Only] The status of the sub public delegated prefix. + * [Output Only] The status of the sub public delegated prefix. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -321,7 +318,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the sub public delegated prefix. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java index 2704dbf0885..51bb0b1b2e6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResource.java @@ -38,7 +38,7 @@ public final class QueuedResource extends com.google.api.client.json.GenericJson private BulkInsertInstanceResource bulkInsertInstanceResource; /** - * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * [Output Only] Creation timestamp in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,16 +52,14 @@ public final class QueuedResource extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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#queuedResource for - * QueuedResources. + * [Output Only] Type of the resource. Alwayscompute#queuedResource for QueuedResources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,37 +84,37 @@ public final class QueuedResource extends com.google.api.client.json.GenericJson private QueuingPolicy queuingPolicy; /** - * Output only. [Output only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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] High-level status of the request. + * [Output only] High-level status of the request. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** - * Output only. [Output only] Result of queuing and provisioning based on deferred capacity. + * [Output only] Result of queuing and provisioning based on deferred capacity. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueuedResourceStatus status; /** - * Output only. [Output Only] URL of the zone where the resource resides. Only applicable for - * zonal resources. 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] URL of the zone where the resource resides. Only applicable for zonal 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 @@ -140,7 +138,7 @@ public QueuedResource setBulkInsertInstanceResource(BulkInsertInstanceResource b } /** - * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * [Output Only] Creation timestamp in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -148,7 +146,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * [Output Only] Creation timestamp in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public QueuedResource setCreationTimestamp(java.lang.String creationTimestamp) { @@ -174,8 +172,7 @@ public QueuedResource setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -183,8 +180,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @param id id or {@code null} for none */ public QueuedResource setId(java.math.BigInteger id) { @@ -193,8 +189,7 @@ public QueuedResource setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#queuedResource for - * QueuedResources. + * [Output Only] Type of the resource. Alwayscompute#queuedResource for QueuedResources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -202,8 +197,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#queuedResource for - * QueuedResources. + * [Output Only] Type of the resource. Alwayscompute#queuedResource for QueuedResources. * @param kind kind or {@code null} for none */ public QueuedResource setKind(java.lang.String kind) { @@ -254,7 +248,7 @@ public QueuedResource setQueuingPolicy(QueuingPolicy queuingPolicy) { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -262,7 +256,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public QueuedResource setSelfLink(java.lang.String selfLink) { @@ -271,7 +265,7 @@ public QueuedResource setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -279,7 +273,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public QueuedResource setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -288,7 +282,7 @@ public QueuedResource setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output only] High-level status of the request. + * [Output only] High-level status of the request. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -296,7 +290,7 @@ public java.lang.String getState() { } /** - * Output only. [Output only] High-level status of the request. + * [Output only] High-level status of the request. * @param state state or {@code null} for none */ public QueuedResource setState(java.lang.String state) { @@ -305,7 +299,7 @@ public QueuedResource setState(java.lang.String state) { } /** - * Output only. [Output only] Result of queuing and provisioning based on deferred capacity. + * [Output only] Result of queuing and provisioning based on deferred capacity. * @return value or {@code null} for none */ public QueuedResourceStatus getStatus() { @@ -313,7 +307,7 @@ public QueuedResourceStatus getStatus() { } /** - * Output only. [Output only] Result of queuing and provisioning based on deferred capacity. + * [Output only] Result of queuing and provisioning based on deferred capacity. * @param status status or {@code null} for none */ public QueuedResource setStatus(QueuedResourceStatus status) { @@ -322,9 +316,9 @@ public QueuedResource setStatus(QueuedResourceStatus status) { } /** - * Output only. [Output Only] URL of the zone where the resource resides. Only applicable for - * zonal resources. 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] URL of the zone where the resource resides. Only applicable for zonal 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 getZone() { @@ -332,9 +326,9 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] URL of the zone where the resource resides. Only applicable for - * zonal resources. 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] URL of the zone where the resource resides. Only applicable for zonal 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 zone zone or {@code null} for none */ public QueuedResource setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java index b7897aea784..93bc52a7d4b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceList.java @@ -50,7 +50,7 @@ public final class QueuedResourceList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,14 +66,14 @@ public final class QueuedResourceList extends com.google.api.client.json.Generic 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 private java.lang.String selfLink; /** - * Output only. [Output only] Unreachable resources. + * [Output only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +121,7 @@ public QueuedResourceList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -129,7 +129,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public QueuedResourceList setKind(java.lang.String kind) { @@ -159,7 +159,7 @@ public QueuedResourceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -167,7 +167,7 @@ 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 QueuedResourceList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public QueuedResourceList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output only] Unreachable resources. + * [Output only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output only] Unreachable resources. + * [Output only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public QueuedResourceList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java index 98f37d7f056..18d0c6eca5e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/QueuedResourceStatus.java @@ -30,31 +30,31 @@ public final class QueuedResourceStatus extends com.google.api.client.json.GenericJson { /** - * Output only. Additional status detail for the FAILED state. + * Additional status detail for the FAILED state. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueuedResourceStatusFailedData failedData; /** - * Output only. [Output only] Fully qualified URL of the provisioning GCE operation to track the - * provisioning along with provisioning errors. The referenced operation may not exist after - * having been deleted or expired. + * [Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning + * along with provisioning errors. The referenced operation may not exist after having been + * deleted or expired. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List provisioningOperations; /** - * Output only. Constraints for the time when the resource(s) start provisioning. Always exposed - * as absolute times. + * Constraints for the time when the resource(s) start provisioning. Always exposed as absolute + * times. * The value may be {@code null}. */ @com.google.api.client.util.Key private QueuingPolicy queuingPolicy; /** - * Output only. Additional status detail for the FAILED state. + * Additional status detail for the FAILED state. * @return value or {@code null} for none */ public QueuedResourceStatusFailedData getFailedData() { @@ -62,7 +62,7 @@ public QueuedResourceStatusFailedData getFailedData() { } /** - * Output only. Additional status detail for the FAILED state. + * Additional status detail for the FAILED state. * @param failedData failedData or {@code null} for none */ public QueuedResourceStatus setFailedData(QueuedResourceStatusFailedData failedData) { @@ -71,9 +71,9 @@ public QueuedResourceStatus setFailedData(QueuedResourceStatusFailedData failedD } /** - * Output only. [Output only] Fully qualified URL of the provisioning GCE operation to track the - * provisioning along with provisioning errors. The referenced operation may not exist after - * having been deleted or expired. + * [Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning + * along with provisioning errors. The referenced operation may not exist after having been + * deleted or expired. * @return value or {@code null} for none */ public java.util.List getProvisioningOperations() { @@ -81,9 +81,9 @@ public java.util.List getProvisioningOperations() { } /** - * Output only. [Output only] Fully qualified URL of the provisioning GCE operation to track the - * provisioning along with provisioning errors. The referenced operation may not exist after - * having been deleted or expired. + * [Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning + * along with provisioning errors. The referenced operation may not exist after having been + * deleted or expired. * @param provisioningOperations provisioningOperations or {@code null} for none */ public QueuedResourceStatus setProvisioningOperations(java.util.List provisioningOperations) { @@ -92,8 +92,8 @@ public QueuedResourceStatus setProvisioningOperations(java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#queuedResourcesAggregatedList for - * lists of QueuedResource. + * [Output Only] Type of resource. Alwayscompute#queuedResourcesAggregatedList for lists of + * QueuedResource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class QueuedResourcesAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public QueuedResourcesAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public QueuedResourcesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java index ef60c5d50de..4ee101475b0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshot.java @@ -32,7 +32,7 @@ public final class RecoverableSnapshot extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,41 +46,40 @@ public final class RecoverableSnapshot extends com.google.api.client.json.Generi private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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#recoverableSnapshot for - * RecoverableSnapshot resources. + * [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** - * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the - * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name - * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` - * which means the first character will be a lowercase letter, and all following characters can be - * a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + * Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot. The + * name will be 1-63 characters long, and comply withRFC1035. Specifically, the name will be 1-63 + * characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + * first character will be a lowercase letter, and all following characters can 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 original snapshot resource. + * Output Only] The original snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private RecoverableSnapshotOriginalSnapshot originalResource; /** - * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -94,35 +93,35 @@ public final class RecoverableSnapshot extends com.google.api.client.json.Generi private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [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] Status of the recoverable snapshot. + * [Output Only] Status of the recoverable snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String status; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -130,7 +129,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RecoverableSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -156,8 +155,7 @@ public RecoverableSnapshot setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -165,8 +163,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @param id id or {@code null} for none */ public RecoverableSnapshot setId(java.math.BigInteger id) { @@ -175,8 +172,8 @@ public RecoverableSnapshot setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for - * RecoverableSnapshot resources. + * [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -184,8 +181,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for - * RecoverableSnapshot resources. + * [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot + * resources. * @param kind kind or {@code null} for none */ public RecoverableSnapshot setKind(java.lang.String kind) { @@ -194,11 +191,11 @@ public RecoverableSnapshot setKind(java.lang.String kind) { } /** - * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the - * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name - * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` - * which means the first character will be a lowercase letter, and all following characters can be - * a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + * Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot. The + * name will be 1-63 characters long, and comply withRFC1035. Specifically, the name will be 1-63 + * characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + * first character will be a lowercase letter, and all following characters can 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() { @@ -206,11 +203,11 @@ public java.lang.String getName() { } /** - * Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the - * snapshot. The name will be 1-63 characters long, and comply withRFC1035. Specifically, the name - * will be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` - * which means the first character will be a lowercase letter, and all following characters can be - * a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + * Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot. The + * name will be 1-63 characters long, and comply withRFC1035. Specifically, the name will be 1-63 + * characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + * first character will be a lowercase letter, and all following characters can 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 RecoverableSnapshot setName(java.lang.String name) { @@ -219,7 +216,7 @@ public RecoverableSnapshot setName(java.lang.String name) { } /** - * Output only. Output Only] The original snapshot resource. + * Output Only] The original snapshot resource. * @return value or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot getOriginalResource() { @@ -227,7 +224,7 @@ public RecoverableSnapshotOriginalSnapshot getOriginalResource() { } /** - * Output only. Output Only] The original snapshot resource. + * Output Only] The original snapshot resource. * @param originalResource originalResource or {@code null} for none */ public RecoverableSnapshot setOriginalResource(RecoverableSnapshotOriginalSnapshot originalResource) { @@ -236,7 +233,7 @@ public RecoverableSnapshot setOriginalResource(RecoverableSnapshotOriginalSnapsh } /** - * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getPurgeTimestamp() { @@ -244,7 +241,7 @@ public java.lang.String getPurgeTimestamp() { } /** - * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @param purgeTimestamp purgeTimestamp or {@code null} for none */ public RecoverableSnapshot setPurgeTimestamp(java.lang.String purgeTimestamp) { @@ -270,7 +267,7 @@ public RecoverableSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -278,7 +275,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public RecoverableSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -287,7 +284,7 @@ public RecoverableSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -295,7 +292,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public RecoverableSnapshot setSelfLink(java.lang.String selfLink) { @@ -304,7 +301,7 @@ public RecoverableSnapshot setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -312,7 +309,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public RecoverableSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -321,7 +318,7 @@ public RecoverableSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] Status of the recoverable snapshot. + * [Output Only] Status of the recoverable snapshot. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -329,7 +326,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] Status of the recoverable snapshot. + * [Output Only] Status of the recoverable snapshot. * @param status status or {@code null} for none */ public RecoverableSnapshot setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java index da3ff5adbc3..ee62c41fb0b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotAggregatedList.java @@ -50,8 +50,8 @@ public final class RecoverableSnapshotAggregatedList extends com.google.api.clie private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotAggregatedList - * for aggregated lists of recoverablesnapshots. + * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotAggregatedList for aggregated + * lists of recoverablesnapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,15 +68,14 @@ public final class RecoverableSnapshotAggregatedList extends com.google.api.clie 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,8 +138,8 @@ public RecoverableSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -207,8 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RecoverableSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java index a5109f8a267..1510a22a3cd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotList.java @@ -56,7 +56,7 @@ public final class RecoverableSnapshotList extends com.google.api.client.json.Ge } /** - * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of * recoverablesnapshots. * The value may be {@code null}. */ @@ -74,15 +74,14 @@ public final class RecoverableSnapshotList extends com.google.api.client.json.Ge 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,7 +144,7 @@ public RecoverableSnapshotList setItems(java.util.List item } /** - * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of * recoverablesnapshots. * @return value or {@code null} for none */ @@ -154,7 +153,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of + * [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of * recoverablesnapshots. * @param kind kind or {@code null} for none */ @@ -187,7 +186,7 @@ public RecoverableSnapshotList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -195,7 +194,7 @@ 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 RecoverableSnapshotList setSelfLink(java.lang.String selfLink) { @@ -204,8 +203,7 @@ public RecoverableSnapshotList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RecoverableSnapshotList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java index 930e8835150..a36b6fdf838 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java @@ -30,15 +30,15 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [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. + * [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 @@ -63,21 +63,21 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String chainName; /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [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. + * [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] Purge timestamp of recoverable snapshot inRFC3339 text format. + * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,22 +91,22 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String description; /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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. + * [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. + * 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 @@ -120,9 +120,9 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.Boolean full; /** - * 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. + * [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 @@ -135,8 +135,8 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl } /** - * Output only. [Output Only] The unique identifier for the original snapshot. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the original snapshot. 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 @@ -164,15 +164,14 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.util.Map labels; /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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. + * [Output Only] A list of public visible licenses that apply to this snapshot. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -197,8 +196,8 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String name; /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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 @@ -212,21 +211,21 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -250,14 +249,14 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private CustomerEncryptionKey snapshotEncryptionKey; /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * 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. + * [Output only] The snapshot group that this snapshot belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -293,7 +292,7 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.String sourceDiskForRecoveryCheckpoint; /** - * Output only. [Output Only] The ID value of the disk used to create this snapshot + * [Output Only] The ID value of the disk used to create this snapshot * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -314,42 +313,42 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl 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 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 - * instant snapshot that was used. + * [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 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 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. + * [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. + * [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] A size of the storage used by the snapshot. + * [Output Only] A size of the storage used by the snapshot. * 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. + * [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 @@ -363,7 +362,15 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.util.List storageLocations; /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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() { @@ -371,7 +378,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. * @param architecture architecture or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setArchitecture(java.lang.String architecture) { @@ -380,8 +387,8 @@ public RecoverableSnapshotOriginalSnapshot setArchitecture(java.lang.String arch } /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. + * [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() { @@ -389,8 +396,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. + * [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 RecoverableSnapshotOriginalSnapshot setAutoCreated(java.lang.Boolean autoCreated) { @@ -441,7 +448,7 @@ public RecoverableSnapshotOriginalSnapshot setChainName(java.lang.String chainNa } /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [Output Only] Size in bytes of the snapshot at creation time. * @return value or {@code null} for none */ public java.lang.Long getCreationSizeBytes() { @@ -449,7 +456,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [Output Only] Size in bytes of the snapshot at creation time. * @param creationSizeBytes creationSizeBytes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { @@ -458,7 +465,7 @@ public RecoverableSnapshotOriginalSnapshot setCreationSizeBytes(java.lang.Long c } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -466,7 +473,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -475,7 +482,7 @@ public RecoverableSnapshotOriginalSnapshot setCreationTimestamp(java.lang.String } /** - * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getDeletionTimestamp() { @@ -483,7 +490,7 @@ public java.lang.String getDeletionTimestamp() { } /** - * Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. + * [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format. * @param deletionTimestamp deletionTimestamp or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setDeletionTimestamp(java.lang.String deletionTimestamp) { @@ -509,7 +516,7 @@ public RecoverableSnapshotOriginalSnapshot setDescription(java.lang.String descr } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -517,7 +524,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [Output Only] Size of the source disk, specified in GB. * @param diskSizeGb diskSizeGb or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { @@ -526,7 +533,7 @@ public RecoverableSnapshotOriginalSnapshot setDiskSizeGb(java.lang.Long diskSize } /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * [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() { @@ -534,7 +541,7 @@ public java.lang.Long getDownloadBytes() { } /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * [Output Only] Number of bytes downloaded to restore a snapshot to a disk. * @param downloadBytes downloadBytes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setDownloadBytes(java.lang.Long downloadBytes) { @@ -543,8 +550,8 @@ public RecoverableSnapshotOriginalSnapshot setDownloadBytes(java.lang.Long downl } /** - * 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. + * 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() { @@ -552,8 +559,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * 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. + * 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 RecoverableSnapshotOriginalSnapshot setEnableConfidentialCompute(java.lang.Boolean enableConfidentialCompute) { @@ -579,9 +586,9 @@ public RecoverableSnapshotOriginalSnapshot setFull(java.lang.Boolean full) { } /** - * 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. + * [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() { @@ -589,9 +596,9 @@ public java.util.List getGuestOsFeatures() { } /** - * 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. + * [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 RecoverableSnapshotOriginalSnapshot setGuestOsFeatures(java.util.List guestOsFeatures) { @@ -600,8 +607,8 @@ public RecoverableSnapshotOriginalSnapshot setGuestOsFeatures(java.util.List getLicenseCodes() { @@ -716,8 +722,7 @@ public java.util.List getLicenseCodes() { } /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. * @param licenseCodes licenseCodes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setLicenseCodes(java.util.List licenseCodes) { @@ -726,7 +731,7 @@ public RecoverableSnapshotOriginalSnapshot setLicenseCodes(java.util.List getLicenses() { @@ -734,7 +739,7 @@ public java.util.List getLicenses() { } /** - * Output only. [Output Only] A list of public visible licenses that apply to this snapshot. + * [Output Only] A list of public visible licenses that apply to this snapshot. * @param licenses licenses or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setLicenses(java.util.List licenses) { @@ -785,8 +790,8 @@ public RecoverableSnapshotOriginalSnapshot setName(java.lang.String name) { } /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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() { @@ -794,8 +799,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [Output Only] URL of the region where the snapshot resides. Only applicable for regional + * snapshots. * @param region region or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setRegion(java.lang.String region) { @@ -821,7 +826,7 @@ public RecoverableSnapshotOriginalSnapshot setSatisfiesPzi(java.lang.Boolean sat } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -829,7 +834,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -838,7 +843,7 @@ public RecoverableSnapshotOriginalSnapshot setSatisfiesPzs(java.lang.Boolean sat } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -846,7 +851,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSelfLink(java.lang.String selfLink) { @@ -855,7 +860,7 @@ public RecoverableSnapshotOriginalSnapshot setSelfLink(java.lang.String selfLink } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -863,7 +868,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -909,7 +914,7 @@ public RecoverableSnapshotOriginalSnapshot setSnapshotEncryptionKey(CustomerEncr } /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupId() { @@ -917,7 +922,7 @@ public java.lang.String getSnapshotGroupId() { } /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @param snapshotGroupId snapshotGroupId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { @@ -926,7 +931,7 @@ public RecoverableSnapshotOriginalSnapshot setSnapshotGroupId(java.lang.String s } /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. + * [Output only] The snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupName() { @@ -934,7 +939,7 @@ public java.lang.String getSnapshotGroupName() { } /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. + * [Output only] The snapshot group that this snapshot belongs to. * @param snapshotGroupName snapshotGroupName or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { @@ -1013,7 +1018,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceDiskForRecoveryCheckpoint(ja } /** - * Output only. [Output Only] The ID value of the disk used to create this snapshot + * [Output Only] The ID value of the disk used to create this snapshot * @return value or {@code null} for none */ public java.lang.String getSourceDiskId() { @@ -1021,7 +1026,7 @@ public java.lang.String getSourceDiskId() { } /** - * Output only. [Output Only] The ID value of the disk used to create this snapshot + * [Output Only] The ID value of the disk used to create this snapshot * @param sourceDiskId sourceDiskId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceDiskId(java.lang.String sourceDiskId) { @@ -1064,11 +1069,11 @@ public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotEncryptionKey } /** - * 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 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 - * instant snapshot that was used. + * [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 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 instant + * snapshot that was used. * @return value or {@code null} for none */ public java.lang.String getSourceInstantSnapshotId() { @@ -1076,11 +1081,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * 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 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 - * instant snapshot that was used. + * [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 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 instant + * snapshot that was used. * @param sourceInstantSnapshotId sourceInstantSnapshotId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapshotId) { @@ -1089,7 +1094,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceInstantSnapshotId(java.lang. } /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * [Output Only] URL of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicy() { @@ -1097,7 +1102,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * [Output Only] URL of the resource policy which created this scheduled snapshot. * @param sourceSnapshotSchedulePolicy sourceSnapshotSchedulePolicy or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotSchedulePolicy) { @@ -1106,7 +1111,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicy(java. } /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * [Output Only] ID of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicyId() { @@ -1114,7 +1119,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * [Output Only] ID of the resource policy which created this scheduled snapshot. * @param sourceSnapshotSchedulePolicyId sourceSnapshotSchedulePolicyId or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapshotSchedulePolicyId) { @@ -1123,7 +1128,7 @@ public RecoverableSnapshotOriginalSnapshot setSourceSnapshotSchedulePolicyId(jav } /** - * Output only. [Output Only] A size of the storage used by the snapshot. + * [Output Only] A size of the storage used by the snapshot. * @return value or {@code null} for none */ public java.lang.Long getStorageBytes() { @@ -1131,7 +1136,7 @@ public java.lang.Long getStorageBytes() { } /** - * Output only. [Output Only] A size of the storage used by the snapshot. + * [Output Only] A size of the storage used by the snapshot. * @param storageBytes storageBytes or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setStorageBytes(java.lang.Long storageBytes) { @@ -1140,10 +1145,10 @@ public RecoverableSnapshotOriginalSnapshot setStorageBytes(java.lang.Long storag } /** - * 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. + * [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() { @@ -1151,10 +1156,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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 RecoverableSnapshotOriginalSnapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { @@ -1179,6 +1184,25 @@ public RecoverableSnapshotOriginalSnapshot setStorageLocations(java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * @param userLicenses userLicenses or {@code null} for none + */ + public RecoverableSnapshotOriginalSnapshot setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public RecoverableSnapshotOriginalSnapshot set(String fieldName, Object value) { return (RecoverableSnapshotOriginalSnapshot) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java index db743f6ac38..924e8061310 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reference.java @@ -30,7 +30,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * [Output Only] Type of the resource. Always compute#reference for references. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,7 +59,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * [Output Only] Type of the resource. Always compute#reference for references. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -67,7 +67,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java index 0e5dc0a5ba1..8eb5eb3fa8e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Region.java @@ -61,7 +61,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * [Output Only] Type of the resource. Always compute#region for regions. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,8 +75,8 @@ public final class Region extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -103,7 +103,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,7 +117,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,7 +199,7 @@ public Region setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * [Output Only] Type of the resource. Always compute#region for regions. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -207,7 +207,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * [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) { @@ -233,8 +233,8 @@ public Region setName(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. + * [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() { @@ -242,8 +242,8 @@ public QuotaStatusWarning getQuotaStatusWarning() { } /** - * 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. + * [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) { @@ -286,7 +286,7 @@ public Region setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -294,7 +294,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Region setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -320,7 +320,7 @@ public Region setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -328,7 +328,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Region setSupportsPzs(java.lang.Boolean supportsPzs) { @@ -364,8 +364,8 @@ public Region 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. + * [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 { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java index 551ddfd2ac0..2e556ab7d08 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -50,7 +50,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener 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 @@ -115,7 +115,7 @@ public RegionAutoscalerList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public RegionAutoscalerList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionAutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RegionAutoscalerList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java index 872032b6f03..75127baf46f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -50,8 +50,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. + * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic 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 @@ -116,8 +115,7 @@ public RegionDiskTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. + * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. + * [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) { @@ -158,7 +155,7 @@ public RegionDiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 RegionDiskTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionDiskUpdateKmsKeyRequest.java deleted file mode 100644 index f7c4db62a34..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java index 85740a56c46..05b7ebc0b41 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,38 +50,38 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.Ge } /** - * Output only. The resource type. + * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupList setItems(java.util.List items) { } /** - * Output only. The resource type. + * The resource type. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. The resource type. + * The resource type. * @param kind kind or {@code null} for none */ public RegionInstanceGroupList setKind(java.lang.String kind) { @@ -132,10 +132,10 @@ public RegionInstanceGroupList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -143,10 +143,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -155,7 +155,7 @@ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -163,7 +163,7 @@ 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 RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { @@ -172,7 +172,7 @@ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -180,7 +180,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupList setWarning(Warning warning) { @@ -199,7 +199,7 @@ public RegionInstanceGroupList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java index 5a070239603..92bdbe38b6c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client. } /** - * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList - * for a list of managed instance groups that exist in th regional scope. + * [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. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -116,8 +116,8 @@ public RegionInstanceGroupManagerList setItems(java.util.List unreachables; /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,7 +110,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setEtag(java.lang.St } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -119,7 +118,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -145,8 +144,8 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.L } /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * [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() { @@ -154,8 +153,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * [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) { @@ -164,10 +163,10 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.St } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -175,10 +174,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -187,7 +186,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(jav } /** - * 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() { @@ -195,7 +194,7 @@ 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 RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { @@ -204,8 +203,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lan } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java.util.List unreachables) { @@ -223,7 +220,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -231,7 +228,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { @@ -250,7 +247,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java deleted file mode 100644 index 059cdc52e7f..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.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.model; - -/** - * Model definition for RegionInstanceGroupManagersAdoptInstancesRequest. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class RegionInstanceGroupManagersAdoptInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of per-instance configs specifying instances to adopt. - * 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); - } - - /** - * The list of per-instance configs specifying instances to adopt. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The list of per-instance configs specifying instances to adopt. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersAdoptInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersAdoptInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersAdoptInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersAdoptInstancesRequest clone() { - return (RegionInstanceGroupManagersAdoptInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java index 0c52ac21058..7aa2fc902de 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java @@ -37,13 +37,6 @@ public final class RegionInstanceGroupManagersApplyUpdatesRequest extends com.go @com.google.api.client.util.Key private java.lang.Boolean allInstances; - /** - * Whether the boot disk is allowed to be updated with restart. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String disruptionMode; - /** * 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]. @@ -105,23 +98,6 @@ public RegionInstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang. return this; } - /** - * Whether the boot disk is allowed to be updated with restart. - * @return value or {@code null} for none - */ - public java.lang.String getDisruptionMode() { - return disruptionMode; - } - - /** - * Whether the boot disk is allowed to be updated with restart. - * @param disruptionMode disruptionMode or {@code null} for none - */ - public RegionInstanceGroupManagersApplyUpdatesRequest setDisruptionMode(java.lang.String disruptionMode) { - this.disruptionMode = disruptionMode; - 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]. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java index 1743aba53b2..c5415e1b6a4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListErrorsResponse extends com.goo } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List getItems() { @@ -68,7 +68,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] The list of PerInstanceConfig. + * [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { @@ -77,10 +77,10 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.Lis } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -88,10 +88,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -100,7 +100,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java. } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -108,7 +108,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { @@ -127,7 +127,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java index be961b62fc1..acfc0c7acca 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListInstancesResponse extends com. } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -81,10 +81,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java index 7830be72bea..74c56d2d388 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersResizeAdvancedRequest.java @@ -52,14 +52,6 @@ public final class RegionInstanceGroupManagersResizeAdvancedRequest extends com. @com.google.api.client.util.Key private java.lang.Boolean noCreationRetries; - /** - * If this flag is enabled within a request to decrease a MIG's target size, then the MIG declines - * that request. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean scaleInProtection; - /** * 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 @@ -118,25 +110,6 @@ public RegionInstanceGroupManagersResizeAdvancedRequest setNoCreationRetries(jav return this; } - /** - * If this flag is enabled within a request to decrease a MIG's target size, then the MIG declines - * that request. - * @return value or {@code null} for none - */ - public java.lang.Boolean getScaleInProtection() { - return scaleInProtection; - } - - /** - * If this flag is enabled within a request to decrease a MIG's target size, then the MIG declines - * that request. - * @param scaleInProtection scaleInProtection or {@code null} for none - */ - public RegionInstanceGroupManagersResizeAdvancedRequest setScaleInProtection(java.lang.Boolean scaleInProtection) { - this.scaleInProtection = scaleInProtection; - 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 diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java index aefcae26d51..dac1f439e48 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,38 +50,38 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.clie } /** - * Output only. The resource type. + * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupsListInstances setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * [Output Only] Type of resource. Always compute#regionList for lists of regions. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * [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) { @@ -155,7 +155,7 @@ public RegionList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RegionList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java index f55221c5cee..ee278d6de38 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -30,9 +30,9 @@ 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. + * [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 @@ -52,9 +52,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ex } /** - * 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. + * [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() { @@ -62,9 +62,9 @@ public java.util.List firewallPolicys) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 8ee047a1277..c87245ab60e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -31,21 +31,21 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The display name of the firewall policy. + * [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. + * [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. + * [Output only] The packet mirroring rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,15 +58,14 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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. + * [Output only] The rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +78,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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}. */ @@ -87,7 +86,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff private java.lang.String type; /** - * Output only. [Output Only] The display name of the firewall policy. + * [Output Only] The display name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -95,7 +94,7 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] The display name of the firewall policy. + * [Output Only] The display name of the firewall policy. * @param displayName displayName or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { @@ -104,7 +103,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -112,7 +111,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -121,7 +120,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output only] The packet mirroring rules that apply to the network. + * [Output only] The packet mirroring rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -129,7 +128,7 @@ public java.util.List getPacketMirroringRules() { } /** - * Output only. [Output only] The packet mirroring rules that apply to the network. + * [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) { @@ -138,8 +137,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -147,8 +145,7 @@ public java.lang.Integer getPriority() { } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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) { @@ -157,7 +154,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output only] The rules that apply to the network. + * [Output only] The rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getRules() { @@ -165,7 +162,7 @@ public java.util.List getRules() { } /** - * Output only. [Output only] The rules that apply to the network. + * [Output only] The rules that apply to the network. * @param rules rules or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { @@ -174,7 +171,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ @@ -183,7 +180,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionSnapshotUpdateKmsKeyRequest.java deleted file mode 100644 index 2f071521139..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java index f7c85ad355e..41ed5c7ad76 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java @@ -30,7 +30,7 @@ public final class ReliabilityRisk extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class ReliabilityRisk extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability - * risks. + * [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,21 +79,21 @@ public final class ReliabilityRisk extends com.google.api.client.json.GenericJso private RiskRecommendation recommendation; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -102,7 +101,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReliabilityRisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -162,8 +161,7 @@ public ReliabilityRisk setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability - * risks. + * [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -171,8 +169,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability - * risks. + * [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) { @@ -215,7 +212,7 @@ public ReliabilityRisk setRecommendation(RiskRecommendation recommendation) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -223,7 +220,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public ReliabilityRisk setSelfLink(java.lang.String selfLink) { @@ -232,7 +229,7 @@ public ReliabilityRisk setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -240,7 +237,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java index 17bc9acfb9f..2758ad2cd74 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java @@ -66,15 +66,14 @@ public final class ReliabilityRisksListResponse extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public ReliabilityRisksListResponse setNextPageToken(java.lang.String nextPageTo } /** - * 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,7 +167,7 @@ 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 ReliabilityRisksListResponse setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public ReliabilityRisksListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public ReliabilityRisksListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java index f6548290836..05bb117f066 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDetails.java @@ -30,23 +30,23 @@ public final class ReplicationDetails extends com.google.api.client.json.GenericJson { /** - * Output only. The last sync time of the device pair. + * The last sync time of the device pair. * The value may be {@code null}. */ @com.google.api.client.util.Key private String lastReplicationTime; /** - * Output only. Replication lag in seconds. This will only be populated if device is in - * replicating state. Note that the value is calculated sometime during request processing and at - * the instant the client receives the response, the current replication_lag may have changed. + * Replication lag in seconds. This will only be populated if device is in replicating state. Note + * that the value is calculated sometime during request processing and at the instant the client + * receives the response, the current replication_lag may have changed. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long secondsSinceLastReplication; /** - * Output only. The last sync time of the device pair. + * The last sync time of the device pair. * @return value or {@code null} for none */ public String getLastReplicationTime() { @@ -54,7 +54,7 @@ public String getLastReplicationTime() { } /** - * Output only. The last sync time of the device pair. + * The last sync time of the device pair. * @param lastReplicationTime lastReplicationTime or {@code null} for none */ public ReplicationDetails setLastReplicationTime(String lastReplicationTime) { @@ -63,9 +63,9 @@ public ReplicationDetails setLastReplicationTime(String lastReplicationTime) { } /** - * Output only. Replication lag in seconds. This will only be populated if device is in - * replicating state. Note that the value is calculated sometime during request processing and at - * the instant the client receives the response, the current replication_lag may have changed. + * Replication lag in seconds. This will only be populated if device is in replicating state. Note + * that the value is calculated sometime during request processing and at the instant the client + * receives the response, the current replication_lag may have changed. * @return value or {@code null} for none */ public java.lang.Long getSecondsSinceLastReplication() { @@ -73,9 +73,9 @@ public java.lang.Long getSecondsSinceLastReplication() { } /** - * Output only. Replication lag in seconds. This will only be populated if device is in - * replicating state. Note that the value is calculated sometime during request processing and at - * the instant the client receives the response, the current replication_lag may have changed. + * Replication lag in seconds. This will only be populated if device is in replicating state. Note + * that the value is calculated sometime during request processing and at the instant the client + * receives the response, the current replication_lag may have changed. * @param secondsSinceLastReplication secondsSinceLastReplication or {@code null} for none */ public ReplicationDetails setSecondsSinceLastReplication(java.lang.Long secondsSinceLastReplication) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java index e80ee86e5c6..efcc7ad1581 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReplicationDiskPair.java @@ -30,21 +30,21 @@ public final class ReplicationDiskPair extends com.google.api.client.json.GenericJson { /** - * Output only. URL of the primary disk. + * URL of the primary disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String primaryDisk; /** - * Output only. URL of the secondary disk. + * URL of the secondary disk. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String secondaryDisk; /** - * Output only. URL of the primary disk. + * URL of the primary disk. * @return value or {@code null} for none */ public java.lang.String getPrimaryDisk() { @@ -52,7 +52,7 @@ public java.lang.String getPrimaryDisk() { } /** - * Output only. URL of the primary disk. + * URL of the primary disk. * @param primaryDisk primaryDisk or {@code null} for none */ public ReplicationDiskPair setPrimaryDisk(java.lang.String primaryDisk) { @@ -61,7 +61,7 @@ public ReplicationDiskPair setPrimaryDisk(java.lang.String primaryDisk) { } /** - * Output only. URL of the secondary disk. + * URL of the secondary disk. * @return value or {@code null} for none */ public java.lang.String getSecondaryDisk() { @@ -69,7 +69,7 @@ public java.lang.String getSecondaryDisk() { } /** - * Output only. URL of the secondary disk. + * URL of the secondary disk. * @param secondaryDisk secondaryDisk or {@code null} for none */ public ReplicationDiskPair setSecondaryDisk(java.lang.String secondaryDisk) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java index 3bb1735708f..de51d7df2ca 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -46,21 +46,15 @@ public final class Reservation extends com.google.api.client.json.GenericJson { 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,15 +90,6 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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. @@ -114,23 +99,22 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableEmergentMaintenance; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [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. + * [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 @@ -147,14 +131,6 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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). @@ -164,7 +140,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String protectionTier; /** - * Output only. [Output only] Indicates the reservation mode of the reservation. + * [Output only] Indicates the reservation mode of the reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -187,14 +163,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.util.Map resourcePolicies; /** - * Output only. [Output Only] Status information for Reservation resource. + * [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. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -208,14 +184,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String schedulingType; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -247,10 +223,10 @@ public final class Reservation extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -299,8 +275,8 @@ public Reservation setAggregateReservation(AllocationAggregateReservation aggreg } /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. + * [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() { @@ -308,8 +284,8 @@ public java.lang.String getCommitment() { } /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. + * [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) { @@ -318,22 +294,7 @@ public Reservation setCommitment(java.lang.String commitment) { } /** - * @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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -341,7 +302,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -421,27 +382,6 @@ public Reservation setDescription(java.lang.String 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. @@ -462,8 +402,7 @@ public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergent } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -471,8 +410,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -481,7 +419,7 @@ public Reservation setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -489,7 +427,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * [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) { @@ -498,8 +436,8 @@ public Reservation setKind(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. + * [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() { @@ -507,8 +445,8 @@ public java.util.List getLinkedCommitments() { } /** - * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for - * reservations that are tied to multiple commitments. + * [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) { @@ -541,25 +479,6 @@ public Reservation setName(java.lang.String 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). @@ -580,7 +499,7 @@ public Reservation setProtectionTier(java.lang.String protectionTier) { } /** - * Output only. [Output only] Indicates the reservation mode of the reservation. + * [Output only] Indicates the reservation mode of the reservation. * @return value or {@code null} for none */ public java.lang.String getReservationMode() { @@ -588,7 +507,7 @@ public java.lang.String getReservationMode() { } /** - * Output only. [Output only] Indicates the reservation mode of the reservation. + * [Output only] Indicates the reservation mode of the reservation. * @param reservationMode reservationMode or {@code null} for none */ public Reservation setReservationMode(java.lang.String reservationMode) { @@ -635,7 +554,7 @@ public Reservation setResourcePolicies(java.util.Map r } /** - * Output only. [Output Only] Status information for Reservation resource. + * [Output Only] Status information for Reservation resource. * @return value or {@code null} for none */ public AllocationResourceStatus getResourceStatus() { @@ -643,7 +562,7 @@ public AllocationResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for Reservation resource. + * [Output Only] Status information for Reservation resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { @@ -652,7 +571,7 @@ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -660,7 +579,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -686,7 +605,7 @@ public Reservation setSchedulingType(java.lang.String schedulingType) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -694,7 +613,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -703,7 +622,7 @@ public Reservation setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -711,7 +630,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Reservation setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -779,10 +698,10 @@ public Reservation setSpecificReservationRequired(java.lang.Boolean specificRese } /** - * 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. + * [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() { @@ -790,10 +709,10 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java index 481d5487015..b89fe21e167 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -44,7 +44,7 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ReservationAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ReservationAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ReservationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index aa570b1a944..a4c5eb91439 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,71 +30,67 @@ 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. + * [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. + * [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. + * [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. + * [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. + * [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. + * 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. + * [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] Obfuscated location where this reservation block physically resides - * in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. - * Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 + * [Output Only] Obfuscated location where this reservation block physically resides in format + * /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: + * /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String locationPrefix; /** - * 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 + * [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}. */ @@ -102,66 +98,64 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * Output only. [Output Only] The physical topology of the reservation block. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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() { @@ -169,8 +163,7 @@ public java.lang.Integer getCount() { } /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. + * [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) { @@ -179,7 +172,7 @@ public ReservationBlock setCount(java.lang.Integer count) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -187,7 +180,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -196,7 +189,7 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) } /** - * Output only. [Output Only] Health information for the reservation block. + * [Output Only] Health information for the reservation block. * @return value or {@code null} for none */ public ReservationBlockHealthInfo getHealthInfo() { @@ -204,7 +197,7 @@ public ReservationBlockHealthInfo getHealthInfo() { } /** - * Output only. [Output Only] Health information for the reservation block. + * [Output Only] Health information for the reservation block. * @param healthInfo healthInfo or {@code null} for none */ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { @@ -213,8 +206,7 @@ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -222,8 +214,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -232,8 +223,7 @@ public ReservationBlock setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation block. + * [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() { @@ -241,8 +231,7 @@ public java.lang.Integer getInUseCount() { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation block. + * [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) { @@ -251,8 +240,8 @@ public ReservationBlock setInUseCount(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. + * 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() { @@ -260,8 +249,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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) { @@ -270,8 +259,7 @@ public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. + * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -279,8 +267,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. + * [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) { @@ -289,9 +276,9 @@ public ReservationBlock setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Obfuscated location where this reservation block physically resides - * in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. - * Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 + * [Output Only] Obfuscated location where this reservation block physically resides in format + * /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: + * /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 * @return value or {@code null} for none */ public java.lang.String getLocationPrefix() { @@ -299,9 +286,9 @@ public java.lang.String getLocationPrefix() { } /** - * Output only. [Output Only] Obfuscated location where this reservation block physically resides - * in format /CCCC/GGGG. This matches the tripod specified in the VM topology information. - * Example: /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 + * [Output Only] Obfuscated location where this reservation block physically resides in format + * /CCCC/GGGG. This matches the tripod specified in the VM topology information. Example: + * /USEAB1/0101/ is the location prefix in /USEAB1/0101/031/003 * @param locationPrefix locationPrefix or {@code null} for none */ public ReservationBlock setLocationPrefix(java.lang.String locationPrefix) { @@ -310,8 +297,8 @@ public ReservationBlock setLocationPrefix(java.lang.String locationPrefix) { } /** - * 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 + * [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 */ @@ -320,8 +307,8 @@ public java.lang.String getName() { } /** - * 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 + * [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 */ @@ -331,7 +318,7 @@ public ReservationBlock setName(java.lang.String name) { } /** - * Output only. [Output Only] The physical topology of the reservation block. + * [Output Only] The physical topology of the reservation block. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopology getPhysicalTopology() { @@ -339,7 +326,7 @@ public ReservationBlockPhysicalTopology getPhysicalTopology() { } /** - * Output only. [Output Only] The physical topology of the reservation block. + * [Output Only] The physical topology of the reservation block. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { @@ -348,7 +335,7 @@ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology phy } /** - * Output only. [Output Only] Maintenance information for this reservation block. + * [Output Only] Maintenance information for this reservation block. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationMaintenance() { @@ -356,7 +343,7 @@ public GroupMaintenanceInfo getReservationMaintenance() { } /** - * Output only. [Output Only] Maintenance information for this reservation block. + * [Output Only] Maintenance information for this reservation block. * @param reservationMaintenance reservationMaintenance or {@code null} for none */ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { @@ -365,8 +352,7 @@ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservati } /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. + * [Output Only] The number of reservation subBlocks associated with this reservation block. * @return value or {@code null} for none */ public java.lang.Integer getReservationSubBlockCount() { @@ -374,8 +360,7 @@ public java.lang.Integer getReservationSubBlockCount() { } /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. + * [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) { @@ -384,8 +369,8 @@ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservatio } /** - * 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. + * [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() { @@ -393,8 +378,8 @@ public java.lang.Integer getReservationSubBlockInUseCount() { } /** - * 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. + * [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) { @@ -403,7 +388,7 @@ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reser } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -411,7 +396,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -420,7 +405,7 @@ public ReservationBlock setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -428,7 +413,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -437,7 +422,7 @@ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] Status of the reservation block. + * [Output Only] Status of the reservation block. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -445,7 +430,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] Status of the reservation block. + * [Output Only] Status of the reservation block. * @param status status or {@code null} for none */ public ReservationBlock setStatus(java.lang.String status) { @@ -454,7 +439,7 @@ public ReservationBlock setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Zone in which the reservation block resides. + * [Output Only] Zone in which the reservation block resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -462,7 +447,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] Zone in which the reservation block resides. + * [Output Only] Zone in which the reservation block resides. * @param zone zone or {@code null} for none */ public ReservationBlock setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java index b51a80d1123..53e85cffd67 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -44,7 +44,7 @@ public final class ReservationBlockPhysicalTopology extends com.google.api.clien private java.lang.String cluster; /** - * Output only. The detailed instances information for a given Block + * The detailed instances information for a given Block * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,7 @@ public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { } /** - * Output only. The detailed instances information for a given Block + * The detailed instances information for a given Block * @return value or {@code null} for none */ public java.util.List getInstances() { @@ -93,7 +93,7 @@ public java.util.List getInstances() { } /** - * Output only. The detailed instances information for a given Block + * The detailed instances information for a given Block * @param instances instances or {@code null} for none */ public ReservationBlockPhysicalTopology setInstances(java.util.List instances) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java index 74bbbacca30..bca68a5e4f5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -37,7 +37,7 @@ public final class ReservationBlockPhysicalTopologyInstance extends com.google.a private java.math.BigInteger instanceId; /** - * Output only. The PhysicalHostTopology of instances within a Block resource. + * The PhysicalHostTopology of instances within a Block resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteg } /** - * Output only. The PhysicalHostTopology of instances within a Block resource. + * The PhysicalHostTopology of instances within a Block resource. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { @@ -76,7 +76,7 @@ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalH } /** - * Output only. The PhysicalHostTopology of instances within a Block resource. + * The PhysicalHostTopology of instances within a Block resource. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java index 0bad0666237..b036cd71a72 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -50,8 +50,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso } /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations + * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso 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 @@ -116,8 +115,7 @@ public ReservationList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations + * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations + * [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) { @@ -158,7 +155,7 @@ public ReservationList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 ReservationList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationParams.java deleted file mode 100644 index 30f762638ba..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlot.java deleted file mode 100644 index 9429017cf3c..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java deleted file mode 100644 index a5343db9f74..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java deleted file mode 100644 index 070a4f2ac91..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java deleted file mode 100644 index b83cc08701f..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java deleted file mode 100644 index f00c0534eda..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java deleted file mode 100644 index 9a5b6a712ab..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 7e39ffbcc94..9ae87d6d051 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -30,68 +30,66 @@ public final class ReservationSubBlock extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Slice info for the reservation subBlock. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * 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. + * [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 + * [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}. */ @@ -99,49 +97,49 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi private java.lang.String name; /** - * Output only. [Output Only] The physical topology of the reservation subBlock. + * [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. + * 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. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Slice info for the reservation subBlock. * @return value or {@code null} for none */ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { @@ -149,7 +147,7 @@ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { } /** - * Output only. [Output Only] Slice info for the reservation subBlock. + * [Output Only] Slice info for the reservation subBlock. * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none */ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { @@ -158,7 +156,7 @@ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInf } /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * [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() { @@ -166,7 +164,7 @@ public java.lang.Integer getCount() { } /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * [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) { @@ -175,7 +173,7 @@ public ReservationSubBlock setCount(java.lang.Integer count) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -183,7 +181,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -192,7 +190,7 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta } /** - * Output only. [Output Only] Health information for the reservation subBlock. + * [Output Only] Health information for the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockHealthInfo getHealthInfo() { @@ -200,7 +198,7 @@ public ReservationSubBlockHealthInfo getHealthInfo() { } /** - * Output only. [Output Only] Health information for the reservation subBlock. + * [Output Only] Health information for the reservation subBlock. * @param healthInfo healthInfo or {@code null} for none */ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { @@ -209,8 +207,7 @@ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInf } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -218,8 +215,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -228,8 +224,7 @@ public ReservationSubBlock setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation subBlock. + * [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() { @@ -237,8 +232,7 @@ public java.lang.Integer getInUseCount() { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation subBlock. + * [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) { @@ -247,8 +241,8 @@ public ReservationSubBlock setInUseCount(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. + * 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() { @@ -256,8 +250,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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) { @@ -266,8 +260,8 @@ public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. + * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation + * subBlocks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -275,8 +269,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. + * [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) { @@ -285,8 +279,8 @@ public ReservationSubBlock setKind(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 + * [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 */ @@ -295,8 +289,8 @@ public java.lang.String getName() { } /** - * 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 + * [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 */ @@ -306,7 +300,7 @@ public ReservationSubBlock setName(java.lang.String name) { } /** - * Output only. [Output Only] The physical topology of the reservation subBlock. + * [Output Only] The physical topology of the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { @@ -314,7 +308,7 @@ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { } /** - * Output only. [Output Only] The physical topology of the reservation subBlock. + * [Output Only] The physical topology of the reservation subBlock. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { @@ -323,7 +317,7 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo } /** - * Output only. Maintenance information for this reservation subBlock. + * Maintenance information for this reservation subBlock. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { @@ -331,7 +325,7 @@ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { } /** - * Output only. Maintenance information for this reservation subBlock. + * Maintenance information for this reservation subBlock. * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none */ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { @@ -340,7 +334,7 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -348,7 +342,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -357,7 +351,7 @@ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -365,7 +359,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -374,7 +368,7 @@ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] Status of the reservation subBlock. + * [Output Only] Status of the reservation subBlock. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -382,7 +376,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] Status of the reservation subBlock. + * [Output Only] Status of the reservation subBlock. * @param status status or {@code null} for none */ public ReservationSubBlock setStatus(java.lang.String status) { @@ -391,7 +385,7 @@ public ReservationSubBlock setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. + * [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -399,7 +393,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. + * [Output Only] Zone in which the reservation subBlock resides. * @param zone zone or {@code null} for none */ public ReservationSubBlock setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java deleted file mode 100644 index f10458f7bb3..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java index 4edc694b687..c133485b98f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -31,7 +31,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -73,8 +72,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. + * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,21 +96,21 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private java.lang.String region; /** - * Output only. [Output Only] The system status of the resource policy. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,7 +124,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; /** - * Output only. [Output Only] The status of resource policy creation. + * [Output Only] The status of resource policy creation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -147,7 +145,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyWorkloadPolicy workloadPolicy; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -155,7 +153,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -213,8 +211,7 @@ public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -222,8 +219,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -249,8 +245,7 @@ public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePo } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. + * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -258,8 +253,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. + * [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) { @@ -308,7 +302,7 @@ public ResourcePolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] The system status of the resource policy. + * [Output Only] The system status of the resource policy. * @return value or {@code null} for none */ public ResourcePolicyResourceStatus getResourceStatus() { @@ -316,7 +310,7 @@ public ResourcePolicyResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] The system status of the resource policy. + * [Output Only] The system status of the resource policy. * @param resourceStatus resourceStatus or {@code null} for none */ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { @@ -325,7 +319,7 @@ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceSta } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -333,7 +327,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -342,7 +336,7 @@ public ResourcePolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -350,7 +344,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public ResourcePolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -376,7 +370,7 @@ public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePo } /** - * Output only. [Output Only] The status of resource policy creation. + * [Output Only] The status of resource policy creation. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -384,7 +378,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of resource policy creation. + * [Output Only] The status of resource policy creation. * @param status status or {@code null} for none */ public ResourcePolicy setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java index 50b94076f75..62d0b0d5449 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -56,7 +56,7 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,14 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,7 @@ public ResourcePolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ResourcePolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java index a23209854dd..3bdee011222 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -38,8 +38,8 @@ public final class ResourcePolicyDailyCycle extends com.google.api.client.json.G 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. + * [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 @@ -73,8 +73,8 @@ public ResourcePolicyDailyCycle setDaysInCycle(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. + * [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() { @@ -82,8 +82,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java index 7bc231a7392..344c0e6dd69 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -30,8 +30,8 @@ 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. + * [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 @@ -54,8 +54,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json. private java.lang.String startTime; /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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() { @@ -63,8 +63,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java index 495e033dbc4..0e74d741445 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -56,8 +56,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies + * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,7 +73,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic 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 @@ -137,8 +136,7 @@ public ResourcePolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies + * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -146,8 +144,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies + * [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) { @@ -179,7 +176,7 @@ public ResourcePolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -187,7 +184,7 @@ 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 ResourcePolicyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java index 530e452effd..0d0dcd61a5e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -32,18 +32,16 @@ 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. + * [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. + * [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() { @@ -51,9 +49,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSched } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java index 4a6a22e20dd..ee231f26daa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -30,24 +30,22 @@ 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. + * [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. + * [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. + * [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() { @@ -55,8 +53,7 @@ public java.lang.String getLastRunStartTime() { } /** - * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an - * RFC3339 string. + * [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) { @@ -65,8 +62,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartT } /** - * 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. + * [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() { @@ -74,8 +71,8 @@ public java.lang.String getNextRunStartTime() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java index 620437c3886..c95509acb7f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -39,8 +39,8 @@ public final class ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.cli private java.lang.String day; /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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 @@ -76,8 +76,8 @@ public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { } /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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() { @@ -85,8 +85,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index df85a48697c..02e54b248be 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -31,67 +31,64 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Accelerators status show results of GPU scans. These scans are - * specialized diagnostic tests designed to uncover latent manufacturing defects or other issues - * that could potentially lead to data corruption or impede the customer's ability to efficiently - * execute GPU workloads. + * [Output Only] Accelerators status show results of GPU scans. These scans are specialized + * diagnostic tests designed to uncover latent manufacturing defects or other issues that could + * potentially lead to data corruption or impede the customer's ability to efficiently execute GPU + * workloads. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List acceleratorStatus; /** - * Output only. [Output Only] The full resource name of the reservation that this instance is - * consuming from. + * [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. + * [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] 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. + * [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] Contains last termination details why the instance was terminated. + * [Output Only] Contains last termination details why the instance was terminated. * The value may be {@code null}. */ @com.google.api.client.util.Key private ResourceStatusLastInstanceTerminationDetails lastInstanceTerminationDetails; /** - * 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. + * [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. + * [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. + * [Output Only] Reservation information that the instance is consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,7 +109,7 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private java.util.Map serviceIntegrationStatuses; /** - * Output only. [Output Only] Details about the instance stopping state. + * [Output Only] Details about the instance stopping state. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,10 +122,10 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private UpcomingMaintenance upcomingMaintenance; /** - * Output only. [Output Only] Accelerators status show results of GPU scans. These scans are - * specialized diagnostic tests designed to uncover latent manufacturing defects or other issues - * that could potentially lead to data corruption or impede the customer's ability to efficiently - * execute GPU workloads. + * [Output Only] Accelerators status show results of GPU scans. These scans are specialized + * diagnostic tests designed to uncover latent manufacturing defects or other issues that could + * potentially lead to data corruption or impede the customer's ability to efficiently execute GPU + * workloads. * @return value or {@code null} for none */ public java.util.List getAcceleratorStatus() { @@ -136,10 +133,10 @@ public java.util.List getAcceleratorStatus() { } /** - * Output only. [Output Only] Accelerators status show results of GPU scans. These scans are - * specialized diagnostic tests designed to uncover latent manufacturing defects or other issues - * that could potentially lead to data corruption or impede the customer's ability to efficiently - * execute GPU workloads. + * [Output Only] Accelerators status show results of GPU scans. These scans are specialized + * diagnostic tests designed to uncover latent manufacturing defects or other issues that could + * potentially lead to data corruption or impede the customer's ability to efficiently execute GPU + * workloads. * @param acceleratorStatus acceleratorStatus or {@code null} for none */ public ResourceStatus setAcceleratorStatus(java.util.List acceleratorStatus) { @@ -148,8 +145,7 @@ public ResourceStatus setAcceleratorStatus(java.util.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: @@ -47,7 +44,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String completionTime; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,15 +72,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String etag; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#rollout for rollouts. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -100,20 +96,6 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @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}. @@ -130,14 +112,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String rolloutPlan; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,7 +174,7 @@ public Rollout setCompletionTime(java.lang.String completionTime) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -200,7 +182,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Rollout setCreationTimestamp(java.lang.String creationTimestamp) { @@ -260,8 +242,7 @@ public Rollout setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -269,8 +250,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -279,7 +259,7 @@ public Rollout setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. + * [Output Only] Type of the resource. Always compute#rollout for rollouts. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -287,7 +267,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. + * [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) { @@ -320,40 +300,6 @@ public Rollout setName(java.lang.String 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 @@ -391,7 +337,7 @@ public Rollout setRolloutPlan(java.lang.String rolloutPlan) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -399,7 +345,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -408,7 +354,7 @@ public Rollout setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -416,7 +362,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java index 712a6961446..c24af287777 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlan.java @@ -17,11 +17,7 @@ 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. + * Message describing RolloutPlan 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: @@ -34,7 +30,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -48,15 +44,14 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +77,14 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,7 +98,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.util.List waves; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -111,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RolloutPlan setCreationTimestamp(java.lang.String creationTimestamp) { @@ -137,8 +132,7 @@ public RolloutPlan setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -146,8 +140,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -156,7 +149,7 @@ public RolloutPlan setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -164,7 +157,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * [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) { @@ -217,7 +210,7 @@ public RolloutPlan setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -225,7 +218,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -234,7 +227,7 @@ public RolloutPlan setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -242,7 +235,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java index 88f9bd42c32..beb3942d8a9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java @@ -66,15 +66,14 @@ public final class RolloutPlansListResponse 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public RolloutPlansListResponse setNextPageToken(java.lang.String nextPageToken) } /** - * 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,7 +167,7 @@ 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 RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutPlansListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java index a7b6ac697b0..7dd72f4b0fa 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetails.java @@ -36,14 +36,6 @@ public final class RolloutWaveDetailsOrchestratedWaveDetails extends com.google. @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}. @@ -67,14 +59,6 @@ public final class RolloutWaveDetailsOrchestratedWaveDetails extends com.google. @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 @@ -92,25 +76,6 @@ public RolloutWaveDetailsOrchestratedWaveDetails setCompletedResourcesCount(java 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 @@ -166,25 +131,6 @@ public RolloutWaveDetailsOrchestratedWaveDetails setFailedResourcesCount(java.la 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); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutWaveDetailsOrchestratedWaveDetailsLocationStatus.java deleted file mode 100644 index 8bd3d4af3f0..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java index c49f5389511..9c0deff71b3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java @@ -66,15 +66,14 @@ public final class RolloutsListResponse extends com.google.api.client.json.Gener 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public RolloutsListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * 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,7 +167,7 @@ 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 RolloutsListResponse setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public RolloutsListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java index 469316e566e..9ad3cd86ca9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Route.java @@ -43,14 +43,14 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.Boolean allowConflictingSubnetworks; /** - * Output only. [Output Only] AS path. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,8 +73,7 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String destRange; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -89,7 +88,7 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String ilbRouteBehaviorOnUnhealthy; /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * [Output Only] Type of this resource. Always compute#routes for Route resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +122,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopGateway; /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. + * [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 @@ -157,18 +156,17 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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 @@ -186,8 +184,8 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -201,16 +199,16 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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 @@ -242,18 +240,18 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [Output only] The status of the route. This status only applies to dynamic routes learned by + * Cloud Routers. This status is not applicable to static routes. * 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 + * [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 @@ -267,7 +265,7 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -281,8 +279,8 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -316,7 +314,7 @@ public Route setAllowConflictingSubnetworks(java.lang.Boolean allowConflictingSu } /** - * Output only. [Output Only] AS path. + * [Output Only] AS path. * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -324,7 +322,7 @@ public java.util.List getAsPaths() { } /** - * Output only. [Output Only] AS path. + * [Output Only] AS path. * @param asPaths asPaths or {@code null} for none */ public Route setAsPaths(java.util.List asPaths) { @@ -333,7 +331,7 @@ public Route setAsPaths(java.util.List asPaths) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -341,7 +339,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Route setCreationTimestamp(java.lang.String creationTimestamp) { @@ -388,8 +386,7 @@ public Route setDestRange(java.lang.String destRange) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -397,8 +394,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -426,7 +422,7 @@ public Route setIlbRouteBehaviorOnUnhealthy(java.lang.String ilbRouteBehaviorOnU } /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * [Output Only] Type of this resource. Always compute#routes for Route resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -434,7 +430,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * [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) { @@ -506,8 +502,8 @@ public Route setNextHopGateway(java.lang.String nextHopGateway) { } /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. + * [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() { @@ -515,8 +511,8 @@ public java.lang.String getNextHopHub() { } /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. + * [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) { @@ -583,9 +579,8 @@ public Route setNextHopInstance(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. + * [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() { @@ -593,9 +588,8 @@ public java.lang.Long getNextHopInterRegionCost() { } /** - * 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. + * [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) { @@ -604,9 +598,9 @@ public Route setNextHopInterRegionCost(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. + * [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() { @@ -614,9 +608,9 @@ public java.lang.String getNextHopInterconnectAttachment() { } /** - * 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. + * [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) { @@ -650,8 +644,8 @@ public Route setNextHopIp(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. + * [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() { @@ -659,8 +653,8 @@ public java.lang.Long getNextHopMed() { } /** - * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the - * desirability of a particular route in a network. + * [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) { @@ -686,8 +680,8 @@ public Route setNextHopNetwork(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. + * [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() { @@ -695,8 +689,8 @@ public java.lang.String getNextHopOrigin() { } /** - * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway - * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + * [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) { @@ -705,8 +699,8 @@ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { } /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. + * [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() { @@ -714,8 +708,8 @@ public java.lang.String getNextHopPeering() { } /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. + * [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) { @@ -783,8 +777,8 @@ public Route setPriority(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. + * [Output only] The status of the route. This status only applies to dynamic routes learned by + * Cloud Routers. This status is not applicable to static routes. * @return value or {@code null} for none */ public java.lang.String getRouteStatus() { @@ -792,8 +786,8 @@ public java.lang.String getRouteStatus() { } /** - * [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. + * [Output only] The status of the route. This status only applies to dynamic routes learned by + * Cloud Routers. This status is not applicable to static routes. * @param routeStatus routeStatus or {@code null} for none */ public Route setRouteStatus(java.lang.String routeStatus) { @@ -802,10 +796,10 @@ public Route setRouteStatus(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 + * [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() { @@ -813,10 +807,10 @@ public java.lang.String getRouteType() { } /** - * 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 + * [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) { @@ -842,7 +836,7 @@ public Route setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -850,7 +844,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Route setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -876,8 +870,8 @@ public Route setTags(java.util.List tags) { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. + * [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() { @@ -885,8 +879,8 @@ public java.util.List getWarnings() { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java index cd5b56ea9e0..9052a3d434e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -50,7 +50,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public RouteList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public RouteList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouteList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RouteList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java index a418e5f4ecc..763be891a01 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Router.java @@ -48,7 +48,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List bgpPeers; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List interfaces; /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -158,7 +158,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -203,7 +203,7 @@ public Router setBgpPeers(java.util.List bgpPeers) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -211,7 +211,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Router setCreationTimestamp(java.lang.String creationTimestamp) { @@ -300,7 +300,7 @@ public Router setInterfaces(java.util.List interfaces) { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -308,7 +308,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [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) { @@ -465,7 +465,7 @@ public Router setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -473,7 +473,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Router setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java index db21c3e9216..307e0afc33c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -44,7 +44,7 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public RouterAggregatedList setItems(java.util.Map it } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public RouterAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public RouterAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -164,7 +164,7 @@ 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 RouterAggregatedList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RouterAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java index 44e993f198c..b96bcaed7d8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -175,12 +175,12 @@ public final class RouterBgpPeer extends com.google.api.client.json.GenericJson private java.lang.String linkedCustomHardware; /** - * 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. + * [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 @@ -573,12 +573,12 @@ public RouterBgpPeer setLinkedCustomHardware(java.lang.String linkedCustomHardwa } /** - * 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. + * [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() { @@ -586,12 +586,12 @@ public java.lang.String getManagementType() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java index 779d4921d86..93e8c4c2c42 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -69,12 +69,12 @@ public final class RouterInterface extends com.google.api.client.json.GenericJso 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. + * [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 @@ -214,12 +214,12 @@ public RouterInterface setLinkedVpnTunnel(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. + * [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() { @@ -227,12 +227,12 @@ public java.lang.String getManagementType() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java index 95df0e9398e..6f5d8bad44d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -50,7 +50,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public RouterList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [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) { @@ -155,7 +155,7 @@ public RouterList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RouterList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java index 5f19258d4f0..05cdc558e85 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -49,44 +49,42 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private BfdStatus bfdStatus; /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. + * 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. + * 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. + * 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. + * 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. + * 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. The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This + * The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This * CustomHardwareLinkAttachment resource is the one that will establish the BGP session from the * Cloud Router. * The value may be {@code null}. @@ -95,7 +93,7 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.String linkedCustomHardware; /** - * Output only. URL of the VPN tunnel that this BGP peer controls. + * URL of the VPN tunnel that this BGP peer controls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,59 +107,59 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.Boolean md5AuthEnabled; /** - * Output only. Name of this BGP peer. Unique within the Routers resource. + * 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. + * 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. + * 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. + * 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. + * 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. + * [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 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} + * Status of the BGP peer: {UP, DOWN} * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -175,15 +173,15 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. 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 + * 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 + * Time this session has been up, in seconds. Format: 145 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -222,8 +220,7 @@ public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { } /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. + * 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() { @@ -231,8 +228,7 @@ public java.lang.Boolean getEnableIpv4() { } /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. + * 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) { @@ -241,8 +237,7 @@ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { } /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. + * 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() { @@ -250,8 +245,7 @@ public java.lang.Boolean getEnableIpv6() { } /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. + * 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) { @@ -260,7 +254,7 @@ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { } /** - * Output only. IP address of the local BGP interface. + * IP address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -268,7 +262,7 @@ public java.lang.String getIpAddress() { } /** - * Output only. IP address of the local BGP interface. + * IP address of the local BGP interface. * @param ipAddress ipAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { @@ -277,7 +271,7 @@ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { } /** - * Output only. IPv4 address of the local BGP interface. + * IPv4 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv4NexthopAddress() { @@ -285,7 +279,7 @@ public java.lang.String getIpv4NexthopAddress() { } /** - * Output only. IPv4 address of the local BGP interface. + * IPv4 address of the local BGP interface. * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { @@ -294,7 +288,7 @@ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4Next } /** - * Output only. IPv6 address of the local BGP interface. + * IPv6 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv6NexthopAddress() { @@ -302,7 +296,7 @@ public java.lang.String getIpv6NexthopAddress() { } /** - * Output only. IPv6 address of the local BGP interface. + * IPv6 address of the local BGP interface. * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { @@ -311,7 +305,7 @@ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6Next } /** - * Output only. The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This + * The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This * CustomHardwareLinkAttachment resource is the one that will establish the BGP session from the * Cloud Router. * @return value or {@code null} for none @@ -321,7 +315,7 @@ public java.lang.String getLinkedCustomHardware() { } /** - * Output only. The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This + * The URI of the linked custom hardware resource, CustomHardwareLinkAttachment. This * CustomHardwareLinkAttachment resource is the one that will establish the BGP session from the * Cloud Router. * @param linkedCustomHardware linkedCustomHardware or {@code null} for none @@ -332,7 +326,7 @@ public RouterStatusBgpPeerStatus setLinkedCustomHardware(java.lang.String linked } /** - * Output only. URL of the VPN tunnel that this BGP peer controls. + * URL of the VPN tunnel that this BGP peer controls. * @return value or {@code null} for none */ public java.lang.String getLinkedVpnTunnel() { @@ -340,7 +334,7 @@ public java.lang.String getLinkedVpnTunnel() { } /** - * Output only. URL of the VPN tunnel that this BGP peer controls. + * 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) { @@ -366,7 +360,7 @@ public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnab } /** - * Output only. Name of this BGP peer. Unique within the Routers resource. + * Name of this BGP peer. Unique within the Routers resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -374,7 +368,7 @@ public java.lang.String getName() { } /** - * Output only. Name of this BGP peer. Unique within the Routers resource. + * 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) { @@ -383,7 +377,7 @@ public RouterStatusBgpPeerStatus setName(java.lang.String name) { } /** - * Output only. Number of routes learned from the remote BGP Peer. + * Number of routes learned from the remote BGP Peer. * @return value or {@code null} for none */ public java.lang.Long getNumLearnedRoutes() { @@ -391,7 +385,7 @@ public java.lang.Long getNumLearnedRoutes() { } /** - * Output only. Number of routes learned from the remote BGP Peer. + * Number of routes learned from the remote BGP Peer. * @param numLearnedRoutes numLearnedRoutes or {@code null} for none */ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRoutes) { @@ -400,7 +394,7 @@ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRo } /** - * Output only. IP address of the remote BGP interface. + * IP address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -408,7 +402,7 @@ public java.lang.String getPeerIpAddress() { } /** - * Output only. IP address of the remote BGP interface. + * IP address of the remote BGP interface. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { @@ -417,7 +411,7 @@ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress } /** - * Output only. IPv4 address of the remote BGP interface. + * IPv4 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv4NexthopAddress() { @@ -425,7 +419,7 @@ public java.lang.String getPeerIpv4NexthopAddress() { } /** - * Output only. IPv4 address of the remote BGP interface. + * IPv4 address of the remote BGP interface. * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { @@ -434,7 +428,7 @@ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peer } /** - * Output only. IPv6 address of the remote BGP interface. + * IPv6 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv6NexthopAddress() { @@ -442,7 +436,7 @@ public java.lang.String getPeerIpv6NexthopAddress() { } /** - * Output only. IPv6 address of the remote BGP interface. + * IPv6 address of the remote BGP interface. * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { @@ -451,9 +445,9 @@ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peer } /** - * 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. + * [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() { @@ -461,9 +455,9 @@ public java.lang.String getRouterApplianceInstance() { } /** - * 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. + * [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) { @@ -472,8 +466,8 @@ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String rou } /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. + * 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() { @@ -481,8 +475,8 @@ public java.lang.String getState() { } /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. + * 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) { @@ -491,7 +485,7 @@ public RouterStatusBgpPeerStatus setState(java.lang.String state) { } /** - * Output only. Status of the BGP peer: {UP, DOWN} + * Status of the BGP peer: {UP, DOWN} * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -499,7 +493,7 @@ public java.lang.String getStatus() { } /** - * Output only. Status of the BGP peer: {UP, DOWN} + * Status of the BGP peer: {UP, DOWN} * @param status status or {@code null} for none */ public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { @@ -525,8 +519,8 @@ public RouterStatusBgpPeerStatus setStatusReason(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 + * 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() { @@ -534,8 +528,8 @@ public java.lang.String getUptime() { } /** - * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 - * minutes, 59 seconds + * 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) { @@ -544,7 +538,7 @@ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { } /** - * Output only. Time this session has been up, in seconds. Format: 145 + * Time this session has been up, in seconds. Format: 145 * @return value or {@code null} for none */ public java.lang.String getUptimeSeconds() { @@ -552,7 +546,7 @@ public java.lang.String getUptimeSeconds() { } /** - * Output only. Time this session has been up, in seconds. Format: 145 + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java index ef71891d9b5..7444eae4ae0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -30,14 +30,14 @@ 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"] + * 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", + * 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}. */ @@ -45,7 +45,7 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene 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", + * 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}. */ @@ -53,23 +53,23 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene 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 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. + * 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. + * Number of VM endpoints (i.e., Nics) that can use NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,22 +83,21 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List ruleStatus; /** - * Output only. A list of fully qualified URLs of reserved IP address resources. + * 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". + * 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"] + * 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() { @@ -106,7 +105,7 @@ public java.util.List getAutoAllocatedNatIps() { } /** - * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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) { @@ -115,7 +114,7 @@ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List getDrainAutoAllocatedNatIps() { } /** - * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -134,7 +133,7 @@ public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List getDrainUserAllocatedNatIps() { } /** - * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -153,9 +152,9 @@ public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List getUserAllocatedNatIpResources() { @@ -233,7 +232,7 @@ public java.util.List getUserAllocatedNatIpResources() { } /** - * Output only. A list of fully qualified URLs of reserved IP address resources. + * 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) { @@ -242,8 +241,7 @@ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List getUserAllocatedNatIps() { @@ -251,8 +249,7 @@ public java.util.List getUserAllocatedNatIps() { } /** - * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like - * "179.12.26.133". + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java index cbbdfb39f77..db7f3b5c89d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -30,44 +30,43 @@ 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"]. + * 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"]. + * 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 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. + * 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. + * 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"]. + * 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() { @@ -75,7 +74,7 @@ public java.util.List getActiveNatIps() { } /** - * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -84,8 +83,7 @@ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List getDrainNatIps() { @@ -93,8 +91,7 @@ public java.util.List getDrainNatIps() { } /** - * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. + * 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) { @@ -103,8 +100,8 @@ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.List result) { } /** - * 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() { @@ -194,7 +191,7 @@ 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 RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { @@ -203,7 +200,7 @@ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListBgpRoutes setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java index 4e536a46cba..4a30536d130 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java @@ -43,8 +43,7 @@ public final class RoutersListNamedSets extends com.google.api.client.json.Gener private java.lang.String id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of - * named sets. + * [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +73,14 @@ public final class RoutersListNamedSets extends com.google.api.client.json.Gener } /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +126,7 @@ public RoutersListNamedSets setId(java.lang.String id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of - * named sets. + * [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -136,8 +134,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of - * named sets. + * [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) { @@ -186,7 +183,7 @@ public RoutersListNamedSets setResult(java.util.List result) { } /** - * 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() { @@ -194,7 +191,7 @@ 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 RoutersListNamedSets setSelfLink(java.lang.String selfLink) { @@ -203,7 +200,7 @@ public RoutersListNamedSets setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListNamedSets setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java index 1a62c00b46b..b527ad775a6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -43,8 +43,8 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G private java.lang.String id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. + * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route + * policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,14 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G } /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +127,8 @@ public RoutersListRoutePolicies setId(java.lang.String id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. + * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route + * policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -136,8 +136,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. + * [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) { @@ -186,7 +186,7 @@ public RoutersListRoutePolicies setResult(java.util.List result) { } /** - * 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() { @@ -194,7 +194,7 @@ 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 RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { @@ -203,7 +203,7 @@ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListRoutePolicies setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java index 200770cde8a..bf7e29946a2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -67,7 +67,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.Long diskSizeGb; /** - * Output only. [Output Only] URL of the disk type resource. For + * [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}. */ @@ -89,7 +89,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ } /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * 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 @@ -103,14 +103,14 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String interface__; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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. + * [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,18 +131,17 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String source; /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. + * [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. + * [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 @@ -245,7 +244,7 @@ public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Output only. [Output Only] URL of the disk type resource. For + * [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 */ @@ -254,7 +253,7 @@ public java.lang.String getDiskType() { } /** - * Output only. [Output Only] URL of the disk type resource. For + * [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 */ @@ -283,7 +282,7 @@ public SavedAttachedDisk setGuestOsFeatures(java.util.List guest } /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * 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() { @@ -291,7 +290,7 @@ public java.lang.Integer getIndex() { } /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * 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) { @@ -317,7 +316,7 @@ public SavedAttachedDisk setInterface(java.lang.String interface__) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -325,7 +324,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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) { @@ -334,7 +333,7 @@ public SavedAttachedDisk setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -342,7 +341,7 @@ public java.util.List getLicenses() { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @param licenses licenses or {@code null} for none */ public SavedAttachedDisk setLicenses(java.util.List licenses) { @@ -385,8 +384,7 @@ public SavedAttachedDisk setSource(java.lang.String source) { } /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. + * [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() { @@ -394,8 +392,7 @@ public java.lang.Long getStorageBytes() { } /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. + * [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) { @@ -404,10 +401,10 @@ public SavedAttachedDisk setStorageBytes(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. + * [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() { @@ -415,10 +412,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java index aaed00e16f7..a9935b2bb70 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -30,45 +30,45 @@ public final class SavedDisk extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The architecture of the attached disk. + * [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. + * [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. + * 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. + * [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. + * [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. + * [Output Only] The architecture of the attached disk. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -76,7 +76,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the attached disk. + * [Output Only] The architecture of the attached disk. * @param architecture architecture or {@code null} for none */ public SavedDisk setArchitecture(java.lang.String architecture) { @@ -85,7 +85,7 @@ public SavedDisk setArchitecture(java.lang.String architecture) { } /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -93,7 +93,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * [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) { @@ -102,7 +102,7 @@ public SavedDisk setKind(java.lang.String kind) { } /** - * Output only. Specifies a URL of the disk attached to the source instance. + * Specifies a URL of the disk attached to the source instance. * @return value or {@code null} for none */ public java.lang.String getSourceDisk() { @@ -110,7 +110,7 @@ public java.lang.String getSourceDisk() { } /** - * Output only. Specifies a URL of the disk attached to the source instance. + * 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) { @@ -119,7 +119,7 @@ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { } /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * [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() { @@ -127,7 +127,7 @@ public java.lang.Long getStorageBytes() { } /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * [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) { @@ -136,10 +136,10 @@ public SavedDisk setStorageBytes(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. + * [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() { @@ -147,10 +147,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java index 3aabd23a6e1..4eed043ce0c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -37,7 +37,7 @@ public final class Screenshot extends com.google.api.client.json.GenericJson { private java.lang.String contents; /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public Screenshot setContents(java.lang.String contents) { } /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java index a84058c3cc4..b6a54a3106a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -50,8 +50,8 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for - * lists of Security Policies. + * [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of + * Security Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SecurityPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java index 8544db33c52..cf3d4120905 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -58,7 +58,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private SecurityPolicyCloudArmorConfig cloudArmorConfig; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,16 +104,14 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 + * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -151,7 +149,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * Output only. [Output Only] The parent of the security policy. + * [Output Only] The parent of the security policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,16 +162,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson 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. + * [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; /** - * Output only. [Output Only] Total count of all security policy rule tuples. A security policy - * can not exceed a set number of tuples. + * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed + * a set number of tuples. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,14 +189,14 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List rules; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -318,7 +316,7 @@ public SecurityPolicy setCloudArmorConfig(SecurityPolicyCloudArmorConfig cloudAr } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -326,7 +324,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -465,8 +463,7 @@ public SecurityPolicy encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -474,8 +471,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -484,8 +480,7 @@ public SecurityPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security - * policies + * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -493,8 +488,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security - * policies + * [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) { @@ -612,7 +606,7 @@ public SecurityPolicy setName(java.lang.String name) { } /** - * Output only. [Output Only] The parent of the security policy. + * [Output Only] The parent of the security policy. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -620,7 +614,7 @@ public java.lang.String getParent() { } /** - * Output only. [Output Only] The parent of the security policy. + * [Output Only] The parent of the security policy. * @param parent parent or {@code null} for none */ public SecurityPolicy setParent(java.lang.String parent) { @@ -644,8 +638,8 @@ public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsCo } /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. + * [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() { @@ -653,8 +647,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. + * [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) { @@ -663,8 +657,8 @@ public SecurityPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Total count of all security policy rule tuples. A security policy - * can not exceed a set number of tuples. + * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed + * a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -672,8 +666,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Total count of all security policy rule tuples. A security policy - * can not exceed a set number of tuples. + * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed + * a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -707,7 +701,7 @@ public SecurityPolicy setRules(java.util.List rules) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -715,7 +709,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SecurityPolicy setSelfLink(java.lang.String selfLink) { @@ -724,7 +718,7 @@ public SecurityPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -732,7 +726,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SecurityPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java index 9476b243de5..57ec4989820 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -37,7 +37,7 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String attachmentId; /** - * Output only. [Output Only] The display name of the security policy of the association. + * [Output Only] The display name of the security policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,14 +65,14 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * Output only. [Output Only] The security policy ID of the association. + * [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. + * [Output Only] The short name of the security policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,7 +96,7 @@ public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) } /** - * Output only. [Output Only] The display name of the security policy of the association. + * [Output Only] The display name of the security policy of the association. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -104,7 +104,7 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] The display name of the security policy of the association. + * [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) { @@ -164,7 +164,7 @@ public SecurityPolicyAssociation setName(java.lang.String name) { } /** - * Output only. [Output Only] The security policy ID of the association. + * [Output Only] The security policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getSecurityPolicyId() { @@ -172,7 +172,7 @@ public java.lang.String getSecurityPolicyId() { } /** - * Output only. [Output Only] The security policy ID of the association. + * [Output Only] The security policy ID of the association. * @param securityPolicyId securityPolicyId or {@code null} for none */ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPolicyId) { @@ -181,7 +181,7 @@ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPo } /** - * Output only. [Output Only] The short name of the security policy of the association. + * [Output Only] The short name of the security policy of the association. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -189,7 +189,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the security policy of the association. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java index 33873905536..fb8b80d49ca 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java @@ -36,18 +36,14 @@ public final class SecurityPolicyDdosProtectionConfig extends com.google.api.cli 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. + * Adaptive 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. + * Rules whose collateral damage exceeds ddosAdaptiveImpactedBaselineThreshold 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 + * between 0.01 and 0.10. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,18 +71,14 @@ public SecurityPolicyDdosProtectionConfig setDdosAdaptiveProtection(java.lang.St } /** - * 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. + * Adaptive 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. + * Rules whose collateral damage exceeds ddosAdaptiveImpactedBaselineThreshold 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 + * between 0.01 and 0.10. * @return value or {@code null} for none */ public java.lang.Float getDdosImpactedBaselineThreshold() { @@ -94,18 +86,14 @@ public java.lang.Float getDdosImpactedBaselineThreshold() { } /** - * 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. + * Adaptive 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. + * Rules whose collateral damage exceeds ddosAdaptiveImpactedBaselineThreshold 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 + * between 0.01 and 0.10. * @param ddosImpactedBaselineThreshold ddosImpactedBaselineThreshold or {@code null} for none */ public SecurityPolicyDdosProtectionConfig setDdosImpactedBaselineThreshold(java.lang.Float ddosImpactedBaselineThreshold) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java index aeea33780ca..87fa15c75a8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -56,8 +56,7 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies + * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,7 +73,7 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic private java.lang.String nextPageToken; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +136,7 @@ public SecurityPolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies + * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -146,8 +144,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies + * [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) { @@ -179,7 +176,7 @@ public SecurityPolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPolicyList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java index 4e161a8377f..2857374f216 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -85,8 +85,7 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private SecurityPolicyRuleHttpHeaderAction headerAction; /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules + * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,8 +182,8 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private java.lang.String redirectTarget; /** - * Output only. [Output Only] The minimum Cloud Armor subscription required for this rule. - * [Deprecated] Use requiredManagedProtectionTiers instead. + * [Output Only] The minimum Cloud Armor subscription required for this rule. [Deprecated] Use + * requiredManagedProtectionTiers instead. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,8 +198,7 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private java.lang.Long ruleNumber; /** - * Output only. [Output Only] Calculation of the complexity of a single firewall security policy - * rule. + * [Output Only] Calculation of the complexity of a single firewall security policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -348,8 +346,7 @@ public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction hea } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules + * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -357,8 +354,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules + * [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) { @@ -571,8 +567,8 @@ public SecurityPolicyRule setRedirectTarget(java.lang.String redirectTarget) { } /** - * Output only. [Output Only] The minimum Cloud Armor subscription required for this rule. - * [Deprecated] Use requiredManagedProtectionTiers instead. + * [Output Only] The minimum Cloud Armor subscription required for this rule. [Deprecated] Use + * requiredManagedProtectionTiers instead. * @return value or {@code null} for none */ public java.lang.String getRuleManagedProtectionTier() { @@ -580,8 +576,8 @@ public java.lang.String getRuleManagedProtectionTier() { } /** - * Output only. [Output Only] The minimum Cloud Armor subscription required for this rule. - * [Deprecated] Use requiredManagedProtectionTiers instead. + * [Output Only] The minimum Cloud Armor subscription required for this rule. [Deprecated] Use + * requiredManagedProtectionTiers instead. * @param ruleManagedProtectionTier ruleManagedProtectionTier or {@code null} for none */ public SecurityPolicyRule setRuleManagedProtectionTier(java.lang.String ruleManagedProtectionTier) { @@ -609,8 +605,7 @@ public SecurityPolicyRule setRuleNumber(java.lang.Long ruleNumber) { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall security policy - * rule. + * [Output Only] Calculation of the complexity of a single firewall security policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -618,8 +613,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall security policy - * rule. + * [Output Only] Calculation of the complexity of a single firewall security policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java index 6ffbb122749..c0e4da81a12 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java @@ -29,14 +29,6 @@ @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. @@ -86,25 +78,6 @@ public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com @com.google.api.client.util.Key private java.lang.String targetRuleSet; - /** - * A list of request body fields to be excluded from inspection during preconfigured WAF - * evaluation. - * @return value or {@code null} for none - */ - public java.util.List getRequestBodiesToExclude() { - return requestBodiesToExclude; - } - - /** - * A list of request body fields to be excluded from inspection during preconfigured WAF - * evaluation. - * @param requestBodiesToExclude requestBodiesToExclude or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestBodiesToExclude(java.util.List requestBodiesToExclude) { - this.requestBodiesToExclude = requestBodiesToExclude; - return this; - } - /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java index 55658088fdb..bbb282182db 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -37,8 +37,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.String contents; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. + * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +53,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.Long next; /** - * 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 @@ -89,8 +88,7 @@ public SerialPortOutput setContents(java.lang.String contents) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. + * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -98,8 +96,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. + * [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) { @@ -129,7 +126,7 @@ public SerialPortOutput setNext(java.lang.Long next) { } /** - * 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() { @@ -137,7 +134,7 @@ 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 SerialPortOutput setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java index 60323086c10..4e614e1b586 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -34,8 +34,8 @@ 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. + * [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 @@ -73,7 +73,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.util.List consumerRejectLists; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,16 +115,15 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -182,7 +181,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Long propagatedConnectionLimit; /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * [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 @@ -203,16 +202,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ 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. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -237,8 +236,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private ServiceAttachmentTunnelingConfig tunnelingConfig; /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. + * [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() { @@ -246,8 +245,8 @@ public java.util.List getConnectedEndpoints( } /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. + * [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) { @@ -327,7 +326,7 @@ public ServiceAttachment setConsumerRejectLists(java.util.List } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -335,7 +334,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -462,8 +461,8 @@ public ServiceAttachment encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -471,8 +470,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -481,8 +480,7 @@ public ServiceAttachment setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -490,8 +488,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [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) { @@ -617,7 +614,7 @@ public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedC } /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * [Output Only] An 128-bit global unique ID of the PSC service attachment. * @return value or {@code null} for none */ public Uint128 getPscServiceAttachmentId() { @@ -625,7 +622,7 @@ public Uint128 getPscServiceAttachmentId() { } /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * [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) { @@ -665,9 +662,9 @@ public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConn } /** - * 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. + * [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() { @@ -675,9 +672,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -686,7 +683,7 @@ public ServiceAttachment setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -694,7 +691,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public ServiceAttachment setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java index 4e76e05905c..c059c93940b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -44,7 +44,7 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ServiceAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ServiceAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java index ae7bbed5851..da01d8aa8a6 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -50,8 +50,7 @@ public final class ServiceAttachmentList extends com.google.api.client.json.Gene } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +115,7 @@ public ServiceAttachmentList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java index 4381a64c967..6aead1f593f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -51,8 +51,8 @@ public final class ShieldedInstanceIdentity extends com.google.api.client.json.G private ShieldedInstanceIdentityEntry encryptionKey; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. + * [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 @@ -117,8 +117,8 @@ public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry e } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. + * [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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java index f9eaa9d86b5..d284f34ce5b 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java @@ -37,8 +37,8 @@ public final class ShieldedVmIdentity extends com.google.api.client.json.Generic private ShieldedVmIdentityEntry encryptionKey; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded - * VM identity entry. + * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity + * entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,8 +69,8 @@ public ShieldedVmIdentity setEncryptionKey(ShieldedVmIdentityEntry encryptionKey } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded - * VM identity entry. + * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity + * entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -78,8 +78,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded - * VM identity entry. + * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity + * entry. * @param kind kind or {@code null} for none */ public ShieldedVmIdentity setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java index 0ecb5721488..40ac613327a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -33,15 +33,15 @@ 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. + * [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. + * [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 @@ -59,14 +59,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String chainName; /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,22 +80,22 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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. + * [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. + * 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 @@ -110,9 +110,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -125,16 +125,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,16 +160,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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). + * [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 @@ -212,15 +209,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private SnapshotParams params; /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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. [Output only] ResourceStatus of the Snapshot resource + * [Output only] ResourceStatus of the Snapshot resource * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -234,21 +231,21 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -272,14 +269,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey snapshotEncryptionKey; /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * 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. + * [Output only] The snapshot group that this snapshot belongs to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -315,9 +312,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -342,51 +339,51 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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. + * [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. + * [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. + * [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. [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. + * [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 @@ -400,7 +397,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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() { @@ -408,7 +413,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [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) { @@ -417,8 +422,8 @@ public Snapshot setArchitecture(java.lang.String architecture) { } /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. + * [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() { @@ -426,8 +431,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. + * [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) { @@ -461,7 +466,7 @@ public Snapshot setChainName(java.lang.String chainName) { } /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [Output Only] Size in bytes of the snapshot at creation time. * @return value or {@code null} for none */ public java.lang.Long getCreationSizeBytes() { @@ -469,7 +474,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [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) { @@ -478,7 +483,7 @@ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -486,7 +491,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -512,7 +517,7 @@ public Snapshot setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -520,7 +525,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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) { @@ -529,7 +534,7 @@ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * [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() { @@ -537,7 +542,7 @@ public java.lang.Long getDownloadBytes() { } /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * [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) { @@ -546,8 +551,8 @@ public Snapshot setDownloadBytes(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. + * 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() { @@ -555,8 +560,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * 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. + * 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) { @@ -584,9 +589,9 @@ public Snapshot setGuestFlush(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. + * [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() { @@ -594,9 +599,9 @@ public java.util.List getGuestOsFeatures() { } /** - * 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. + * [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) { @@ -605,8 +610,7 @@ public Snapshot setGuestOsFeatures(java.util.List guestOsFeature } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -614,8 +618,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -624,8 +627,7 @@ public Snapshot setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot - * resources. + * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -633,8 +635,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot - * resources. + * [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) { @@ -731,8 +732,7 @@ public Snapshot setLabels(java.util.Map labels) { } /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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() { @@ -740,8 +740,7 @@ public java.util.List getLicenseCodes() { } /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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) { @@ -750,8 +749,8 @@ public Snapshot setLicenseCodes(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). + * [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() { @@ -759,8 +758,8 @@ public java.util.List getLicenses() { } /** - * 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). + * [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) { @@ -849,8 +848,8 @@ public Snapshot setParams(SnapshotParams params) { } /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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() { @@ -858,8 +857,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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) { @@ -868,7 +867,7 @@ public Snapshot setRegion(java.lang.String region) { } /** - * Output only. [Output only] ResourceStatus of the Snapshot resource + * [Output only] ResourceStatus of the Snapshot resource * @return value or {@code null} for none */ public SnapshotResourceStatus getResourceStatus() { @@ -876,7 +875,7 @@ public SnapshotResourceStatus getResourceStatus() { } /** - * Output only. [Output only] ResourceStatus of the Snapshot resource + * [Output only] ResourceStatus of the Snapshot resource * @param resourceStatus resourceStatus or {@code null} for none */ public Snapshot setResourceStatus(SnapshotResourceStatus resourceStatus) { @@ -902,7 +901,7 @@ public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -910,7 +909,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -919,7 +918,7 @@ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -927,7 +926,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Snapshot setSelfLink(java.lang.String selfLink) { @@ -936,7 +935,7 @@ public Snapshot setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -944,7 +943,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Snapshot setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -990,7 +989,7 @@ public Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptio } /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupId() { @@ -998,7 +997,7 @@ public java.lang.String getSnapshotGroupId() { } /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. + * [Output Only] The unique ID of the snapshot group that this snapshot belongs to. * @param snapshotGroupId snapshotGroupId or {@code null} for none */ public Snapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { @@ -1007,7 +1006,7 @@ public Snapshot setSnapshotGroupId(java.lang.String snapshotGroupId) { } /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. + * [Output only] The snapshot group that this snapshot belongs to. * @return value or {@code null} for none */ public java.lang.String getSnapshotGroupName() { @@ -1015,7 +1014,7 @@ public java.lang.String getSnapshotGroupName() { } /** - * Output only. [Output only] The snapshot group that this snapshot belongs to. + * [Output only] The snapshot group that this snapshot belongs to. * @param snapshotGroupName snapshotGroupName or {@code null} for none */ public Snapshot setSnapshotGroupName(java.lang.String snapshotGroupName) { @@ -1094,9 +1093,9 @@ public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskFo } /** - * 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. + * [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() { @@ -1104,9 +1103,9 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -1157,11 +1156,11 @@ public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sour } /** - * 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. + * [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() { @@ -1169,11 +1168,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * 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. + * [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) { @@ -1182,7 +1181,7 @@ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapsho } /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * [Output Only] URL of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicy() { @@ -1190,7 +1189,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * [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) { @@ -1199,7 +1198,7 @@ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotS } /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * [Output Only] ID of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicyId() { @@ -1207,7 +1206,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * [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) { @@ -1216,8 +1215,8 @@ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapsho } /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. + * [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() { @@ -1225,8 +1224,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. + * [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) { @@ -1235,8 +1234,8 @@ public Snapshot setStatus(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. + * [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() { @@ -1244,8 +1243,8 @@ public java.lang.Long getStorageBytes() { } /** - * 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. + * [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) { @@ -1254,10 +1253,10 @@ public Snapshot setStorageBytes(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. + * [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() { @@ -1265,10 +1264,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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 Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { @@ -1293,6 +1292,25 @@ public Snapshot setStorageLocations(java.util.List storageLoca return this; } + /** + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * @param userLicenses userLicenses or {@code null} for none + */ + public Snapshot setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public Snapshot set(String fieldName, Object value) { return (Snapshot) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java index c9adaf64afb..9188a4355ad 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java @@ -50,8 +50,8 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for - * aggregated lists of snapshots. + * [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for aggregated lists of + * snapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java index b44d02aa4c3..db7039350f8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java @@ -33,7 +33,7 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -48,16 +48,14 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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#snapshotGroup for SnapshotGroup - * resources. + * [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,21 +73,21 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource's resource id. + * [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] + * [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,21 +101,21 @@ public final class SnapshotGroup extends com.google.api.client.json.GenericJson private java.lang.String sourceInstantSnapshotGroup; /** - * Output only. [Output Only] + * [Output Only] * The value may be {@code null}. */ @com.google.api.client.util.Key private SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo; /** - * Output only. [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] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -125,7 +123,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SnapshotGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -153,8 +151,7 @@ public SnapshotGroup setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -162,8 +159,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @param id id or {@code null} for none */ public SnapshotGroup setId(java.math.BigInteger id) { @@ -172,8 +168,7 @@ public SnapshotGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup - * resources. + * [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -181,8 +176,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup - * resources. + * [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup resources. * @param kind kind or {@code null} for none */ public SnapshotGroup setKind(java.lang.String kind) { @@ -216,7 +210,7 @@ public SnapshotGroup setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -224,7 +218,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SnapshotGroup setSelfLink(java.lang.String selfLink) { @@ -233,7 +227,7 @@ public SnapshotGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -241,7 +235,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -250,7 +244,7 @@ public SnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] + * [Output Only] * @return value or {@code null} for none */ public SnapshotGroupSourceInfo getSourceInfo() { @@ -258,7 +252,7 @@ public SnapshotGroupSourceInfo getSourceInfo() { } /** - * Output only. [Output Only] + * [Output Only] * @param sourceInfo sourceInfo or {@code null} for none */ public SnapshotGroup setSourceInfo(SnapshotGroupSourceInfo sourceInfo) { @@ -284,7 +278,7 @@ public SnapshotGroup setSourceInstantSnapshotGroup(java.lang.String sourceInstan } /** - * Output only. [Output Only] + * [Output Only] * @return value or {@code null} for none */ public SnapshotGroupSourceInstantSnapshotGroupInfo getSourceInstantSnapshotGroupInfo() { @@ -292,7 +286,7 @@ public SnapshotGroupSourceInstantSnapshotGroupInfo getSourceInstantSnapshotGroup } /** - * Output only. [Output Only] + * [Output Only] * @param sourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo or {@code null} for none */ public SnapshotGroup setSourceInstantSnapshotGroupInfo(SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo) { @@ -301,7 +295,7 @@ public SnapshotGroup setSourceInstantSnapshotGroupInfo(SnapshotGroupSourceInstan } /** - * Output only. [Output Only] + * [Output Only] * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -309,7 +303,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] + * [Output Only] * @param status status or {@code null} for none */ public SnapshotGroup setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java index 04f8790fe65..39950d997d4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -50,7 +50,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public SnapshotList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public SnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 SnapshotList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java index 1191efded34..0f1afad1dce 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -30,22 +30,18 @@ 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/456` 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. + * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. 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/456` 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. + * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -53,11 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public SnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java deleted file mode 100644 index 8a55d9eaf19..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.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.model; - -/** - * Represents the singleton resource Snapshot Recycle Bin Policy that configures the retention - * duration for snapshots in the recycle bin. - * - * You can configure the retention duration for snapshots in the recycle bin at the project or - * organization level. If you configure the policy at the organization level, all projects in that - * organization will share the same policy. If you configure the policy at the project level it will - * be merged with org level policy (if any) and the snapshots in that project will use that 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 SnapshotRecycleBinPolicy extends com.google.api.client.json.GenericJson { - - /** - * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of - * the TagValue which can be in the format: - * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or - * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or - * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if - * snapshots do not have any of these tags. The value is the rule for the key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map rules; - - /** - * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of - * the TagValue which can be in the format: - * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or - * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or - * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if - * snapshots do not have any of these tags. The value is the rule for the key. - * @return value or {@code null} for none - */ - public java.util.Map getRules() { - return rules; - } - - /** - * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of - * the TagValue which can be in the format: - * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or - * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or - * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. The default rule is applied if - * snapshots do not have any of these tags. The value is the rule for the key. - * @param rules rules or {@code null} for none - */ - public SnapshotRecycleBinPolicy setRules(java.util.Map rules) { - this.rules = rules; - return this; - } - - @Override - public SnapshotRecycleBinPolicy set(String fieldName, Object value) { - return (SnapshotRecycleBinPolicy) super.set(fieldName, value); - } - - @Override - public SnapshotRecycleBinPolicy clone() { - return (SnapshotRecycleBinPolicy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.java deleted file mode 100644 index 1787c9bd153..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRule.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.model; - -/** - * A rule that defines the retention policy for snapshots in the recycle bin. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class SnapshotRecycleBinPolicyRule extends com.google.api.client.json.GenericJson { - - /** - * The rule config for standard snapshots. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotRecycleBinPolicyRuleRuleConfig standardSnapshots; - - /** - * The rule config for standard snapshots. - * @return value or {@code null} for none - */ - public SnapshotRecycleBinPolicyRuleRuleConfig getStandardSnapshots() { - return standardSnapshots; - } - - /** - * The rule config for standard snapshots. - * @param standardSnapshots standardSnapshots or {@code null} for none - */ - public SnapshotRecycleBinPolicyRule setStandardSnapshots(SnapshotRecycleBinPolicyRuleRuleConfig standardSnapshots) { - this.standardSnapshots = standardSnapshots; - return this; - } - - @Override - public SnapshotRecycleBinPolicyRule set(String fieldName, Object value) { - return (SnapshotRecycleBinPolicyRule) super.set(fieldName, value); - } - - @Override - public SnapshotRecycleBinPolicyRule clone() { - return (SnapshotRecycleBinPolicyRule) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.java deleted file mode 100644 index 0d8630cb26b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicyRuleRuleConfig.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.model; - -/** - * The rule config for snapshots in the recycle bin. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class SnapshotRecycleBinPolicyRuleRuleConfig extends com.google.api.client.json.GenericJson { - - /** - * The retention duration for snapshots in the recycle bin after which the snapshots are - * automatically deleted from recycle bin. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long retentionDurationDays; - - /** - * The retention duration for snapshots in the recycle bin after which the snapshots are - * automatically deleted from recycle bin. - * @return value or {@code null} for none - */ - public java.lang.Long getRetentionDurationDays() { - return retentionDurationDays; - } - - /** - * The retention duration for snapshots in the recycle bin after which the snapshots are - * automatically deleted from recycle bin. - * @param retentionDurationDays retentionDurationDays or {@code null} for none - */ - public SnapshotRecycleBinPolicyRuleRuleConfig setRetentionDurationDays(java.lang.Long retentionDurationDays) { - this.retentionDurationDays = retentionDurationDays; - return this; - } - - @Override - public SnapshotRecycleBinPolicyRuleRuleConfig set(String fieldName, Object value) { - return (SnapshotRecycleBinPolicyRuleRuleConfig) super.set(fieldName, value); - } - - @Override - public SnapshotRecycleBinPolicyRuleRuleConfig clone() { - return (SnapshotRecycleBinPolicyRuleRuleConfig) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java index ea5ee64fca3..3014b2e580a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotResourceStatus.java @@ -30,16 +30,16 @@ public final class SnapshotResourceStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output only] Scheduled deletion time of the snapshot. The snapshot will be - * deleted by the at any point within one hour after the deletion time. + * [Output only] Scheduled deletion time of the snapshot. The snapshot will be deleted by the at + * any point within one hour after the deletion time. * The value may be {@code null}. */ @com.google.api.client.util.Key private String scheduledDeletionTime; /** - * Output only. [Output only] Scheduled deletion time of the snapshot. The snapshot will be - * deleted by the at any point within one hour after the deletion time. + * [Output only] Scheduled deletion time of the snapshot. The snapshot will be deleted by the at + * any point within one hour after the deletion time. * @return value or {@code null} for none */ public String getScheduledDeletionTime() { @@ -47,8 +47,8 @@ public String getScheduledDeletionTime() { } /** - * Output only. [Output only] Scheduled deletion time of the snapshot. The snapshot will be - * deleted by the at any point within one hour after the deletion time. + * [Output only] Scheduled deletion time of the snapshot. The snapshot will be deleted by the at + * any point within one hour after the deletion time. * @param scheduledDeletionTime scheduledDeletionTime or {@code null} for none */ public SnapshotResourceStatus setScheduledDeletionTime(String scheduledDeletionTime) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotUpdateKmsKeyRequest.java deleted file mode 100644 index cb75616e5a4..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.java deleted file mode 100644 index 5b09a0d3efe..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotsGetEffectiveRecycleBinRuleResponse.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.model; - -/** - * Model definition for SnapshotsGetEffectiveRecycleBinRuleResponse. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class SnapshotsGetEffectiveRecycleBinRuleResponse extends com.google.api.client.json.GenericJson { - - /** - * The retention duration of the snapshot in recycle bin. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long retentionDurationDays; - - /** - * The retention duration of the snapshot in recycle bin. - * @return value or {@code null} for none - */ - public java.lang.Long getRetentionDurationDays() { - return retentionDurationDays; - } - - /** - * The retention duration of the snapshot in recycle bin. - * @param retentionDurationDays retentionDurationDays or {@code null} for none - */ - public SnapshotsGetEffectiveRecycleBinRuleResponse setRetentionDurationDays(java.lang.Long retentionDurationDays) { - this.retentionDurationDays = retentionDurationDays; - return this; - } - - @Override - public SnapshotsGetEffectiveRecycleBinRuleResponse set(String fieldName, Object value) { - return (SnapshotsGetEffectiveRecycleBinRuleResponse) super.set(fieldName, value); - } - - @Override - public SnapshotsGetEffectiveRecycleBinRuleResponse clone() { - return (SnapshotsGetEffectiveRecycleBinRuleResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java index 2940167fc95..30338f7ae17 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificate.java @@ -71,7 +71,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 + * [Output Only] Expire time of the certificate. RFC3339 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,8 +85,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. + * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,8 +118,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson 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. + * [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 @@ -134,7 +133,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -148,8 +147,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private SslCertificateSelfManagedSslCertificate selfManaged; /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. + * [Output Only] Domains associated with the certificate via Subject Alternative Name. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,7 +217,7 @@ public SslCertificate setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 + * [Output Only] Expire time of the certificate. RFC3339 * @return value or {@code null} for none */ public java.lang.String getExpireTime() { @@ -227,7 +225,7 @@ public java.lang.String getExpireTime() { } /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 + * [Output Only] Expire time of the certificate. RFC3339 * @param expireTime expireTime or {@code null} for none */ public SslCertificate setExpireTime(java.lang.String expireTime) { @@ -253,8 +251,7 @@ public SslCertificate setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. + * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -262,8 +259,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. + * [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) { @@ -333,8 +329,8 @@ public SslCertificate setPrivateKey(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. + * [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() { @@ -342,8 +338,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This - * field is not applicable to global SSL Certificate. + * [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) { @@ -369,7 +365,7 @@ public SslCertificate setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -377,7 +373,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SslCertificate setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -403,8 +399,7 @@ public SslCertificate setSelfManaged(SslCertificateSelfManagedSslCertificate sel } /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. + * [Output Only] Domains associated with the certificate via Subject Alternative Name. * @return value or {@code null} for none */ public java.util.List getSubjectAlternativeNames() { @@ -412,8 +407,7 @@ public java.util.List getSubjectAlternativeNames() { } /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java index d806133ed5f..afee0f9e13d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -44,8 +44,8 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for - * lists of SSL Certificates. + * [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL + * Certificates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SslCertificateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslCertificateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java index 27110fd9466..688db9167d9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -50,7 +50,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public SslCertificateList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public SslCertificateList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SslCertificateList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 SslCertificateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java index 8897726891a..2521f524e73 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -30,8 +30,7 @@ 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. + * [Output only] Detailed statuses of the domains specified for managed certificate resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +46,14 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.cl private java.util.List domains; /** - * Output only. [Output only] Status of the managed certificate resource. + * [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. + * [Output only] Detailed statuses of the domains specified for managed certificate resource. * @return value or {@code null} for none */ public java.util.Map getDomainStatus() { @@ -63,8 +61,7 @@ public java.util.Map getDomainStatus() { } /** - * Output only. [Output only] Detailed statuses of the domains specified for managed certificate - * resource. + * [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) { @@ -94,7 +91,7 @@ public SslCertificateManagedSslCertificate setDomains(java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of - * SSL Policies. + * [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL + * Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SslPoliciesAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SslPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java index c8c7092cb3a..775a4adcdbe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -30,39 +30,38 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier 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. + * 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. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,7 +75,7 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJso private Warning warning; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -84,7 +83,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -93,7 +92,7 @@ public SslPoliciesList setId(java.lang.String id) { } /** - * Output only. A list of SslPolicy resources. + * A list of SslPolicy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -101,7 +100,7 @@ public java.util.List getItems() { } /** - * Output only. A list of SslPolicy resources. + * A list of SslPolicy resources. * @param items items or {@code null} for none */ public SslPoliciesList setItems(java.util.List items) { @@ -110,8 +109,7 @@ public SslPoliciesList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. + * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -119,8 +117,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. + * [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) { @@ -129,10 +126,10 @@ public SslPoliciesList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -140,10 +137,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -152,7 +149,7 @@ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -160,7 +157,7 @@ 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 SslPoliciesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java index 8169480c656..a2d08f9958d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -34,7 +34,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,7 +57,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The list of features enabled in the SSL policy. + * [Output Only] The list of features enabled in the SSL policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,15 +76,14 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,46 +109,32 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; - /** - * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer allows negotiating - * 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 until it is enabled by default on load balancers. When set toENABLED, the load - * balancer can negotiate X25519MLKEM768 key exchange. When set to DEFERRED, temporarily opts out - * the load balancer from negotiating X25519MLKEM768 beyond the point where it is enabled by - * default on load balancers. - * 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. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If + * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. * 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. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,8 +149,8 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private ServerTlsSettings tlsSettings; /** - * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. + * [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 @@ -178,7 +163,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -186,7 +171,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -233,7 +218,7 @@ public SslPolicy setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The list of features enabled in the SSL policy. + * [Output Only] The list of features enabled in the SSL policy. * @return value or {@code null} for none */ public java.util.List getEnabledFeatures() { @@ -241,7 +226,7 @@ public java.util.List getEnabledFeatures() { } /** - * Output only. [Output Only] The list of features enabled in the SSL policy. + * [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) { @@ -315,8 +300,7 @@ public SslPolicy encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -324,8 +308,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -334,7 +317,7 @@ public SslPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -342,7 +325,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * [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) { @@ -396,40 +379,10 @@ public SslPolicy setName(java.lang.String name) { return this; } - /** - * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer allows negotiating - * 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 until it is enabled by default on load balancers. When set toENABLED, the load - * balancer can negotiate X25519MLKEM768 key exchange. When set to DEFERRED, temporarily opts out - * the load balancer from negotiating X25519MLKEM768 beyond the point where it is enabled by - * default on load balancers. - * @return value or {@code null} for none - */ - public java.lang.String getPostQuantumKeyExchange() { - return postQuantumKeyExchange; - } - - /** - * One of DEFAULT, ENABLED, orDEFERRED. Controls whether the load balancer allows negotiating - * 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 until it is enabled by default on load balancers. When set toENABLED, the load - * balancer can negotiate X25519MLKEM768 key exchange. When set to DEFERRED, temporarily opts out - * the load balancer from negotiating X25519MLKEM768 beyond the point where it is enabled by - * default on load balancers. - * @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. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If + * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. * @return value or {@code null} for none */ public java.lang.String getProfile() { @@ -438,9 +391,8 @@ public java.lang.String getProfile() { /** * 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. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If + * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. * @param profile profile or {@code null} for none */ public SslPolicy setProfile(java.lang.String profile) { @@ -449,8 +401,8 @@ public SslPolicy setProfile(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. + * [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() { @@ -458,8 +410,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field - * is not applicable to global SSL policies. + * [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) { @@ -468,7 +420,7 @@ public SslPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -476,7 +428,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SslPolicy setSelfLink(java.lang.String selfLink) { @@ -485,7 +437,7 @@ public SslPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -493,7 +445,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SslPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -521,8 +473,8 @@ public SslPolicy setTlsSettings(ServerTlsSettings tlsSettings) { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. + * [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() { @@ -530,8 +482,8 @@ public java.util.List getWarnings() { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java index a2b225a4c5e..3a64d534ceb 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -37,7 +37,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String capacityProvisioningType; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,22 +51,21 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * [Output Only] 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. + * [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. + * [Output Only] Type of the resource. Always compute#storagePool for storage pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,14 +102,6 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @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. @@ -158,21 +149,21 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long provisionedThroughput; /** - * Output only. [Output Only] Status information for the storage pool resource. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -186,16 +177,16 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * 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. + * [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. + * [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,8 +200,8 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -234,7 +225,7 @@ public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisio } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -242,7 +233,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -268,7 +259,7 @@ public StoragePool setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * [Output Only] Provisioned capacities for each SKU for this Exapool in GiB * @return value or {@code null} for none */ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { @@ -276,7 +267,7 @@ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * [Output Only] Provisioned capacities for each SKU for this Exapool in GiB * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none */ public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { @@ -285,8 +276,7 @@ public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisioned } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -294,8 +284,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -304,7 +293,7 @@ public StoragePool setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * [Output Only] Type of the resource. Always compute#storagePool for storage pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -312,7 +301,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * [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) { @@ -431,25 +420,6 @@ public StoragePool setName(java.lang.String 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. @@ -561,7 +531,7 @@ public StoragePool setProvisionedThroughput(java.lang.Long provisionedThroughput } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getResourceStatus() { @@ -569,7 +539,7 @@ public StoragePoolResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @param resourceStatus resourceStatus or {@code null} for none */ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { @@ -578,7 +548,7 @@ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -586,7 +556,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -595,7 +565,7 @@ public StoragePool setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -603,7 +573,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { @@ -629,9 +599,9 @@ public StoragePool setSizeGb(java.lang.Long sizeGb) { } /** - * 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. + * [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() { @@ -639,9 +609,9 @@ public java.lang.String getState() { } /** - * 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. + * [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) { @@ -650,7 +620,7 @@ public StoragePool setState(java.lang.String state) { } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getStatus() { @@ -658,7 +628,7 @@ public StoragePoolResourceStatus getStatus() { } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @param status status or {@code null} for none */ public StoragePool setStatus(StoragePoolResourceStatus status) { @@ -684,8 +654,8 @@ public StoragePool setStoragePoolType(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. + * [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() { @@ -693,8 +663,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java index a6e2968a57e..186794e02ce 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -50,8 +50,8 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for - * aggregated lists of storage pools. + * [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 @@ -68,14 +68,14 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public StoragePoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public StoragePoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java index f4aedbc4874..336f05138ed 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -30,84 +30,84 @@ public final class StoragePoolDisk extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Instances this disk is attached to. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Instances this disk is attached to. * @return value or {@code null} for none */ public java.util.List getAttachedInstances() { @@ -115,7 +115,7 @@ public java.util.List getAttachedInstances() { } /** - * Output only. [Output Only] Instances this disk is attached to. + * [Output Only] Instances this disk is attached to. * @param attachedInstances attachedInstances or {@code null} for none */ public StoragePoolDisk setAttachedInstances(java.util.List attachedInstances) { @@ -124,7 +124,7 @@ public StoragePoolDisk setAttachedInstances(java.util.List att } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -141,7 +141,7 @@ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) } /** - * Output only. [Output Only] The URL of the disk. + * [Output Only] The URL of the disk. * @return value or {@code null} for none */ public java.lang.String getDisk() { @@ -149,7 +149,7 @@ public java.lang.String getDisk() { } /** - * Output only. [Output Only] The URL of the disk. + * [Output Only] The URL of the disk. * @param disk disk or {@code null} for none */ public StoragePoolDisk setDisk(java.lang.String disk) { @@ -158,7 +158,7 @@ public StoragePoolDisk setDisk(java.lang.String disk) { } /** - * Output only. [Output Only] The name of the disk. + * [Output Only] The name of the disk. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -166,7 +166,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the disk. + * [Output Only] The name of the disk. * @param name name or {@code null} for none */ public StoragePoolDisk setName(java.lang.String name) { @@ -175,7 +175,7 @@ public StoragePoolDisk setName(java.lang.String name) { } /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. + * [Output Only] The number of IOPS provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedIops() { @@ -183,7 +183,7 @@ public java.lang.Long getProvisionedIops() { } /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. + * [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) { @@ -192,7 +192,7 @@ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { } /** - * Output only. [Output Only] The throughput provisioned for the disk. + * [Output Only] The throughput provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedThroughput() { @@ -200,7 +200,7 @@ public java.lang.Long getProvisionedThroughput() { } /** - * Output only. [Output Only] The throughput provisioned for the disk. + * [Output Only] The throughput provisioned for the disk. * @param provisionedThroughput provisionedThroughput or {@code null} for none */ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroughput) { @@ -209,7 +209,7 @@ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroug } /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * [Output Only] Resource policies applied to disk for automatic snapshot creations. * @return value or {@code null} for none */ public java.util.List getResourcePolicies() { @@ -217,7 +217,7 @@ public java.util.List getResourcePolicies() { } /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * [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) { @@ -226,7 +226,7 @@ public StoragePoolDisk setResourcePolicies(java.util.List reso } /** - * Output only. [Output Only] The disk size, in GB. + * [Output Only] The disk size, in GB. * @return value or {@code null} for none */ public java.lang.Long getSizeGb() { @@ -234,7 +234,7 @@ public java.lang.Long getSizeGb() { } /** - * Output only. [Output Only] The disk size, in GB. + * [Output Only] The disk size, in GB. * @param sizeGb sizeGb or {@code null} for none */ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { @@ -243,7 +243,7 @@ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { } /** - * Output only. [Output Only] The disk status. + * [Output Only] The disk status. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -251,7 +251,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The disk status. + * [Output Only] The disk status. * @param status status or {@code null} for none */ public StoragePoolDisk setStatus(java.lang.String status) { @@ -260,7 +260,7 @@ public StoragePoolDisk setStatus(java.lang.String status) { } /** - * Output only. [Output Only] The disk type. + * [Output Only] The disk type. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -268,7 +268,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The disk type. + * [Output Only] The disk type. * @param type type or {@code null} for none */ public StoragePoolDisk setType(java.lang.String type) { @@ -277,7 +277,7 @@ public StoragePoolDisk setType(java.lang.String type) { } /** - * Output only. [Output Only] Amount of disk space used. + * [Output Only] Amount of disk space used. * @return value or {@code null} for none */ public java.lang.Long getUsedBytes() { @@ -285,7 +285,7 @@ public java.lang.Long getUsedBytes() { } /** - * Output only. [Output Only] Amount of disk space used. + * [Output Only] Amount of disk space used. * @param usedBytes usedBytes or {@code null} for none */ public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java index 34edec41ca8..2d0728fe318 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -56,8 +56,7 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso } /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. + * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,15 +73,14 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,8 +143,7 @@ public StoragePoolList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. + * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -154,8 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. + * [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) { @@ -187,7 +183,7 @@ public StoragePoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -195,7 +191,7 @@ 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 StoragePoolList setSelfLink(java.lang.String selfLink) { @@ -204,8 +200,7 @@ public StoragePoolList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java index 31b6d2f7ece..bb3ca251ff1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -36,7 +36,7 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener private java.lang.String etag; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,40 +56,39 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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 + * [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. + * [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,7 +110,7 @@ public StoragePoolListDisks setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -119,7 +118,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -145,8 +144,8 @@ public StoragePoolListDisks setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. + * [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() { @@ -154,8 +153,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. + * [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) { @@ -164,10 +163,10 @@ public StoragePoolListDisks setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -175,10 +174,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -187,7 +186,7 @@ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -195,7 +194,7 @@ 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 StoragePoolListDisks setSelfLink(java.lang.String selfLink) { @@ -204,8 +203,7 @@ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolListDisks setUnreachables(java.util.List unreachables) { @@ -223,7 +220,7 @@ public StoragePoolListDisks setUnreachables(java.util.List unr } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -231,7 +228,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public StoragePoolListDisks setWarning(Warning warning) { @@ -250,7 +247,7 @@ public StoragePoolListDisks clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java deleted file mode 100644 index f7f367511c0..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/456` 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/456` 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/456` 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/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java index 67adc081a79..80a35ca3ed1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -51,35 +51,35 @@ public final class StoragePoolResourceStatus extends com.google.api.client.json. private java.lang.Long diskCount; /** - * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Timestamp of the last successful resize inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -234,7 +234,7 @@ public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { } /** - * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * [Output Only] Maximum allowed read IOPS for this Exapool. * @return value or {@code null} for none */ public java.lang.Long getExapoolMaxReadIops() { @@ -242,7 +242,7 @@ public java.lang.Long getExapoolMaxReadIops() { } /** - * Output only. [Output Only] Maximum allowed read IOPS for this Exapool. + * [Output Only] Maximum allowed read IOPS for this Exapool. * @param exapoolMaxReadIops exapoolMaxReadIops or {@code null} for none */ public StoragePoolResourceStatus setExapoolMaxReadIops(java.lang.Long exapoolMaxReadIops) { @@ -251,7 +251,7 @@ public StoragePoolResourceStatus setExapoolMaxReadIops(java.lang.Long exapoolMax } /** - * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. * @return value or {@code null} for none */ public java.lang.Long getExapoolMaxReadThroughput() { @@ -259,7 +259,7 @@ public java.lang.Long getExapoolMaxReadThroughput() { } /** - * Output only. [Output Only] Maximum allowed read throughput in MiB/s for this Exapool. + * [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) { @@ -268,7 +268,7 @@ public StoragePoolResourceStatus setExapoolMaxReadThroughput(java.lang.Long exap } /** - * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * [Output Only] Maximum allowed write IOPS for this Exapool. * @return value or {@code null} for none */ public java.lang.Long getExapoolMaxWriteIops() { @@ -276,7 +276,7 @@ public java.lang.Long getExapoolMaxWriteIops() { } /** - * Output only. [Output Only] Maximum allowed write IOPS for this Exapool. + * [Output Only] Maximum allowed write IOPS for this Exapool. * @param exapoolMaxWriteIops exapoolMaxWriteIops or {@code null} for none */ public StoragePoolResourceStatus setExapoolMaxWriteIops(java.lang.Long exapoolMaxWriteIops) { @@ -285,7 +285,7 @@ public StoragePoolResourceStatus setExapoolMaxWriteIops(java.lang.Long exapoolMa } /** - * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. * @return value or {@code null} for none */ public java.lang.Long getExapoolMaxWriteThroughput() { @@ -293,7 +293,7 @@ public java.lang.Long getExapoolMaxWriteThroughput() { } /** - * Output only. [Output Only] Maximum allowed write throughput in MiB/s for this Exapool. + * [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) { @@ -302,7 +302,7 @@ public StoragePoolResourceStatus setExapoolMaxWriteThroughput(java.lang.Long exa } /** - * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * [Output Only] Timestamp of the last successful resize inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastResizeTimestamp() { @@ -310,7 +310,7 @@ public java.lang.String getLastResizeTimestamp() { } /** - * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java index 2abe154233a..48b85c05c96 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -58,8 +58,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. + * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,7 +128,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,8 +218,7 @@ public StoragePoolType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. + * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -228,8 +226,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. + * [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) { @@ -391,7 +388,7 @@ public StoragePoolType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -399,7 +396,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java index 1831cd7a360..c3fc6a05a48 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j 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 @@ -109,7 +109,7 @@ public StoragePoolTypeAggregatedList setItems(java.util.Map items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. + * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. + * [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) { @@ -158,7 +155,7 @@ public StoragePoolTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 StoragePoolTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java index 6862ad4155f..550ad93e4ed 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -45,8 +45,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String aggregationInterval; /** - * 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 + * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static * 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 @@ -61,13 +61,15 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. + * + * This field cannot be set to true at resource creation time. * 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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,8 +87,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,16 +139,15 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.Float flowSampling; /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * [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. + * [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 @@ -195,37 +195,27 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String ipv6AccessType; /** - * Output only. [Output Only] This field is for internal use. + * [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. + * [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; /** - * Specifies the network tier for EXTERNAL IPv6. Can only be set when ipv6_access_type is - * EXTERNAL. Defaults to project defaultNetworkTier if not specified during the creation of the - * subnetwork. This field is IMMUTABLE once set with EXTERNAL IPv6. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String ipv6NetworkTier; - - /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. + * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -337,7 +327,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * apatch request. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -351,7 +341,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -369,11 +359,11 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { 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 + * [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 @@ -438,8 +428,8 @@ public Subnetwork setAggregationInterval(java.lang.String aggregationInterval) { } /** - * 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 + * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static * 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 @@ -454,6 +444,8 @@ public Subnetwork setAggregationInterval(java.lang.String aggregationInterval) { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. + * + * This field cannot be set to true at resource creation time. * @return value or {@code null} for none */ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { @@ -461,8 +453,8 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { } /** - * 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 + * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static * 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 @@ -477,6 +469,8 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. + * + * This field cannot be set to true at resource creation time. * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none */ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { @@ -485,7 +479,7 @@ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetC } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -493,7 +487,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -524,8 +518,7 @@ public Subnetwork setDescription(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. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. * @return value or {@code null} for none */ public java.lang.Boolean getEnableFlowLogs() { @@ -536,8 +529,7 @@ public java.lang.Boolean getEnableFlowLogs() { * 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. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. * @param enableFlowLogs enableFlowLogs or {@code null} for none */ public Subnetwork setEnableFlowLogs(java.lang.Boolean enableFlowLogs) { @@ -689,8 +681,8 @@ public Subnetwork setFlowSampling(java.lang.Float flowSampling) { } /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * [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() { @@ -698,8 +690,8 @@ public java.lang.String getGatewayAddress() { } /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * [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) { @@ -708,8 +700,7 @@ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -717,8 +708,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -821,7 +811,7 @@ public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { } /** - * Output only. [Output Only] This field is for internal use. + * [Output Only] This field is for internal use. * @return value or {@code null} for none */ public java.lang.String getIpv6CidrRange() { @@ -829,7 +819,7 @@ public java.lang.String getIpv6CidrRange() { } /** - * Output only. [Output Only] This field is for internal use. + * [Output Only] This field is for internal use. * @param ipv6CidrRange ipv6CidrRange or {@code null} for none */ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { @@ -838,13 +828,13 @@ public Subnetwork setIpv6CidrRange(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. + * [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() { @@ -852,13 +842,13 @@ public java.lang.String getIpv6GceEndpoint() { } /** - * 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. + * [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) { @@ -867,29 +857,7 @@ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { } /** - * Specifies the network tier for EXTERNAL IPv6. Can only be set when ipv6_access_type is - * EXTERNAL. Defaults to project defaultNetworkTier if not specified during the creation of the - * subnetwork. This field is IMMUTABLE once set with EXTERNAL IPv6. - * @return value or {@code null} for none - */ - public java.lang.String getIpv6NetworkTier() { - return ipv6NetworkTier; - } - - /** - * Specifies the network tier for EXTERNAL IPv6. Can only be set when ipv6_access_type is - * EXTERNAL. Defaults to project defaultNetworkTier if not specified during the creation of the - * subnetwork. This field is IMMUTABLE once set with EXTERNAL IPv6. - * @param ipv6NetworkTier ipv6NetworkTier or {@code null} for none - */ - public Subnetwork setIpv6NetworkTier(java.lang.String ipv6NetworkTier) { - this.ipv6NetworkTier = ipv6NetworkTier; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. + * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -897,8 +865,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. + * [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) { @@ -1150,7 +1117,7 @@ public Subnetwork setRole(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. + * apatch request. * @return value or {@code null} for none */ public java.util.List getSecondaryIpRanges() { @@ -1161,7 +1128,7 @@ public java.util.List getSecondaryIpRanges() { * 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. + * apatch request. * @param secondaryIpRanges secondaryIpRanges or {@code null} for none */ public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { @@ -1187,7 +1154,7 @@ public Subnetwork setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1195,7 +1162,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public Subnetwork setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -1229,11 +1196,11 @@ public Subnetwork setStackType(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 + * [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() { @@ -1241,11 +1208,11 @@ public java.lang.String getState() { } /** - * 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 + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java index 92577af696e..3ce236d4f61 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -44,8 +44,8 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for - * aggregated lists of subnetworks. + * [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of + * subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class SubnetworkAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SubnetworkAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SubnetworkAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java index f8578cc2a42..bfed8d09195 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -50,8 +50,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. + * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public SubnetworkList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. + * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. + * [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) { @@ -158,7 +155,7 @@ public SubnetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 SubnetworkList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java index 4f8af881a0b..e2a3ca20f2c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -32,48 +32,24 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. + * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed + * in theValid ranges list. * 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 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 URL of the reserved internal range. Only IPv4 is supported. + * The URL of the reserved internal range. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,15 +58,8 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. + * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed + * in theValid ranges list. * @return value or {@code null} for none */ public java.lang.String getIpCidrRange() { @@ -100,15 +69,8 @@ public java.lang.String getIpCidrRange() { /** * 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. + * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed + * in theValid ranges list. * @param ipCidrRange ipCidrRange or {@code null} for none */ public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { @@ -117,49 +79,9 @@ public SubnetworkSecondaryRange setIpCidrRange(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. - * @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. + * 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() { @@ -167,9 +89,9 @@ public java.lang.String getRangeName() { } /** - * 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 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 SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { @@ -178,7 +100,7 @@ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { } /** - * The URL of the reserved internal range. Only IPv4 is supported. + * The URL of the reserved internal range. * @return value or {@code null} for none */ public java.lang.String getReservedInternalRange() { @@ -186,7 +108,7 @@ public java.lang.String getReservedInternalRange() { } /** - * The URL of the reserved internal range. Only IPv4 is supported. + * The URL of the reserved internal range. * @param reservedInternalRange reservedInternalRange or {@code null} for none */ public SubnetworkSecondaryRange setReservedInternalRange(java.lang.String reservedInternalRange) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java index e5b790d1254..8e52f4284e0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -35,7 +35,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,16 +60,15 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,14 +86,14 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +121,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean validateForProxyless; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -130,7 +129,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -217,8 +216,8 @@ public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -226,8 +225,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -236,8 +235,7 @@ public TargetGrpcProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -245,8 +243,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [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) { @@ -280,7 +277,7 @@ public TargetGrpcProxy setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -288,7 +285,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { @@ -297,7 +294,7 @@ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -305,7 +302,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java index 4e795941c63..92580b50781 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -50,8 +50,7 @@ public final class TargetGrpcProxyList extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +115,7 @@ public TargetGrpcProxyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java index be250a05ae1..a81b5124483 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -45,7 +45,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,8 +108,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. + * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,8 +142,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso 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. + * [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 @@ -158,7 +157,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -172,7 +171,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String urlMap; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -180,7 +179,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -352,8 +351,7 @@ public TargetHttpProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. + * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -361,8 +359,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. + * [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) { @@ -431,8 +428,8 @@ public TargetHttpProxy setProxyBind(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. + * [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() { @@ -440,8 +437,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -467,7 +464,7 @@ public TargetHttpProxy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -475,7 +472,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetHttpProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java index 76baf55751e..a7392cf3d15 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for - * lists of Target HTTP Proxies. + * [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 @@ -68,14 +68,14 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java index 437aef687bf..5e34d1a9076 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -50,8 +50,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi } /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. + * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi 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 @@ -116,8 +115,7 @@ public TargetHttpProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. + * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. + * 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) { @@ -158,7 +155,7 @@ public TargetHttpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetHttpProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java index c575d234f17..f09b90d7b5f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -89,7 +89,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String certificateMap; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,8 +152,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. + * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,8 +198,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs 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. + * [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 @@ -214,7 +213,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -404,7 +403,7 @@ public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -412,7 +411,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -584,8 +583,7 @@ public TargetHttpsProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. + * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -593,8 +591,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. + * [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) { @@ -690,8 +687,8 @@ public TargetHttpsProxy setQuicOverride(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. + * [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() { @@ -699,8 +696,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This - * field is not applicable to global TargetHttpsProxies. + * [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) { @@ -726,7 +723,7 @@ public TargetHttpsProxy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -734,7 +731,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetHttpsProxy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java index e3b6c0c7bde..c5e35673c5f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for - * lists of Target HTTP Proxies. + * [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 @@ -68,14 +68,14 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpsProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpsProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java index 30dd6b631cf..2f5c614d3de 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -50,8 +50,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener } /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. + * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener 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 @@ -116,8 +115,7 @@ public TargetHttpsProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. + * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. + * 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) { @@ -158,7 +155,7 @@ public TargetHttpsProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetHttpsProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java index 8ca1d6b2d8c..12ebc83aac1 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -34,7 +34,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,8 +66,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String instance; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. + * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,22 +114,22 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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] 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -138,7 +137,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -206,8 +205,7 @@ public TargetInstance setInstance(java.lang.String instance) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. + * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -215,8 +213,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. + * [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) { @@ -322,7 +319,7 @@ public TargetInstance setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -330,7 +327,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetInstance setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -339,8 +336,8 @@ public TargetInstance setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * 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. + * [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() { @@ -348,8 +345,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java index 01d803ffaf3..2b3a07f23b9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -44,7 +44,7 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public TargetInstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetInstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java index 9ed13afb4c8..4ad42444a27 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -50,7 +50,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public TargetInstanceList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public TargetInstanceList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetInstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 TargetInstanceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java index 06ab6ab69e6..81293167d55 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -51,7 +51,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String backupPool; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +107,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.util.List instances; /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * [Output Only] Type of the resource. Always compute#targetPool for target pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,7 +125,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] URL of the region where the target pool resides. + * [Output Only] URL of the region where the target pool resides. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,7 +146,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -201,7 +201,7 @@ public TargetPool setBackupPool(java.lang.String backupPool) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -209,7 +209,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -331,7 +331,7 @@ public TargetPool setInstances(java.util.List instances) { } /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * [Output Only] Type of the resource. Always compute#targetPool for target pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -339,7 +339,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * [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) { @@ -373,7 +373,7 @@ public TargetPool setName(java.lang.String name) { } /** - * Output only. [Output Only] URL of the region where the target pool resides. + * [Output Only] URL of the region where the target pool resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -381,7 +381,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the target pool resides. + * [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) { @@ -424,7 +424,7 @@ public TargetPool setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -432,7 +432,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public TargetPool setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java index a4eaf801e32..965213fa705 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -44,8 +44,8 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for - * aggregated lists of target pools. + * [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 @@ -62,14 +62,14 @@ public final class TargetPoolAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public TargetPoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetPoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java index e1930f67b71..0a8f1b2844c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -42,8 +42,8 @@ public final class TargetPoolInstanceHealth extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. + * [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 @@ -65,8 +65,8 @@ public TargetPoolInstanceHealth setHealthStatus(java.util.List hea } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. + * [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() { @@ -74,8 +74,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java index 313eb178dbd..66c2c97ec52 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -50,8 +50,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. + * [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 @@ -68,7 +67,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public TargetPoolList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. + * [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) { @@ -158,7 +155,7 @@ public TargetPoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetPoolList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java index 0f34d06b101..b63eac66aae 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -46,7 +46,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.lang.String certificateMap; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,8 +67,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -153,7 +152,7 @@ public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -161,7 +160,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -204,8 +203,7 @@ public TargetSslProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -213,8 +211,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java index a63574c696b..e8d1f6506b7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -50,7 +50,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public TargetSslProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public TargetSslProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetSslProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 TargetSslProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java index 86a88700008..9abb70a4721 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -34,7 +34,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,20 +55,12 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. + * [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 @@ -105,8 +97,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson 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. + * [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 @@ -127,7 +119,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String service; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -135,7 +127,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -178,8 +170,7 @@ public TargetTcpProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -187,8 +178,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. + * [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) { @@ -196,23 +186,6 @@ public TargetTcpProxy setKind(java.lang.String 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 @@ -293,8 +266,8 @@ public TargetTcpProxy setProxyHeader(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. + * [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() { @@ -302,8 +275,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field - * is not applicable to global TCP proxy. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java index af685bb148e..e6a659795d2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for - * lists of Target TCP Proxies. + * [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 @@ -68,14 +68,14 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetTcpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetTcpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java index 51094df31db..f2aae16d2ea 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -50,7 +50,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public TargetTcpProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public TargetTcpProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetTcpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 TargetTcpProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java index 5447e2d91e4..a0dd9cd4728 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -33,7 +33,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,8 +62,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,7 +148,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.util.List tunnels; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -157,7 +156,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -219,8 +218,7 @@ public TargetVpnGateway setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -228,8 +226,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java index fcee0487cb5..a428470d62c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -44,8 +44,7 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +61,14 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +116,7 @@ public TargetVpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetVpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java index 6eaf8c73a84..d691fa57cbe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -50,8 +50,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener 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 @@ -116,8 +115,7 @@ public TargetVpnGatewayList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [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) { @@ -158,7 +155,7 @@ public TargetVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetVpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TimeZone.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/TimeZone.java deleted file mode 100644 index 8cbf258d49b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java index a36011b3c82..112bf9dfb5e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UpcomingMaintenance.java @@ -52,13 +52,6 @@ public final class UpcomingMaintenance extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String latestWindowStartTime; - /** - * Output only. Maintenance method for the upcoming maintenance. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String maintenanceMethod; - /** * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. * The value may be {@code null}. @@ -174,23 +167,6 @@ public UpcomingMaintenance setLatestWindowStartTime(java.lang.String latestWindo return this; } - /** - * Output only. Maintenance method for the upcoming maintenance. - * @return value or {@code null} for none - */ - public java.lang.String getMaintenanceMethod() { - return maintenanceMethod; - } - - /** - * Output only. Maintenance method for the upcoming maintenance. - * @param maintenanceMethod maintenanceMethod or {@code null} for none - */ - public UpcomingMaintenance setMaintenanceMethod(java.lang.String maintenanceMethod) { - this.maintenanceMethod = maintenanceMethod; - return this; - } - /** * Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java index 7c80b5d1e76..8486729a4f7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -56,7 +56,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * [Output Only] Type of the resource. Always compute#urlMaps for url maps. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -227,9 +227,9 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { } /** - * 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. + * [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 @@ -254,7 +254,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.util.List tests; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -262,7 +262,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { @@ -590,7 +590,7 @@ public UrlMap setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * [Output Only] Type of the resource. Always compute#urlMaps for url maps. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -598,7 +598,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * [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) { @@ -649,9 +649,9 @@ public UrlMap setPathMatchers(java.util.List pathMatchers) { } /** - * 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. + * [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() { @@ -659,9 +659,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java index 717e1bf36c0..47969709c14 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -50,7 +50,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public UrlMapList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public UrlMapList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public UrlMapList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 UrlMapList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java index 97dc4836b3e..4ef0ac8e10f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -44,7 +44,7 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public UrlMapsAggregatedList setItems(java.util.Map i } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public UrlMapsAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public UrlMapsAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -164,7 +164,7 @@ 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 UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UrlMapsAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java index 05fe83d9ac0..20241b48f30 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -30,14 +30,14 @@ 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. + * [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. + * [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 @@ -108,7 +108,7 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJs private java.lang.String subnetwork; /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * [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() { @@ -116,7 +116,7 @@ public java.lang.String getExternalIpv6Prefix() { } /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * [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) { @@ -125,7 +125,7 @@ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefi } /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * [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() { @@ -133,7 +133,7 @@ public java.lang.String getInternalIpv6Prefix() { } /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java index 44ad036dfd4..1ddaab1abe0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -30,8 +30,7 @@ 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 range of IP addresses belonging to this subnetwork secondary range. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,8 +46,7 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client. private java.lang.String rangeName; /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. + * The range of IP addresses belonging to this subnetwork secondary range. * @return value or {@code null} for none */ public java.lang.String getIpCidrRange() { @@ -56,8 +54,7 @@ public java.lang.String getIpCidrRange() { } /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. + * The range of IP addresses belonging to this subnetwork secondary range. * @param ipCidrRange ipCidrRange or {@code null} for none */ public UsableSubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 534fc9e95cd..842a539118c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -50,8 +50,8 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. + * [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 @@ -69,7 +69,7 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * [Output Only] Informational warning messages for failures encountered from scopes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +82,14 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +137,8 @@ public UsableSubnetworksAggregatedList setItems(java.util.List } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. + * [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() { @@ -146,8 +146,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. + * [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) { @@ -181,7 +181,7 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag } /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * [Output Only] Informational warning messages for failures encountered from scopes. * @return value or {@code null} for none */ public java.util.List getScopedWarnings() { @@ -189,7 +189,7 @@ public java.util.List getScopedWarnings() { } /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * [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) { @@ -198,7 +198,7 @@ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List getUnreachables() { @@ -223,7 +223,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java index dba5c153b73..b745011ac7e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -30,7 +30,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.GenericJson { /** - * Output only. Name of the VM instance which the endpoint belongs to + * Name of the VM instance which the endpoint belongs to * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.Gene private java.util.List interfaceNatMappings; /** - * Output only. Name of the VM instance which the endpoint belongs to + * Name of the VM instance which the endpoint belongs to * @return value or {@code null} for none */ public java.lang.String getInstanceName() { @@ -51,7 +51,7 @@ public java.lang.String getInstanceName() { } /** - * Output only. Name of the VM instance which the endpoint belongs to + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java index 69ee2a0bc82..09332672258 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -30,8 +30,8 @@ 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: + * 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}. */ @@ -39,8 +39,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. 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: + * 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}. */ @@ -48,46 +48,46 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. 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. + * 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. + * 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. + * 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". + * 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. + * 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: + * 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 */ @@ -96,8 +96,8 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -107,8 +107,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.ut } /** - * 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: + * 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 */ @@ -117,8 +117,8 @@ public java.util.List getNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -128,8 +128,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.Li } /** - * 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. + * 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() { @@ -137,8 +137,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -147,8 +147,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.l } /** - * 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. + * 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() { @@ -156,8 +156,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -166,7 +166,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.I } /** - * Output only. Information about mappings provided by rules in this NAT. + * Information about mappings provided by rules in this NAT. * @return value or {@code null} for none */ public java.util.List getRuleMappings() { @@ -174,7 +174,7 @@ public java.util.List } /** - * Output only. Information about mappings provided by rules in this NAT. + * Information about mappings provided by rules in this NAT. * @param ruleMappings ruleMappings or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List ruleMappings) { @@ -183,8 +183,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List< } /** - * 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". + * 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() { @@ -192,8 +192,8 @@ public java.lang.String getSourceAliasIpRange() { } /** - * 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". + * 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) { @@ -202,7 +202,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang } /** - * Output only. Primary IP of the VM for this NIC. + * Primary IP of the VM for this NIC. * @return value or {@code null} for none */ public java.lang.String getSourceVirtualIp() { @@ -210,7 +210,7 @@ public java.lang.String getSourceVirtualIp() { } /** - * Output only. Primary IP of the VM for this NIC. + * Primary IP of the VM for this NIC. * @param sourceVirtualIp sourceVirtualIp or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setSourceVirtualIp(java.lang.String sourceVirtualIp) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java index 1b6a728406e..a29036c0838 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -30,50 +30,50 @@ 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"]. + * 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"]. + * 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. + * 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. + * 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. + * 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"]. + * 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() { @@ -81,9 +81,9 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -92,9 +92,9 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPor } /** - * 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"]. + * 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() { @@ -102,9 +102,9 @@ public java.util.List getNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -113,8 +113,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRang } /** - * 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. + * 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() { @@ -122,8 +122,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -132,8 +132,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrain } /** - * 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. + * 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() { @@ -141,8 +141,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -151,7 +151,7 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPo } /** - * Output only. Rule number of the NAT Rule. + * Rule number of the NAT Rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleNumber() { @@ -159,7 +159,7 @@ public java.lang.Integer getRuleNumber() { } /** - * Output only. Rule number of the NAT Rule. + * Rule number of the NAT Rule. * @param ruleNumber ruleNumber or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java index 5fb6f39d7d1..286f93e7107 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -37,8 +37,8 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. private java.lang.String id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. + * [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 @@ -68,7 +68,7 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. } /** - * 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 @@ -99,8 +99,8 @@ public VmEndpointNatMappingsList setId(java.lang.String id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. + * [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() { @@ -108,8 +108,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. + * [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) { @@ -158,7 +158,7 @@ public VmEndpointNatMappingsList setResult(java.util.List } /** - * 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() { @@ -166,7 +166,7 @@ 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 VmEndpointNatMappingsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.java deleted file mode 100644 index 45c6d4aa683..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtension.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.model; - -/** - * A VM extension that can be installed on a VM. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class VmExtension extends com.google.api.client.json.GenericJson { - - /** - * The name of the vm extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The latest 10 versions of the vm extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List versions; - - /** - * The name of the vm extension. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the vm extension. - * @param name name or {@code null} for none - */ - public VmExtension setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The latest 10 versions of the vm extension. - * @return value or {@code null} for none - */ - public java.util.List getVersions() { - return versions; - } - - /** - * The latest 10 versions of the vm extension. - * @param versions versions or {@code null} for none - */ - public VmExtension setVersions(java.util.List versions) { - this.versions = versions; - return this; - } - - @Override - public VmExtension set(String fieldName, Object value) { - return (VmExtension) super.set(fieldName, value); - } - - @Override - public VmExtension clone() { - return (VmExtension) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java index c33bf330196..2c90d277cdf 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.String description; /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * Required. A map of extension names (e.g., "cloudops") to their corresponding policy * configurations. * The value may be {@code null}. */ @@ -52,16 +52,14 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.Map extensionPolicies; /** - * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, - * if applicable. + * Optional. [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. + * [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 @@ -76,14 +74,14 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.List instanceSelectors; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * [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. + * Optional. [Output Only] Indicates if this policy is managed by a global policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +102,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ * 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 + * is assigned a priority of 1000. If priorities are equal, the policy with the more recent * creation timestamp takes precedence. * The value may be {@code null}. */ @@ -112,35 +110,35 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.Integer priority; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [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. + * Optional. [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -148,7 +146,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -174,7 +172,7 @@ public VmExtensionPolicy setDescription(java.lang.String description) { } /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * Required. A map of extension names (e.g., "cloudops") to their corresponding policy * configurations. * @return value or {@code null} for none */ @@ -183,7 +181,7 @@ public java.util.Map getExtensionPolic } /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * Required. A map of extension names (e.g., "cloudops") to their corresponding policy * configurations. * @param extensionPolicies extensionPolicies or {@code null} for none */ @@ -193,8 +191,7 @@ public VmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java index 2cc93446c09..28f3a4ef8f7 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java @@ -30,8 +30,8 @@ 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 + * [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. * @@ -43,14 +43,14 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene private java.lang.String etag; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier 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. + * [Output Only] A list of VM extension policy resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -63,46 +63,46 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene } /** - * Output only. Type of resource. + * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [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 + * [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. * @@ -115,8 +115,8 @@ public java.lang.String getEtag() { } /** - * 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 + * [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. * @@ -130,7 +130,7 @@ public VmExtensionPolicyList setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -138,7 +138,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -147,7 +147,7 @@ public VmExtensionPolicyList setId(java.lang.String id) { } /** - * Output only. [Output Only] A list of VM extension policy resources. + * [Output Only] A list of VM extension policy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -155,7 +155,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] A list of VM extension policy resources. + * [Output Only] A list of VM extension policy resources. * @param items items or {@code null} for none */ public VmExtensionPolicyList setItems(java.util.List items) { @@ -164,7 +164,7 @@ public VmExtensionPolicyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -172,7 +172,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public VmExtensionPolicyList setKind(java.lang.String kind) { @@ -181,10 +181,10 @@ public VmExtensionPolicyList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -192,10 +192,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -204,7 +204,7 @@ public VmExtensionPolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -212,7 +212,7 @@ 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 VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { @@ -221,7 +221,7 @@ public VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -229,7 +229,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyList setUnreachables(java.util.List unreachables) { @@ -238,7 +238,7 @@ public VmExtensionPolicyList setUnreachables(java.util.List un } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -246,7 +246,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public VmExtensionPolicyList setWarning(Warning warning) { @@ -265,7 +265,7 @@ public VmExtensionPolicyList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.java deleted file mode 100644 index 63bed00988b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionState.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.model; - -/** - * State of an extension on 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 VmExtensionState extends com.google.api.client.json.GenericJson { - - /** - * The status message of the extension if the extension fails to enforce. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enforcementMsg; - - /** - * The enforcement state of the extension. If the extension is not enforced yet, then the health - * status will not be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String enforcementState; - - /** - * The health status message of the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthMsg; - - /** - * The health status of the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String healthStatus; - - /** - * The name of the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The id of the policy that is enforced on the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String policyId; - - /** - * The version of the extension. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String version; - - /** - * The status message of the extension if the extension fails to enforce. - * @return value or {@code null} for none - */ - public java.lang.String getEnforcementMsg() { - return enforcementMsg; - } - - /** - * The status message of the extension if the extension fails to enforce. - * @param enforcementMsg enforcementMsg or {@code null} for none - */ - public VmExtensionState setEnforcementMsg(java.lang.String enforcementMsg) { - this.enforcementMsg = enforcementMsg; - return this; - } - - /** - * The enforcement state of the extension. If the extension is not enforced yet, then the health - * status will not be specified. - * @return value or {@code null} for none - */ - public java.lang.String getEnforcementState() { - return enforcementState; - } - - /** - * The enforcement state of the extension. If the extension is not enforced yet, then the health - * status will not be specified. - * @param enforcementState enforcementState or {@code null} for none - */ - public VmExtensionState setEnforcementState(java.lang.String enforcementState) { - this.enforcementState = enforcementState; - return this; - } - - /** - * The health status message of the extension. - * @return value or {@code null} for none - */ - public java.lang.String getHealthMsg() { - return healthMsg; - } - - /** - * The health status message of the extension. - * @param healthMsg healthMsg or {@code null} for none - */ - public VmExtensionState setHealthMsg(java.lang.String healthMsg) { - this.healthMsg = healthMsg; - return this; - } - - /** - * The health status of the extension. - * @return value or {@code null} for none - */ - public java.lang.String getHealthStatus() { - return healthStatus; - } - - /** - * The health status of the extension. - * @param healthStatus healthStatus or {@code null} for none - */ - public VmExtensionState setHealthStatus(java.lang.String healthStatus) { - this.healthStatus = healthStatus; - return this; - } - - /** - * The name of the extension. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * The name of the extension. - * @param name name or {@code null} for none - */ - public VmExtensionState setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The id of the policy that is enforced on the extension. - * @return value or {@code null} for none - */ - public java.lang.String getPolicyId() { - return policyId; - } - - /** - * The id of the policy that is enforced on the extension. - * @param policyId policyId or {@code null} for none - */ - public VmExtensionState setPolicyId(java.lang.String policyId) { - this.policyId = policyId; - return this; - } - - /** - * The version of the extension. - * @return value or {@code null} for none - */ - public java.lang.String getVersion() { - return version; - } - - /** - * The version of the extension. - * @param version version or {@code null} for none - */ - public VmExtensionState setVersion(java.lang.String version) { - this.version = version; - return this; - } - - @Override - public VmExtensionState set(String fieldName, Object value) { - return (VmExtensionState) super.set(fieldName, value); - } - - @Override - public VmExtensionState clone() { - return (VmExtensionState) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java index d8149f69b9b..e1ec2acc644 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -35,7 +35,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,15 +57,14 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIpVersion; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -120,14 +119,14 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private VpnGatewayParams params; /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -150,7 +149,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.util.List vpnInterfaces; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -158,7 +157,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,8 +202,7 @@ public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -212,8 +210,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -222,7 +219,7 @@ public VpnGateway setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -230,7 +227,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [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) { @@ -390,7 +387,7 @@ public VpnGateway setParams(VpnGatewayParams params) { } /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. + * [Output Only] URL of the region where the VPN gateway resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -398,7 +395,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. + * [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) { @@ -407,7 +404,7 @@ public VpnGateway setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -415,7 +412,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public VpnGateway setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java index 125137b6dcb..ad57f221ca9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class VpnGatewayAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java index 582e5d5df26..5d0c093170d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -50,7 +50,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson 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 @@ -115,7 +115,7 @@ public VpnGatewayList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [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) { @@ -155,7 +155,7 @@ public VpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 VpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java index e70f0cef786..7904e9eec5a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java @@ -30,14 +30,14 @@ public final class VpnGatewayStatus extends com.google.api.client.json.GenericJson { /** - * Output only. List of VPN connection for this VpnGateway. + * 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. + * List of VPN connection for this VpnGateway. * @return value or {@code null} for none */ public java.util.List getVpnConnections() { @@ -45,7 +45,7 @@ public java.util.List getVpnConnections() { } /** - * Output only. List of VPN connection for this VpnGateway. + * List of VPN connection for this VpnGateway. * @param vpnConnections vpnConnections or {@code null} for none */ public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java index ff635e7b322..67a40c89518 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -30,29 +30,29 @@ public final class VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. + * 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 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. + * 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. + * The VPN gateway interface this VPN tunnel is associated with. * @return value or {@code null} for none */ public java.lang.Long getLocalGatewayInterface() { @@ -60,7 +60,7 @@ public java.lang.Long getLocalGatewayInterface() { } /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. + * 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) { @@ -69,8 +69,8 @@ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatew } /** - * 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 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() { @@ -78,8 +78,8 @@ public java.lang.Long getPeerGatewayInterface() { } /** - * 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 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) { @@ -88,7 +88,7 @@ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGateway } /** - * Output only. URL reference to the VPN tunnel. + * URL reference to the VPN tunnel. * @return value or {@code null} for none */ public java.lang.String getTunnelUrl() { @@ -96,7 +96,7 @@ public java.lang.String getTunnelUrl() { } /** - * Output only. URL reference to the VPN tunnel. + * URL reference to the VPN tunnel. * @param tunnelUrl tunnelUrl or {@code null} for none */ public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java index af1945dd5b6..1e97486d287 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -31,16 +31,16 @@ 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. + * 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. + * 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 @@ -67,8 +67,8 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.j } /** - * 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. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getPeerExternalGateway() { } /** - * 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. + * 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) { @@ -86,8 +86,8 @@ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String pee } /** - * 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. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getPeerGcpGateway() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java index a0c47f43cf1..244d89c5e97 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -30,8 +30,7 @@ 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. + * [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 @@ -48,22 +47,21 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j 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. + * [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. + * [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}. */ @@ -71,8 +69,7 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String ipv6Address; /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. + * [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() { @@ -80,8 +77,7 @@ public java.lang.Long getId() { } /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. + * [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) { @@ -113,14 +109,13 @@ public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String } /** - * 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. + * [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() { @@ -128,14 +123,13 @@ public java.lang.String getIpAddress() { } /** - * 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. + * [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) { @@ -144,8 +138,8 @@ public VpnGatewayVpnGatewayInterface setIpAddress(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. + * [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 */ @@ -154,8 +148,8 @@ public java.lang.String getIpv6Address() { } /** - * 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. + * [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 */ diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java index 02513e59931..112d37f3bf9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -47,7 +47,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private VpnTunnelCipherSuite cipherSuite; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,7 +83,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private java.lang.Integer ikeVersion; /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -307,7 +307,7 @@ public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -315,7 +315,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { @@ -394,7 +394,7 @@ public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -402,7 +402,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java index 803aead4170..8defd580f15 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnTunnelAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnTunnelAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java index 467d94bfe67..66f5b6260ef 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -50,7 +50,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson 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 @@ -115,7 +115,7 @@ public VpnTunnelList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [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) { @@ -155,7 +155,7 @@ public VpnTunnelList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 VpnTunnelList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java index d2d7f2d7532..a2ebc4201ae 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Wire.java @@ -30,25 +30,25 @@ 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. + * [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. + * 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: + * [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. @@ -58,16 +58,16 @@ public final class Wire extends com.google.api.client.json.GenericJson { private java.lang.String label; /** - * Output only. [Output Only] Properties of the wire. + * [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. + * [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() { @@ -75,9 +75,9 @@ public java.lang.Boolean getAdminEnabled() { } /** - * 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. + * [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) { @@ -86,7 +86,7 @@ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Output only. Wire endpoints are specific Interconnect connections. + * Wire endpoints are specific Interconnect connections. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -94,7 +94,7 @@ public java.util.List getEndpoints() { } /** - * Output only. Wire endpoints are specific Interconnect connections. + * Wire endpoints are specific Interconnect connections. * @param endpoints endpoints or {@code null} for none */ public Wire setEndpoints(java.util.List endpoints) { @@ -103,9 +103,9 @@ public Wire setEndpoints(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: + * [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. @@ -116,9 +116,9 @@ public java.lang.String getLabel() { } /** - * 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: + * [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. @@ -130,7 +130,7 @@ public Wire setLabel(java.lang.String label) { } /** - * Output only. [Output Only] Properties of the wire. + * [Output Only] Properties of the wire. * @return value or {@code null} for none */ public WireProperties getWireProperties() { @@ -138,7 +138,7 @@ public WireProperties getWireProperties() { } /** - * Output only. [Output Only] Properties of the wire. + * [Output Only] Properties of the wire. * @param wireProperties wireProperties or {@code null} for none */ public Wire setWireProperties(WireProperties wireProperties) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java index e2921011e39..7bb670630d8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -39,7 +39,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.Boolean adminEnabled; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,15 +61,15 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.util.Map endpoints; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,14 +87,14 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,14 +107,14 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String selfLinkWithId; /** - * Output only. Service level details determined for the wire group configuration. + * Service level details determined for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key private WireGroupServiceLevel serviceLevel; /** - * Output only. Topology details for the wire group configuration. + * Topology details for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,7 +144,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private WireProperties wireProperties; /** - * Output only. The single/redundant wire(s) managed by the wire group. + * The single/redundant wire(s) managed by the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -178,7 +178,7 @@ public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -186,7 +186,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -231,8 +231,8 @@ public WireGroup setEndpoints(java.util.Map endpoints } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -240,8 +240,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -250,7 +250,7 @@ public WireGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -258,7 +258,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [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) { @@ -292,7 +292,7 @@ public WireGroup setName(java.lang.String name) { } /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * [Output Only] Indicates whether there are wire changes yet to be processed. * @return value or {@code null} for none */ public java.lang.Boolean getReconciling() { @@ -300,7 +300,7 @@ public java.lang.Boolean getReconciling() { } /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * [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) { @@ -309,7 +309,7 @@ public WireGroup setReconciling(java.lang.Boolean reconciling) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -317,7 +317,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public WireGroup setSelfLink(java.lang.String selfLink) { @@ -341,7 +341,7 @@ public WireGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. Service level details determined for the wire group configuration. + * Service level details determined for the wire group configuration. * @return value or {@code null} for none */ public WireGroupServiceLevel getServiceLevel() { @@ -349,7 +349,7 @@ public WireGroupServiceLevel getServiceLevel() { } /** - * Output only. Service level details determined for the wire group configuration. + * Service level details determined for the wire group configuration. * @param serviceLevel serviceLevel or {@code null} for none */ public WireGroup setServiceLevel(WireGroupServiceLevel serviceLevel) { @@ -358,7 +358,7 @@ public WireGroup setServiceLevel(WireGroupServiceLevel serviceLevel) { } /** - * Output only. Topology details for the wire group configuration. + * Topology details for the wire group configuration. * @return value or {@code null} for none */ public WireGroupTopology getTopology() { @@ -366,7 +366,7 @@ public WireGroupTopology getTopology() { } /** - * Output only. Topology details for the wire group configuration. + * Topology details for the wire group configuration. * @param topology topology or {@code null} for none */ public WireGroup setTopology(WireGroupTopology topology) { @@ -430,7 +430,7 @@ public WireGroup setWireProperties(WireProperties wireProperties) { } /** - * Output only. The single/redundant wire(s) managed by the wire group. + * The single/redundant wire(s) managed by the wire group. * @return value or {@code null} for none */ public java.util.List getWires() { @@ -438,7 +438,7 @@ public java.util.List getWires() { } /** - * Output only. The single/redundant wire(s) managed by the wire group. + * 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) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java index b677fb9cd8a..eae81afc621 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -56,7 +56,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,8 +80,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,7 +143,7 @@ public WireGroupList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -152,7 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [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) { @@ -201,8 +200,7 @@ public WireGroupList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -210,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public WireGroupList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java index 04529144b66..76044a224e8 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupServiceLevel.java @@ -30,18 +30,16 @@ public final class WireGroupServiceLevel extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The availability SLA that the wire group qualifies for. One of the - * following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or - * `AVAILABILITY_9995`. + * [Output Only] The availability SLA that the wire group qualifies for. One of the following: + * `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or `AVAILABILITY_9995`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String availabilityClass; /** - * Output only. [Output Only] The availability SLA that the wire group qualifies for. One of the - * following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or - * `AVAILABILITY_9995`. + * [Output Only] The availability SLA that the wire group qualifies for. One of the following: + * `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or `AVAILABILITY_9995`. * @return value or {@code null} for none */ public java.lang.String getAvailabilityClass() { @@ -49,9 +47,8 @@ public java.lang.String getAvailabilityClass() { } /** - * Output only. [Output Only] The availability SLA that the wire group qualifies for. One of the - * following: `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or - * `AVAILABILITY_9995`. + * [Output Only] The availability SLA that the wire group qualifies for. One of the following: + * `NO_AVAILABILITY_SLA`, `AVAILABILITY_99`, `AVAILABILITY_999`, or `AVAILABILITY_9995`. * @param availabilityClass availabilityClass or {@code null} for none */ public WireGroupServiceLevel setAvailabilityClass(java.lang.String availabilityClass) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index 9af850296af..bbe19b70c85 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -30,14 +30,14 @@ public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * Output only. Topology details for all endpoints in the wire group. + * 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. + * Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -45,7 +45,7 @@ public java.util.List getEndpoints() { } /** - * Output only. Topology details for all endpoints in the wire group. + * Topology details for all endpoints in the wire group. * @param endpoints endpoints or {@code null} for none */ public WireGroupTopology setEndpoints(java.util.List endpoints) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index 78a82e14a9a..c871813ea31 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -30,23 +30,23 @@ 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 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. + * 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. + * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located + * in. * @return value or {@code null} for none */ public java.lang.String getCity() { @@ -54,8 +54,8 @@ public java.lang.String getCity() { } /** - * Output only. The InterconnectLocation.city (metropolitan area designator) that all - * interconnects are located in. + * 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) { @@ -64,7 +64,7 @@ public WireGroupTopologyEndpoint setCity(java.lang.String city) { } /** - * Output only. Endpoint label from the wire group. + * Endpoint label from the wire group. * @return value or {@code null} for none */ public java.lang.String getLabel() { @@ -72,7 +72,7 @@ public java.lang.String getLabel() { } /** - * Output only. Endpoint label from the wire group. + * Endpoint label from the wire group. * @param label label or {@code null} for none */ public WireGroupTopologyEndpoint setLabel(java.lang.String label) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java index 1d968742891..fdb831631b4 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -50,8 +50,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. + * [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 @@ -68,7 +67,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public XpnHostList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. + * [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) { @@ -158,7 +155,7 @@ public XpnHostList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 XpnHostList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java index 75ab725815c..0675cfe1818 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Zone.java @@ -68,7 +68,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. + * [Output Only] Type of the resource. Always compute#zone for zones. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,12 +88,6 @@ public final class Zone extends com.google.api.client.json.GenericJson { @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}. @@ -109,7 +103,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -201,7 +195,7 @@ public Zone setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. + * [Output Only] Type of the resource. Always compute#zone for zones. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -209,7 +203,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. + * [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) { @@ -251,21 +245,6 @@ public Zone setRegion(java.lang.String 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 @@ -301,7 +280,7 @@ public Zone setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -309,7 +288,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java index 479ab946be8..5291d3e8c13 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -50,7 +50,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public ZoneList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ZoneList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ZoneList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 ZoneList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java deleted file mode 100644 index fa29c63261b..00000000000 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/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.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/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index 20c8d167515..23524aa4ddd 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-rev20260306-2.0.0 - Compute Engine API alpha-rev20260306-2.0.0 + alpha-rev20251110-2.0.0 + Compute Engine API alpha-rev20251110-2.0.0 jar 2011 From 6646fd4a04c85a4c699e7063295d7650cf647a6f Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 16 Mar 2026 13:56:10 -0400 Subject: [PATCH 5/5] Revert "chore: regenerate compute beta client" This reverts commit fdc73ae1befe027733559249e61da0dfdfc4d69d. --- .../beta/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 121122 +++++++-------- .../compute/model/AcceleratorType.java | 15 +- .../model/AcceleratorTypeAggregatedList.java | 24 +- .../compute/model/AcceleratorTypeList.java | 18 +- .../services/compute/model/AccessConfig.java | 6 +- .../api/services/compute/model/Address.java | 63 +- .../compute/model/AddressAggregatedList.java | 24 +- .../services/compute/model/AddressList.java | 12 +- .../model/AllocationAggregateReservation.java | 24 +- ...UAllocationReservedInstanceProperties.java | 2 +- .../AllocationSpecificSKUReservation.java | 12 +- .../services/compute/model/AttachedDisk.java | 120 +- .../model/AttachedDiskInitializeParams.java | 24 +- .../services/compute/model/Autoscaler.java | 75 +- .../model/AutoscalerAggregatedList.java | 27 +- .../compute/model/AutoscalerList.java | 15 +- .../api/services/compute/model/Backend.java | 24 - .../BackendBackendOrchestrationInfo.java | 66 - .../services/compute/model/BackendBucket.java | 30 +- .../model/BackendBucketAggregatedList.java | 12 +- .../compute/model/BackendBucketList.java | 12 +- .../model/BackendBucketListUsable.java | 18 +- .../compute/model/BackendBucketUsedBy.java | 6 +- .../compute/model/BackendService.java | 63 +- .../model/BackendServiceAggregatedList.java | 18 +- .../BackendServiceDynamicForwarding.java | 24 - ...dServiceDynamicForwardingForwardProxy.java | 90 - .../model/BackendServiceFailoverPolicy.java | 6 +- .../model/BackendServiceGroupHealth.java | 12 +- .../compute/model/BackendServiceIAP.java | 6 +- .../compute/model/BackendServiceList.java | 15 +- .../model/BackendServiceListUsable.java | 18 +- .../BackendServiceOrchestrationInfo.java | 66 - .../compute/model/BackendServiceUsedBy.java | 12 +- .../api/services/compute/model/BgpRoute.java | 30 +- .../compute/model/BgpRouteAsPath.java | 30 +- .../compute/model/BulkInsertDiskResource.java | 48 - .../model/BulkInsertInstanceResource.java | 24 - ...InstanceResourcePerInstanceProperties.java | 6 +- .../services/compute/model/CachePolicy.java | 405 - .../model/CachePolicyCacheKeyPolicy.java | 307 - .../CachePolicyNegativeCachingPolicy.java | 102 - .../services/compute/model/Commitment.java | 105 +- .../model/CommitmentAggregatedList.java | 24 +- .../compute/model/CommitmentList.java | 15 +- .../model/CommitmentResourceStatus.java | 18 +- .../compute/model/CompositeHealthCheck.java | 57 +- .../CompositeHealthCheckAggregatedList.java | 18 +- .../model/CompositeHealthCheckList.java | 12 +- .../compute/model/CrossSiteNetwork.java | 33 +- .../compute/model/CrossSiteNetworkList.java | 18 +- .../api/services/compute/model/Disk.java | 285 +- .../compute/model/DiskAggregatedList.java | 24 +- .../compute/model/DiskAsyncReplication.java | 54 +- .../api/services/compute/model/DiskList.java | 12 +- .../services/compute/model/DiskParams.java | 24 +- .../api/services/compute/model/DiskType.java | 6 +- .../compute/model/DiskTypeAggregatedList.java | 18 +- .../services/compute/model/DiskTypeList.java | 12 +- .../compute/model/DistributionPolicy.java | 18 +- .../model/ExchangedPeeringRoutesList.java | 18 +- .../compute/model/ExternalVpnGateway.java | 57 +- .../compute/model/ExternalVpnGatewayList.java | 12 +- .../model/ExternalVpnGatewayParams.java | 87 - .../api/services/compute/model/Firewall.java | 21 +- .../services/compute/model/FirewallList.java | 15 +- ...ewallPoliciesListAssociationsResponse.java | 6 +- .../compute/model/FirewallPolicy.java | 93 +- .../model/FirewallPolicyAssociation.java | 12 +- .../compute/model/FirewallPolicyList.java | 9 +- .../compute/model/FirewallPolicyRule.java | 18 +- .../model/FirewallPolicyRuleMatcher.java | 54 - .../model/FirewallPolicyRuleSecureTag.java | 12 +- .../compute/model/FixedOrPercent.java | 9 +- .../compute/model/FlexibleTimeRange.java | 3 +- .../compute/model/ForwardingRule.java | 105 +- .../model/ForwardingRuleAggregatedList.java | 24 +- .../compute/model/ForwardingRuleList.java | 12 +- .../compute/model/FutureReservation.java | 102 +- .../model/FutureReservationStatus.java | 81 +- ...vationStatusExistingMatchingUsageInfo.java | 12 +- ...reReservationStatusLastKnownGoodState.java | 45 +- ...tKnownGoodStateFutureReservationSpecs.java | 18 +- ...ureReservationsAggregatedListResponse.java | 27 +- .../model/FutureReservationsListResponse.java | 24 +- .../model/GetVersionOperationMetadata.java | 63 - .../GetVersionOperationMetadataSbomInfo.java | 96 - .../model/GlobalVmExtensionPolicy.java | 51 +- .../model/GlobalVmExtensionPolicyList.java | 18 +- ...obalVmExtensionPolicyRolloutOperation.java | 6 +- ...ionPolicyRolloutOperationRolloutInput.java | 99 +- ...onPolicyRolloutOperationRolloutStatus.java | 24 +- ...OperationRolloutStatusRolloutMetadata.java | 48 +- ...sRolloutMetadataLocationRolloutStatus.java | 67 - .../compute/model/GuestAttributes.java | 27 +- .../model/HealthAggregationPolicy.java | 57 +- ...HealthAggregationPolicyAggregatedList.java | 18 +- .../model/HealthAggregationPolicyList.java | 12 +- .../services/compute/model/HealthCheck.java | 21 +- .../compute/model/HealthCheckList.java | 12 +- .../compute/model/HealthCheckService.java | 48 +- .../HealthCheckServiceAggregatedList.java | 401 - .../model/HealthCheckServicesList.java | 54 +- .../model/HealthCheckServicesScopedList.java | 278 - .../model/HealthChecksAggregatedList.java | 18 +- .../services/compute/model/HealthSource.java | 51 +- .../model/HealthSourceAggregatedList.java | 18 +- .../compute/model/HealthSourceList.java | 6 +- .../compute/model/HttpHeaderMatch.java | 6 +- .../compute/model/HttpHealthCheck.java | 9 +- .../compute/model/HttpHealthCheckList.java | 12 +- .../model/HttpQueryParameterMatch.java | 6 +- .../compute/model/HttpRouteAction.java | 27 - .../compute/model/HttpRouteRuleMatch.java | 72 +- .../compute/model/HttpsHealthCheck.java | 6 +- .../compute/model/HttpsHealthCheckList.java | 12 +- .../api/services/compute/model/Image.java | 186 +- .../api/services/compute/model/ImageList.java | 12 +- .../services/compute/model/ImageParams.java | 24 +- .../api/services/compute/model/Instance.java | 156 +- .../compute/model/InstanceAggregatedList.java | 24 +- .../model/InstanceConsumptionData.java | 12 +- .../model/InstanceConsumptionInfo.java | 24 +- .../model/InstanceFlexibilityPolicy.java | 75 - ...nceFlexibilityPolicyInstanceSelection.java | 134 - .../services/compute/model/InstanceGroup.java | 98 +- .../model/InstanceGroupAggregatedList.java | 62 +- .../compute/model/InstanceGroupList.java | 56 +- .../compute/model/InstanceGroupManager.java | 99 +- .../InstanceGroupManagerActionsSummary.java | 215 +- .../InstanceGroupManagerAggregatedList.java | 65 +- .../model/InstanceGroupManagerList.java | 56 +- .../model/InstanceGroupManagerParams.java | 21 +- .../InstanceGroupManagerResizeRequest.java | 78 +- ...stanceGroupManagerResizeRequestStatus.java | 64 +- ...ManagerResizeRequestStatusLastAttempt.java | 8 +- ...roupManagerResizeRequestsListResponse.java | 56 +- .../model/InstanceGroupManagerStatus.java | 120 +- ...GroupManagerStatusAcceleratorTopology.java | 117 - ...pologyAcceleratorTopologyStateDetails.java | 370 - ...eGroupManagerStatusAllInstancesConfig.java | 24 +- ...oupManagerStatusBulkInstanceOperation.java | 12 +- ...ulkInstanceOperationLastProgressCheck.java | 20 +- ...oupManagerStatusInstanceStatusSummary.java | 404 - .../InstanceGroupManagerStatusStateful.java | 66 +- ...nagerStatusStatefulPerInstanceConfigs.java | 15 +- ...stanceGroupManagerStatusVersionTarget.java | 18 +- ...ConfigureAcceleratorTopologiesRequest.java | 102 - ...questAcceleratorTopologyConfiguration.java | 99 - ...vailableAcceleratorTopologiesResponse.java | 24 - ...logiesResponseAcceleratorTopologyInfo.java | 69 - ...ogiesResponseAcceleratorTopologyState.java | 420 - ...stanceGroupManagersListErrorsResponse.java | 30 +- ...pManagersListManagedInstancesResponse.java | 30 +- ...oupManagersListPerInstanceConfigsResp.java | 38 +- .../InstanceGroupManagersScopedList.java | 28 +- .../model/InstanceGroupsListInstances.java | 59 +- .../model/InstanceGroupsScopedList.java | 22 +- .../services/compute/model/InstanceList.java | 15 +- .../compute/model/InstanceListReferrers.java | 18 +- .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../compute/model/InstanceParams.java | 24 +- .../compute/model/InstanceProperties.java | 42 +- .../compute/model/InstanceSettings.java | 21 +- .../model/InstanceSettingsMetadata.java | 6 +- .../compute/model/InstanceTemplate.java | 51 +- .../model/InstanceTemplateAggregatedList.java | 12 +- .../compute/model/InstanceTemplateList.java | 18 +- .../compute/model/InstanceWithNamedPorts.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 9 +- .../compute/model/InstantSnapshot.java | 210 +- .../model/InstantSnapshotAggregatedList.java | 24 +- .../compute/model/InstantSnapshotGroup.java | 360 - .../model/InstantSnapshotGroupParameters.java | 78 - .../InstantSnapshotGroupResourceStatus.java | 90 - .../model/InstantSnapshotGroupSourceInfo.java | 84 - .../compute/model/InstantSnapshotList.java | 12 +- .../compute/model/InstantSnapshotParams.java | 78 - .../services/compute/model/Interconnect.java | 195 +- .../compute/model/InterconnectAttachment.java | 285 +- .../InterconnectAttachmentAggregatedList.java | 24 +- ...ectAttachmentConfigurationConstraints.java | 33 +- .../model/InterconnectAttachmentGroup.java | 30 +- ...redAvailabilitySLAIntendedSlaBlockers.java | 78 +- ...AttachmentGroupLogicalStructureRegion.java | 6 +- ...hmentGroupLogicalStructureRegionMetro.java | 12 +- ...upLogicalStructureRegionMetroFacility.java | 6 +- ...gicalStructureRegionMetroFacilityZone.java | 18 +- ...erconnectAttachmentGroupsListResponse.java | 9 +- ...nectAttachmentGroupsOperationalStatus.java | 12 +- ...oupsOperationalStatusAttachmentStatus.java | 42 +- .../model/InterconnectAttachmentList.java | 18 +- .../compute/model/InterconnectGroup.java | 30 +- ...yCapabilityIntendedCapabilityBlockers.java | 66 +- ...erconnectGroupPhysicalStructureMetros.java | 12 +- ...roupPhysicalStructureMetrosFacilities.java | 12 +- ...hysicalStructureMetrosFacilitiesZones.java | 24 +- .../model/InterconnectGroupsListResponse.java | 9 +- .../InterconnectGroupsOperationalStatus.java | 24 +- ...psOperationalStatusInterconnectStatus.java | 27 +- .../compute/model/InterconnectList.java | 15 +- .../compute/model/InterconnectLocation.java | 123 +- ...nectLocationCrossSiteInterconnectInfo.java | 15 +- .../model/InterconnectLocationList.java | 18 +- .../model/InterconnectLocationRegionInfo.java | 36 +- .../model/InterconnectRemoteLocation.java | 216 +- ...InterconnectRemoteLocationConstraints.java | 30 +- .../model/InterconnectRemoteLocationList.java | 18 +- ...ectRemoteLocationPermittedConnections.java | 12 +- .../api/services/compute/model/License.java | 57 +- .../services/compute/model/LicenseCode.java | 63 +- .../model/LicenseCodeLicenseAlias.java | 12 +- .../services/compute/model/LicenseParams.java | 78 - .../compute/model/LicensesListResponse.java | 6 +- .../model/ListInstantSnapshotGroups.java | 431 - .../compute/model/ListSnapshotGroups.java | 425 - .../compute/model/LocationPolicy.java | 48 +- .../LocationPolicyZoneConfiguration.java | 69 - .../services/compute/model/MachineImage.java | 102 +- .../compute/model/MachineImageList.java | 18 +- .../compute/model/MachineImageParams.java | 78 - .../services/compute/model/MachineType.java | 9 +- .../model/MachineTypeAggregatedList.java | 24 +- .../compute/model/MachineTypeList.java | 15 +- .../compute/model/ManagedInstance.java | 207 +- .../ManagedInstanceAllInstancesConfig.java | 12 +- .../model/ManagedInstanceInstanceHealth.java | 15 +- .../model/ManagedInstanceLastAttempt.java | 12 +- ...stancePropertiesFromFlexibilityPolicy.java | 12 +- .../model/ManagedInstanceScheduling.java | 12 +- .../compute/model/ManagedInstanceVersion.java | 18 +- .../api/services/compute/model/Metadata.java | 6 +- .../api/services/compute/model/MultiMig.java | 45 +- .../compute/model/MultiMigMember.java | 216 - .../compute/model/MultiMigMemberList.java | 386 - .../compute/model/MultiMigMemberStatus.java | 66 - .../compute/model/MultiMigStatus.java | 36 +- .../MultiMigStatusAcceleratorTopology.java | 24 +- ...logyAcceleratorTopologyStateLastCheck.java | 20 +- .../services/compute/model/MultiMigsList.java | 12 +- .../api/services/compute/model/NamedSet.java | 224 - .../api/services/compute/model/NatIpInfo.java | 12 +- .../model/NatIpInfoNatIpInfoMapping.java | 18 +- .../api/services/compute/model/Network.java | 39 +- .../compute/model/NetworkAttachment.java | 90 +- .../NetworkAttachmentConnectedEndpoint.java | 9 +- .../model/NetworkEdgeSecurityService.java | 45 +- ...workEdgeSecurityServiceAggregatedList.java | 27 +- .../compute/model/NetworkEndpointGroup.java | 57 +- .../NetworkEndpointGroupAggregatedList.java | 27 +- ...rkEndpointGroupLbNetworkEndpointGroup.java | 12 +- .../model/NetworkEndpointGroupList.java | 18 +- .../model/NetworkEndpointGroupPscData.java | 24 +- ...orkEndpointGroupsListNetworkEndpoints.java | 6 +- .../NetworkEndpointGroupsScopedList.java | 22 +- .../NetworkEndpointWithHealthStatus.java | 12 +- .../NetworkFirewallPolicyAggregatedList.java | 24 +- .../compute/model/NetworkInterface.java | 72 +- .../services/compute/model/NetworkList.java | 12 +- .../compute/model/NetworkPeering.java | 27 +- .../services/compute/model/NetworkPolicy.java | 66 +- .../model/NetworkPolicyAggregatedList.java | 24 +- .../compute/model/NetworkPolicyList.java | 9 +- ...etworkPolicyTrafficClassificationRule.java | 21 +- ...icyTrafficClassificationRuleSecureTag.java | 12 +- .../compute/model/NetworkProfile.java | 66 +- .../model/NetworkProfileNetworkFeatures.java | 156 +- ...workFeaturesPredefinedSubnetworkRange.java | 90 - .../model/NetworkProfilesListResponse.java | 24 +- .../compute/model/NetworkRoutingConfig.java | 12 +- ...orksCancelRequestRemovePeeringRequest.java | 66 - ...ewallsResponseEffectiveFirewallPolicy.java | 45 +- ...llsResponseOrganizationFirewallPolicy.java | 12 +- .../api/services/compute/model/NodeGroup.java | 42 +- .../model/NodeGroupAggregatedList.java | 24 +- .../services/compute/model/NodeGroupList.java | 15 +- .../model/NodeGroupMaintenanceWindow.java | 12 +- .../services/compute/model/NodeGroupNode.java | 30 +- .../compute/model/NodeGroupsListNodes.java | 56 +- .../services/compute/model/NodeTemplate.java | 57 +- .../model/NodeTemplateAggregatedList.java | 24 +- .../compute/model/NodeTemplateList.java | 15 +- .../api/services/compute/model/NodeType.java | 27 +- .../compute/model/NodeTypeAggregatedList.java | 24 +- .../services/compute/model/NodeTypeList.java | 15 +- .../compute/model/NotificationEndpoint.java | 51 +- .../NotificationEndpointAggregatedList.java | 401 - .../model/NotificationEndpointList.java | 12 +- .../NotificationEndpointsScopedList.java | 278 - .../api/services/compute/model/Operation.java | 54 +- .../model/OperationAggregatedList.java | 18 +- .../services/compute/model/OperationList.java | 9 +- ...urityPoliciesListAssociationsResponse.java | 6 +- .../compute/model/PacketMirroring.java | 30 +- .../model/PacketMirroringAggregatedList.java | 18 +- .../PacketMirroringForwardingRuleInfo.java | 6 +- .../compute/model/PacketMirroringList.java | 15 +- ...oringMirroredResourceInfoInstanceInfo.java | 6 +- ...rroringMirroredResourceInfoSubnetInfo.java | 6 +- .../model/PacketMirroringNetworkInfo.java | 6 +- .../services/compute/model/PathMatcher.java | 21 +- .../compute/model/PreviewFeature.java | 42 +- .../compute/model/PreviewFeatureList.java | 15 +- .../compute/model/PreviewFeatureStatus.java | 12 +- .../PreviewFeatureStatusReleaseStatus.java | 6 +- .../api/services/compute/model/Project.java | 36 +- .../model/ProjectsGetXpnResources.java | 36 +- .../compute/model/PublicAdvertisedPrefix.java | 54 +- .../model/PublicAdvertisedPrefixList.java | 12 +- .../compute/model/PublicDelegatedPrefix.java | 84 +- .../PublicDelegatedPrefixAggregatedList.java | 21 +- .../model/PublicDelegatedPrefixList.java | 12 +- ...legatedPrefixPublicDelegatedSubPrefix.java | 42 +- .../api/services/compute/model/Reference.java | 6 +- .../api/services/compute/model/Region.java | 28 +- .../compute/model/RegionAutoscalerList.java | 12 +- .../compute/model/RegionDiskTypeList.java | 15 +- .../model/RegionInstanceGroupList.java | 50 +- .../model/RegionInstanceGroupManagerList.java | 56 +- ...roupManagerResizeRequestsListResponse.java | 65 +- ...nceGroupManagersAdoptInstancesRequest.java | 72 - ...stanceGroupManagersListErrorsResponse.java | 24 +- ...eGroupManagersListInstanceConfigsResp.java | 38 +- ...nceGroupManagersListInstancesResponse.java | 24 +- .../RegionInstanceGroupsListInstances.java | 50 +- .../services/compute/model/RegionList.java | 12 +- ...PoliciesGetEffectiveFirewallsResponse.java | 18 +- ...ewallsResponseEffectiveFirewallPolicy.java | 39 +- .../services/compute/model/Reservation.java | 171 +- .../model/ReservationAggregatedList.java | 18 +- .../compute/model/ReservationBlock.java | 129 +- .../ReservationBlockPhysicalTopology.java | 6 +- ...ervationBlockPhysicalTopologyInstance.java | 6 +- .../compute/model/ReservationList.java | 15 +- .../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 | 114 +- ...ReservationSubBlocksGetVersionRequest.java | 66 - .../compute/model/ResourcePolicy.java | 42 +- .../model/ResourcePolicyAggregatedList.java | 18 +- .../model/ResourcePolicyDailyCycle.java | 12 +- .../model/ResourcePolicyHourlyCycle.java | 12 +- .../compute/model/ResourcePolicyList.java | 15 +- .../model/ResourcePolicyResourceStatus.java | 15 +- ...rceStatusInstanceSchedulePolicyStatus.java | 21 +- .../ResourcePolicyWeeklyCycleDayOfWeek.java | 12 +- .../compute/model/ResourceStatus.java | 60 +- ...sourceStatusEffectiveInstanceMetadata.java | 24 - ...ourceStatusReservationConsumptionInfo.java | 9 +- .../api/services/compute/model/Rollout.java | 38 +- .../services/compute/model/RolloutPlan.java | 39 +- .../model/RolloutPlansListResponse.java | 15 +- .../compute/model/RolloutsListResponse.java | 15 +- .../api/services/compute/model/Route.java | 156 +- .../api/services/compute/model/RouteList.java | 12 +- .../api/services/compute/model/Router.java | 12 +- .../compute/model/RouterAggregatedList.java | 18 +- .../services/compute/model/RouterBgpPeer.java | 36 +- .../compute/model/RouterInterface.java | 36 +- .../services/compute/model/RouterList.java | 12 +- .../model/RouterStatusBgpPeerStatus.java | 126 +- .../compute/model/RouterStatusNatStatus.java | 63 +- .../RouterStatusNatStatusNatRuleStatus.java | 39 +- .../compute/model/RouterStatusResponse.java | 6 +- .../model/RoutersGetNamedSetResponse.java | 87 - .../compute/model/RoutersListBgpRoutes.java | 21 +- .../compute/model/RoutersListNamedSets.java | 431 - .../model/RoutersListRoutePolicies.java | 24 +- .../compute/model/SavedAttachedDisk.java | 57 +- .../api/services/compute/model/SavedDisk.java | 48 +- .../services/compute/model/Scheduling.java | 30 - .../services/compute/model/Screenshot.java | 6 +- .../model/SecurityPoliciesAggregatedList.java | 24 +- .../compute/model/SecurityPolicy.java | 66 +- .../model/SecurityPolicyAssociation.java | 18 +- .../SecurityPolicyDdosProtectionConfig.java | 78 - .../compute/model/SecurityPolicyList.java | 9 +- .../compute/model/SecurityPolicyRule.java | 18 +- ...cyRulePreconfiguredWafConfigExclusion.java | 27 - .../compute/model/SerialPortOutput.java | 15 +- .../compute/model/ServiceAttachment.java | 69 +- .../ServiceAttachmentAggregatedList.java | 18 +- .../compute/model/ServiceAttachmentList.java | 9 +- .../model/ShieldedInstanceIdentity.java | 12 +- .../compute/model/ShieldedVmIdentity.java | 12 +- .../api/services/compute/model/Snapshot.java | 318 +- .../compute/model/SnapshotAggregatedList.java | 24 +- .../services/compute/model/SnapshotGroup.java | 330 - .../model/SnapshotGroupParameters.java | 132 - .../model/SnapshotGroupSourceInfo.java | 84 - ...otGroupSourceInstantSnapshotGroupInfo.java | 84 - .../services/compute/model/SnapshotList.java | 12 +- .../compute/model/SnapshotParams.java | 24 +- .../compute/model/SslCertificate.java | 36 +- .../model/SslCertificateAggregatedList.java | 24 +- .../compute/model/SslCertificateList.java | 12 +- .../SslCertificateManagedSslCertificate.java | 15 +- .../model/SslPoliciesAggregatedList.java | 24 +- .../compute/model/SslPoliciesList.java | 51 +- .../api/services/compute/model/SslPolicy.java | 72 +- .../services/compute/model/StoragePool.java | 126 +- .../model/StoragePoolAggregatedList.java | 24 +- .../compute/model/StoragePoolDisk.java | 66 +- ...oragePoolExapoolProvisionedCapacityGb.java | 114 - .../compute/model/StoragePoolList.java | 24 +- .../compute/model/StoragePoolListDisks.java | 65 +- .../compute/model/StoragePoolParams.java | 78 - .../model/StoragePoolResourceStatus.java | 102 +- .../compute/model/StoragePoolType.java | 15 +- .../model/StoragePoolTypeAggregatedList.java | 12 +- .../compute/model/StoragePoolTypeList.java | 15 +- .../services/compute/model/Subnetwork.java | 147 +- .../model/SubnetworkAggregatedList.java | 24 +- .../compute/model/SubnetworkList.java | 15 +- .../model/SubnetworkSecondaryRange.java | 57 +- .../compute/model/TargetGrpcProxy.java | 39 +- .../compute/model/TargetGrpcProxyList.java | 9 +- .../compute/model/TargetHttpProxy.java | 27 +- .../model/TargetHttpProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpProxyList.java | 15 +- .../compute/model/TargetHttpsProxy.java | 27 +- .../model/TargetHttpsProxyAggregatedList.java | 24 +- .../compute/model/TargetHttpsProxyList.java | 15 +- .../compute/model/TargetInstance.java | 27 +- .../model/TargetInstanceAggregatedList.java | 18 +- .../compute/model/TargetInstanceList.java | 12 +- .../services/compute/model/TargetPool.java | 18 +- .../model/TargetPoolAggregatedList.java | 24 +- .../model/TargetPoolInstanceHealth.java | 12 +- .../compute/model/TargetPoolList.java | 15 +- .../compute/model/TargetSslProxy.java | 15 +- .../compute/model/TargetSslProxyList.java | 12 +- .../compute/model/TargetTcpProxy.java | 51 +- .../model/TargetTcpProxyAggregatedList.java | 24 +- .../compute/model/TargetTcpProxyList.java | 12 +- .../compute/model/TargetVpnGateway.java | 42 +- .../model/TargetVpnGatewayAggregatedList.java | 21 +- .../compute/model/TargetVpnGatewayList.java | 15 +- .../compute/model/TargetVpnGatewayParams.java | 87 - .../api/services/compute/model/UrlMap.java | 30 +- .../services/compute/model/UrlMapList.java | 12 +- .../compute/model/UrlMapsAggregatedList.java | 18 +- .../compute/model/UsableSubnetwork.java | 12 +- .../model/UsableSubnetworkSecondaryRange.java | 9 +- .../UsableSubnetworksAggregatedList.java | 30 +- .../compute/model/VmEndpointNatMappings.java | 6 +- ...dpointNatMappingsInterfaceNatMappings.java | 72 +- ...gsInterfaceNatMappingsNatRuleMappings.java | 66 +- .../model/VmEndpointNatMappingsList.java | 18 +- .../compute/model/VmExtensionPolicy.java | 72 +- ...ExtensionPolicyAggregatedListResponse.java | 24 +- .../compute/model/VmExtensionPolicyList.java | 74 +- .../services/compute/model/VpnGateway.java | 60 +- .../model/VpnGatewayAggregatedList.java | 18 +- .../compute/model/VpnGatewayList.java | 12 +- .../compute/model/VpnGatewayParams.java | 87 - .../compute/model/VpnGatewayStatus.java | 6 +- .../compute/model/VpnGatewayStatusTunnel.java | 24 +- .../model/VpnGatewayStatusVpnConnection.java | 24 +- .../model/VpnGatewayVpnGatewayInterface.java | 66 +- .../api/services/compute/model/VpnTunnel.java | 66 +- .../model/VpnTunnelAggregatedList.java | 18 +- .../services/compute/model/VpnTunnelList.java | 12 +- .../compute/model/VpnTunnelParams.java | 87 - .../api/services/compute/model/Wire.java | 48 +- .../api/services/compute/model/WireGroup.java | 48 +- .../services/compute/model/WireGroupList.java | 15 +- .../compute/model/WireGroupTopology.java | 6 +- .../model/WireGroupTopologyEndpoint.java | 18 +- .../compute/model/WorkloadIdentityConfig.java | 84 - .../services/compute/model/XpnHostList.java | 15 +- .../api/services/compute/model/Zone.java | 12 +- .../api/services/compute/model/ZoneList.java | 12 +- .../beta/2.0.0/pom.xml | 4 +- 483 files changed, 61729 insertions(+), 84536 deletions(-) delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServiceAggregatedList.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NamedSet.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlot.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersGetNamedSetResponse.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java delete mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java 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 145bd2e466d..7e48e9f8f2f 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-rev20260306-2.0.0 + beta-rev20251110-2.0.0
      @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260306-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20251110-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 973e523cdcf..e1229f54a43 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 @@ -103,7 +103,7 @@ public class Compute extends com.google.api.client.googleapis.services.json.Abst * {@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}
    • + *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
    • *
    * @param jsonFactory JSON factory, which may be: @@ -21212,7 +21212,8 @@ public TestIamPermissions set(String parameterName, Object 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. + * selected fields included as part of update-mask. Only the following fields can be modified: + * user_license. * * Create a request for the method "disks.update". * @@ -21246,7 +21247,8 @@ public class Update extends ComputeRequest { + public class CreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/configureAcceleratorTopologies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 accelerator topologies configuration. + * 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.configureAcceleratorTopologies". + * 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 ConfigureAcceleratorTopologies#execute()} method to invoke the - * remote operation.

    {@link ConfigureAcceleratorTopologies#initialize(com.google.api.client.go - * ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

    + * 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 @@ -53794,10 +53790,10 @@ public class ConfigureAcceleratorTopologies extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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.createInstances". + * 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 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.

    + * 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. - 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} + * @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 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); + 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(), @@ -54055,63 +54041,63 @@ protected CreateInstances(java.lang.String project, java.lang.String zone, java. } @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54125,7 +54111,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateInstances setProject(java.lang.String project) { + 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 " + @@ -54136,43 +54122,37 @@ public CreateInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * 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. It should conform to RFC1035. + /** 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. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ - public CreateInstances setZone(java.lang.String zone) { + public Delete setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ + /** 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. It should conform to RFC1035. + /** The name of the managed instance group to delete. */ 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) { + /** The name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -54185,7 +54165,7 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -54198,7 +54178,8 @@ public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupMan For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -54215,70 +54196,91 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. + * request. This prevents clients from accidentally creating duplicate commitments. * * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * 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. * - * Create a request for the method "instanceGroupManagers.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 to delete. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} * @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); + 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 Delete extends ComputeRequest { + public class DeleteInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "instanceGroupManagers.delete". + * 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 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.

    + * 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 to delete. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} * @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); + 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(), @@ -54290,63 +54292,63 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54360,258 +54362,7 @@ public java.lang.String getProject() { } /** 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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) { + 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 " + @@ -79835,26 +79586,6 @@ public Update setInstance(java.lang.String 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 @@ -81275,47 +81006,523 @@ public UpdateShieldedVmConfig set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InstantSnapshotGroups collection. + * An accessor for creating requests from the InstantSnapshots collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InstantSnapshotGroups.List request = compute.instantSnapshotGroups().list(parameters ...)}
    +   *   {@code Compute.InstantSnapshots.List request = compute.instantSnapshots().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InstantSnapshotGroups instantSnapshotGroups() { - return new InstantSnapshotGroups(); + public InstantSnapshots instantSnapshots() { + return new InstantSnapshots(); } /** - * The "instantSnapshotGroups" collection of methods. + * The "instantSnapshots" collection of methods. */ - public class InstantSnapshotGroups { + public class InstantSnapshots { /** - * deletes a Zonal InstantSnapshotGroup resource + * 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 "instantSnapshotGroups.delete". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 instantSnapshotGroup Name of the InstantSnapshot resource to delete. + * @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 instantSnapshotGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, instantSnapshotGroup); + 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}/instantSnapshotGroups/{instantSnapshotGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81323,13 +81530,18 @@ public class Delete extends ComputeRequest {@link @@ -81338,10 +81550,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81569,13 +81781,13 @@ public class Get extends ComputeRequest {@link @@ -81584,11 +81796,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81783,7 +81995,7 @@ public class GetIamPolicy extends ComputeRequest @@ -81973,19 +82185,19 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * inserts a Zonal InstantSnapshotGroup resource + * Creates an instant snapshot in the specified zone. * - * Create a request for the method "instantSnapshotGroups.insert". + * 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.InstantSnapshotGroup} + * @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.InstantSnapshotGroup content) throws java.io.IOException { + 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; @@ -81993,7 +82205,7 @@ public Insert insert(java.lang.String project, java.lang.String zone, com.google public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82002,9 +82214,9 @@ public class Insert extends ComputeRequest {@link @@ -82013,10 +82225,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82233,9 +82429,9 @@ public class List extends ComputeRequest {@link @@ -82247,7 +82443,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82679,7 +82875,7 @@ public class SetIamPolicy extends ComputeRequest @@ -82844,28 +83040,29 @@ public SetIamPolicy set(String parameterName, Object value) { } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "instantSnapshotGroups.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82877,24 +83074,25 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} * @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); + 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(), @@ -82916,63 +83114,63 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -82986,7 +83184,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -83007,7 +83205,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + 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 " + @@ -83028,7 +83226,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + 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 " + @@ -83038,156 +83236,190 @@ public TestIamPermissions setResource(java.lang.String resource) { return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "instantSnapshots" collection of methods. - */ - public class InstantSnapshots { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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); + } + } /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instantSnapshots.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instantSnapshots.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotAggregatedList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83201,7 +83433,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -83211,378 +83443,108 @@ public AggregatedList setProject(java.lang.String 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. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String zone; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** The name of the zone for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getZone() { + return zone; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String resource; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name or id of the resource for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getResource() { + return resource; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * 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; - } + /** + * 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 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; - } + /** + * The "interconnectAttachmentGroups" collection of methods. + */ + public class InterconnectAttachmentGroups { - @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. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "instantSnapshots.delete". + * 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 zone The name of the zone for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup 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); + 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}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 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. + * Deletes the specified InterconnectAttachmentGroup in the given scope * - * Create a request for the method "instantSnapshots.delete". + * 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 @@ -83590,11 +83552,10 @@ public class Delete extends ComputeRequest * * @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. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { + 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()) { @@ -83602,16 +83563,10 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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}"); } } @@ -83697,45 +83652,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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. */ + /** Name of the InterconnectAttachmentGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshot; + private java.lang.String interconnectAttachmentGroup; - /** Name of the InstantSnapshot resource to delete. + /** Name of the InterconnectAttachmentGroup resource to delete. */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshot(java.lang.String instantSnapshot) { + /** Name of the InterconnectAttachmentGroup resource to delete. */ + public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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.instantSnapshot = instantSnapshot; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @@ -83750,7 +83684,7 @@ public Delete setInstantSnapshot(java.lang.String instantSnapshot) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -83764,7 +83698,7 @@ public Delete setInstantSnapshot(java.lang.String instantSnapshot) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -83781,7 +83715,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -83794,41 +83728,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified InstantSnapshot resource in the specified zone. + * Returns the specified InterconnectAttachmentGroup resource in the given scope. * - * Create a request for the method "instantSnapshots.get". + * 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 zone The name of the zone for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to return. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup 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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 InstantSnapshot resource in the specified zone. + * Returns the specified InterconnectAttachmentGroup resource in the given scope. * - * Create a request for the method "instantSnapshots.get". + * 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 @@ -83836,28 +83766,21 @@ public class Get extends ComputeRequest * * @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. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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}"); } } @@ -83953,45 +83876,24 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the InstantSnapshot resource to return. */ + /** Name of the InterconnectAttachmentGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshot; + private java.lang.String interconnectAttachmentGroup; - /** Name of the InstantSnapshot resource to return. + /** Name of the InterconnectAttachmentGroup resource to return. */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the InstantSnapshot resource to return. */ - public Get setInstantSnapshot(java.lang.String instantSnapshot) { + /** Name of the InterconnectAttachmentGroup resource to return. */ + public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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.instantSnapshot = instantSnapshot; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @@ -84003,40 +83905,36 @@ public Get set(String parameterName, Object 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". + * 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 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); + 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}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + 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". + * 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.

    @@ -84045,11 +83943,10 @@ public class GetIamPolicy extends ComputeRequest * * @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) { + 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()) { @@ -84057,17 +83954,11 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -84162,27 +84053,6 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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; @@ -84198,7 +84068,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -84226,123 +84096,135 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates an instant snapshot in the specified zone. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "instantSnapshots.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#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} + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @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); + 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 Insert extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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}"); /** - * Creates an instant snapshot in the specified zone. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "instantSnapshots.insert". + * 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 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.

    + * 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 zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -84356,7 +84238,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -84366,53 +84248,190 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** Name of the interconnectAttachmentGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String interconnectAttachmentGroup; - /** Name of the zone for this request. + /** Name of the interconnectAttachmentGroup resource to query. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + /** Name of the interconnectAttachmentGroup resource to query. */ + public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.zone = zone; + 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). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -84429,7 +84448,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -84442,37 +84461,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of InstantSnapshot resources contained within the specified zone. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "instantSnapshots.list". + * 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. - * @param zone The name of the zone for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "instantSnapshots.list". + * 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 @@ -84480,23 +84495,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotList.class); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -84590,27 +84598,6 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -84881,135 +84868,126 @@ public List set(String parameterName, Object value) { } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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 "instantSnapshots.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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 "instantSnapshots.setIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85023,7 +85001,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -85033,185 +85011,216 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the InterconnectAttachmentGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String interconnectAttachmentGroup; - /** The name of the zone for this request. + /** Name of the InterconnectAttachmentGroup resource to patch. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** Name of the InterconnectAttachmentGroup resource to patch. */ + public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.zone = zone; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the - * Labeling Resources documentation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instantSnapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * 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.ZoneSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instantSnapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.ZoneSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85225,7 +85234,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -85235,27 +85244,6 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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; @@ -85267,107 +85255,54 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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}"); + "[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); + 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 "instantSnapshots.testIamPermissions". + * 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 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); + 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}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + 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". + * 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 @@ -85376,12 +85311,11 @@ public class TestIamPermissions extends ComputeRequest * * @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) { + 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()) { @@ -85389,17 +85323,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -85484,27 +85412,6 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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; @@ -85520,7 +85427,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -85535,141 +85442,147 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectAttachmentGroups collection. + * An accessor for creating requests from the InterconnectAttachments collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
    +   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InterconnectAttachmentGroups interconnectAttachmentGroups() { - return new InterconnectAttachmentGroups(); + public InterconnectAttachments interconnectAttachments() { + return new InterconnectAttachments(); } /** - * The "interconnectAttachmentGroups" collection of methods. + * The "interconnectAttachments" collection of methods. */ - public class InterconnectAttachmentGroups { + public class InterconnectAttachments { /** - * Deletes the specified InterconnectAttachmentGroup in the given scope + * Retrieves an aggregated list of interconnect attachments. * - * Create a request for the method "interconnectAttachmentGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 + * Retrieves an aggregated list of interconnect attachments. * - * Create a request for the method "interconnectAttachmentGroups.delete". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - 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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -85683,7 +85596,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -85693,384 +85606,459 @@ public Delete setProject(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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 + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - 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 + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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 + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; } - } - /** - * 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 { + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; + } - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } - 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}"); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + } /** - * Returns the specified InterconnectAttachmentGroup resource in the given scope. - * - * Create a request for the method "interconnectAttachmentGroups.get". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + /** + * Specifies 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; } - /** Project ID for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Boolean returnPartialSuccess; - /** Project ID for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getProject() { - return project; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** Name of the InterconnectAttachmentGroup resource to return. */ + /** + * 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.String interconnectAttachmentGroup; + private java.lang.Long serviceProjectNumber; - /** Name of the InterconnectAttachmentGroup resource to return. + /** 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.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } - /** 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; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#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 region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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 GetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.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}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource 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 GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86084,7 +86072,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -86094,106 +86082,167 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String region; - /** Name or id of the resource for this request. + /** Name of the region for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRegion() { + return region; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.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 = resource; + this.region = region; return this; } - /** Requested IAM Policy version. */ + /** Name of the interconnect attachment to delete. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String interconnectAttachment; - /** Requested IAM Policy version. + /** Name of the interconnect attachment to delete. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup - * resource. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * 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 GetOperationalStatus#execute()} method to invoke the remote - * operation. + * 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 query. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. * @return the request */ - public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - GetOperationalStatus result = new GetOperationalStatus(project, interconnectAttachmentGroup); + 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 GetOperationalStatus extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup - * resource. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 query. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. * @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); + 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -86209,63 +86258,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86279,7 +86328,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetOperationalStatus setProject(java.lang.String project) { + 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 " + @@ -86289,63 +86338,88 @@ public GetOperationalStatus setProject(java.lang.String project) { return this; } - /** Name of the interconnectAttachmentGroup resource to query. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String region; - /** Name of the interconnectAttachmentGroup resource to query. + /** Name of the region for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnectAttachmentGroup resource to query. */ - public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @Override - public GetOperationalStatus set(String parameterName, Object value) { - return (GetOperationalStatus) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the - * parameters that are included in the request. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnectAttachmentGroups.insert". + * 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 content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @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, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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}/global/interconnectAttachmentGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 InterconnectAttachmentGroup in the specified project in the given scope using the - * parameters that are included in the request. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnectAttachmentGroups.insert". + * 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 @@ -86353,10 +86427,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @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, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { + 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()) { @@ -86364,6 +86439,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -86447,6 +86528,27 @@ public Insert setProject(java.lang.String 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 @@ -86458,7 +86560,7 @@ public Insert setProject(java.lang.String project) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -86472,7 +86574,7 @@ public Insert setProject(java.lang.String project) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -86489,46 +86591,66 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (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); } } /** - * Lists the InterconnectAttachmentGroups for a project in the given scope. + * Retrieves the list of interconnect attachments contained within the specified region. * - * Create a request for the method "interconnectAttachmentGroups.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 InterconnectAttachmentGroups for a project in the given scope. + * Retrieves the list of interconnect attachments contained within the specified region. * - * Create a request for the method "interconnectAttachmentGroups.list". + * 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 @@ -86536,16 +86658,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.class); + 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])?"); + } } @Override @@ -86639,6 +86768,27 @@ public List setProject(java.lang.String 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 @@ -86909,41 +87059,44 @@ public List set(String parameterName, Object 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. + * 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 "interconnectAttachmentGroups.patch". + * 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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @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 interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { - Patch result = new Patch(project, interconnectAttachmentGroup, content); + 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}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * 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. + * 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 "interconnectAttachmentGroups.patch". + * 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 @@ -86951,11 +87104,12 @@ public class Patch extends ComputeRequest * * @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} + * @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 interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { + 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()) { @@ -86963,10 +87117,16 @@ protected Patch(java.lang.String project, java.lang.String interconnectAttachmen "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -87052,24 +87212,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to patch. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String region; - /** Name of the InterconnectAttachmentGroup resource to patch. + /** Name of the region scoping this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the InterconnectAttachmentGroup resource to patch. */ - public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @@ -87084,7 +87265,7 @@ public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachm * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -87098,7 +87279,7 @@ public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachm clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -87115,153 +87296,150 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ 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. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @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); + 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87275,7 +87453,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -87285,6 +87463,27 @@ public SetIamPolicy setProject(java.lang.String 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; @@ -87296,54 +87495,107 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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}"); + "[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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + 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 "interconnectAttachmentGroups.testIamPermissions". + * Create a request for the method "interconnectAttachments.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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + 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}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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". + * Create a request for the method "interconnectAttachments.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 @@ -87352,11 +87604,12 @@ public class TestIamPermissions extends ComputeRequest * * @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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -87364,11 +87617,17 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -87453,24 +87712,45 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String region; - /** Name or id of the resource for this request. + /** The name of the region for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRegion() { + return region; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).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; } @@ -87483,147 +87763,144 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectAttachments collection. + * An accessor for creating requests from the InterconnectGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
    +   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InterconnectAttachments interconnectAttachments() { - return new InterconnectAttachments(); + public InterconnectGroups interconnectGroups() { + return new InterconnectGroups(); } /** - * The "interconnectAttachments" collection of methods. + * The "interconnectGroups" collection of methods. */ - public class InterconnectAttachments { + public class InterconnectGroups { /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnectAttachments.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class CreateMembers extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnectAttachments.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87637,7 +87914,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -87647,368 +87924,64 @@ public AggregatedList setProject(java.lang.String 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name of the group resource to create members for. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String interconnectGroup; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name of the group resource to create members for. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** - * 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; + /** 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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); } } /** - * Deletes the specified interconnect attachment. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnectAttachments.delete". + * 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 region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @param interconnectGroup Name of the InterconnectGroup resource 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); + 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}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 interconnect attachment. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnectAttachments.delete". + * 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 @@ -88016,11 +87989,10 @@ public class Delete extends ComputeRequest * * @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. + * @param interconnectGroup Name of the InterconnectGroup resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + 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()) { @@ -88028,16 +88000,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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}"); } } @@ -88123,45 +88089,24 @@ public Delete setProject(java.lang.String 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. */ + /** Name of the InterconnectGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectGroup; - /** Name of the interconnect attachment to delete. + /** Name of the InterconnectGroup resource to delete. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect attachment to delete. */ - public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name of the InterconnectGroup resource to delete. */ + public Delete setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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.interconnectAttachment = interconnectAttachment; + this.interconnectGroup = interconnectGroup; return this; } @@ -88176,7 +88121,7 @@ public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -88190,7 +88135,7 @@ public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -88207,7 +88152,7 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; @@ -88220,41 +88165,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified interconnect attachment. + * Returns the specified InterconnectGroup resource in the given scope. * - * Create a request for the method "interconnectAttachments.get". + * 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 region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @param interconnectGroup Name of the InterconnectGroup resource 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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 interconnect attachment. + * Returns the specified InterconnectGroup resource in the given scope. * - * Create a request for the method "interconnectAttachments.get". + * 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 @@ -88262,28 +88203,21 @@ public class Get extends ComputeRequest * * @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. + * @param interconnectGroup Name of the InterconnectGroup resource 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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}"); } } @@ -88379,45 +88313,24 @@ public Get setProject(java.lang.String 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. */ + /** Name of the InterconnectGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectGroup; - /** Name of the interconnect attachment to return. + /** Name of the InterconnectGroup resource to return. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect attachment to return. */ - public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name of the InterconnectGroup resource to return. */ + public Get setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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.interconnectAttachment = interconnectAttachment; + this.interconnectGroup = interconnectGroup; return this; } @@ -88427,125 +88340,133 @@ public Get set(String parameterName, Object value) { } } /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectAttachments.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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} + * @param resource Name or id of the resource for this request. * @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); + 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 Insert extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectAttachments.insert". + * 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 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.

    + * 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 Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param resource Name or id of the resource for this request. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -88559,7 +88480,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -88569,152 +88490,105 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** Name of the region for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + this.resource = resource; return this; } - /** If true, the request will not be committed. */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.Integer optionsRequestedPolicyVersion; - /** If true, the request will not be committed. + /** Requested IAM Policy version. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "interconnectAttachments.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * Create a request for the method "interconnectAttachments.list". + * 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 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.

    + * 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 region Name of the region for this request. + * @param interconnectGroup Name of the interconnectGroup resource to query. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @@ -88729,63 +88603,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88799,7 +88673,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -88809,51 +88683,380 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the interconnectGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String interconnectGroup; - /** Name of the region for this request. + /** Name of the interconnectGroup resource to query. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** Name of the interconnectGroup resource to query. */ + public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters + * that are included in the request. * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` + * Create a request for the method "interconnectGroups.insert". * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. + * 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.

    * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * @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])?))"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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) ``` * @@ -89100,44 +89303,40 @@ public List set(String parameterName, Object 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. + * 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 "interconnectAttachments.patch". + * 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 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} + * @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 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); + 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}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * 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. + * 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 "interconnectAttachments.patch". + * 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 @@ -89145,12 +89344,11 @@ public class Patch extends ComputeRequest * * @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} + * @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 region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { + 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()) { @@ -89158,16 +89356,10 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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}"); } } @@ -89253,45 +89445,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** Name of the InterconnectGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String interconnectGroup; - /** Name of the interconnect attachment to patch. + /** Name of the InterconnectGroup resource to patch. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect attachment to patch. */ - public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name of the InterconnectGroup resource to patch. */ + public Patch setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + 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.interconnectAttachment = interconnectAttachment; + this.interconnectGroup = interconnectGroup; return this; } @@ -89306,7 +89477,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -89320,7 +89491,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -89337,150 +89508,153 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (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 labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89494,7 +89668,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -89504,27 +89678,6 @@ public SetLabels setProject(java.lang.String 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; @@ -89536,107 +89689,54 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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}"); + "[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); + 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 "interconnectAttachments.testIamPermissions". + * 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 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); + 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}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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 "interconnectAttachments.testIamPermissions". + * 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 @@ -89645,12 +89745,11 @@ public class TestIamPermissions extends ComputeRequest * * @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) { + 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()) { @@ -89658,17 +89757,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -89753,27 +89846,6 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -89789,7 +89861,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -89804,144 +89876,153 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectGroups collection. + * An accessor for creating requests from the InterconnectLocations collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
    +   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
        * 
    * * @return the resource collection */ - public InterconnectGroups interconnectGroups() { - return new InterconnectGroups(); + public InterconnectLocations interconnectLocations() { + return new InterconnectLocations(); } /** - * The "interconnectGroups" collection of methods. + * The "interconnectLocations" collection of methods. */ - public class InterconnectGroups { + public class InterconnectLocations { /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. + * 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 "interconnectGroups.createMembers". + * 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 CreateMembers#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param interconnectLocation Name of the interconnect location to return. * @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); + 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 CreateMembers extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. + * 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 "interconnectGroups.createMembers". + * 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 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. - *

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 group resource to create members for. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @param interconnectLocation Name of the interconnect location to return. * @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); + 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + 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_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + 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}"); } } @Override - public CreateMembers set$Xgafv(java.lang.String $Xgafv) { - return (CreateMembers) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public CreateMembers setAccessToken(java.lang.String accessToken) { - return (CreateMembers) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public CreateMembers setAlt(java.lang.String alt) { - return (CreateMembers) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public CreateMembers setCallback(java.lang.String callback) { - return (CreateMembers) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public CreateMembers setFields(java.lang.String fields) { - return (CreateMembers) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public CreateMembers setKey(java.lang.String key) { - return (CreateMembers) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public CreateMembers setOauthToken(java.lang.String oauthToken) { - return (CreateMembers) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateMembers) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public CreateMembers setQuotaUser(java.lang.String quotaUser) { - return (CreateMembers) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public CreateMembers setUploadType(java.lang.String uploadType) { - return (CreateMembers) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateMembers) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public CreateMembers setUserIp(java.lang.String userIp) { - return (CreateMembers) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -89955,7 +90036,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateMembers setProject(java.lang.String project) { + 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 " + @@ -89965,148 +90046,147 @@ public CreateMembers setProject(java.lang.String project) { return this; } - /** Name of the group resource to create members for. */ + /** Name of the interconnect location to return. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String interconnectLocation; - /** Name of the group resource to create members for. + /** Name of the interconnect location to return. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getInterconnectLocation() { + return interconnectLocation; } - /** Name of the group resource to create members for. */ - public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the interconnect location to return. */ + public Get setInterconnectLocation(java.lang.String interconnectLocation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + 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.interconnectGroup = interconnectGroup; + this.interconnectLocation = interconnectLocation; return this; } @Override - public CreateMembers set(String parameterName, Object value) { - return (CreateMembers) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified InterconnectGroup in the given scope + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "interconnectGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "interconnectGroups.delete". + * 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 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.

    + * 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 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); + 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])?))"); } - 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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -90120,7 +90200,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -90130,505 +90210,354 @@ public Delete setProject(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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 + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - 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 + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * Create a request for the method "interconnectGroups.get". + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. * - * @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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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. + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** Name of the InterconnectGroup resource to return. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.Long maxResults; - /** Name of the InterconnectGroup resource to return. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * 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.

    + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name or id of the resource for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String pageToken; - /** Name or id of the resource for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Requested IAM Policy version. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.Boolean returnPartialSuccess; - /** Requested IAM Policy version. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + 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 interconnectStatuses for the specified InterconnectGroup. + * 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 "interconnectGroups.getOperationalStatus". + * 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 GetOperationalStatus#execute()} method to invoke the remote - * operation. + * 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 query. + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @return the request */ - public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - GetOperationalStatus result = new GetOperationalStatus(project, interconnectGroup); + 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 GetOperationalStatus extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 interconnectStatuses for the specified InterconnectGroup. + * 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 "interconnectGroups.getOperationalStatus". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 query. + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @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); + 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + 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_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + 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}"); } } @@ -90644,63 +90573,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90714,7 +90643,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetOperationalStatus setProject(java.lang.String project) { + 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 " + @@ -90724,222 +90653,36 @@ public GetOperationalStatus setProject(java.lang.String project) { return this; } - /** Name of the interconnectGroup resource to query. */ + /** Name of the interconnect remote location to return. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String interconnectRemoteLocation; - /** Name of the interconnectGroup resource to query. + /** Name of the interconnect remote location to return. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getInterconnectRemoteLocation() { + return interconnectRemoteLocation; } - /** Name of the interconnectGroup resource to query. */ - public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { + /** 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_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + 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.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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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; + this.interconnectRemoteLocation = interconnectRemoteLocation; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists the InterconnectGroups for a project in the given scope. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "interconnectGroups.list". + * 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. @@ -90953,17 +90696,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "interconnectGroups.list". + * 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 @@ -90974,7 +90717,7 @@ public class List extends ComputeRequestThe 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 { + /** - * 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. + * Deletes the specified Interconnect. * - * Create a request for the method "interconnectGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @param interconnect Name of the interconnect to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * 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. + * Deletes the specified Interconnect. * - * Create a request for the method "interconnectGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @param interconnect Name of the interconnect to delete. * @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); + 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + 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_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + 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 Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91476,7 +91238,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -91486,24 +91248,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the InterconnectGroup resource to patch. */ + /** Name of the interconnect to delete. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String interconnect; - /** Name of the InterconnectGroup resource to patch. + /** Name of the interconnect to delete. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name of the InterconnectGroup resource to patch. */ - public Patch setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the interconnect to delete. */ + public Delete setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + 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.interconnectGroup = interconnectGroup; + this.interconnect = interconnect; return this; } @@ -91518,7 +91280,7 @@ public Patch setInterconnectGroup(java.lang.String interconnectGroup) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -91532,7 +91294,7 @@ public Patch setInterconnectGroup(java.lang.String interconnectGroup) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -91549,153 +91311,146 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete 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); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "interconnectGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param interconnect Name of the interconnect to return. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "interconnectGroups.setIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param interconnect Name of the interconnect to return. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -91709,7 +91464,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -91719,151 +91474,171 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect to return. */ + public Get setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + this.interconnect = interconnect; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the interconnectDiagnostics for the specified Interconnect. * - * Create a request for the method "interconnectGroups.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetDiagnostics#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} + * @param interconnect Name of the interconnect resource to query. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class GetDiagnostics extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 permissions that a caller has on the specified resource. + * Returns the interconnectDiagnostics for the specified Interconnect. * - * Create a request for the method "interconnectGroups.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param interconnect Name of the interconnect resource to query. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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 TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { + return (GetDiagnostics) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetDiagnostics setAccessToken(java.lang.String accessToken) { + return (GetDiagnostics) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetDiagnostics setAlt(java.lang.String alt) { + return (GetDiagnostics) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetDiagnostics setCallback(java.lang.String callback) { + return (GetDiagnostics) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetDiagnostics setFields(java.lang.String fields) { + return (GetDiagnostics) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetDiagnostics setKey(java.lang.String key) { + return (GetDiagnostics) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetDiagnostics setOauthToken(java.lang.String oauthToken) { + return (GetDiagnostics) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetDiagnostics) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { + return (GetDiagnostics) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -91877,7 +91652,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -91887,111 +91662,87 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the interconnect resource to query. */ + public GetDiagnostics setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + this.interconnect = interconnect; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetDiagnostics set(String parameterName, Object value) { + return (GetDiagnostics) 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. + * Returns the interconnectMacsecConfig for the specified Interconnect. * - * Create a request for the method "interconnectLocations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectLocation Name of the interconnect location to return. + * @param interconnect Name of the interconnect resource to query. * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { - Get result = new Get(project, interconnectLocation); + 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 Get extends ComputeRequest { + public class GetMacsecConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. + * Returns the interconnectMacsecConfig for the specified Interconnect. * - * Create a request for the method "interconnectLocations.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 interconnectLocation Name of the interconnect location to return. + * @param interconnect Name of the interconnect resource to query. * @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); + 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.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); + 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_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + + 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}"); } } @@ -92007,63 +91758,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { + return (GetMacsecConfig) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetMacsecConfig setAccessToken(java.lang.String accessToken) { + return (GetMacsecConfig) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetMacsecConfig setAlt(java.lang.String alt) { + return (GetMacsecConfig) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetMacsecConfig setCallback(java.lang.String callback) { + return (GetMacsecConfig) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetMacsecConfig setFields(java.lang.String fields) { + return (GetMacsecConfig) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetMacsecConfig setKey(java.lang.String key) { + return (GetMacsecConfig) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { + return (GetMacsecConfig) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { + return (GetMacsecConfig) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetMacsecConfig setUploadType(java.lang.String uploadType) { + return (GetMacsecConfig) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetMacsecConfig setUserIp(java.lang.String userIp) { + return (GetMacsecConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92077,7 +91828,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -92087,36 +91838,220 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect location to return. */ + /** Name of the interconnect resource to query. */ @com.google.api.client.util.Key - private java.lang.String interconnectLocation; + private java.lang.String interconnect; - /** Name of the interconnect location to return. + /** Name of the interconnect resource to query. */ - public java.lang.String getInterconnectLocation() { - return interconnectLocation; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name of the interconnect location to return. */ - public Get setInterconnectLocation(java.lang.String interconnectLocation) { + /** Name of the interconnect resource to query. */ + public GetMacsecConfig setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + + 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.interconnectLocation = interconnectLocation; + this.interconnect = interconnect; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetMacsecConfig set(String parameterName, Object value) { + return (GetMacsecConfig) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect locations available to the specified project. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "interconnectLocations.list". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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. @@ -92130,17 +92065,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "interconnectLocations.list". + * 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 @@ -92151,7 +92086,7 @@ public class List extends ComputeRequestThe 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. + * 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 "interconnectRemoteLocations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectRemoteLocation Name of the interconnect remote location to return. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { - Get result = new Get(project, interconnectRemoteLocation); + 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 Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making alist() request. + * 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 "interconnectRemoteLocations.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 interconnectRemoteLocation Name of the interconnect remote location to return. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @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); + 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.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); + 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_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92684,7 +92588,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -92694,147 +92598,202 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect remote location to return. */ + /** Name of the interconnect to update. */ @com.google.api.client.util.Key - private java.lang.String interconnectRemoteLocation; + private java.lang.String interconnect; - /** Name of the interconnect remote location to return. + /** Name of the interconnect to update. */ - public java.lang.String getInterconnectRemoteLocation() { - return interconnectRemoteLocation; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name of the interconnect remote location to return. */ - public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { + /** Name of the interconnect to update. */ + public Patch setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + 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.interconnectRemoteLocation = interconnectRemoteLocation; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "interconnectRemoteLocations.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "interconnectRemoteLocations.list". + * 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 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.

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

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
    +   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
        * 
    * * @return the resource collection */ - public Interconnects interconnects() { - return new Interconnects(); + public Licenses licenses() { + return new Licenses(); } /** - * The "interconnects" collection of methods. + * The "licenses" collection of methods. */ - public class Interconnects { + public class Licenses { /** - * Deletes the specified Interconnect. + * 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 "interconnects.delete". + * 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 interconnect Name of the interconnect to delete. + * @param license Name of the license resource 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); + 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/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 Interconnect. + * 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 "interconnects.delete". + * 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 @@ -93189,10 +93447,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to delete. + * @param license Name of the license resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String interconnect) { + 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()) { @@ -93200,10 +93458,10 @@ protected Delete(java.lang.String project, java.lang.String interconnect) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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}"); } } @@ -93289,24 +93547,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the interconnect to delete. */ + /** Name of the license resource to delete. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String license; - /** Name of the interconnect to delete. + /** Name of the license resource to delete. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getLicense() { + return license; } - /** Name of the interconnect to delete. */ - public Delete setInterconnect(java.lang.String interconnect) { + /** Name of the license resource to delete. */ + public Delete setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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.interconnect = interconnect; + this.license = license; return this; } @@ -93365,39 +93623,39 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * 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 "interconnects.get". + * 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 interconnect Name of the interconnect to return. + * @param license Name of the License resource 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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 Interconnect. Get a list of available Interconnects by making a list() - * request. + * 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 "interconnects.get". + * 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 @@ -93405,21 +93663,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to return. + * @param license Name of the License resource 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); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + 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(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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}"); } } @@ -93515,24 +93773,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect to return. */ + /** Name of the License resource to return. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String license; - /** Name of the interconnect to return. + /** Name of the License resource to return. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getLicense() { + return license; } - /** Name of the interconnect to return. */ - public Get setInterconnect(java.lang.String interconnect) { + /** Name of the License resource to return. */ + public Get setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + 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.interconnect = interconnect; + this.license = license; return this; } @@ -93542,73 +93800,65 @@ public Get set(String parameterName, Object 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. + * 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 "interconnects.getDiagnostics". + * 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 GetDiagnostics#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param resource Name or id of the resource for this request. * @return the request */ - public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetDiagnostics result = new GetDiagnostics(project, interconnect); + 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 GetDiagnostics extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.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 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. + * 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 "interconnects.getDiagnostics". + * 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 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.

    + * 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 interconnect Name of the interconnect resource to query. + * @param resource Name or id of the resource for this request. * @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); + 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -93623,63 +93873,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { - return (GetDiagnostics) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetDiagnostics setAccessToken(java.lang.String accessToken) { - return (GetDiagnostics) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetDiagnostics setAlt(java.lang.String alt) { - return (GetDiagnostics) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public GetDiagnostics setCallback(java.lang.String callback) { - return (GetDiagnostics) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public GetDiagnostics setFields(java.lang.String fields) { - return (GetDiagnostics) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public GetDiagnostics setKey(java.lang.String key) { - return (GetDiagnostics) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public GetDiagnostics setOauthToken(java.lang.String oauthToken) { - return (GetDiagnostics) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetDiagnostics) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { - return (GetDiagnostics) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetDiagnostics setUploadType(java.lang.String uploadType) { - return (GetDiagnostics) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { - return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetDiagnostics setUserIp(java.lang.String userIp) { - return (GetDiagnostics) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93693,7 +93943,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetDiagnostics setProject(java.lang.String project) { + 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 " + @@ -93703,221 +93953,62 @@ public GetDiagnostics setProject(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String resource; - /** Project ID for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getResource() { + return resource; } - /** Project ID for this request. */ - public GetMacsecConfig setProject(java.lang.String project) { + /** 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.resource = resource; return this; } - /** Name of the interconnect resource to query. */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.Integer optionsRequestedPolicyVersion; - /** Name of the interconnect resource to query. + /** Requested IAM Policy version. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public GetMacsecConfig set(String parameterName, Object value) { - return (GetMacsecConfig) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Creates an Interconnect in the specified project using the data included in the request. + * 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 "interconnects.insert". + * 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.Interconnect} + * @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.Interconnect content) throws java.io.IOException { + 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; @@ -93925,15 +94016,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/global/licenses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 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 "interconnects.insert". + * 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 @@ -93941,10 +94033,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @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.Interconnect content) { + 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()) { @@ -94090,9 +94182,14 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of Interconnects available to the specified project. + * 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 "interconnects.list". + * 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. @@ -94106,17 +94203,22 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/global/licenses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "interconnects.list". + * 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 @@ -94127,7 +94229,7 @@ public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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. + * 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 "interconnects.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * 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.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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 SetLabels extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -94745,24 +94630,25 @@ public class SetLabels extends ComputeRequest + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @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); + 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(), @@ -94778,63 +94664,63 @@ protected SetLabels(java.lang.String project, java.lang.String resource, com.goo } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94848,7 +94734,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -94869,7 +94755,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + 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 " + @@ -94880,14 +94766,15 @@ public SetLabels setResource(java.lang.String resource) { } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "interconnects.testIamPermissions". + * 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. @@ -94905,7 +94792,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -94914,9 +94801,10 @@ public class TestIamPermissions extends ComputeRequestThe 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. + * 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 "licenseCodes.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#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. + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} * @return the request */ - public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { - Get result = new Get(project, licenseCode); + 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 Get extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}?"); + 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}"); /** - * 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. + * 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 "licenseCodes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 licenseCode Number corresponding to the License code resource to return. + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} * @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); + 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.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); + 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_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95218,7 +95073,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -95228,259 +95083,153 @@ public Get setProject(java.lang.String project) { return this; } - /** Number corresponding to the License code resource to return. */ + /** The license name for this request. */ @com.google.api.client.util.Key - private java.lang.String licenseCode; + private java.lang.String license; - /** Number corresponding to the License code resource to return. + /** The license name for this request. */ - public java.lang.String getLicenseCode() { - return licenseCode; + public java.lang.String getLicense() { + return license; } - /** Number corresponding to the License code resource to return. */ - public Get setLicenseCode(java.lang.String licenseCode) { + /** The license name for this request. */ + public Update setLicense(java.lang.String license) { 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}?"); + 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.licenseCode = licenseCode; + this.license = license; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * 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.

    + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @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 + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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}"); - } - } - - @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); - } + @com.google.api.client.util.Key + private java.lang.String requestId; - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Project ID for this 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 getProject() { - return project; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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; } - /** Name or id of the resource for this request. */ + /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private String updateMask; - /** Name or id of the resource for this request. + /** update_mask indicates fields to be updated as part of this request. */ - public java.lang.String getResource() { - return resource; + public String getUpdateMask() { + return updateMask; } - /** 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; + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Licenses collection. + * An accessor for creating requests from the MachineImages collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
    +   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
        * 
    * * @return the resource collection */ - public Licenses licenses() { - return new Licenses(); + public MachineImages machineImages() { + return new MachineImages(); } /** - * The "licenses" collection of methods. + * The "machineImages" collection of methods. */ - public class Licenses { + public class MachineImages { /** - * Deletes the specified license. Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. * - * Create a request for the method "licenses.delete". + * 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 license Name of the license resource to delete. + * @param machineImage The name of the machine image 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); + 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/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 license. *Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be + * undone. * - * Create a request for the method "licenses.delete". + * 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 @@ -95488,10 +95237,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param license Name of the license resource to delete. + * @param machineImage The name of the machine image to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String license) { + 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()) { @@ -95499,10 +95248,10 @@ protected Delete(java.lang.String project, java.lang.String license) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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}"); } } @@ -95588,24 +95337,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the license resource to delete. */ + /** The name of the machine image to delete. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String machineImage; - /** Name of the license resource to delete. + /** The name of the machine image to delete. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getMachineImage() { + return machineImage; } - /** Name of the license resource to delete. */ - public Delete setLicense(java.lang.String license) { + /** The name of the machine image to delete. */ + public Delete setMachineImage(java.lang.String machineImage) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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.license = license; + this.machineImage = machineImage; return this; } @@ -95664,39 +95413,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified License resource. Caution* This resource is intended for use only by third- - * party partners who are creatingCloud Marketplace images. + * Returns the specified machine image. * - * Create a request for the method "licenses.get". + * 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 license Name of the License resource to return. + * @param machineImage The name of the machine image. * @return the request */ - public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { - Get result = new Get(project, license); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 License resource. *Caution* This resource is intended for use only by - * third-party partners who are creatingCloud Marketplace images. + * Returns the specified machine image. * - * Create a request for the method "licenses.get". + * 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 @@ -95704,21 +95451,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param license Name of the License resource to return. + * @param machineImage The name of the machine image. * @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); + 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + 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(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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}"); } } @@ -95814,24 +95561,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the License resource to return. */ + /** The name of the machine image. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String machineImage; - /** Name of the License resource to return. + /** The name of the machine image. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getMachineImage() { + return machineImage; } - /** Name of the License resource to return. */ - public Get setLicense(java.lang.String license) { + /** The name of the machine image. */ + public Get setMachineImage(java.lang.String machineImage) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + + 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.license = license; + this.machineImage = machineImage; return this; } @@ -95842,10 +95589,8 @@ public Get set(String parameterName, Object 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". + * 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. @@ -95862,7 +95607,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String reso public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -95872,10 +95617,9 @@ public class GetIamPolicy extends ComputeRequest @@ -96037,19 +95781,20 @@ public GetIamPolicy set(String parameterName, Object 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. + * 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 "licenses.insert". + * 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.License} + * @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.License content) throws java.io.IOException { + 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; @@ -96057,16 +95802,18 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/machineImages"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "licenses.insert". + * 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 @@ -96074,10 +95821,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @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.License content) { + 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()) { @@ -96217,20 +95964,31 @@ public Insert setRequestId(java.lang.String 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 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. + * Retrieves a list of machine images that are contained within the specified project. * - * Create a request for the method "licenses.list". + * 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. @@ -96244,22 +96002,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/machineImages"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves a list of machine images that are contained within the specified project. * - * Create a request for the method "licenses.list". + * 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 @@ -96270,7 +96023,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -96672,10 +96423,8 @@ public class SetIamPolicy extends ComputeRequest @@ -96812,28 +96561,28 @@ public SetIamPolicy set(String parameterName, Object 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. + * Sets the labels on a machine image. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "licenses.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -96842,24 +96591,24 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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(), @@ -96875,63 +96624,63 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96945,7 +96694,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -96966,7 +96715,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + 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 " + @@ -96977,130 +96726,129 @@ public TestIamPermissions setResource(java.lang.String resource) { } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "licenses.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Update extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern RESOURCE_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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "licenses.update". + * 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 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.

    + * 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 license The license name for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @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 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); + 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97114,7 +96862,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -97124,237 +96872,177 @@ public Update setProject(java.lang.String project) { return this; } - /** The license name for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String resource; - /** The license name for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getResource() { + return resource; } - /** The license name for this request. */ - public Update setLicense(java.lang.String license) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MachineImages collection. + * An accessor for creating requests from the MachineTypes collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
    +   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
        * 
    * * @return the resource collection */ - public MachineImages machineImages() { - return new MachineImages(); + public MachineTypes machineTypes() { + return new MachineTypes(); } /** - * The "machineImages" collection of methods. + * The "machineTypes" collection of methods. */ - public class MachineImages { + public class MachineTypes { /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * Retrieves an aggregated list of machine types. * - * Create a request for the method "machineImages.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern 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. + * Retrieves an aggregated list of machine types. * - * Create a request for the method "machineImages.delete". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - 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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -97368,7 +97056,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -97378,113 +97066,368 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the machine image to delete. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String filter; - /** The name of the machine image to delete. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Returns the specified machine image. + * Returns the specified machine type. * - * Create a request for the method "machineImages.get". + * 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 machineImage The name of the machine image. + * @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 machineImage) throws java.io.IOException { - Get result = new Get(project, machineImage); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 image. + * Returns the specified machine type. * - * Create a request for the method "machineImages.get". + * 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 @@ -97492,21 +97435,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image. + * @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 machineImage) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImage.class); + 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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -97602,24 +97552,45 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the machine image. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String zone; - /** The name of the machine image. + /** The name of the zone for this request. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getZone() { + return zone; } - /** The name of the machine image. */ - public Get setMachineImage(java.lang.String machineImage) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.machineImage = machineImage; + this.machineType = machineType; return this; } @@ -97629,62 +97600,60 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "machineImages.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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 zone The name of the zone 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); + 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 GetIamPolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_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 ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "machineImages.getIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource for this request. + * @param zone The name of the zone 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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -97699,63 +97668,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97769,7 +97738,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -97779,444 +97748,80 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** The name of the zone for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.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 = resource; + this.zone = zone; return this; } - /** Requested IAM Policy version. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String filter; - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 `:`. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. @@ -98433,542 +98038,37 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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. + * An accessor for creating requests from the NetworkAttachments collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
    +   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
        * 
    * * @return the resource collection */ - public MachineTypes machineTypes() { - return new MachineTypes(); + public NetworkAttachments networkAttachments() { + return new NetworkAttachments(); } /** - * The "machineTypes" collection of methods. + * The "networkAttachments" collection of methods. */ - public class MachineTypes { + public class NetworkAttachments { /** - * Retrieves an aggregated list of machine types. + * 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 "machineTypes.aggregatedList". + * 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. @@ -98982,20 +98082,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; + private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "machineTypes.aggregatedList". + * 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. @@ -99007,7 +98108,7 @@ public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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 = + 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 machine type. + * Deletes the specified NetworkAttachment in the given scope * - * Create a request for the method "machineTypes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 machineType Name of the machine type to return. + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override @@ -99593,45 +98940,45 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region of this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the region of this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the machine type to return. */ + /** Name of the NetworkAttachment resource to return. */ @com.google.api.client.util.Key - private java.lang.String machineType; + private java.lang.String networkAttachment; - /** Name of the machine type to return. + /** Name of the NetworkAttachment resource to return. */ - public java.lang.String getMachineType() { - return machineType; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** Name of the machine type to return. */ - public Get setMachineType(java.lang.String machineType) { + /** Name of the NetworkAttachment resource to return. */ + public Get setNetworkAttachment(java.lang.String networkAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.machineType = machineType; + this.networkAttachment = networkAttachment; return this; } @@ -99641,61 +98988,74 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of machine types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "machineTypes.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public 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 List extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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}"); + /** - * Retrieves a list of machine types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "machineTypes.list". + * 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 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.

    + * 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 region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); + protected 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -99709,63 +99069,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -99779,7 +99139,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -99789,373 +99149,343 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + 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. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + private java.lang.String resource; - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** 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; + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @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; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class Insert extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Creates a NetworkAttachment in the specified project in the given scope using the parameters + * that are included in the request. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "networkAttachments.insert". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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])?"); + } } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + @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 List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the region of this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the region of this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkAttachments.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 all NetworkAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkAttachments.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentAggregatedList.class); + 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])?"); + } } @Override @@ -100169,63 +99499,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100239,7 +99569,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -100249,6 +99579,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -100380,45 +99731,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -100443,7 +99760,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -100487,7 +99804,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -100510,7 +99827,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -100542,59 +99859,38 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified NetworkAttachment in the given scope + * 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.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; @@ -100608,22 +99904,24 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @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 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); + 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(), @@ -100645,63 +99943,63 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100715,7 +100013,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -100725,18 +100023,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -100746,18 +100044,18 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the NetworkAttachment resource to delete. */ + /** Name of the NetworkAttachment resource to patch. */ @com.google.api.client.util.Key private java.lang.String networkAttachment; - /** Name of the NetworkAttachment resource to delete. + /** Name of the NetworkAttachment resource to patch. */ public java.lang.String getNetworkAttachment() { return networkAttachment; } - /** Name of the NetworkAttachment resource to delete. */ - public Delete setNetworkAttachment(java.lang.String 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 " + @@ -100811,38 +100109,39 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns the specified NetworkAttachment resource in the given scope. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkAttachments.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -100850,26 +100149,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. + * @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 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); + 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(), @@ -100882,82 +100183,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100971,7 +100262,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -100981,18 +100272,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Get setRegion(java.lang.String 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 " + @@ -101002,54 +100293,55 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the NetworkAttachment resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkAttachment; + private java.lang.String resource; - /** Name of the NetworkAttachment resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the NetworkAttachment resource to return. */ - public Get setNetworkAttachment(java.lang.String networkAttachment) { + /** 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(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkAttachment = networkAttachment; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkAttachments.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -101061,24 +100353,24 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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); + 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(), @@ -101100,73 +100392,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101180,7 +100462,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -101201,7 +100483,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + 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 " + @@ -101222,7 +100504,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -101232,301 +100514,88 @@ public GetIamPolicy setResource(java.lang.String 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); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; - } + /** + * The "networkEdgeSecurityServices" collection of methods. + */ + public class NetworkEdgeSecurityServices { - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } /** - * Lists the NetworkAttachments for a project in the given scope. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. * - * Create a request for the method "networkAttachments.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region of this request. + * @param project Name of the project 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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. * - * Create a request for the method "networkAttachments.list". + * 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 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.

    + * 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. - * @param region Name of the region of this request. + * @param project Name of the project 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.NetworkAttachmentList.class); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -101540,77 +100609,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String 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 " + @@ -101620,27 +100689,6 @@ public List setProject(java.lang.String 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 @@ -101772,11 +100820,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -101801,7 +100883,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -101845,7 +100927,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -101868,7 +100950,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -101900,40 +100982,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified service. * - * Create a request for the method "networkAttachments.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -101941,28 +101044,26 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @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); + 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(), @@ -101975,72 +101076,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102054,7 +101155,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -102064,18 +101165,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -102085,24 +101186,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the NetworkAttachment resource to patch. */ + /** Name of the network edge security service to delete. */ @com.google.api.client.util.Key - private java.lang.String networkAttachment; + private java.lang.String networkEdgeSecurityService; - /** Name of the NetworkAttachment resource to patch. + /** Name of the network edge security service to delete. */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** Name of the NetworkAttachment resource to patch. */ - public Patch setNetworkAttachment(java.lang.String networkAttachment) { + /** 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_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + + 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.networkAttachment = networkAttachment; + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } @@ -102117,7 +101218,7 @@ public Patch setNetworkAttachment(java.lang.String networkAttachment) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -102131,7 +101232,7 @@ public Patch setNetworkAttachment(java.lang.String networkAttachment) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -102148,41 +101249,40 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkAttachments.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -102190,28 +101290,26 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @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); + 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(), @@ -102224,72 +101322,82 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -102303,7 +101411,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -102313,18 +101421,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String 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 " + @@ -102334,55 +101442,54 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the network edge security service to get. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkEdgeSecurityService; - /** Name or id of the resource for this request. + /** Name of the network edge security service to get. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Creates a new service in the specified project using the data included in the request. * - * Create a request for the method "networkAttachments.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -102390,28 +101497,260 @@ public class TestIamPermissions extends ComputeRequest {@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])?"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); /** - * Returns permissions that a caller has on the specified resource. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkAttachments.testIamPermissions". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -102424,72 +101763,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102503,7 +101842,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -102513,18 +101852,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String 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 " + @@ -102534,68 +101873,147 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the network edge security service to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkEdgeSecurityService; - /** Name or id of the resource for this request. + /** Name of the network edge security service to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the NetworkEdgeSecurityServices collection. + * An accessor for creating requests from the NetworkEndpointGroups collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
    +   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
        * 
    * * @return the resource collection */ - public NetworkEdgeSecurityServices networkEdgeSecurityServices() { - return new NetworkEdgeSecurityServices(); + public NetworkEndpointGroups networkEndpointGroups() { + return new NetworkEndpointGroups(); } /** - * The "networkEdgeSecurityServices" collection of methods. + * The "networkEndpointGroups" collection of methods. */ - public class NetworkEdgeSecurityServices { + public class NetworkEndpointGroups { /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. + * 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 "networkEdgeSecurityServices.aggregatedList". + * 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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -102604,21 +102022,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "networkEdgeSecurityServices.aggregatedList". + * 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. @@ -102626,11 +102043,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @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.NetworkEdgeSecurityServiceAggregatedList.class); + 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(), @@ -102709,17 +102126,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** 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(), @@ -103057,132 +102474,126 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified service. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkEdgeSecurityServices.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link AttachNetworkEndpoints#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkEdgeSecurityServices.delete". + * 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 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.

    + * 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 Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103196,7 +102607,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -103206,45 +102617,48 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** + * 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; } - /** Name of the network edge security service to delete. */ + /** + * 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 networkEdgeSecurityService; + private java.lang.String networkEndpointGroup; - /** Name of the network edge security service to delete. + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** + * 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; } @@ -103292,153 +102706,135 @@ public java.lang.String getRequestId() { * 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) { + public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } } /** - * Gets a specified NetworkEdgeSecurityService. + * 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 "networkEdgeSecurityServices.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 get. + * @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 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); + 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 Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "networkEdgeSecurityServices.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 get. + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + 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."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103452,7 +102848,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -103462,98 +102858,154 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** + * 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; } - /** Name of the network edge security service to get. */ + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String networkEndpointGroup; - /** Name of the network edge security service to get. + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a new service in the specified project using the data included in the request. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkEdgeSecurityServices.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link DetachNetworkEndpoints#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkEdgeSecurityServices.insert". + * 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 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.

    + * 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 Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { + 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()) { @@ -103561,72 +103013,68 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-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."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); + } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103640,7 +103088,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -103650,24 +103098,48 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** + * 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; } @@ -103715,161 +103187,139 @@ public java.lang.String getRequestId() { * 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) { + public DetachNetworkEndpoints 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); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Returns the specified network endpoint group. * - * Create a request for the method "networkEdgeSecurityServices.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @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 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); + 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 Patch extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Returns the specified network endpoint group. * - * Create a request for the method "networkEdgeSecurityServices.patch". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -103883,7 +103333,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -103893,60 +103343,208 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** + * 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; } - /** Name of the network edge security service to update. */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String networkEndpointGroup; - /** Name of the network edge security service to update. + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** Name of the network edge security service to update. */ - public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + /** 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. + * + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * + * 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.networkEdgeSecurityService = networkEdgeSecurityService; - return this; + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + } + + @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.util.List paths; + 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.util.List getPaths() { - return paths; + public java.lang.String getZone() { + return zone; } - public Patch setPaths(java.util.List paths) { - this.paths = paths; + /** + * 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; } @@ -103994,107 +103592,67 @@ public java.lang.String getRequestId() { * 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) { + public Insert 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); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * Retrieves the list of network endpoint groups that are located in the specified project and zone. * - * Create a request for the method "networkEndpointGroups.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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`. + * Retrieves the list of network endpoint groups that are located in the specified project and + * zone. * - * Create a request for the method "networkEndpointGroups.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupAggregatedList.class); + 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."); } @Override @@ -104108,63 +103666,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104178,7 +103736,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -104188,6 +103746,28 @@ public AggregatedList setProject(java.lang.String 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 @@ -104319,45 +103899,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -104382,7 +103928,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -104426,7 +103972,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -104449,7 +103995,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -104481,92 +104027,69 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Attach a list of network endpoints to the specified network endpoint group. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * 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 AttachNetworkEndpoints#execute()} method to invoke the remote + * 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 where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @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 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); + 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 AttachNetworkEndpoints extends ComputeRequest { + public class ListNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * 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 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 + * 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 where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @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 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); + 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(), @@ -104578,63 +104101,63 @@ protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104648,7 +104171,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -104675,207 +104198,433 @@ public java.lang.String getZone() { * The name of the zone where the network endpoint group is located. It should comply with * RFC1035. */ - public AttachNetworkEndpoints setZone(java.lang.String zone) { + public ListNetworkEndpoints 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. + * 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 where you are attaching network endpoints to. It should - comply with RFC1035. + /** 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 where you are attaching network endpoints to. It - * should comply with RFC1035. + * 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 AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + public ListNetworkEndpoints 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListNetworkEndpoints setFilter(java.lang.String filter) { + this.filter = filter; 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 { + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + } /** - * 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". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * 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.

    + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * @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 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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."); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + } } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + 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. */ @@ -104889,7 +104638,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -104899,154 +104648,122 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the zone for this request. */ @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. + /** The name of the zone for this request. */ 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) { + /** 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; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String resource; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getResource() { + return resource; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "networkFirewallPolicies" collection of methods. + */ + public class NetworkFirewallPolicies { - @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. + * Inserts an association for the specified firewall policy. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * 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 DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AddAssociation#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} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @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); + 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 DetachNetworkEndpoints extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Detach a list of network endpoints from the specified network endpoint group. + * Inserts an association for the specified firewall policy. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * 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 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.

    + * 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 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} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @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) { + 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()) { @@ -105054,68 +104771,72 @@ protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105129,7 +104850,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -105139,48 +104860,49 @@ public DetachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String firewallPolicy; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** Name of the firewall policy to update. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * 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; + /** 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; } /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. + * 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.String networkEndpointGroup; + private java.lang.Boolean replaceExistingAssociation; - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. + /** 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.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; } /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. + * 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 DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; return this; } @@ -105228,139 +104950,136 @@ public java.lang.String getRequestId() { * 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) { + public AddAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Inserts a packet mirroring rule into a firewall policy. * - * Create a request for the method "networkEndpointGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link AddPacketMirroringRule#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. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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 Get extends ComputeRequest { + public class AddPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 endpoint group. + * Inserts a packet mirroring rule into a firewall policy. * - * Create a request for the method "networkEndpointGroups.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 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. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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.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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (AddPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AddPacketMirroringRule setAlt(java.lang.String alt) { + return (AddPacketMirroringRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AddPacketMirroringRule setCallback(java.lang.String callback) { + return (AddPacketMirroringRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AddPacketMirroringRule setFields(java.lang.String fields) { + return (AddPacketMirroringRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AddPacketMirroringRule setKey(java.lang.String key) { + return (AddPacketMirroringRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (AddPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (AddPacketMirroringRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AddPacketMirroringRule setUserIp(java.lang.String userIp) { + return (AddPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105374,7 +105093,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -105384,109 +105103,173 @@ public Get setProject(java.lang.String 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; + } + /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. + * 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.String zone; + private java.lang.Integer maxPriority; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getZone() { - return zone; + public java.lang.Integer getMaxPriority() { + return maxPriority; } /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; + public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; return this; } - /** The name of the network endpoint group. It should comply with RFC1035. */ + /** + * 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.String networkEndpointGroup; + private java.lang.Integer minPriority; - /** The name of the network endpoint group. It should comply with RFC1035. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.Integer getMinPriority() { + return minPriority; } - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AddPacketMirroringRule set(String parameterName, Object value) { + return (AddPacketMirroringRule) 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 + * Inserts a rule into a firewall policy. * - * Create a request for the method "networkEndpointGroups.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link AddRule#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} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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 Insert extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * 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 + * Inserts a rule into a firewall policy. * - * Create a request for the method "networkEndpointGroups.insert". + * 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 Insert#execute()} method to invoke the remote operation.

    {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 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} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) { + 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()) { @@ -105494,67 +105277,72 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105568,7 +105356,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -105578,26 +105366,70 @@ public Insert setProject(java.lang.String 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; + } + /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. + * 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.String zone; + private java.lang.Integer maxPriority; - /** The name of the zone where you want to create the network endpoint group. It should comply with - RFC1035. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getZone() { - return zone; + public java.lang.Integer getMaxPriority() { + return maxPriority; } /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; + 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; } @@ -105645,67 +105477,70 @@ public java.lang.String getRequestId() { * 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) { + public AddRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Retrieves the list of network endpoint groups that are located in the specified project and zone. + * 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. * - * Create a request for the method "networkEndpointGroups.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "networkEndpointGroups.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override @@ -105719,63 +105554,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105789,7 +105624,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -105799,28 +105634,6 @@ public List setProject(java.lang.String 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 @@ -105952,26 +105765,60 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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.Long maxResults; + private java.lang.Boolean includeAllScopes; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if 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; } @@ -105981,7 +105828,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -106025,7 +105872,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -106048,7 +105895,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -106080,137 +105927,156 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists the network endpoints in the specified network endpoint group. + * Copies rules to the specified firewall policy. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * 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 ListNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link CloneRules#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} + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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 ListNetworkEndpoints extends ComputeRequest { + public class CloneRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Lists the network endpoints in the specified network endpoint group. + * Copies rules to the specified firewall policy. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * 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 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.

    + * 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 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} + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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.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."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106224,7 +106090,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -106234,450 +106100,213 @@ public ListNetworkEndpoints setProject(java.lang.String 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`) - */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String firewallPolicy; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the firewall policy to update. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String requestId; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRequestId() { + return requestId; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListNetworkEndpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public CloneRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The firewall policy from which to copy rules. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String sourceFirewallPolicy; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The firewall policy from which to copy rules. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getSourceFirewallPolicy() { + return sourceFirewallPolicy; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** The firewall policy from which to copy rules. */ + public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { + this.sourceFirewallPolicy = sourceFirewallPolicy; return this; } @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Deletes the specified policy. * - * Create a request for the method "networkEndpointGroups.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param firewallPolicy Name of the firewall policy to delete. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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 permissions that a caller has on the specified resource. + * Deletes the specified policy. * - * Create a request for the method "networkEndpointGroups.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param firewallPolicy Name of the firewall policy to delete. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -106691,7 +106320,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -106701,98 +106330,102 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the firewall policy to delete. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String firewallPolicy; - /** The name of the zone for this request. + /** Name of the firewall policy to delete. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the firewall policy to delete. */ + public Delete setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.zone = zone; + this.firewallPolicy = firewallPolicy; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns the specified network firewall policy. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * 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 AddAssociation#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param firewallPolicy Name of the firewall policy to get. * @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); + 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 AddAssociation extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -106801,23 +106434,21 @@ public class AddAssociation extends ComputeRequest {@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param firewallPolicy Name of the firewall policy to get. * @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); + 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(), @@ -106833,63 +106464,73 @@ protected AddAssociation(java.lang.String project, java.lang.String firewallPoli } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -106903,7 +106544,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + 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 " + @@ -106913,18 +106554,18 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to get. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to get. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public AddAssociation setFirewallPolicy(java.lang.String 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 " + @@ -106934,108 +106575,32 @@ public AddAssociation setFirewallPolicy(java.lang.String 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); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Inserts a packet mirroring rule into a firewall policy. + * Gets an association with the specified name. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * 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 AddPacketMirroringRule#execute()} method to invoke the remote - * operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @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); + 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 AddPacketMirroringRule extends ComputeRequest { + public class GetAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -107044,23 +106609,22 @@ public class AddPacketMirroringRule extends ComputeRequest {@link AddPacketMirroringRule#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @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); + 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(), @@ -107076,63 +106640,73 @@ protected AddPacketMirroringRule(java.lang.String project, java.lang.String fire } @Override - public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (AddPacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddPacketMirroringRule setAlt(java.lang.String alt) { - return (AddPacketMirroringRule) super.setAlt(alt); + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); } @Override - public AddPacketMirroringRule setCallback(java.lang.String callback) { - return (AddPacketMirroringRule) super.setCallback(callback); + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); } @Override - public AddPacketMirroringRule setFields(java.lang.String fields) { - return (AddPacketMirroringRule) super.setFields(fields); + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); } @Override - public AddPacketMirroringRule setKey(java.lang.String key) { - return (AddPacketMirroringRule) super.setKey(key); + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); } @Override - public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (AddPacketMirroringRule) super.setOauthToken(oauthToken); + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); } @Override - public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); } @Override - public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); } @Override - public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (AddPacketMirroringRule) super.setUploadType(uploadType); + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); } @Override - public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } @Override - public AddPacketMirroringRule setUserIp(java.lang.String userIp) { - return (AddPacketMirroringRule) super.setUserIp(userIp); + 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. */ @@ -107146,7 +106720,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -107156,18 +106730,18 @@ public AddPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** 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 update. + /** Name of the firewall policy to which the queried association belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public AddPacketMirroringRule setFirewallPolicy(java.lang.String 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 " + @@ -107177,128 +106751,434 @@ public AddPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) return this; } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ + /** The name of the association to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Integer maxPriority; + private java.lang.String name; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The name of the association to get from the firewall policy. */ - public java.lang.Integer getMaxPriority() { - return maxPriority; + public java.lang.String getName() { + return name; } - /** - * 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; + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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.Integer minPriority; + private java.lang.String resource; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Name or id of the resource for this request. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getResource() { + return resource; } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + /** 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 AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Gets a packet mirroring rule of the specified priority. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 requestId; + private java.lang.String project; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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 getRequestId() { - return requestId; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** 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 AddPacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 AddPacketMirroringRule set(String parameterName, Object value) { - return (AddPacketMirroringRule) super.set(parameterName, value); + public GetPacketMirroringRule set(String parameterName, Object value) { + return (GetPacketMirroringRule) super.set(parameterName, value); } } /** - * Inserts a rule into a firewall policy. + * Gets a rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.addRule". + * 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 AddRule#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @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); + 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 AddRule extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -107307,23 +107187,22 @@ public class AddRule extends ComputeRequest + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

    * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @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); + 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(), @@ -107339,63 +107218,73 @@ protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + 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. */ @@ -107409,7 +107298,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -107419,18 +107308,18 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** 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 update. + /** Name of the firewall policy to which the queried rule belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public AddRule setFirewallPolicy(java.lang.String 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 " + @@ -107440,49 +107329,154 @@ public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ + /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Integer maxPriority; + private java.lang.Integer priority; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The priority of the rule to get from the firewall policy. */ - public java.lang.Integer getMaxPriority() { - return maxPriority; + public java.lang.Integer getPriority() { + return priority; } - /** - * 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; + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * 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])?))"); + } + } + + @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.Integer minPriority; + private java.lang.String project; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Project ID for this request. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getProject() { + return project; } - /** - * 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; + /** 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; } @@ -107530,64 +107524,55 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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`. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.class); + 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(), @@ -107607,63 +107592,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -107677,7 +107662,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -107818,45 +107803,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -107881,7 +107832,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -107925,7 +107876,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -107948,7 +107899,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -107980,60 +107931,38 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Copies rules to the specified firewall policy. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * 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 CloneRules#execute()} method to invoke the remote operation. + * 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 CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(project, firewallPolicy); + 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 CloneRules extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108042,22 +107971,22 @@ public class CloneRules extends ComputeRequest - * {@link - * CloneRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 CloneRules(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -108073,63 +108002,63 @@ protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) } @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108143,7 +108072,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CloneRules setProject(java.lang.String project) { + 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 " + @@ -108164,7 +108093,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { + 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 " + @@ -108218,53 +108147,39 @@ public java.lang.String getRequestId() { * 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) { + public Patch 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); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified policy. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(project, firewallPolicy); + 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 Delete extends ComputeRequest { + public class PatchPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108273,21 +108188,23 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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(), @@ -108303,63 +108220,63 @@ protected Delete(java.lang.String project, java.lang.String firewallPolicy) { } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (PatchPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public PatchPacketMirroringRule setAlt(java.lang.String alt) { + return (PatchPacketMirroringRule) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public PatchPacketMirroringRule setCallback(java.lang.String callback) { + return (PatchPacketMirroringRule) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public PatchPacketMirroringRule setFields(java.lang.String fields) { + return (PatchPacketMirroringRule) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public PatchPacketMirroringRule setKey(java.lang.String key) { + return (PatchPacketMirroringRule) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (PatchPacketMirroringRule) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { + return (PatchPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108373,7 +108290,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -108383,18 +108300,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to delete. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to delete. + /** Name of the firewall policy to update. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to delete. */ - public Delete setFirewallPolicy(java.lang.String 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 " + @@ -108404,6 +108321,22 @@ public Delete setFirewallPolicy(java.lang.String 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 @@ -108448,37 +108381,38 @@ public java.lang.String getRequestId() { * 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) { + public PatchPacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PatchPacketMirroringRule set(String parameterName, Object value) { + return (PatchPacketMirroringRule) super.set(parameterName, value); } } /** - * Returns the specified network firewall policy. + * Patches a rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 get. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(project, firewallPolicy); + 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 Get extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108487,21 +108421,23 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 get. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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(), @@ -108517,73 +108453,63 @@ protected Get(java.lang.String project, java.lang.String firewallPolicy) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108597,7 +108523,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -108607,18 +108533,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to get. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to get. + /** Name of the firewall policy to update. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to get. */ - public Get setFirewallPolicy(java.lang.String 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 " + @@ -108628,32 +108554,97 @@ public Get setFirewallPolicy(java.lang.String 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Gets an association with the specified name. + * Removes an association for the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.getAssociation". + * 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 GetAssociation#execute()} method to invoke the remote operation. + * 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 which the queried association belongs. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, firewallPolicy); + 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 GetAssociation extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -108662,22 +108653,22 @@ public class GetAssociation extends ComputeRequest {@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the + * 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 which the queried association belongs. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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(), @@ -108693,73 +108684,63 @@ protected GetAssociation(java.lang.String project, java.lang.String firewallPoli } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108773,7 +108754,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetAssociation setProject(java.lang.String project) { + 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 " + @@ -108783,18 +108764,18 @@ public GetAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried association belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried association belongs. + /** Name of the firewall policy to update. */ 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) { + /** 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 " + @@ -108804,155 +108785,194 @@ public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The name of the association to get from the firewall policy. */ + /** Name for the attachment that will be removed. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the association to get from the firewall policy. + /** Name for the attachment that will be removed. */ 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) { + /** 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 GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePacketMirroringRule#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 firewallPolicy Name of the firewall policy to update. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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 GetIamPolicy extends ComputeRequest { + public class RemovePacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". + * 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 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.

    + * 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 resource Name or id of the resource for this request. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (RemovePacketMirroringRule) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public RemovePacketMirroringRule setAlt(java.lang.String alt) { + return (RemovePacketMirroringRule) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public RemovePacketMirroringRule setCallback(java.lang.String callback) { + return (RemovePacketMirroringRule) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public RemovePacketMirroringRule setFields(java.lang.String fields) { + return (RemovePacketMirroringRule) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public RemovePacketMirroringRule setKey(java.lang.String key) { + return (RemovePacketMirroringRule) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { + return (RemovePacketMirroringRule) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { + return (RemovePacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108966,7 +108986,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -108976,70 +108996,118 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String firewallPolicy; - /** Name or id of the resource for this request. + /** Name of the firewall policy to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the firewall policy to update. */ + public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.resource = resource; + this.firewallPolicy = firewallPolicy; return this; } - /** Requested IAM Policy version. */ + /** The priority of the rule to remove from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.Integer priority; - /** Requested IAM Policy version. + /** The priority of the rule to remove from the firewall policy. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Integer getPriority() { + return priority; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public RemovePacketMirroringRule set(String parameterName, Object value) { + return (RemovePacketMirroringRule) super.set(parameterName, value); } } /** - * Gets a packet mirroring rule of the specified priority. + * Deletes a rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". + * 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 GetPacketMirroringRule#execute()} method to invoke the remote - * operation. + * 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 which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public GetPacketMirroringRule getPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetPacketMirroringRule result = new GetPacketMirroringRule(project, firewallPolicy); + 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 GetPacketMirroringRule extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -109048,22 +109116,22 @@ public class GetPacketMirroringRule extends ComputeRequest {@link GetPacketMirroringRule#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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(), @@ -109079,73 +109147,63 @@ protected GetPacketMirroringRule(java.lang.String project, java.lang.String fire } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (GetPacketMirroringRule) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public GetPacketMirroringRule setAlt(java.lang.String alt) { - return (GetPacketMirroringRule) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public GetPacketMirroringRule setCallback(java.lang.String callback) { - return (GetPacketMirroringRule) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public GetPacketMirroringRule setFields(java.lang.String fields) { - return (GetPacketMirroringRule) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public GetPacketMirroringRule setKey(java.lang.String key) { - return (GetPacketMirroringRule) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (GetPacketMirroringRule) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (GetPacketMirroringRule) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetPacketMirroringRule setUserIp(java.lang.String userIp) { - return (GetPacketMirroringRule) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -109159,7 +109217,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetPacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -109169,18 +109227,18 @@ public GetPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried rule belongs. + /** Name of the firewall policy to update. */ 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) { + /** 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 " + @@ -109190,154 +109248,195 @@ public GetPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) return this; } - /** The priority of the rule to get from the firewall policy. */ + /** 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 get from the firewall policy. + /** The priority of the rule to remove 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) { + /** 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 GetPacketMirroringRule set(String parameterName, Object value) { - return (GetPacketMirroringRule) super.set(parameterName, value); + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkFirewallPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, firewallPolicy); + 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 GetRule extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.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 a rule of the specified priority. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkFirewallPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#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.

    + * 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 firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @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 GetRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -109351,7 +109450,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + 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 " + @@ -109361,155 +109460,151 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String resource; - /** Name of the firewall policy to which the queried rule belongs. + /** Name or id of the resource for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Creates a new policy in the specified project using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @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 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); + 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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -109523,7 +109618,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -109533,64 +109628,234 @@ public Insert setProject(java.lang.String 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + } + + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "networkProfiles.get". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote 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 */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists all the policies that have been configured for the specified project. + * Retrieves a list of network profiles available to the specified project. * - * Create a request for the method "networkFirewallPolicies.list". + * 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. @@ -109604,17 +109869,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/global/networkProfiles"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves a list of network profiles available to the specified project. * - * Create a request for the method "networkFirewallPolicies.list". + * 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 @@ -109625,7 +109890,7 @@ public class List extends ComputeRequestThe 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 { + /** - * Patches the specified policy with the data included in the request. + * Adds a peering to the specified network. * - * Create a request for the method "networkFirewallPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link AddPeering#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class AddPeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 policy with the data included in the request. + * Adds a peering to the specified network. * - * Create a request for the method "networkFirewallPolicies.patch". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} + * @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 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); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public AddPeering set$Xgafv(java.lang.String $Xgafv) { + return (AddPeering) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public AddPeering setAccessToken(java.lang.String accessToken) { + return (AddPeering) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public AddPeering setAlt(java.lang.String alt) { + return (AddPeering) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public AddPeering setCallback(java.lang.String callback) { + return (AddPeering) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public AddPeering setFields(java.lang.String fields) { + return (AddPeering) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public AddPeering setKey(java.lang.String key) { + return (AddPeering) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public AddPeering setOauthToken(java.lang.String oauthToken) { + return (AddPeering) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPeering) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public AddPeering setQuotaUser(java.lang.String quotaUser) { + return (AddPeering) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public AddPeering setUploadType(java.lang.String uploadType) { + return (AddPeering) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPeering) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public AddPeering setUserIp(java.lang.String userIp) { + return (AddPeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110125,7 +110414,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -110135,24 +110424,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the network resource to add peering to. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String network; - /** Name of the firewall policy to update. + /** Name of the network resource to add peering to. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetwork() { + return network; } - /** Name of the firewall policy to update. */ - public Patch setFirewallPolicy(java.lang.String firewallPolicy) { + /** 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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.firewallPolicy = firewallPolicy; + this.network = network; return this; } @@ -110200,136 +110489,132 @@ public java.lang.String getRequestId() { * 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) { + public AddPeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AddPeering set(String parameterName, Object value) { + return (AddPeering) super.set(parameterName, value); } } /** - * Patches a packet mirroring rule of the specified priority. + * Deletes the specified network. * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * 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 PatchPacketMirroringRule#execute()} method to invoke the remote - * operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param network Name of the network to delete. * @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); + 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 PatchPacketMirroringRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 a packet mirroring rule of the specified priority. + * Deletes the specified network. * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * 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 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.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param network Name of the network to delete. * @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); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (PatchPacketMirroringRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PatchPacketMirroringRule setAlt(java.lang.String alt) { - return (PatchPacketMirroringRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PatchPacketMirroringRule setCallback(java.lang.String callback) { - return (PatchPacketMirroringRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PatchPacketMirroringRule setFields(java.lang.String fields) { - return (PatchPacketMirroringRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PatchPacketMirroringRule setKey(java.lang.String key) { - return (PatchPacketMirroringRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (PatchPacketMirroringRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { - return (PatchPacketMirroringRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110343,7 +110628,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -110353,40 +110638,24 @@ public PatchPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the network to delete. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String network; - /** Name of the firewall policy to update. + /** Name of the network to delete. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetwork() { + return network; } - /** Name of the firewall policy to update. */ - public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the network to delete. */ + public Delete setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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.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; + this.network = network; return this; } @@ -110434,135 +110703,142 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchPacketMirroringRule set(String parameterName, Object value) { - return (PatchPacketMirroringRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Returns the specified network. * - * Create a request for the method "networkFirewallPolicies.patchRule". + * 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 PatchRule#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param network Name of the network to return. * @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); + 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 PatchRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 a rule of the specified priority. + * Returns the specified network. * - * Create a request for the method "networkFirewallPolicies.patchRule". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param network Name of the network to return. * @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); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -110576,7 +110852,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + 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 " + @@ -110586,214 +110862,160 @@ public PatchRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the network to return. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String network; - /** Name of the firewall policy to update. + /** Name of the network to return. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetwork() { + return network; } - /** Name of the firewall policy to update. */ - public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the network to return. */ + public Get setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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.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; + this.network = network; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Removes an association for the specified firewall policy. + * Returns the effective firewalls on a given network. * - * Create a request for the method "networkFirewallPolicies.removeAssociation". + * 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 RemoveAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param network Name of the network for this request. * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); + 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 RemoveAssociation extends ComputeRequest { + public class GetEffectiveFirewalls extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Removes an association for the specified firewall policy. + * Returns the effective firewalls on a given network. * - * Create a request for the method "networkFirewallPolicies.removeAssociation". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to update. + * @param network Name of the network for this request. * @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); + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + 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(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}"); + 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])?"); } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + 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. */ @@ -110807,7 +111029,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + 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 " + @@ -110817,215 +111039,139 @@ public RemoveAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String network; - /** Name of the firewall policy to update. + /** Name of the network for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getNetwork() { + return network; } - /** Name of the firewall policy to update. */ - public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the network for this request. */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { 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}"); + 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.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; + this.network = network; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); } } /** - * Deletes a packet mirroring rule of the specified priority. + * Creates a network in the specified project using the data included in the request. * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * 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 RemovePacketMirroringRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Insert#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.Network} * @return the request */ - public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); + 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 RemovePacketMirroringRule extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/networks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Creates a network in the specified project using the data included in the request. * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * 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 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.

    + * 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 firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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); + 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])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (RemovePacketMirroringRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RemovePacketMirroringRule setAlt(java.lang.String alt) { - return (RemovePacketMirroringRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RemovePacketMirroringRule setCallback(java.lang.String callback) { - return (RemovePacketMirroringRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RemovePacketMirroringRule setFields(java.lang.String fields) { - return (RemovePacketMirroringRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RemovePacketMirroringRule setKey(java.lang.String key) { - return (RemovePacketMirroringRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { - return (RemovePacketMirroringRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { - return (RemovePacketMirroringRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111039,7 +111185,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePacketMirroringRule setProject(java.lang.String project) { + 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 " + @@ -111049,43 +111195,6 @@ public RemovePacketMirroringRule setProject(java.lang.String 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 @@ -111130,133 +111239,131 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemovePacketMirroringRule set(String parameterName, Object value) { - return (RemovePacketMirroringRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * Retrieves the list of networks available to the specified project. * - * Create a request for the method "networkFirewallPolicies.removeRule". + * 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 RemoveRule#execute()} method to invoke the remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class RemoveRule extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/global/networks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Retrieves the list of networks available to the specified project. * - * Create a request for the method "networkFirewallPolicies.removeRule". + * 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 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.

    + * 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 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); + 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])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + 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. */ @@ -111270,7 +111377,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -111280,511 +111387,331 @@ public RemoveRule setProject(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` * - * 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.

    + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: * - * @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 + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } - - @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); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - /** Project ID for this request. + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - /** Name or id of the resource for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Long maxResults; - /** Name or id of the resource for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getResource() { - return resource; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * 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.

    + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * @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 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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}"); - } - } - - @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); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "networkProfiles.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param networkProfile Name of the network profile to return. + * @param network Name of the network for this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { - Get result = new Get(project, networkProfile); + 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 Get extends ComputeRequest { + public class ListPeeringRoutes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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 specified network profile. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "networkProfiles.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 networkProfile Name of the network profile to return. + * @param network Name of the network for this request. * @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); + 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.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); + 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_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}"); + 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])?"); } } @@ -111799,63 +111726,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListPeeringRoutes) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { + return (ListPeeringRoutes) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListPeeringRoutes setAlt(java.lang.String alt) { + return (ListPeeringRoutes) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListPeeringRoutes setCallback(java.lang.String callback) { + return (ListPeeringRoutes) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListPeeringRoutes setFields(java.lang.String fields) { + return (ListPeeringRoutes) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListPeeringRoutes setKey(java.lang.String key) { + return (ListPeeringRoutes) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { + return (ListPeeringRoutes) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListPeeringRoutes) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListPeeringRoutes setUploadType(java.lang.String uploadType) { + return (ListPeeringRoutes) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListPeeringRoutes setUserIp(java.lang.String userIp) { + return (ListPeeringRoutes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111869,7 +111796,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -111879,167 +111806,40 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the network profile to return. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String networkProfile; + private java.lang.String network; - /** Name of the network profile to return. + /** Name of the network for this request. */ - public java.lang.String getNetworkProfile() { - return networkProfile; + public java.lang.String getNetwork() { + return network; } - /** Name of the network profile to return. */ - public Get setNetworkProfile(java.lang.String networkProfile) { + /** Name of the network for this request. */ + public ListPeeringRoutes setNetwork(java.lang.String network) { 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}"); + 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.networkProfile = networkProfile; + this.network = network; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. */ + /** The direction of the exchanged routes. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String direction; - /** Project ID for this request. + /** The direction of the exchanged routes. */ - public java.lang.String getProject() { - return project; + public java.lang.String getDirection() { + return direction; } - /** 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; + /** The direction of the exchanged routes. */ + public ListPeeringRoutes setDirection(java.lang.String direction) { + this.direction = direction; return this; } @@ -112174,7 +111974,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListPeeringRoutes setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -112203,7 +112003,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListPeeringRoutes setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -112247,7 +112047,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListPeeringRoutes setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -112270,11 +112070,50 @@ public java.lang.String getPageToken() { * Specifies 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) { + 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; + } + /** * Opt-in for partial success behavior which provides partial results in case of failure. The * default value is false. @@ -112302,61 +112141,39 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListPeeringRoutes set(String parameterName, Object value) { + return (ListPeeringRoutes) 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. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "networks.addPeering". + * 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 AddPeering#execute()} method to invoke the remote operation. + * 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 resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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); + 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 AddPeering extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112365,23 +112182,23 @@ public class AddPeering extends ComputeRequest - * {@link - * AddPeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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); + 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(), @@ -112397,63 +112214,63 @@ protected AddPeering(java.lang.String project, java.lang.String network, com.goo } @Override - public AddPeering set$Xgafv(java.lang.String $Xgafv) { - return (AddPeering) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AddPeering setAccessToken(java.lang.String accessToken) { - return (AddPeering) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AddPeering setAlt(java.lang.String alt) { - return (AddPeering) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AddPeering setCallback(java.lang.String callback) { - return (AddPeering) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AddPeering setFields(java.lang.String fields) { - return (AddPeering) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AddPeering setKey(java.lang.String key) { - return (AddPeering) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AddPeering setOauthToken(java.lang.String oauthToken) { - return (AddPeering) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPeering) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AddPeering setQuotaUser(java.lang.String quotaUser) { - return (AddPeering) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AddPeering setUploadType(java.lang.String uploadType) { - return (AddPeering) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPeering) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AddPeering setUserIp(java.lang.String userIp) { - return (AddPeering) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112467,7 +112284,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPeering setProject(java.lang.String project) { + 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 " + @@ -112477,18 +112294,18 @@ public AddPeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to add peering to. */ + /** Name of the network to update. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network resource to add peering to. + /** Name of the network to update. */ public java.lang.String getNetwork() { return network; } - /** Name of the network resource to add peering to. */ - public AddPeering setNetwork(java.lang.String 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 " + @@ -112542,41 +112359,38 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddPeering set(String parameterName, Object value) { - return (AddPeering) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * Removes a peering from the specified network. * - * Create a request for the method "networks.cancelRequestRemovePeering". + * 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 CancelRequestRemovePeering#execute()} method to invoke the remote - * operation. + * 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.NetworksCancelRequestRemovePeeringRequest} + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} * @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); + 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 CancelRequestRemovePeering extends ComputeRequest { + public class RemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112585,24 +112399,22 @@ public class CancelRequestRemovePeering extends ComputeRequest {@link CancelRequestRemovePeering#initialize(com.google.api.client.googleapis.se - * rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * 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.NetworksCancelRequestRemovePeeringRequest} + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} * @since 1.13 */ - protected CancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) { + 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()) { @@ -112619,63 +112431,63 @@ protected CancelRequestRemovePeering(java.lang.String project, java.lang.String } @Override - public CancelRequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (CancelRequestRemovePeering) super.set$Xgafv($Xgafv); + public RemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RemovePeering) super.set$Xgafv($Xgafv); } @Override - public CancelRequestRemovePeering setAccessToken(java.lang.String accessToken) { - return (CancelRequestRemovePeering) super.setAccessToken(accessToken); + public RemovePeering setAccessToken(java.lang.String accessToken) { + return (RemovePeering) super.setAccessToken(accessToken); } @Override - public CancelRequestRemovePeering setAlt(java.lang.String alt) { - return (CancelRequestRemovePeering) super.setAlt(alt); + public RemovePeering setAlt(java.lang.String alt) { + return (RemovePeering) super.setAlt(alt); } @Override - public CancelRequestRemovePeering setCallback(java.lang.String callback) { - return (CancelRequestRemovePeering) super.setCallback(callback); + public RemovePeering setCallback(java.lang.String callback) { + return (RemovePeering) super.setCallback(callback); } @Override - public CancelRequestRemovePeering setFields(java.lang.String fields) { - return (CancelRequestRemovePeering) super.setFields(fields); + public RemovePeering setFields(java.lang.String fields) { + return (RemovePeering) super.setFields(fields); } @Override - public CancelRequestRemovePeering setKey(java.lang.String key) { - return (CancelRequestRemovePeering) super.setKey(key); + public RemovePeering setKey(java.lang.String key) { + return (RemovePeering) super.setKey(key); } @Override - public CancelRequestRemovePeering setOauthToken(java.lang.String oauthToken) { - return (CancelRequestRemovePeering) super.setOauthToken(oauthToken); + public RemovePeering setOauthToken(java.lang.String oauthToken) { + return (RemovePeering) super.setOauthToken(oauthToken); } @Override - public CancelRequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CancelRequestRemovePeering) super.setPrettyPrint(prettyPrint); + public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public CancelRequestRemovePeering setQuotaUser(java.lang.String quotaUser) { - return (CancelRequestRemovePeering) super.setQuotaUser(quotaUser); + public RemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RemovePeering) super.setQuotaUser(quotaUser); } @Override - public CancelRequestRemovePeering setUploadType(java.lang.String uploadType) { - return (CancelRequestRemovePeering) super.setUploadType(uploadType); + public RemovePeering setUploadType(java.lang.String uploadType) { + return (RemovePeering) super.setUploadType(uploadType); } @Override - public CancelRequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (CancelRequestRemovePeering) super.setUploadProtocol(uploadProtocol); + public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public CancelRequestRemovePeering setUserIp(java.lang.String userIp) { - return (CancelRequestRemovePeering) super.setUserIp(userIp); + public RemovePeering setUserIp(java.lang.String userIp) { + return (RemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112689,7 +112501,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CancelRequestRemovePeering setProject(java.lang.String project) { + 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 " + @@ -112710,7 +112522,7 @@ public java.lang.String getNetwork() { } /** Name of the network resource to remove peering from. */ - public CancelRequestRemovePeering setNetwork(java.lang.String network) { + 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 " + @@ -112764,37 +112576,40 @@ public java.lang.String getRequestId() { * 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) { + public RemovePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CancelRequestRemovePeering set(String parameterName, Object value) { - return (CancelRequestRemovePeering) super.set(parameterName, value); + public RemovePeering set(String parameterName, Object value) { + return (RemovePeering) super.set(parameterName, value); } } /** - * Deletes the specified network. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "networks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 to delete. + * @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 Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { - Delete result = new Delete(project, network); + 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 Delete extends ComputeRequest { + public class RequestRemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112803,21 +112618,24 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 to delete. + * @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 Delete(java.lang.String project, java.lang.String network) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -112833,63 +112651,63 @@ protected Delete(java.lang.String project, java.lang.String network) { } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RequestRemovePeering) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public RequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (RequestRemovePeering) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public RequestRemovePeering setAlt(java.lang.String alt) { + return (RequestRemovePeering) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public RequestRemovePeering setCallback(java.lang.String callback) { + return (RequestRemovePeering) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public RequestRemovePeering setFields(java.lang.String fields) { + return (RequestRemovePeering) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public RequestRemovePeering setKey(java.lang.String key) { + return (RequestRemovePeering) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (RequestRemovePeering) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RequestRemovePeering) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public RequestRemovePeering setUploadType(java.lang.String uploadType) { + return (RequestRemovePeering) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public RequestRemovePeering setUserIp(java.lang.String userIp) { + return (RequestRemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112903,7 +112721,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -112913,18 +112731,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the network to delete. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network to delete. + /** Name of the network resource to remove peering from. */ public java.lang.String getNetwork() { return network; } - /** Name of the network to delete. */ - public Delete setNetwork(java.lang.String 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 " + @@ -112978,37 +112796,37 @@ public java.lang.String getRequestId() { * 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) { + public RequestRemovePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public RequestRemovePeering set(String parameterName, Object value) { + return (RequestRemovePeering) super.set(parameterName, value); } } /** - * Returns the specified network. + * Switches the network mode from auto subnet mode to custom subnet mode. * - * Create a request for the method "networks.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 return. + * @param network Name of the network to be updated. * @return the request */ - public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { - Get result = new Get(project, network); + 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 Get extends ComputeRequest { + public class SwitchToCustomMode extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -113017,21 +112835,22 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 return. + * @param network Name of the network to be updated. * @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); + 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(), @@ -113047,73 +112866,63 @@ protected Get(java.lang.String project, java.lang.String network) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { + return (SwitchToCustomMode) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { + return (SwitchToCustomMode) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SwitchToCustomMode setAlt(java.lang.String alt) { + return (SwitchToCustomMode) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SwitchToCustomMode setCallback(java.lang.String callback) { + return (SwitchToCustomMode) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SwitchToCustomMode setFields(java.lang.String fields) { + return (SwitchToCustomMode) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SwitchToCustomMode setKey(java.lang.String key) { + return (SwitchToCustomMode) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { + return (SwitchToCustomMode) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { + return (SwitchToCustomMode) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SwitchToCustomMode setUploadType(java.lang.String uploadType) { + return (SwitchToCustomMode) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { + return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SwitchToCustomMode setUserIp(java.lang.String userIp) { + return (SwitchToCustomMode) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113127,7 +112936,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -113137,18 +112946,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the network to return. */ + /** Name of the network to be updated. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network to return. + /** Name of the network to be updated. */ public java.lang.String getNetwork() { return network; } - /** Name of the network to return. */ - public Get setNetwork(java.lang.String 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 " + @@ -113158,139 +112967,350 @@ public Get setNetwork(java.lang.String 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SwitchToCustomMode set(String parameterName, Object value) { + return (SwitchToCustomMode) super.set(parameterName, value); } } /** - * Returns the effective firewalls on a given network. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networks.getEffectiveFirewalls". + * Create a request for the method "networks.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network 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 GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); + 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 GetEffectiveFirewalls extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; + private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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])?"); + private final java.util.regex.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 the effective firewalls on a given network. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networks.getEffectiveFirewalls". + * Create a request for the method "networks.testIamPermissions". * * 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 + * 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 network Name of the network 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 GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworksGetEffectiveFirewallsResponse.class); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); + 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 GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } } @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); + 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. */ @@ -113304,7 +113324,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { + 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 " + @@ -113314,72 +113334,155 @@ public GetEffectiveFirewalls setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** 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 for this request. + /** Name of the network resource which the updated peering is belonging to. */ public java.lang.String getNetwork() { return network; } - /** Name of the network for this request. */ - public GetEffectiveFirewalls setNetwork(java.lang.String 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])?"); + "[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 GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + 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 { + /** - * Creates a network in the specified project using the data included in the request. + * Adds specified number of nodes to the node group. * - * Create a request for the method "networks.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link AddNodes#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} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.Network content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 Insert extends ComputeRequest { + public class AddNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Creates a network in the specified project using the data included in the request. + * Adds specified number of nodes to the node group. * - * Create a request for the method "networks.insert". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.Network} + * @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 Insert(java.lang.String project, com.google.api.services.compute.model.Network content) { + 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()) { @@ -113387,66 +113490,78 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public AddNodes set$Xgafv(java.lang.String $Xgafv) { + return (AddNodes) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public AddNodes setAccessToken(java.lang.String accessToken) { + return (AddNodes) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public AddNodes setAlt(java.lang.String alt) { + return (AddNodes) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public AddNodes setCallback(java.lang.String callback) { + return (AddNodes) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public AddNodes setFields(java.lang.String fields) { + return (AddNodes) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public AddNodes setKey(java.lang.String key) { + return (AddNodes) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public AddNodes setOauthToken(java.lang.String oauthToken) { + return (AddNodes) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNodes) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public AddNodes setQuotaUser(java.lang.String quotaUser) { + return (AddNodes) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public AddNodes setUploadType(java.lang.String uploadType) { + return (AddNodes) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNodes) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public AddNodes setUserIp(java.lang.String userIp) { + return (AddNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113460,7 +113575,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -113470,6 +113585,48 @@ public Insert setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public 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 @@ -113514,55 +113671,64 @@ public java.lang.String getRequestId() { * 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) { + public AddNodes setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public AddNodes set(String parameterName, Object value) { + return (AddNodes) super.set(parameterName, value); } } /** - * Retrieves the list of networks available to the specified project. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. * - * Create a request for the method "networks.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. * - * Create a request for the method "networks.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkList.class); + 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(), @@ -113582,63 +113748,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113652,7 +113818,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -113793,36 +113959,70 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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.Long maxResults; + private java.lang.Boolean includeAllScopes; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if 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.Long getMaxResults() { - return maxResults; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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 List setMaxResults(java.lang.Long maxResults) { + 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; } @@ -113866,7 +114066,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -113889,7 +114089,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -113921,143 +114121,166 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists the peering routes exchanged over peering connection. + * Deletes the specified NodeGroup resource. * - * Create a request for the method "networks.listPeeringRoutes". + * 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 ListPeeringRoutes#execute()} method to invoke the remote operation. + * 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 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 ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { - ListPeeringRoutes result = new ListPeeringRoutes(project, network); + 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 ListPeeringRoutes extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 the peering routes exchanged over peering connection. + * Deletes the specified NodeGroup resource. * - * Create a request for the method "networks.listPeeringRoutes". + * 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 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.

    + * 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 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 ListPeeringRoutes(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExchangedPeeringRoutesList.class); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { - return (ListPeeringRoutes) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public ListPeeringRoutes setAlt(java.lang.String alt) { - return (ListPeeringRoutes) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public ListPeeringRoutes setCallback(java.lang.String callback) { - return (ListPeeringRoutes) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public ListPeeringRoutes setFields(java.lang.String fields) { - return (ListPeeringRoutes) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public ListPeeringRoutes setKey(java.lang.String key) { - return (ListPeeringRoutes) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { - return (ListPeeringRoutes) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListPeeringRoutes) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public ListPeeringRoutes setUploadType(java.lang.String uploadType) { - return (ListPeeringRoutes) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public ListPeeringRoutes setUserIp(java.lang.String userIp) { - return (ListPeeringRoutes) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114071,7 +114294,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPeeringRoutes setProject(java.lang.String project) { + 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 " + @@ -114081,471 +114304,232 @@ public ListPeeringRoutes setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String zone; - /** Name of the network for this request. + /** The name of the zone for this request. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getZone() { + return zone; } - /** Name of the network for this request. */ - public ListPeeringRoutes setNetwork(java.lang.String network) { + /** The name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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; + this.zone = zone; return this; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Name of the NodeGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String nodeGroup; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the NodeGroup resource to delete. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; - } + private java.lang.String requestId; - /** - * 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; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** 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; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListPeeringRoutes setRegion(java.lang.String region) { - this.region = region; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListPeeringRoutes set(String parameterName, Object value) { - return (ListPeeringRoutes) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. + * Deletes specified nodes from the node group. * - * Create a request for the method "networks.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link DeleteNodes#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class DeleteNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. + * Deletes specified nodes from the node group. * - * Create a request for the method "networks.patch". + * 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 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.

    + * 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 network Name of the network to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @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 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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNodes) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public DeleteNodes setAccessToken(java.lang.String accessToken) { + return (DeleteNodes) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public DeleteNodes setAlt(java.lang.String alt) { + return (DeleteNodes) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public DeleteNodes setCallback(java.lang.String callback) { + return (DeleteNodes) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public DeleteNodes setFields(java.lang.String fields) { + return (DeleteNodes) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public DeleteNodes setKey(java.lang.String key) { + return (DeleteNodes) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public DeleteNodes setOauthToken(java.lang.String oauthToken) { + return (DeleteNodes) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNodes) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public DeleteNodes setQuotaUser(java.lang.String quotaUser) { + return (DeleteNodes) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public DeleteNodes setUploadType(java.lang.String uploadType) { + return (DeleteNodes) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNodes) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public DeleteNodes setUserIp(java.lang.String userIp) { + return (DeleteNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114559,7 +114543,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -114569,24 +114553,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the network to update. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String zone; - /** Name of the network to update. + /** The name of the zone for this request. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getZone() { + return zone; } - /** Name of the network to update. */ - public Patch setNetwork(java.lang.String network) { + /** The name of the zone for this request. */ + public DeleteNodes setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.network = network; + this.nodeGroup = nodeGroup; return this; } @@ -114634,135 +114639,155 @@ public java.lang.String getRequestId() { * 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) { + public DeleteNodes setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public DeleteNodes set(String parameterName, Object value) { + return (DeleteNodes) super.set(parameterName, value); } } /** - * Removes a peering from the specified network. + * 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 "networks.removePeering". + * 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 RemovePeering#execute()} method to invoke the remote operation. + * 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 resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group to return. * @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); + 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 RemovePeering extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Removes a peering from the specified network. + * 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 "networks.removePeering". + * 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 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. - *

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group to return. * @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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public RemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RemovePeering) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemovePeering setAccessToken(java.lang.String accessToken) { - return (RemovePeering) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemovePeering setAlt(java.lang.String alt) { - return (RemovePeering) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemovePeering setCallback(java.lang.String callback) { - return (RemovePeering) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemovePeering setFields(java.lang.String fields) { - return (RemovePeering) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemovePeering setKey(java.lang.String key) { - return (RemovePeering) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemovePeering setOauthToken(java.lang.String oauthToken) { - return (RemovePeering) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePeering) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RemovePeering) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemovePeering setUploadType(java.lang.String uploadType) { - return (RemovePeering) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePeering) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public RemovePeering setUserIp(java.lang.String userIp) { - return (RemovePeering) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -114776,7 +114801,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePeering setProject(java.lang.String project) { + 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 " + @@ -114786,203 +114811,192 @@ public RemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String zone; - /** Name of the network resource to remove peering from. + /** The name of the zone for this request. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getZone() { + return zone; } - /** Name of the network resource to remove peering from. */ - public RemovePeering setNetwork(java.lang.String network) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.network = network; + 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). - */ + /** Name of the node group to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String nodeGroup; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the node group to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 RemovePeering set(String parameterName, Object value) { - return (RemovePeering) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "networks.requestRemovePeering". + * 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 RequestRemovePeering#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#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} + * @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 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); + 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 RequestRemovePeering extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "networks.requestRemovePeering". + * 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 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.

    + * 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 network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @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 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); + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RequestRemovePeering) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RequestRemovePeering setAccessToken(java.lang.String accessToken) { - return (RequestRemovePeering) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RequestRemovePeering setAlt(java.lang.String alt) { - return (RequestRemovePeering) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public RequestRemovePeering setCallback(java.lang.String callback) { - return (RequestRemovePeering) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public RequestRemovePeering setFields(java.lang.String fields) { - return (RequestRemovePeering) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public RequestRemovePeering setKey(java.lang.String key) { - return (RequestRemovePeering) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { - return (RequestRemovePeering) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RequestRemovePeering) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public RequestRemovePeering setUploadType(java.lang.String uploadType) { - return (RequestRemovePeering) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public RequestRemovePeering setUserIp(java.lang.String userIp) { - return (RequestRemovePeering) super.setUserIp(userIp); + 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. */ @@ -114996,7 +115010,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RequestRemovePeering setProject(java.lang.String project) { + 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 " + @@ -115006,435 +115020,24 @@ public RequestRemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String zone; - /** Name of the network resource to remove peering from. + /** The name of the zone for this request. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getZone() { + return zone; } - /** 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networks.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/networks/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 "networks.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}"); - } - } - - @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) { + /** The name of the zone for this request. */ + public GetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.project = project; + this.zone = zone; return this; } @@ -115449,287 +115052,60 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + 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; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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; + 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). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public UpdatePeering set(String parameterName, Object value) { - return (UpdatePeering) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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. + * Creates a NodeGroup resource in the specified project using the data included in the request. * - * Create a request for the method "nodeGroups.addNodes". + * 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 AddNodes#execute()} method to invoke the remote operation. + * 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 nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @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 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); + 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 AddNodes extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -115737,27 +115113,23 @@ public class AddNodes extends ComputeRequest - * {@link - * AddNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @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 AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) { + 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()) { @@ -115771,72 +115143,67 @@ protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.St "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}"); - } + this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override - public AddNodes set$Xgafv(java.lang.String $Xgafv) { - return (AddNodes) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AddNodes setAccessToken(java.lang.String accessToken) { - return (AddNodes) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AddNodes setAlt(java.lang.String alt) { - return (AddNodes) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AddNodes setCallback(java.lang.String callback) { - return (AddNodes) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AddNodes setFields(java.lang.String fields) { - return (AddNodes) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AddNodes setKey(java.lang.String key) { - return (AddNodes) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AddNodes setOauthToken(java.lang.String oauthToken) { - return (AddNodes) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNodes) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AddNodes setQuotaUser(java.lang.String quotaUser) { - return (AddNodes) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AddNodes setUploadType(java.lang.String uploadType) { - return (AddNodes) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNodes) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AddNodes setUserIp(java.lang.String userIp) { - return (AddNodes) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115850,7 +115217,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddNodes setProject(java.lang.String project) { + 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 " + @@ -115871,7 +115238,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public AddNodes setZone(java.lang.String zone) { + 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 " + @@ -115881,24 +115248,19 @@ public AddNodes setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource. */ + /** Initial count of nodes in the node group. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.Integer initialNodeCount; - /** Name of the NodeGroup resource. + /** Initial count of nodes in the node group. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.Integer getInitialNodeCount() { + return initialNodeCount; } - /** 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; + /** Initial count of nodes in the node group. */ + public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { + this.initialNodeCount = initialNodeCount; return this; } @@ -115946,70 +115308,74 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddNodes set(String parameterName, Object value) { - return (AddNodes) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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`. + * 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.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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`. + * 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.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupAggregatedList.class); + 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])?"); + } } @Override @@ -116023,63 +115389,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116093,7 +115459,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -116103,6 +115469,27 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -116234,45 +115621,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -116297,7 +115650,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -116341,7 +115694,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -116364,7 +115717,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -116396,61 +115749,38 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified NodeGroup resource. + * Lists nodes in the node group. * - * Create a request for the method "nodeGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 to delete. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @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); + 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 Delete extends ComputeRequest { + public class ListNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116462,22 +115792,23 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 to delete. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @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); + 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(), @@ -116499,63 +115830,63 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public ListNodes set$Xgafv(java.lang.String $Xgafv) { + return (ListNodes) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public ListNodes setAccessToken(java.lang.String accessToken) { + return (ListNodes) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public ListNodes setAlt(java.lang.String alt) { + return (ListNodes) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public ListNodes setCallback(java.lang.String callback) { + return (ListNodes) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public ListNodes setFields(java.lang.String fields) { + return (ListNodes) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public ListNodes setKey(java.lang.String key) { + return (ListNodes) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public ListNodes setOauthToken(java.lang.String oauthToken) { + return (ListNodes) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNodes) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public ListNodes setQuotaUser(java.lang.String quotaUser) { + return (ListNodes) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public ListNodes setUploadType(java.lang.String uploadType) { + return (ListNodes) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNodes) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public ListNodes setUserIp(java.lang.String userIp) { + return (ListNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116569,7 +115900,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -116590,7 +115921,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { + 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 " + @@ -116600,18 +115931,18 @@ public Delete setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource to delete. */ + /** 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 to delete. + /** Name of the NodeGroup resource whose nodes you want to list. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the NodeGroup resource to delete. */ - public Delete setNodeGroup(java.lang.String 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 " + @@ -116622,82 +115953,297 @@ public Delete setNodeGroup(java.lang.String nodeGroup) { } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ListNodes set(String parameterName, Object value) { + return (ListNodes) super.set(parameterName, value); } } /** - * Deletes specified nodes from the node group. + * Updates the specified node group. * - * Create a request for the method "nodeGroups.deleteNodes". + * 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 DeleteNodes#execute()} method to invoke the remote operation. + * 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 whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @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); + 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 DeleteNodes extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116709,24 +116255,23 @@ public class DeleteNodes extends ComputeRequest - * {@link - * DeleteNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @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); + 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(), @@ -116748,63 +116293,63 @@ protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang } @Override - public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNodes) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public DeleteNodes setAccessToken(java.lang.String accessToken) { - return (DeleteNodes) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public DeleteNodes setAlt(java.lang.String alt) { - return (DeleteNodes) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public DeleteNodes setCallback(java.lang.String callback) { - return (DeleteNodes) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public DeleteNodes setFields(java.lang.String fields) { - return (DeleteNodes) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public DeleteNodes setKey(java.lang.String key) { - return (DeleteNodes) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public DeleteNodes setOauthToken(java.lang.String oauthToken) { - return (DeleteNodes) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNodes) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public DeleteNodes setQuotaUser(java.lang.String quotaUser) { - return (DeleteNodes) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public DeleteNodes setUploadType(java.lang.String uploadType) { - return (DeleteNodes) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNodes) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteNodes setUserIp(java.lang.String userIp) { - return (DeleteNodes) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116818,7 +116363,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteNodes setProject(java.lang.String project) { + 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 " + @@ -116839,7 +116384,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public DeleteNodes setZone(java.lang.String zone) { + 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 " + @@ -116849,18 +116394,18 @@ public DeleteNodes setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource whose nodes will be deleted. */ + /** Name of the NodeGroup resource to update. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the NodeGroup resource whose nodes will be deleted. + /** Name of the NodeGroup resource to update. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the NodeGroup resource whose nodes will be deleted. */ - public DeleteNodes setNodeGroup(java.lang.String 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 " + @@ -116914,39 +116459,39 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DeleteNodes set(String parameterName, Object value) { - return (DeleteNodes) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * Perform maintenance on a subset of nodes in the node group. * - * Create a request for the method "nodeGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 to return. + * @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 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); + 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 Get extends ComputeRequest { + public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -116958,23 +116503,24 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 to return. + * @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 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); + 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(), @@ -116996,73 +116542,63 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117076,7 +116612,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -117097,7 +116633,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + 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 " + @@ -117107,18 +116643,18 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the node group to return. */ + /** Name of the node group scoping this request. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the node group to return. + /** Name of the node group scoping this request. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the node group to return. */ - public Get setNodeGroup(java.lang.String 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 " + @@ -117128,33 +116664,83 @@ public Get setNodeGroup(java.lang.String 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeGroups.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117166,24 +116752,24 @@ public class GetIamPolicy extends ComputeRequest + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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); + 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(), @@ -117205,73 +116791,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117285,7 +116861,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -117306,7 +116882,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + 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 " + @@ -117327,7 +116903,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -117337,50 +116913,34 @@ public GetIamPolicy setResource(java.lang.String 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); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Updates the node template of the node group. * - * Create a request for the method "nodeGroups.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} * @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); + 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 Insert extends ComputeRequest { + public class SetNodeTemplate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117388,23 +116948,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} * @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) { + 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()) { @@ -117418,67 +116982,72 @@ protected Insert(java.lang.String project, java.lang.String zone, java.lang.Inte "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."); + 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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetNodeTemplate) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetNodeTemplate setAccessToken(java.lang.String accessToken) { + return (SetNodeTemplate) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetNodeTemplate setAlt(java.lang.String alt) { + return (SetNodeTemplate) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetNodeTemplate setCallback(java.lang.String callback) { + return (SetNodeTemplate) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetNodeTemplate setFields(java.lang.String fields) { + return (SetNodeTemplate) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetNodeTemplate setKey(java.lang.String key) { + return (SetNodeTemplate) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { + return (SetNodeTemplate) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetNodeTemplate) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetNodeTemplate setUploadType(java.lang.String uploadType) { + return (SetNodeTemplate) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetNodeTemplate setUserIp(java.lang.String userIp) { + return (SetNodeTemplate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117492,7 +117061,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -117513,7 +117082,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + 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 " + @@ -117523,19 +117092,24 @@ public Insert setZone(java.lang.String zone) { return this; } - /** Initial count of nodes in the node group. */ + /** Name of the NodeGroup resource to update. */ @com.google.api.client.util.Key - private java.lang.Integer initialNodeCount; + private java.lang.String nodeGroup; - /** Initial count of nodes in the node group. + /** Name of the NodeGroup resource to update. */ - public java.lang.Integer getInitialNodeCount() { - return initialNodeCount; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Initial count of nodes in the node group. */ - public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { - this.initialNodeCount = initialNodeCount; + /** 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; } @@ -117583,38 +117157,41 @@ public java.lang.String getRequestId() { * 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) { + public SetNodeTemplate setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetNodeTemplate set(String parameterName, Object value) { + return (SetNodeTemplate) 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. + * Simulates maintenance event on specified nodes from the node group. * - * Create a request for the method "nodeGroups.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + 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 List extends ComputeRequest { + public class SimulateMaintenanceEvent extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117622,23 +117199,29 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); + 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(), @@ -117651,76 +117234,72 @@ protected List(java.lang.String project, java.lang.String zone) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { + return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { + return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SimulateMaintenanceEvent setAlt(java.lang.String alt) { + return (SimulateMaintenanceEvent) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SimulateMaintenanceEvent setCallback(java.lang.String callback) { + return (SimulateMaintenanceEvent) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SimulateMaintenanceEvent setFields(java.lang.String fields) { + return (SimulateMaintenanceEvent) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SimulateMaintenanceEvent setKey(java.lang.String key) { + return (SimulateMaintenanceEvent) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { + return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { + return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { + return (SimulateMaintenanceEvent) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { + return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { + return (SimulateMaintenanceEvent) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117734,7 +117313,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -117755,7 +117334,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + 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 " + @@ -117766,296 +117345,107 @@ public List setZone(java.lang.String zone) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. + * Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + private java.lang.String nodeGroup; - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. + */ + public java.lang.String getNodeGroup() { + return nodeGroup; + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; - } + /** + * 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; + } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public SimulateMaintenanceEvent set(String parameterName, Object value) { + return (SimulateMaintenanceEvent) super.set(parameterName, value); } } /** - * Lists nodes in the node group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.listNodes". + * 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 ListNodes#execute()} method to invoke the remote operation. + * 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 nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @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 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); + 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 ListNodes extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -118063,27 +117453,28 @@ public class ListNodes extends ComputeRequest - * {@link - * ListNodes#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @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 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); + 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(), @@ -118096,72 +117487,72 @@ protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.S "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public ListNodes set$Xgafv(java.lang.String $Xgafv) { - return (ListNodes) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ListNodes setAccessToken(java.lang.String accessToken) { - return (ListNodes) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ListNodes setAlt(java.lang.String alt) { - return (ListNodes) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ListNodes setCallback(java.lang.String callback) { - return (ListNodes) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ListNodes setFields(java.lang.String fields) { - return (ListNodes) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ListNodes setKey(java.lang.String key) { - return (ListNodes) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ListNodes setOauthToken(java.lang.String oauthToken) { - return (ListNodes) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNodes) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ListNodes setQuotaUser(java.lang.String quotaUser) { - return (ListNodes) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ListNodes setUploadType(java.lang.String uploadType) { - return (ListNodes) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNodes) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ListNodes setUserIp(java.lang.String userIp) { - return (ListNodes) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118175,7 +117566,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNodes setProject(java.lang.String project) { + 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 " + @@ -118196,7 +117587,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public ListNodes setZone(java.lang.String zone) { + 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 " + @@ -118206,24 +117597,197 @@ public ListNodes setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource whose nodes you want to list. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String resource; - /** Name of the NodeGroup resource whose nodes you want to list. + /** Name or id of the resource for this request. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getResource() { + return resource; } - /** Name of the NodeGroup resource whose nodes you want to list. */ - public ListNodes setNodeGroup(java.lang.String nodeGroup) { + /** 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(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; } @@ -118358,11 +117922,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListNodes setFilter(java.lang.String filter) { + 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 @@ -118387,7 +117985,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -118431,7 +118029,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListNodes setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -118454,7 +118052,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -118486,145 +118084,166 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 ListNodes set(String parameterName, Object value) { - return (ListNodes) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Updates the specified node group. + * Deletes the specified NodeTemplate resource. * - * Create a request for the method "nodeGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_GROUP_PATTERN = + 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}"); /** - * Updates the specified node group. + * Deletes the specified NodeTemplate resource. * - * Create a request for the method "nodeGroups.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118638,7 +118257,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -118648,45 +118267,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public Patch setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the NodeGroup resource to update. */ + /** Name of the NodeTemplate resource to delete. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String nodeTemplate; - /** Name of the NodeGroup resource to update. + /** Name of the NodeTemplate resource to delete. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNodeTemplate() { + return nodeTemplate; } - /** Name of the NodeGroup resource to update. */ - public Patch setNodeGroup(java.lang.String nodeGroup) { + /** Name of the NodeTemplate resource to delete. */ + public Delete setNodeTemplate(java.lang.String nodeTemplate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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.nodeGroup = nodeGroup; + this.nodeTemplate = nodeTemplate; return this; } @@ -118734,146 +118353,153 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Perform maintenance on a subset of nodes in the node group. + * Returns the specified node template. * - * Create a request for the method "nodeGroups.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. * @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); + 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 PerformMaintenance extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_GROUP_PATTERN = + 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}"); /** - * Perform maintenance on a subset of nodes in the node group. + * Returns the specified node template. * - * Create a request for the method "nodeGroups.performMaintenance". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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}"); } } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -118887,7 +118513,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + 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 " + @@ -118897,164 +118523,114 @@ public PerformMaintenance setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name of the node group scoping this request. */ + /** Name of the node template to return. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String nodeTemplate; - /** Name of the node group scoping this request. + /** Name of the node template to return. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNodeTemplate() { + return nodeTemplate; } - /** Name of the node group scoping this request. */ - public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { + /** Name of the node template to return. */ + public Get setNodeTemplate(java.lang.String nodeTemplate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + 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.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; + this.nodeTemplate = nodeTemplate; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 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.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); + 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 SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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. + * 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.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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.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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.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."); @@ -119066,66 +118642,76 @@ protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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; @@ -119136,7 +118722,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -119146,24 +118732,24 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } @@ -119178,7 +118764,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -119188,62 +118774,73 @@ public SetIamPolicy setResource(java.lang.String 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Updates the node template of the node group. + * Creates a NodeTemplate resource in the specified project using the data included in the request. * - * Create a request for the method "nodeGroups.setNodeTemplate". + * 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 SetNodeTemplate#execute()} method to invoke the remote operation. + * 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 nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @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 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); + 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 SetNodeTemplate extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_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. + * Creates a NodeTemplate resource in the specified project using the data included in the + * request. * - * Create a request for the method "nodeGroups.setNodeTemplate". + * 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 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.

    + * 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 nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @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 SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) { + 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()) { @@ -119251,78 +118848,72 @@ protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java. "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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}"); - } } @Override - public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetNodeTemplate) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetNodeTemplate setAccessToken(java.lang.String accessToken) { - return (SetNodeTemplate) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetNodeTemplate setAlt(java.lang.String alt) { - return (SetNodeTemplate) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetNodeTemplate setCallback(java.lang.String callback) { - return (SetNodeTemplate) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetNodeTemplate setFields(java.lang.String fields) { - return (SetNodeTemplate) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetNodeTemplate setKey(java.lang.String key) { - return (SetNodeTemplate) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { - return (SetNodeTemplate) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetNodeTemplate) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetNodeTemplate setUploadType(java.lang.String uploadType) { - return (SetNodeTemplate) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetNodeTemplate setUserIp(java.lang.String userIp) { - return (SetNodeTemplate) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -119336,7 +118927,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNodeTemplate setProject(java.lang.String project) { + 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 " + @@ -119346,45 +118937,24 @@ public SetNodeTemplate setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetNodeTemplate setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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; + this.region = region; return this; } @@ -119432,149 +119002,142 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNodeTemplate set(String parameterName, Object value) { - return (SetNodeTemplate) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Simulates maintenance event on specified nodes from the node group. + * Retrieves a list of node templates available to the specified project. * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * 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 SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. + * 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. - * @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} + * @param region The name of the region for this request. * @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); + 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 SimulateMaintenanceEvent extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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_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. + * Retrieves a list of node templates available to the specified project. * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * 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 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.

    + * 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. - * @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} + * @param region The name of the region for this request. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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}"); - } } @Override - public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { - return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { - return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SimulateMaintenanceEvent setAlt(java.lang.String alt) { - return (SimulateMaintenanceEvent) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SimulateMaintenanceEvent setCallback(java.lang.String callback) { - return (SimulateMaintenanceEvent) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SimulateMaintenanceEvent setFields(java.lang.String fields) { - return (SimulateMaintenanceEvent) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SimulateMaintenanceEvent setKey(java.lang.String key) { - return (SimulateMaintenanceEvent) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { - return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { - return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { - return (SimulateMaintenanceEvent) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { - return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { - return (SimulateMaintenanceEvent) super.setUserIp(userIp); + 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. */ @@ -119588,7 +119151,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SimulateMaintenanceEvent setProject(java.lang.String project) { + 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 " + @@ -119598,134 +119161,524 @@ public SimulateMaintenanceEvent setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SimulateMaintenanceEvent setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } /** - * Name of the NodeGroup resource whose nodes will go under maintenance simulation. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String filter; - /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getFilter() { + return filter; } /** - * Name of the NodeGroup resource whose nodes will go under maintenance simulation. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SimulateMaintenanceEvent set(String parameterName, Object value) { - return (SimulateMaintenanceEvent) super.set(parameterName, value); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 "nodeGroups.testIamPermissions". + * 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 zone The name of the zone 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 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); + 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}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.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 = @@ -119734,7 +119687,7 @@ public class TestIamPermissions extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone 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 zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -119756,10 +119709,10 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.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."); @@ -119851,24 +119804,24 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } @@ -119902,32 +119855,32 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the NodeTemplates collection. + * An accessor for creating requests from the NodeTypes collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
    +   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
        * 
    * * @return the resource collection */ - public NodeTemplates nodeTemplates() { - return new NodeTemplates(); + public NodeTypes nodeTypes() { + return new NodeTypes(); } /** - * The "nodeTemplates" collection of methods. + * The "nodeTypes" collection of methods. */ - public class NodeTemplates { + public class NodeTypes { /** - * Retrieves an aggregated list of node templates. + * 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 "nodeTemplates.aggregatedList". + * 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. @@ -119941,20 +119894,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "nodeTemplates.aggregatedList". + * 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. @@ -119966,7 +119919,7 @@ public class AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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_TEMPLATE_PATTERN = + 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}"); /** - * Deletes the specified NodeTemplate resource. + * Returns the specified node type. * - * Create a request for the method "nodeTemplates.delete". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 NodeTemplate resource to delete. + * @param zone The name of the zone for this request. + * @param nodeType Name of the node type to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -120532,7 +120495,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -120542,301 +120505,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the node template to return. */ + /** Name of the node type to return. */ @com.google.api.client.util.Key - private java.lang.String nodeTemplate; + private java.lang.String nodeType; - /** Name of the node template to return. + /** Name of the node type to return. */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; + public java.lang.String getNodeType() { + return nodeType; } - /** Name of the node template to return. */ - public Get setNodeTemplate(java.lang.String nodeTemplate) { + /** Name of the node type to return. */ + public Get setNodeType(java.lang.String nodeType) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + + 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.nodeTemplate = nodeTemplate; + this.nodeType = nodeType; return this; } @@ -120846,479 +120553,37 @@ public Get set(String parameterName, Object 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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. + * Retrieves a list of node types available to the specified project. * - * Create a request for the method "nodeTemplates.list". + * 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 region The name of the region 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 region) throws java.io.IOException { - List result = new List(project, region); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 templates available to the specified project. + * Retrieves a list of node types available to the specified project. * - * Create a request for the method "nodeTemplates.list". + * 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 @@ -121326,21 +120591,21 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region The name of the region 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 region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateList.class); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -121436,24 +120701,24 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -121726,10535 +120991,228 @@ 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 { + /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Inserts an association for the specified security policy. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link AddAssociation#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} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} * @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); + 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 SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class AddAssociation extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; - private final java.util.regex.Pattern RESOURCE_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 SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Inserts an association for the specified security policy. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * 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 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.

    + * 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 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} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} * @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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.securityPolicy = securityPolicy; return this; } - /** The name of the region for this request. */ + /** + * 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.String region; + private java.lang.Boolean replaceExistingAssociation; - /** The name of the region for this request. + /** 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.String getRegion() { - return region; + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; } - /** 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; + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public List setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the 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 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}"); - } - } - - @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 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}"); - } - } - - @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 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}"); - } - } - - @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 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}"); - } - } - - @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 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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"; - - /** - * 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); - } - - @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"; - - /** - * 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); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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"; - - /** - * 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); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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"; - - /** - * 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); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 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}"); - } - } - - @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 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}"); - } - } - - @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; - } - - /** 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. - * - * 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 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}"); - } - } - - @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; - } - - /** 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; - } - - @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 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}"); - } - } - - @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 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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public GetXpnResources setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListXpnHosts setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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; + public java.lang.String getRequestId() { + return requestId; } /** @@ -132270,525 +121228,152 @@ public java.lang.String getRequestId() { * 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) { + public AddAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetCommonInstanceMetadata set(String parameterName, Object value) { - return (SetCommonInstanceMetadata) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) 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. + * Inserts a rule into a security policy. * - * @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @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); - } - } - /** - * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the - * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to - * Managed Protection Plus for more information. + * 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 "projects.setManagedProtectionTier". + * 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 SetManagedProtectionTier#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @return the request */ - public SetManagedProtectionTier setManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) throws java.io.IOException { - SetManagedProtectionTier result = new SetManagedProtectionTier(project, content); + 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 SetManagedProtectionTier extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/setManagedProtectionTier"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 Managed Protection (CAMP) tier of the project. To set PLUS or above the - * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing - * to Managed Protection Plus for more information. - * - * Create a request for the method "projects.setManagedProtectionTier". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote - * operation.

    {@link SetManagedProtectionTier#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 content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} - * @since 1.13 - */ - protected SetManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @Override - public SetManagedProtectionTier set$Xgafv(java.lang.String $Xgafv) { - return (SetManagedProtectionTier) super.set$Xgafv($Xgafv); - } - - @Override - public SetManagedProtectionTier setAccessToken(java.lang.String accessToken) { - return (SetManagedProtectionTier) super.setAccessToken(accessToken); - } - - @Override - public SetManagedProtectionTier setAlt(java.lang.String alt) { - return (SetManagedProtectionTier) super.setAlt(alt); - } - - @Override - public SetManagedProtectionTier setCallback(java.lang.String callback) { - return (SetManagedProtectionTier) super.setCallback(callback); - } - - @Override - public SetManagedProtectionTier setFields(java.lang.String fields) { - return (SetManagedProtectionTier) super.setFields(fields); - } - - @Override - public SetManagedProtectionTier setKey(java.lang.String key) { - return (SetManagedProtectionTier) super.setKey(key); - } - - @Override - public SetManagedProtectionTier setOauthToken(java.lang.String oauthToken) { - return (SetManagedProtectionTier) super.setOauthToken(oauthToken); - } - - @Override - public SetManagedProtectionTier setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetManagedProtectionTier) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetManagedProtectionTier setQuotaUser(java.lang.String quotaUser) { - return (SetManagedProtectionTier) super.setQuotaUser(quotaUser); - } - - @Override - public SetManagedProtectionTier setUploadType(java.lang.String uploadType) { - return (SetManagedProtectionTier) super.setUploadType(uploadType); - } - - @Override - public SetManagedProtectionTier setUploadProtocol(java.lang.String uploadProtocol) { - return (SetManagedProtectionTier) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetManagedProtectionTier setUserIp(java.lang.String userIp) { - return (SetManagedProtectionTier) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetManagedProtectionTier setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,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. + public class AddRule extends ComputeRequest { - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Inserts a rule into a security policy. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public SetManagedProtectionTier setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetManagedProtectionTier set(String parameterName, Object value) { - return (SetManagedProtectionTier) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "projects.setUsageExportBucket". + * 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 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.

    + * 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 content the {@link com.google.api.services.compute.model.UsageExportLocation} + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @since 1.13 */ - protected SetUsageExportBucket(java.lang.String project, com.google.api.services.compute.model.UsageExportLocation content) { + 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.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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}"); } } @Override - public SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { - return (SetUsageExportBucket) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { - return (SetUsageExportBucket) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public SetUsageExportBucket setAlt(java.lang.String alt) { - return (SetUsageExportBucket) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public SetUsageExportBucket setCallback(java.lang.String callback) { - return (SetUsageExportBucket) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public SetUsageExportBucket setFields(java.lang.String fields) { - return (SetUsageExportBucket) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public SetUsageExportBucket setKey(java.lang.String key) { - return (SetUsageExportBucket) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { - return (SetUsageExportBucket) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { - return (SetUsageExportBucket) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public SetUsageExportBucket setUploadType(java.lang.String uploadType) { - return (SetUsageExportBucket) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public SetUsageExportBucket setUserIp(java.lang.String userIp) { - return (SetUsageExportBucket) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public SetUsageExportBucket setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.securityPolicy = securityPolicy; return this; } @@ -132836,184 +121421,150 @@ public java.lang.String getRequestId() { * 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) { + public AddRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetUsageExportBucket set(String parameterName, Object value) { - return (SetUsageExportBucket) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) 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 + * Copies rules to the specified security policy. * - * Create a request for the method "publicAdvertisedPrefixes.announce". + * 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 Announce#execute()} method to invoke the remote operation. + * parameters, call the {@link CopyRules#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. + * @param securityPolicy Name of the security policy to update. * @return the request */ - public Announce announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Announce result = new Announce(project, publicAdvertisedPrefix); + public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { + CopyRules result = new CopyRules(securityPolicy); initialize(result); return result; } - public class Announce extends ComputeRequest { + public class CopyRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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("(securityPolicies/)?[0-9]{0,20}"); /** - * Announces the specified PublicAdvertisedPrefix + * Copies rules to the specified security policy. * - * Create a request for the method "publicAdvertisedPrefixes.announce". + * 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 Announce#execute()} method to invoke the remote operation.

    + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

    * {@link - * Announce#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * CopyRules#initialize(com.google.api.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. + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected Announce(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + protected CopyRules(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."); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); } @Override - public Announce set$Xgafv(java.lang.String $Xgafv) { - return (Announce) super.set$Xgafv($Xgafv); + public CopyRules set$Xgafv(java.lang.String $Xgafv) { + return (CopyRules) super.set$Xgafv($Xgafv); } @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) super.setAccessToken(accessToken); + public CopyRules setAccessToken(java.lang.String accessToken) { + return (CopyRules) super.setAccessToken(accessToken); } @Override - public Announce setAlt(java.lang.String alt) { - return (Announce) super.setAlt(alt); + public CopyRules setAlt(java.lang.String alt) { + return (CopyRules) super.setAlt(alt); } @Override - public Announce setCallback(java.lang.String callback) { - return (Announce) super.setCallback(callback); + public CopyRules setCallback(java.lang.String callback) { + return (CopyRules) super.setCallback(callback); } @Override - public Announce setFields(java.lang.String fields) { - return (Announce) super.setFields(fields); + public CopyRules setFields(java.lang.String fields) { + return (CopyRules) super.setFields(fields); } @Override - public Announce setKey(java.lang.String key) { - return (Announce) super.setKey(key); + public CopyRules setKey(java.lang.String key) { + return (CopyRules) super.setKey(key); } @Override - public Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) super.setOauthToken(oauthToken); + public CopyRules setOauthToken(java.lang.String oauthToken) { + return (CopyRules) super.setOauthToken(oauthToken); } @Override - public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); + public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CopyRules) super.setPrettyPrint(prettyPrint); } @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); + public CopyRules setQuotaUser(java.lang.String quotaUser) { + return (CopyRules) super.setQuotaUser(quotaUser); } @Override - public Announce setUploadType(java.lang.String uploadType) { - return (Announce) super.setUploadType(uploadType); + public CopyRules setUploadType(java.lang.String uploadType) { + return (CopyRules) super.setUploadType(uploadType); } @Override - public Announce setUploadProtocol(java.lang.String uploadProtocol) { - return (Announce) super.setUploadProtocol(uploadProtocol); + public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CopyRules) super.setUploadProtocol(uploadProtocol); } @Override - public Announce setUserIp(java.lang.String userIp) { - return (Announce) super.setUserIp(userIp); + public CopyRules setUserIp(java.lang.String userIp) { + return (CopyRules) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public Announce setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.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; + this.securityPolicy = securityPolicy; return this; } @@ -133061,71 +121612,84 @@ public java.lang.String getRequestId() { * 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) { + 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 Announce set(String parameterName, Object value) { - return (Announce) super.set(parameterName, value); + public CopyRules set(String parameterName, Object value) { + return (CopyRules) super.set(parameterName, value); } } /** - * Deletes the specified PublicAdvertisedPrefix + * Deletes the specified policy. * - * Create a request for the method "publicAdvertisedPrefixes.delete". + * 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 project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @param securityPolicy Name of the security policy 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); + 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 = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - 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}"); + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Deletes the specified PublicAdvertisedPrefix + * Deletes the specified policy. * - * Create a request for the method "publicAdvertisedPrefixes.delete". + * 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 project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. + * @param securityPolicy Name of the security policy to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String publicAdvertisedPrefix) { + protected Delete(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.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); + 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(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}"); + 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}"); } } @@ -133189,45 +121753,24 @@ 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. */ + /** Name of the security policy to delete. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String securityPolicy; - /** Name of the PublicAdvertisedPrefix resource to delete. + /** Name of the security policy to delete. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the PublicAdvertisedPrefix resource to delete. */ - public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { 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}"); + 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.publicAdvertisedPrefix = publicAdvertisedPrefix; + this.securityPolicy = securityPolicy; return this; } @@ -133286,60 +121829,57 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified PublicAdvertisedPrefix resource. + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "publicAdvertisedPrefixes.get". + * 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 project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @param securityPolicy Name of the security policy to get. * @return the request */ - public Get get(java.lang.String project, java.lang.String publicAdvertisedPrefix) throws java.io.IOException { - Get result = new Get(project, publicAdvertisedPrefix); + 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 = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; + public class Get extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - 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}"); + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Returns the specified PublicAdvertisedPrefix resource. + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "publicAdvertisedPrefixes.get". + * 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 project Project ID for this request. - * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. + * @param securityPolicy Name of the security policy to get. * @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."); + 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(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}"); + 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}"); } } @@ -133413,102 +121953,412 @@ public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to get. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to get. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.securityPolicy = securityPolicy; return this; } - /** Name of the PublicAdvertisedPrefix resource to return. */ + @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 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 publicAdvertisedPrefix; + private java.lang.String securityPolicy; - /** Name of the PublicAdvertisedPrefix resource to return. + /** Name of the security policy to which the queried rule belongs. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the PublicAdvertisedPrefix resource to return. */ - public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + /** 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(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}"); + 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.publicAdvertisedPrefix = publicAdvertisedPrefix; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included - * in the request. + * Gets a rule at the specified priority. * - * Create a request for the method "publicAdvertisedPrefixes.insert". + * 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 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @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.PublicAdvertisedPrefix content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 = "projects/{project}/global/publicAdvertisedPrefixes"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies"; /** - * Creates a PublicAdvertisedPrefix in the specified project using the parameters that are - * included in the request. + * Creates a new policy in the specified organization using the data included in the request. * - * Create a request for the method "publicAdvertisedPrefixes.insert". + * 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 project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} + * @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.PublicAdvertisedPrefix content) { + 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); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } } @Override @@ -133571,24 +122421,26 @@ public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** + * 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 project; + private java.lang.String parentId; - /** Project ID for this request. + /** 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 getProject() { - return project; + public java.lang.String getParentId() { + return parentId; } - /** 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; + /** + * 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; } @@ -133647,50 +122499,47 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists the PublicAdvertisedPrefixes for a project. + * List all the policies that have been configured for the specified organization. * - * Create a request for the method "publicAdvertisedPrefixes.list". + * 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. * - * @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); + 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 = "projects/{project}/global/publicAdvertisedPrefixes"; + public class List extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies"; /** - * Lists the PublicAdvertisedPrefixes for a project. + * List all the policies that have been configured for the specified organization. * - * Create a request for the method "publicAdvertisedPrefixes.list". + * 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.

    * - * @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])?))"); - } + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); } @Override @@ -133763,27 +122612,6 @@ 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 @@ -134016,538 +122844,235 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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. */ + /** Parent ID for this request. */ @com.google.api.client.util.Key - private java.lang.String publicAdvertisedPrefix; + private java.lang.String parentId; - /** Name of the PublicAdvertisedPrefix resource to patch. + /** Parent ID for this request. */ - public java.lang.String getPublicAdvertisedPrefix() { - return publicAdvertisedPrefix; + public java.lang.String getParentId() { + return parentId; } - /** 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; + /** Parent ID for this request. */ + public List 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Withdraws the specified PublicAdvertisedPrefix + * Lists associations of a specified target, i.e., organization or folder. * - * Create a request for the method "publicAdvertisedPrefixes.withdraw". + * 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 Withdraw#execute()} method to invoke the remote operation. + * parameters, call the {@link ListAssociations#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); + public ListAssociations listAssociations() throws java.io.IOException { + ListAssociations result = new ListAssociations(); initialize(result); return result; } - public class Withdraw extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; + public class ListAssociations extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; /** - * Withdraws the specified PublicAdvertisedPrefix + * Lists associations of a specified target, i.e., organization or folder. * - * Create a request for the method "publicAdvertisedPrefixes.withdraw". + * 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 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.

    + * 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.

    * - * @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."); + protected ListAssociations() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); } @Override - public Withdraw set$Xgafv(java.lang.String $Xgafv) { - return (Withdraw) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Withdraw setAccessToken(java.lang.String accessToken) { - return (Withdraw) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Withdraw setAlt(java.lang.String alt) { - return (Withdraw) super.setAlt(alt); + public ListAssociations set$Xgafv(java.lang.String $Xgafv) { + return (ListAssociations) super.set$Xgafv($Xgafv); } @Override - public Withdraw setCallback(java.lang.String callback) { - return (Withdraw) super.setCallback(callback); + public ListAssociations setAccessToken(java.lang.String accessToken) { + return (ListAssociations) super.setAccessToken(accessToken); } @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); + public ListAssociations setAlt(java.lang.String alt) { + return (ListAssociations) super.setAlt(alt); } @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); + public ListAssociations setCallback(java.lang.String callback) { + return (ListAssociations) super.setCallback(callback); } @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); + public ListAssociations setFields(java.lang.String fields) { + return (ListAssociations) super.setFields(fields); } @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); + public ListAssociations setKey(java.lang.String key) { + return (ListAssociations) super.setKey(key); } @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); + public ListAssociations setOauthToken(java.lang.String oauthToken) { + return (ListAssociations) super.setOauthToken(oauthToken); } @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); + public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAssociations) super.setPrettyPrint(prettyPrint); } @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); + public ListAssociations setQuotaUser(java.lang.String quotaUser) { + return (ListAssociations) super.setQuotaUser(quotaUser); } @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; + public ListAssociations setUploadType(java.lang.String uploadType) { + return (ListAssociations) super.setUploadType(uploadType); } - /** 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; + @Override + public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAssociations) super.setUploadProtocol(uploadProtocol); } - /** The name of the public advertised prefix. It should comply with RFC1035. */ - public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { - this.publicAdvertisedPrefix = publicAdvertisedPrefix; - return this; + @Override + public ListAssociations setUserIp(java.lang.String userIp) { + return (ListAssociations) super.setUserIp(userIp); } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The target resource to list associations. It is an organization, or a folder. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String targetResource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The target resource to list associations. It is an organization, or a folder. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getTargetResource() { + return targetResource; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The target resource to list associations. It is an organization, or a folder. */ - public Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListAssociations setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; return this; } @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); + public ListAssociations set(String parameterName, Object value) { + return (ListAssociations) 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`. + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. * - * Create a request for the method "publicDelegatedPrefixes.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPreconfiguredExpressionSets#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); + public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { + ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; + public class ListPreconfiguredExpressionSets extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; /** - * 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`. + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. * - * Create a request for the method "publicDelegatedPrefixes.aggregatedList". + * 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 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.

    + * 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 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])?))"); - } + protected ListPreconfiguredExpressionSets() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); } @Override @@ -134561,84 +123086,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { + return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { + return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { + return (ListPreconfiguredExpressionSets) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { + return (ListPreconfiguredExpressionSets) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { + return (ListPreconfiguredExpressionSets) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListPreconfiguredExpressionSets setKey(java.lang.String key) { + return (ListPreconfiguredExpressionSets) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { + return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { + return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { + return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPreconfiguredExpressionSets) 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; + public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { + return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); } /** @@ -134772,45 +123276,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListPreconfiguredExpressionSets 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 @@ -134835,7 +123305,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListPreconfiguredExpressionSets setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -134879,7 +123349,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -134902,11 +123372,27 @@ public java.lang.String getPageToken() { * Specifies 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) { + 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; + } + /** * Opt-in for partial success behavior which provides partial results in case of failure. The * default value is false. @@ -134934,211 +123420,165 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) super.set(parameterName, value); } } /** - * Announces the specified PublicDelegatedPrefix in the given region. + * Moves the specified security policy. * - * Create a request for the method "publicDelegatedPrefixes.announce". + * 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 Announce#execute()} method to invoke the remote operation. + * parameters, call the {@link Move#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. + * @param securityPolicy Name of the security policy to update. * @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); + public Move move(java.lang.String securityPolicy) throws java.io.IOException { + Move result = new Move(securityPolicy); initialize(result); return result; } - public class Announce extends ComputeRequest { + public class Move extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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("(securityPolicies/)?[0-9]{0,20}"); /** - * Announces the specified PublicDelegatedPrefix in the given region. + * Moves the specified security policy. * - * Create a request for the method "publicDelegatedPrefixes.announce". + * 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 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.

    + * 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 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. + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected Announce(java.lang.String project, java.lang.String region, java.lang.String publicDelegatedPrefix) { + protected Move(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."); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.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."); } @Override - public Announce set$Xgafv(java.lang.String $Xgafv) { - return (Announce) super.set$Xgafv($Xgafv); + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); } @Override - public Announce setAccessToken(java.lang.String accessToken) { - return (Announce) super.setAccessToken(accessToken); + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); } @Override - public Announce setAlt(java.lang.String alt) { - return (Announce) super.setAlt(alt); + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); } @Override - public Announce setCallback(java.lang.String callback) { - return (Announce) super.setCallback(callback); + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); } @Override - public Announce setFields(java.lang.String fields) { - return (Announce) super.setFields(fields); + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); } @Override - public Announce setKey(java.lang.String key) { - return (Announce) super.setKey(key); + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); } @Override - public Announce setOauthToken(java.lang.String oauthToken) { - return (Announce) super.setOauthToken(oauthToken); + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); } @Override - public Announce setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Announce) super.setPrettyPrint(prettyPrint); + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); } @Override - public Announce setQuotaUser(java.lang.String quotaUser) { - return (Announce) super.setQuotaUser(quotaUser); + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); } @Override - public Announce setUploadType(java.lang.String uploadType) { - return (Announce) super.setUploadType(uploadType); + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); } @Override - public Announce setUploadProtocol(java.lang.String uploadProtocol) { - return (Announce) super.setUploadProtocol(uploadProtocol); + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); } @Override - public Announce setUserIp(java.lang.String userIp) { - return (Announce) super.setUserIp(userIp); + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public Announce setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public Move setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.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; + this.securityPolicy = securityPolicy; return this; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ + /** The new parent of the security policy. */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String parentId; - /** The name of the public delegated prefix. It should comply with RFC1035. + /** The new parent of the security policy. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getParentId() { + return parentId; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Announce setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - this.publicDelegatedPrefix = publicDelegatedPrefix; + /** The new parent of the security policy. */ + public Move setParentId(java.lang.String parentId) { + this.parentId = parentId; return this; } @@ -135186,205 +123626,376 @@ public java.lang.String getRequestId() { * 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) { + public Move setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Announce set(String parameterName, Object value) { - return (Announce) super.set(parameterName, value); + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); } } /** - * Deletes the specified PublicDelegatedPrefix in the given region. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "publicDelegatedPrefixes.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @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); + 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 Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class Patch extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - 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}"); + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Deletes the specified PublicDelegatedPrefix in the given region. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "publicDelegatedPrefixes.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @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."); + 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(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}"); + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.securityPolicy = securityPolicy; return this; } - /** Name of the region of this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String requestId; - /** Name of the region of this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRegion() { - return region; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the region of this request. */ - public Delete setRegion(java.lang.String region) { + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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. + * + * 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 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; - return this; } - /** Name of the PublicDelegatedPrefix resource to delete. */ + @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 publicDelegatedPrefix; + private java.lang.String securityPolicy; - /** Name of the PublicDelegatedPrefix resource to delete. + /** Name of the security policy to update. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the PublicDelegatedPrefix resource to delete. */ - public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { 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}"); + 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.publicDelegatedPrefix = publicDelegatedPrefix; + 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; } @@ -135432,384 +124043,389 @@ public java.lang.String getRequestId() { * 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; + public PatchRule 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 PatchRule setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Returns the specified PublicDelegatedPrefix resource in the given region. + * Removes an association for the specified security policy. * - * Create a request for the method "publicDelegatedPrefixes.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @param securityPolicy Name of the security policy to update. * @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); + public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(securityPolicy); initialize(result); return result; } - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class RemoveAssociation extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; - 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}"); + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Returns the specified PublicDelegatedPrefix resource in the given region. + * Removes an association for the specified security policy. * - * Create a request for the method "publicDelegatedPrefixes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 of this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @param securityPolicy Name of the security policy to update. * @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."); + 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(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}"); + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.securityPolicy = securityPolicy; return this; } - /** Name of the region of this request. */ + /** Name for the attachment that will be removed. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String name; - /** Name of the region of this request. + /** Name for the attachment that will be removed. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getName() { + return name; } - /** 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; + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; return this; } - /** Name of the PublicDelegatedPrefix resource to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String requestId; - /** Name of the PublicDelegatedPrefix resource to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters - * that are included in the request. + * Deletes a rule at the specified priority. * - * Create a request for the method "publicDelegatedPrefixes.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 of this request. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param securityPolicy Name of the security policy to update. * @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); + public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(securityPolicy); initialize(result); return result; } - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; + public class RemoveRule extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; - private final java.util.regex.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("(securityPolicies/)?[0-9]{0,20}"); /** - * Creates a PublicDelegatedPrefix in the specified project in the given region using the - * parameters that are included in the request. + * Deletes a rule at the specified priority. * - * Create a request for the method "publicDelegatedPrefixes.insert". + * 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 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.

    + * 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 of this request. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param securityPolicy Name of the security policy to update. * @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."); + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String securityPolicy; - /** Project ID for this request. + /** Name of the security policy to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + 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.project = project; + this.securityPolicy = securityPolicy; return this; } - /** Name of the region of this request. */ + /** The priority of the rule to remove from the security policy. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.Integer priority; - /** Name of the region of this request. + /** The priority of the rule to remove from the security policy. */ - public java.lang.String getRegion() { - return region; + public java.lang.Integer getPriority() { + return priority; } - /** 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; + /** The priority of the rule to remove from the security policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -135857,72 +124473,91 @@ public java.lang.String getRequestId() { * 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) { + public RemoveRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 { + /** - * Lists the PublicDelegatedPrefixes for a project in the given region. + * Retrieves an aggregated list of packetMirrorings. * - * Create a request for the method "publicDelegatedPrefixes.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; + private static final String REST_PATH = "projects/{project}/aggregated/packetMirrorings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves an aggregated list of packetMirrorings. * - * Create a request for the method "publicDelegatedPrefixes.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -135936,63 +124571,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -136006,7 +124641,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -136016,27 +124651,6 @@ public List setProject(java.lang.String 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 @@ -136162,674 +124776,229 @@ public java.lang.String getFilter() { * * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); - } - - @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); + * + * For example, to filter for instances 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; } - @Override - public Withdraw setFields(java.lang.String fields) { - return (Withdraw) super.setFields(fields); - } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; - @Override - public Withdraw setKey(java.lang.String key) { - return (Withdraw) super.setKey(key); + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if 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; } - @Override - public Withdraw setOauthToken(java.lang.String oauthToken) { - return (Withdraw) super.setOauthToken(oauthToken); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if 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; } - @Override - public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Withdraw) super.setPrettyPrint(prettyPrint); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Withdraw setQuotaUser(java.lang.String quotaUser) { - return (Withdraw) super.setQuotaUser(quotaUser); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Withdraw setUploadType(java.lang.String uploadType) { - return (Withdraw) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { - return (Withdraw) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Withdraw setUserIp(java.lang.String userIp) { - return (Withdraw) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } /** - * The name of theregion where the public delegated prefix is located. It should comply with - * RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public Withdraw setRegion(java.lang.String region) { - this.region = region; + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.Boolean returnPartialSuccess; - /** The name of the public delegated prefix. It should comply with RFC1035. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** The name of the public delegated prefix. It should comply with RFC1035. */ - public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - this.publicDelegatedPrefix = publicDelegatedPrefix; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Long serviceProjectNumber; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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.String getRequestId() { - return requestId; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public Withdraw setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public Withdraw set(String parameterName, Object value) { - return (Withdraw) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified PacketMirroring resource. * - * Create a request for the method "regionAutoscalers.delete". + * 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 scoping this request. - * @param autoscaler Name of the autoscaler to delete. + * @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 autoscaler) throws java.io.IOException { - Delete result = new Delete(project, region, autoscaler); + 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}/autoscalers/{autoscaler}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -136837,13 +125006,13 @@ public class Delete extends ComputeRequest {@link @@ -136851,11 +125020,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param autoscaler Name of the autoscaler to delete. + * @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 autoscaler) { + 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()) { @@ -136869,10 +125038,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + 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}"); } } @@ -136958,17 +125127,17 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -136979,24 +125148,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the autoscaler to delete. */ + /** Name of the PacketMirroring resource to delete. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String packetMirroring; - /** Name of the autoscaler to delete. + /** Name of the PacketMirroring resource to delete. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getPacketMirroring() { + return packetMirroring; } - /** Name of the autoscaler to delete. */ - public Delete setAutoscaler(java.lang.String autoscaler) { + /** Name of the PacketMirroring resource to delete. */ + public Delete setPacketMirroring(java.lang.String packetMirroring) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + 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.autoscaler = autoscaler; + this.packetMirroring = packetMirroring; return this; } @@ -137055,27 +125224,27 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified autoscaler. + * Returns the specified PacketMirroring resource. * - * Create a request for the method "regionAutoscalers.get". + * 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 scoping this request. - * @param autoscaler Name of the autoscaler to return. + * @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 autoscaler) throws java.io.IOException { - Get result = new Get(project, region, autoscaler); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137083,13 +125252,13 @@ public class Get extends ComputeRequest {@link @@ -137097,12 +125266,12 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param autoscaler Name of the autoscaler to return. + * @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 autoscaler) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Autoscaler.class); + 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(), @@ -137115,10 +125284,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + 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}"); } } @@ -137214,17 +125383,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -137235,24 +125404,24 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the autoscaler to return. */ + /** Name of the PacketMirroring resource to return. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String packetMirroring; - /** Name of the autoscaler to return. + /** Name of the PacketMirroring resource to return. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getPacketMirroring() { + return packetMirroring; } - /** Name of the autoscaler to return. */ - public Get setAutoscaler(java.lang.String autoscaler) { + /** Name of the PacketMirroring resource to return. */ + public Get setPacketMirroring(java.lang.String packetMirroring) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + 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.autoscaler = autoscaler; + this.packetMirroring = packetMirroring; return this; } @@ -137262,19 +125431,20 @@ public Get set(String parameterName, Object value) { } } /** - * Creates an autoscaler in the specified project using the data included in the request. + * Creates a PacketMirroring resource in the specified project and region using the data included in + * the request. * - * Create a request for the method "regionAutoscalers.insert". + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @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.Autoscaler content) throws java.io.IOException { + 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; @@ -137282,7 +125452,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137291,9 +125461,10 @@ public class Insert extends ComputeRequest {@link @@ -137301,11 +125472,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.Autoscaler content) { + 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()) { @@ -137402,17 +125573,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -137478,15 +125649,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of autoscalers contained within the specified region. + * Retrieves a list of PacketMirroring resources available to the specified project and region. * - * Create a request for the method "regionAutoscalers.list". + * 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 scoping 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 { @@ -137495,9 +125666,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137506,9 +125677,9 @@ public class List extends ComputeRequest {@link @@ -137516,11 +125687,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.RegionAutoscalerList.class); + 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(), @@ -137626,17 +125797,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -137917,28 +126088,29 @@ public List set(String parameterName, Object 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. + * 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 "regionAutoscalers.patch". + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @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, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { - Patch result = new Patch(project, region, content); + 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}/autoscalers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -137946,14 +126118,14 @@ public class Patch extends ComputeRequest {@link @@ -137961,11 +126133,12 @@ public class Patch extends ComputeRequest * * @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} + * @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, com.google.api.services.compute.model.Autoscaler content) { + 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()) { @@ -137979,6 +126152,12 @@ protected Patch(java.lang.String project, java.lang.String region, com.google.ap "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}"); + } } @Override @@ -138062,17 +126241,17 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -138083,24 +126262,24 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the autoscaler to patch. */ + /** Name of the PacketMirroring resource to patch. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String packetMirroring; - /** Name of the autoscaler to patch. + /** Name of the PacketMirroring resource to patch. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getPacketMirroring() { + return packetMirroring; } - /** Name of the autoscaler to patch. */ - public Patch setAutoscaler(java.lang.String autoscaler) { + /** Name of the PacketMirroring resource to patch. */ + public Patch setPacketMirroring(java.lang.String packetMirroring) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + 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.autoscaler = autoscaler; + this.packetMirroring = packetMirroring; return this; } @@ -138161,7 +126340,7 @@ public Patch set(String parameterName, Object value) { /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionAutoscalers.testIamPermissions". + * 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. @@ -138180,7 +126359,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -138194,7 +126373,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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: - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Project ID for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String orderBy; - /** Project ID for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** The name of the region for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of the region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + 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. + * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. * - * Create a request for the method "regionAutoscalers.update". + * 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 region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.Autoscaler} + * @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 region, com.google.api.services.compute.model.Autoscaler content) throws java.io.IOException { - Update result = new Update(project, region, content); + 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}/regions/{region}/autoscalers"; + private static final String REST_PATH = "projects/{project}/global/previewFeatures/{previewFeature}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Updates an autoscaler in the specified project using the data included in the request. + * Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. * - * Create a request for the method "regionAutoscalers.update". + * 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 @@ -138401,23 +127182,23 @@ public class Update extends ComputeRequest * * @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} + * @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 region, com.google.api.services.compute.model.Autoscaler content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @@ -138502,45 +127283,24 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** Name of the PreviewFeature for this request. */ @com.google.api.client.util.Key - private java.lang.String autoscaler; + private java.lang.String previewFeature; - /** Name of the autoscaler to update. + /** Name of the PreviewFeature for this request. */ - public java.lang.String getAutoscaler() { - return autoscaler; + public java.lang.String getPreviewFeature() { + return previewFeature; } - /** Name of the autoscaler to update. */ - public Update setAutoscaler(java.lang.String autoscaler) { + /** Name of the PreviewFeature for this request. */ + public Update setPreviewFeature(java.lang.String previewFeature) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(AUTOSCALER_PATTERN.matcher(autoscaler).matches(), - "Parameter autoscaler must conform to the pattern " + + 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.autoscaler = autoscaler; + this.previewFeature = previewFeature; return this; } @@ -138602,152 +127362,131 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the RegionBackendBuckets collection. + * An accessor for creating requests from the Projects collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionBackendBuckets.List request = compute.regionBackendBuckets().list(parameters ...)}
    +   *   {@code Compute.Projects.List request = compute.projects().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionBackendBuckets regionBackendBuckets() { - return new RegionBackendBuckets(); + public Projects projects() { + return new Projects(); } /** - * The "regionBackendBuckets" collection of methods. + * The "projects" collection of methods. */ - public class RegionBackendBuckets { + public class Projects { /** - * Deletes the specified regional BackendBucket resource. + * Disable this project as a shared VPC host project. * - * Create a request for the method "regionBackendBuckets.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link DisableXpnHost#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); + public DisableXpnHost disableXpnHost(java.lang.String project) throws java.io.IOException { + DisableXpnHost result = new DisableXpnHost(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class DisableXpnHost extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + private static final String REST_PATH = "projects/{project}/disableXpnHost"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Disable this project as a shared VPC host project. * - * Create a request for the method "regionBackendBuckets.delete". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public DisableXpnHost set$Xgafv(java.lang.String $Xgafv) { + return (DisableXpnHost) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public DisableXpnHost setAccessToken(java.lang.String accessToken) { + return (DisableXpnHost) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public DisableXpnHost setAlt(java.lang.String alt) { + return (DisableXpnHost) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public DisableXpnHost setCallback(java.lang.String callback) { + return (DisableXpnHost) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public DisableXpnHost setFields(java.lang.String fields) { + return (DisableXpnHost) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public DisableXpnHost setKey(java.lang.String key) { + return (DisableXpnHost) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public DisableXpnHost setOauthToken(java.lang.String oauthToken) { + return (DisableXpnHost) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public DisableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DisableXpnHost) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public DisableXpnHost setQuotaUser(java.lang.String quotaUser) { + return (DisableXpnHost) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public DisableXpnHost setUploadType(java.lang.String uploadType) { + return (DisableXpnHost) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public DisableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { + return (DisableXpnHost) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public DisableXpnHost setUserIp(java.lang.String userIp) { + return (DisableXpnHost) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -138761,7 +127500,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -138771,71 +127510,6 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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; - } - - /** - * Force delete the backend bucket even if it is still in use by other resources. It's - * intended to be used internally only for requests from wipeout. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceDelete; - - /** Force delete the backend bucket even if it is still in use by other resources. It's intended to be - used internally only for requests from wipeout. - */ - public java.lang.Boolean getForceDelete() { - return forceDelete; - } - - /** - * Force delete the backend bucket even if it is still in use by other resources. It's - * intended to be used internally only for requests from wipeout. - */ - public Delete setForceDelete(java.lang.Boolean forceDelete) { - this.forceDelete = forceDelete; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -138847,7 +127521,7 @@ public Delete setForceDelete(java.lang.Boolean forceDelete) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -138861,7 +127535,7 @@ public Delete setForceDelete(java.lang.Boolean forceDelete) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -138878,155 +127552,126 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public DisableXpnHost setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public DisableXpnHost set(String parameterName, Object value) { + return (DisableXpnHost) super.set(parameterName, value); } } /** - * Returns the specified regional BackendBucket resource. + * Disable a service resource (also known as service project) associated with this host project. * - * Create a request for the method "regionBackendBuckets.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link DisableXpnResource#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. + * @param content the {@link com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest} * @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); + 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 Get extends ComputeRequest { + public class DisableXpnResource extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; + private static final String REST_PATH = "projects/{project}/disableXpnResource"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Disable a service resource (also known as service project) associated with this host project. * - * Create a request for the method "regionBackendBuckets.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 region Name of the region scoping this request. - * @param backendBucket Name of the BackendBucket resource to return. + * @param content the {@link com.google.api.services.compute.model.ProjectsDisableXpnResourceRequest} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public DisableXpnResource set$Xgafv(java.lang.String $Xgafv) { + return (DisableXpnResource) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public DisableXpnResource setAccessToken(java.lang.String accessToken) { + return (DisableXpnResource) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public DisableXpnResource setAlt(java.lang.String alt) { + return (DisableXpnResource) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public DisableXpnResource setCallback(java.lang.String callback) { + return (DisableXpnResource) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public DisableXpnResource setFields(java.lang.String fields) { + return (DisableXpnResource) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public DisableXpnResource setKey(java.lang.String key) { + return (DisableXpnResource) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public DisableXpnResource setOauthToken(java.lang.String oauthToken) { + return (DisableXpnResource) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public DisableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DisableXpnResource) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public DisableXpnResource setQuotaUser(java.lang.String quotaUser) { + return (DisableXpnResource) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public DisableXpnResource setUploadType(java.lang.String uploadType) { + return (DisableXpnResource) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public DisableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { + return (DisableXpnResource) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public DisableXpnResource setUserIp(java.lang.String userIp) { + return (DisableXpnResource) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139040,7 +127685,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -139050,192 +127695,166 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRegion() { - return region; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name of the BackendBucket resource to return. */ - @com.google.api.client.util.Key - private java.lang.String backendBucket; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name of the BackendBucket resource to return. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getBackendBucket() { - return backendBucket; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public DisableXpnResource set(String parameterName, Object value) { + return (DisableXpnResource) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Enable this project as a shared VPC host project. * - * Create a request for the method "regionBackendBuckets.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link EnableXpnHost#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); + public EnableXpnHost enableXpnHost(java.lang.String project) throws java.io.IOException { + EnableXpnHost result = new EnableXpnHost(project); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class EnableXpnHost extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/enableXpnHost"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Enable this project as a shared VPC host project. * - * Create a request for the method "regionBackendBuckets.getIamPolicy". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public EnableXpnHost set$Xgafv(java.lang.String $Xgafv) { + return (EnableXpnHost) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public EnableXpnHost setAccessToken(java.lang.String accessToken) { + return (EnableXpnHost) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public EnableXpnHost setAlt(java.lang.String alt) { + return (EnableXpnHost) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public EnableXpnHost setCallback(java.lang.String callback) { + return (EnableXpnHost) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public EnableXpnHost setFields(java.lang.String fields) { + return (EnableXpnHost) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public EnableXpnHost setKey(java.lang.String key) { + return (EnableXpnHost) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public EnableXpnHost setOauthToken(java.lang.String oauthToken) { + return (EnableXpnHost) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public EnableXpnHost setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableXpnHost) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public EnableXpnHost setQuotaUser(java.lang.String quotaUser) { + return (EnableXpnHost) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public EnableXpnHost setUploadType(java.lang.String uploadType) { + return (EnableXpnHost) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public EnableXpnHost setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableXpnHost) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public EnableXpnHost setUserIp(java.lang.String userIp) { + return (EnableXpnHost) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139249,7 +127868,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -139259,116 +127878,103 @@ public GetIamPolicy setProject(java.lang.String 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; - } + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Requested IAM Policy version. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public EnableXpnHost set(String parameterName, Object value) { + return (EnableXpnHost) super.set(parameterName, value); } } /** - * Creates a RegionBackendBucket in the specified project in the given scope using the parameters - * that are included in the request. + * 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 "regionBackendBuckets.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link EnableXpnResource#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} + * @param content the {@link com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest} * @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); + 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 Insert extends ComputeRequest { + public class EnableXpnResource extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; + private static final String REST_PATH = "projects/{project}/enableXpnResource"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "regionBackendBuckets.insert". + * 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 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.

    + * 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 region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.BackendBucket} + * @param content the {@link com.google.api.services.compute.model.ProjectsEnableXpnResourceRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BackendBucket content) { + 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()) { @@ -139376,72 +127982,66 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public EnableXpnResource set$Xgafv(java.lang.String $Xgafv) { + return (EnableXpnResource) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public EnableXpnResource setAccessToken(java.lang.String accessToken) { + return (EnableXpnResource) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public EnableXpnResource setAlt(java.lang.String alt) { + return (EnableXpnResource) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public EnableXpnResource setCallback(java.lang.String callback) { + return (EnableXpnResource) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public EnableXpnResource setFields(java.lang.String fields) { + return (EnableXpnResource) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public EnableXpnResource setKey(java.lang.String key) { + return (EnableXpnResource) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public EnableXpnResource setOauthToken(java.lang.String oauthToken) { + return (EnableXpnResource) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public EnableXpnResource setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableXpnResource) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public EnableXpnResource setQuotaUser(java.lang.String quotaUser) { + return (EnableXpnResource) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public EnableXpnResource setUploadType(java.lang.String uploadType) { + return (EnableXpnResource) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public EnableXpnResource setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableXpnResource) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public EnableXpnResource setUserIp(java.lang.String userIp) { + return (EnableXpnResource) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139455,7 +128055,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -139465,27 +128065,6 @@ public Insert setProject(java.lang.String 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 @@ -139530,74 +128109,73 @@ public java.lang.String getRequestId() { * 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) { + public EnableXpnResource setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public EnableXpnResource set(String parameterName, Object value) { + return (EnableXpnResource) super.set(parameterName, value); } } /** - * Retrieves the list of BackendBucket resources available to the specified project in the given - * region. + * Returns the specified Project resource. * - * Create a request for the method "regionBackendBuckets.list". + * 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 List#execute()} method to invoke the remote operation. + * 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. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public Get get(java.lang.String project) throws java.io.IOException { + Get result = new Get(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; + private static final String REST_PATH = "projects/{project}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Returns the specified Project resource. * - * Create a request for the method "regionBackendBuckets.list". + * 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 List#execute()} method to invoke the remote operation.

    {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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. * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -139611,63 +128189,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -139681,7 +128259,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -139691,355 +128269,201 @@ public List setProject(java.lang.String 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; + @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; + } - /** 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; - } + public class GetXpnHost extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/getXpnHost"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Gets the shared VPC host project that this project links to. May be empty if no link exists. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "projects.getXpnHost". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

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

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -140053,63 +128477,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); + public GetXpnResources set$Xgafv(java.lang.String $Xgafv) { + return (GetXpnResources) super.set$Xgafv($Xgafv); } @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); + public GetXpnResources setAccessToken(java.lang.String accessToken) { + return (GetXpnResources) super.setAccessToken(accessToken); } @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); + public GetXpnResources setAlt(java.lang.String alt) { + return (GetXpnResources) super.setAlt(alt); } @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); + public GetXpnResources setCallback(java.lang.String callback) { + return (GetXpnResources) super.setCallback(callback); } @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); + public GetXpnResources setFields(java.lang.String fields) { + return (GetXpnResources) super.setFields(fields); } @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); + public GetXpnResources setKey(java.lang.String key) { + return (GetXpnResources) super.setKey(key); } @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); + public GetXpnResources setOauthToken(java.lang.String oauthToken) { + return (GetXpnResources) super.setOauthToken(oauthToken); } @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); + public GetXpnResources setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetXpnResources) super.setPrettyPrint(prettyPrint); } @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); + public GetXpnResources setQuotaUser(java.lang.String quotaUser) { + return (GetXpnResources) super.setQuotaUser(quotaUser); } @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); + public GetXpnResources setUploadType(java.lang.String uploadType) { + return (GetXpnResources) super.setUploadType(uploadType); } @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); + public GetXpnResources setUploadProtocol(java.lang.String uploadProtocol) { + return (GetXpnResources) super.setUploadProtocol(uploadProtocol); } @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) super.setUserIp(userIp); + public GetXpnResources setUserIp(java.lang.String userIp) { + return (GetXpnResources) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -140123,7 +128547,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListUsable setProject(java.lang.String project) { + 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 " + @@ -140133,34 +128557,6 @@ public ListUsable setProject(java.lang.String 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 @@ -140292,7 +128688,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListUsable setFilter(java.lang.String filter) { + public GetXpnResources setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -140321,7 +128717,7 @@ public java.lang.Long getMaxResults() { * 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) { + public GetXpnResources setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -140363,653 +128759,181 @@ public java.lang.String getOrderBy() { * field in reverse chronological order (newest result first). Use this 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - 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; + public GetXpnResources setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** The name of the region for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of the region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public GetXpnResources setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetXpnResources set(String parameterName, Object value) { + return (GetXpnResources) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Lists all shared VPC host projects visible to the user in an organization. * - * Create a request for the method "regionBackendBuckets.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link ListXpnHosts#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} + * @param content the {@link com.google.api.services.compute.model.ProjectsListXpnHostsRequest} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class ListXpnHosts extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/listXpnHosts"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Lists all shared VPC host projects visible to the user in an organization. * - * Create a request for the method "regionBackendBuckets.testIamPermissions". + * 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 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.

    + * 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 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} + * @param content the {@link com.google.api.services.compute.model.ProjectsListXpnHostsRequest} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ListXpnHosts set$Xgafv(java.lang.String $Xgafv) { + return (ListXpnHosts) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ListXpnHosts setAccessToken(java.lang.String accessToken) { + return (ListXpnHosts) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ListXpnHosts setAlt(java.lang.String alt) { + return (ListXpnHosts) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ListXpnHosts setCallback(java.lang.String callback) { + return (ListXpnHosts) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ListXpnHosts setFields(java.lang.String fields) { + return (ListXpnHosts) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ListXpnHosts setKey(java.lang.String key) { + return (ListXpnHosts) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ListXpnHosts setOauthToken(java.lang.String oauthToken) { + return (ListXpnHosts) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ListXpnHosts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListXpnHosts) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ListXpnHosts setQuotaUser(java.lang.String quotaUser) { + return (ListXpnHosts) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ListXpnHosts setUploadType(java.lang.String uploadType) { + return (ListXpnHosts) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ListXpnHosts setUploadProtocol(java.lang.String uploadProtocol) { + return (ListXpnHosts) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ListXpnHosts setUserIp(java.lang.String userIp) { + return (ListXpnHosts) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141023,7 +128947,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -141033,203 +128957,405 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** The name of the region for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - /** Name or id of the resource for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Long maxResults; - /** Name or id of the resource for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getResource() { - return resource; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - } - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; + } - /** - * 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(); - } + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * The "regionBackendServices" collection of methods. - */ - public class RegionBackendServices { + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListXpnHosts setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override + public ListXpnHosts set(String parameterName, Object value) { + return (ListXpnHosts) super.set(parameterName, value); + } + } /** - * Deletes the specified regional BackendService resource. + * Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated on + * September 29, 2026. * - * Create a request for the method "regionBackendServices.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link MoveDisk#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. + * @param content the {@link com.google.api.services.compute.model.DiskMoveRequest} * @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); + 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 Delete extends ComputeRequest { + public class MoveDisk extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/moveDisk"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated + * on September 29, 2026. * - * Create a request for the method "regionBackendServices.delete". + * 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 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.

    + * 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 region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to delete. + * @param content the {@link com.google.api.services.compute.model.DiskMoveRequest} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public MoveDisk set$Xgafv(java.lang.String $Xgafv) { + return (MoveDisk) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public MoveDisk setAccessToken(java.lang.String accessToken) { + return (MoveDisk) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public MoveDisk setAlt(java.lang.String alt) { + return (MoveDisk) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public MoveDisk setCallback(java.lang.String callback) { + return (MoveDisk) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public MoveDisk setFields(java.lang.String fields) { + return (MoveDisk) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public MoveDisk setKey(java.lang.String key) { + return (MoveDisk) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public MoveDisk setOauthToken(java.lang.String oauthToken) { + return (MoveDisk) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public MoveDisk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MoveDisk) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public MoveDisk setQuotaUser(java.lang.String quotaUser) { + return (MoveDisk) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public MoveDisk setUploadType(java.lang.String uploadType) { + return (MoveDisk) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public MoveDisk setUploadProtocol(java.lang.String uploadProtocol) { + return (MoveDisk) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public MoveDisk setUserIp(java.lang.String userIp) { + return (MoveDisk) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141243,7 +129369,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -141253,48 +129379,6 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -141339,153 +129423,134 @@ public java.lang.String getRequestId() { * 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) { + public MoveDisk setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public MoveDisk set(String parameterName, Object value) { + return (MoveDisk) super.set(parameterName, value); } } /** - * Returns the specified regional BackendService resource. + * 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 "regionBackendServices.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link MoveInstance#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. + * @param content the {@link com.google.api.services.compute.model.InstanceMoveRequest} * @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); + 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 Get extends ComputeRequest { + public class MoveInstance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/moveInstance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionBackendServices.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 region Name of the region scoping this request. - * @param backendService Name of the BackendService resource to return. + * @param content the {@link com.google.api.services.compute.model.InstanceMoveRequest} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public MoveInstance set$Xgafv(java.lang.String $Xgafv) { + return (MoveInstance) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public MoveInstance setAccessToken(java.lang.String accessToken) { + return (MoveInstance) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public MoveInstance setAlt(java.lang.String alt) { + return (MoveInstance) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public MoveInstance setCallback(java.lang.String callback) { + return (MoveInstance) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public MoveInstance setFields(java.lang.String fields) { + return (MoveInstance) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public MoveInstance setKey(java.lang.String key) { + return (MoveInstance) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public MoveInstance setOauthToken(java.lang.String oauthToken) { + return (MoveInstance) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public MoveInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MoveInstance) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public MoveInstance setQuotaUser(java.lang.String quotaUser) { + return (MoveInstance) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public MoveInstance setUploadType(java.lang.String uploadType) { + return (MoveInstance) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public MoveInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (MoveInstance) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public MoveInstance setUserIp(java.lang.String userIp) { + return (MoveInstance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141499,7 +129564,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -141509,196 +129574,186 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRegion() { - return region; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name of the BackendService resource to return. */ - @com.google.api.client.util.Key - private java.lang.String backendService; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name of the BackendService resource to return. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public MoveInstance set(String parameterName, Object value) { + return (MoveInstance) super.set(parameterName, value); } } /** - * Gets the most recent health check results for this regional BackendService. + * 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 "regionBackendServices.getHealth". + * 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 GetHealth#execute()} method to invoke the remote operation. + * parameters, call the {@link SetCloudArmorTier#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} + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest} * @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); + 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 GetHealth extends ComputeRequest { + public class SetCloudArmorTier extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/getHealth"; + private static final String REST_PATH = "projects/{project}/setCloudArmorTier"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionBackendServices.getHealth". + * 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 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.

    + * 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 - * @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} + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.ProjectsSetCloudArmorTierRequest} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public GetHealth set$Xgafv(java.lang.String $Xgafv) { - return (GetHealth) super.set$Xgafv($Xgafv); + public SetCloudArmorTier set$Xgafv(java.lang.String $Xgafv) { + return (SetCloudArmorTier) super.set$Xgafv($Xgafv); } @Override - public GetHealth setAccessToken(java.lang.String accessToken) { - return (GetHealth) super.setAccessToken(accessToken); + public SetCloudArmorTier setAccessToken(java.lang.String accessToken) { + return (SetCloudArmorTier) super.setAccessToken(accessToken); } @Override - public GetHealth setAlt(java.lang.String alt) { - return (GetHealth) super.setAlt(alt); + public SetCloudArmorTier setAlt(java.lang.String alt) { + return (SetCloudArmorTier) super.setAlt(alt); } @Override - public GetHealth setCallback(java.lang.String callback) { - return (GetHealth) super.setCallback(callback); + public SetCloudArmorTier setCallback(java.lang.String callback) { + return (SetCloudArmorTier) super.setCallback(callback); } @Override - public GetHealth setFields(java.lang.String fields) { - return (GetHealth) super.setFields(fields); + public SetCloudArmorTier setFields(java.lang.String fields) { + return (SetCloudArmorTier) super.setFields(fields); } @Override - public GetHealth setKey(java.lang.String key) { - return (GetHealth) super.setKey(key); + public SetCloudArmorTier setKey(java.lang.String key) { + return (SetCloudArmorTier) super.setKey(key); } @Override - public GetHealth setOauthToken(java.lang.String oauthToken) { - return (GetHealth) super.setOauthToken(oauthToken); + public SetCloudArmorTier setOauthToken(java.lang.String oauthToken) { + return (SetCloudArmorTier) super.setOauthToken(oauthToken); } @Override - public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetHealth) super.setPrettyPrint(prettyPrint); + public SetCloudArmorTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCloudArmorTier) super.setPrettyPrint(prettyPrint); } @Override - public GetHealth setQuotaUser(java.lang.String quotaUser) { - return (GetHealth) super.setQuotaUser(quotaUser); + public SetCloudArmorTier setQuotaUser(java.lang.String quotaUser) { + return (SetCloudArmorTier) super.setQuotaUser(quotaUser); } @Override - public GetHealth setUploadType(java.lang.String uploadType) { - return (GetHealth) super.setUploadType(uploadType); + public SetCloudArmorTier setUploadType(java.lang.String uploadType) { + return (SetCloudArmorTier) super.setUploadType(uploadType); } @Override - public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { - return (GetHealth) super.setUploadProtocol(uploadProtocol); + public SetCloudArmorTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCloudArmorTier) super.setUploadProtocol(uploadProtocol); } @Override - public GetHealth setUserIp(java.lang.String userIp) { - return (GetHealth) super.setUserIp(userIp); + 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; } - public GetHealth setProject(java.lang.String 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 " + @@ -141708,192 +129763,171 @@ public GetHealth setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region scoping this request. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRegion() { - return region; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name of the BackendService resource for which to get health. */ - @com.google.api.client.util.Key - private java.lang.String backendService; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name of the BackendService resource for which to get health. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetHealth set(String parameterName, Object value) { - return (GetHealth) super.set(parameterName, value); + public SetCloudArmorTier set(String parameterName, Object value) { + return (SetCloudArmorTier) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Sets metadata common to all instances within the specified project using the data included in the + * request. * - * Create a request for the method "regionBackendServices.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetCommonInstanceMetadata#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.Metadata} * @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); + 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 GetIamPolicy extends ComputeRequest { + public class SetCommonInstanceMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/setCommonInstanceMetadata"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Sets metadata common to all instances within the specified project using the data included in + * the request. * - * Create a request for the method "regionBackendServices.getIamPolicy". + * 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 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.

    + * 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 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.Metadata} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetCommonInstanceMetadata set$Xgafv(java.lang.String $Xgafv) { + return (SetCommonInstanceMetadata) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetCommonInstanceMetadata setAccessToken(java.lang.String accessToken) { + return (SetCommonInstanceMetadata) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetCommonInstanceMetadata setAlt(java.lang.String alt) { + return (SetCommonInstanceMetadata) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetCommonInstanceMetadata setCallback(java.lang.String callback) { + return (SetCommonInstanceMetadata) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetCommonInstanceMetadata setFields(java.lang.String fields) { + return (SetCommonInstanceMetadata) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetCommonInstanceMetadata setKey(java.lang.String key) { + return (SetCommonInstanceMetadata) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetCommonInstanceMetadata setOauthToken(java.lang.String oauthToken) { + return (SetCommonInstanceMetadata) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetCommonInstanceMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetCommonInstanceMetadata) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetCommonInstanceMetadata setQuotaUser(java.lang.String quotaUser) { + return (SetCommonInstanceMetadata) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetCommonInstanceMetadata setUploadType(java.lang.String uploadType) { + return (SetCommonInstanceMetadata) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetCommonInstanceMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (SetCommonInstanceMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetCommonInstanceMetadata setUserIp(java.lang.String userIp) { + return (SetCommonInstanceMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -141907,7 +129941,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -141917,116 +129951,104 @@ public GetIamPolicy setProject(java.lang.String 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; - } + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Requested IAM Policy version. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public SetCommonInstanceMetadata set(String parameterName, Object value) { + return (SetCommonInstanceMetadata) 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. + * 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 "regionBackendServices.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetDefaultNetworkTier#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} + * @param content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} * @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); + 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 Insert extends ComputeRequest { + public class SetDefaultNetworkTier extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; + private static final String REST_PATH = "projects/{project}/setDefaultNetworkTier"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "regionBackendServices.insert". + * 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 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.

    + * 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 region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.BackendService} + * @param content the {@link com.google.api.services.compute.model.ProjectsSetDefaultNetworkTierRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.BackendService content) { + 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()) { @@ -142034,72 +130056,66 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetDefaultNetworkTier set$Xgafv(java.lang.String $Xgafv) { + return (SetDefaultNetworkTier) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetDefaultNetworkTier setAccessToken(java.lang.String accessToken) { + return (SetDefaultNetworkTier) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetDefaultNetworkTier setAlt(java.lang.String alt) { + return (SetDefaultNetworkTier) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetDefaultNetworkTier setCallback(java.lang.String callback) { + return (SetDefaultNetworkTier) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetDefaultNetworkTier setFields(java.lang.String fields) { + return (SetDefaultNetworkTier) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetDefaultNetworkTier setKey(java.lang.String key) { + return (SetDefaultNetworkTier) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetDefaultNetworkTier setOauthToken(java.lang.String oauthToken) { + return (SetDefaultNetworkTier) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetDefaultNetworkTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDefaultNetworkTier) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetDefaultNetworkTier setQuotaUser(java.lang.String quotaUser) { + return (SetDefaultNetworkTier) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetDefaultNetworkTier setUploadType(java.lang.String uploadType) { + return (SetDefaultNetworkTier) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetDefaultNetworkTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDefaultNetworkTier) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetDefaultNetworkTier setUserIp(java.lang.String userIp) { + return (SetDefaultNetworkTier) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -142113,7 +130129,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -142123,27 +130139,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 @@ -142188,144 +130183,129 @@ public java.lang.String getRequestId() { * 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) { + public SetDefaultNetworkTier setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetDefaultNetworkTier set(String parameterName, Object value) { + return (SetDefaultNetworkTier) super.set(parameterName, value); } } /** - * Retrieves the list of regional BackendService resources available to the specified project in the - * given region. + * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the + * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to + * Managed Protection Plus for more information. * - * Create a request for the method "regionBackendServices.list". + * Create a request for the method "projects.setManagedProtectionTier". * * 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. + * parameters, call the {@link SetManagedProtectionTier#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.ProjectsSetManagedProtectionTierRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public SetManagedProtectionTier setManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) throws java.io.IOException { + SetManagedProtectionTier result = new SetManagedProtectionTier(project, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class SetManagedProtectionTier extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; + private static final String REST_PATH = "projects/{project}/setManagedProtectionTier"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the + * billing account of the project must be subscribed to Managed Protection Plus. See Subscribing + * to Managed Protection Plus for more information. * - * Create a request for the method "regionBackendServices.list". + * Create a request for the method "projects.setManagedProtectionTier". * * 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.

    + * parameters, call the {@link SetManagedProtectionTier#execute()} method to invoke the remote + * operation.

    {@link SetManagedProtectionTier#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 content the {@link com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest} * @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); + protected SetManagedProtectionTier(java.lang.String project, com.google.api.services.compute.model.ProjectsSetManagedProtectionTierRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public SetManagedProtectionTier set$Xgafv(java.lang.String $Xgafv) { + return (SetManagedProtectionTier) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SetManagedProtectionTier setAccessToken(java.lang.String accessToken) { + return (SetManagedProtectionTier) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SetManagedProtectionTier setAlt(java.lang.String alt) { + return (SetManagedProtectionTier) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SetManagedProtectionTier setCallback(java.lang.String callback) { + return (SetManagedProtectionTier) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SetManagedProtectionTier setFields(java.lang.String fields) { + return (SetManagedProtectionTier) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetManagedProtectionTier setKey(java.lang.String key) { + return (SetManagedProtectionTier) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetManagedProtectionTier setOauthToken(java.lang.String oauthToken) { + return (SetManagedProtectionTier) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetManagedProtectionTier setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetManagedProtectionTier) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetManagedProtectionTier setQuotaUser(java.lang.String quotaUser) { + return (SetManagedProtectionTier) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetManagedProtectionTier setUploadType(java.lang.String uploadType) { + return (SetManagedProtectionTier) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SetManagedProtectionTier setUploadProtocol(java.lang.String uploadProtocol) { + return (SetManagedProtectionTier) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public SetManagedProtectionTier setUserIp(java.lang.String userIp) { + return (SetManagedProtectionTier) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -142339,7 +130319,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public SetManagedProtectionTier setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -142349,417 +130329,171 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public SetManagedProtectionTier setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public SetManagedProtectionTier set(String parameterName, Object value) { + return (SetManagedProtectionTier) super.set(parameterName, value); } } /** - * Retrieves a list of all usable backend services in the specified project in the given region. + * 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 "regionBackendServices.listUsable". + * 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 ListUsable#execute()} method to invoke the remote operation. + * parameters, call the {@link SetUsageExportBucket#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. + * @param content the {@link com.google.api.services.compute.model.UsageExportLocation} * @return the request */ - public ListUsable listUsable(java.lang.String project, java.lang.String region) throws java.io.IOException { - ListUsable result = new ListUsable(project, region); + 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 ListUsable extends ComputeRequest { + public class SetUsageExportBucket extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/listUsable"; + private static final String REST_PATH = "projects/{project}/setUsageExportBucket"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 in the specified project in the given region. + * 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 "regionBackendServices.listUsable". + * 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 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.

    + * 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 region Name of the region scoping this request. - It must be a string that meets the requirements in RFC1035. + * @param content the {@link com.google.api.services.compute.model.UsageExportLocation} * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public ListUsable set$Xgafv(java.lang.String $Xgafv) { - return (ListUsable) super.set$Xgafv($Xgafv); + public SetUsageExportBucket set$Xgafv(java.lang.String $Xgafv) { + return (SetUsageExportBucket) super.set$Xgafv($Xgafv); } @Override - public ListUsable setAccessToken(java.lang.String accessToken) { - return (ListUsable) super.setAccessToken(accessToken); + public SetUsageExportBucket setAccessToken(java.lang.String accessToken) { + return (SetUsageExportBucket) super.setAccessToken(accessToken); } @Override - public ListUsable setAlt(java.lang.String alt) { - return (ListUsable) super.setAlt(alt); + public SetUsageExportBucket setAlt(java.lang.String alt) { + return (SetUsageExportBucket) super.setAlt(alt); } @Override - public ListUsable setCallback(java.lang.String callback) { - return (ListUsable) super.setCallback(callback); + public SetUsageExportBucket setCallback(java.lang.String callback) { + return (SetUsageExportBucket) super.setCallback(callback); } @Override - public ListUsable setFields(java.lang.String fields) { - return (ListUsable) super.setFields(fields); + public SetUsageExportBucket setFields(java.lang.String fields) { + return (SetUsageExportBucket) super.setFields(fields); } @Override - public ListUsable setKey(java.lang.String key) { - return (ListUsable) super.setKey(key); + public SetUsageExportBucket setKey(java.lang.String key) { + return (SetUsageExportBucket) super.setKey(key); } @Override - public ListUsable setOauthToken(java.lang.String oauthToken) { - return (ListUsable) super.setOauthToken(oauthToken); + public SetUsageExportBucket setOauthToken(java.lang.String oauthToken) { + return (SetUsageExportBucket) super.setOauthToken(oauthToken); } @Override - public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListUsable) super.setPrettyPrint(prettyPrint); + public SetUsageExportBucket setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUsageExportBucket) super.setPrettyPrint(prettyPrint); } @Override - public ListUsable setQuotaUser(java.lang.String quotaUser) { - return (ListUsable) super.setQuotaUser(quotaUser); + public SetUsageExportBucket setQuotaUser(java.lang.String quotaUser) { + return (SetUsageExportBucket) super.setQuotaUser(quotaUser); } @Override - public ListUsable setUploadType(java.lang.String uploadType) { - return (ListUsable) super.setUploadType(uploadType); + public SetUsageExportBucket setUploadType(java.lang.String uploadType) { + return (SetUsageExportBucket) super.setUploadType(uploadType); } @Override - public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { - return (ListUsable) super.setUploadProtocol(uploadProtocol); + public SetUsageExportBucket setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUsageExportBucket) super.setUploadProtocol(uploadProtocol); } @Override - public ListUsable setUserIp(java.lang.String userIp) { - return (ListUsable) super.setUserIp(userIp); + public SetUsageExportBucket setUserIp(java.lang.String userIp) { + return (SetUsageExportBucket) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -142773,7 +130507,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListUsable setProject(java.lang.String project) { + 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 " + @@ -142784,430 +130518,400 @@ public ListUsable setProject(java.lang.String project) { } /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListUsable setRegion(java.lang.String region) { - this.region = region; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + public SetUsageExportBucket setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public SetUsageExportBucket set(String parameterName, Object value) { + return (SetUsageExportBucket) super.set(parameterName, value); + } + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + /** + * 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(); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + /** + * The "publicAdvertisedPrefixes" collection of methods. + */ + public class PublicAdvertisedPrefixes { - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + /** + * 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; + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + public class Announce extends ComputeRequest { - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce"; - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Announces the specified PublicAdvertisedPrefix * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "publicAdvertisedPrefixes.announce". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. + * @since 1.13 */ - public ListUsable setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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."); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Announce set$Xgafv(java.lang.String $Xgafv) { + return (Announce) super.set$Xgafv($Xgafv); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Announce setAccessToken(java.lang.String accessToken) { + return (Announce) super.setAccessToken(accessToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Announce setAlt(java.lang.String alt) { + return (Announce) super.setAlt(alt); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Announce setCallback(java.lang.String callback) { + return (Announce) super.setCallback(callback); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Announce setFields(java.lang.String fields) { + return (Announce) super.setFields(fields); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Announce setKey(java.lang.String key) { + return (Announce) super.setKey(key); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Announce setOauthToken(java.lang.String oauthToken) { + return (Announce) super.setOauthToken(oauthToken); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + @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 ListUsable setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the public advertised prefix. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String publicAdvertisedPrefix; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the public advertised prefix. It should comply with RFC1035. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; } - /** - * Specifies 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; + /** The name of the public advertised prefix. It should comply with RFC1035. */ + public Announce setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + this.publicAdvertisedPrefix = publicAdvertisedPrefix; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Announce setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListUsable set(String parameterName, Object value) { - return (ListUsable) super.set(parameterName, value); + public Announce set(String parameterName, Object value) { + return (Announce) 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. + * Deletes the specified PublicAdvertisedPrefix * - * Create a request for the method "regionBackendServices.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.BackendService} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * 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. + * Deletes the specified PublicAdvertisedPrefix * - * Create a request for the method "regionBackendServices.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.BackendService} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -143221,7 +130925,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -143231,45 +130935,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** Name of the PublicAdvertisedPrefix resource to delete. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String publicAdvertisedPrefix; - /** Name of the BackendService resource to patch. + /** Name of the PublicAdvertisedPrefix resource to delete. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; } - /** Name of the BackendService resource to patch. */ - public Patch setBackendService(java.lang.String backendService) { + /** Name of the PublicAdvertisedPrefix resource to delete. */ + public Delete setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(BACKEND_SERVICE_PATTERN.matcher(backendService).matches(), - "Parameter backendService must conform to the pattern " + + 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.backendService = backendService; + this.publicAdvertisedPrefix = publicAdvertisedPrefix; return this; } @@ -143317,146 +131000,142 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified PublicAdvertisedPrefix resource. * - * Create a request for the method "regionBackendServices.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. * @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); + 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 SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns the specified PublicAdvertisedPrefix resource. * - * Create a request for the method "regionBackendServices.setIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -143470,7 +131149,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -143480,432 +131159,745 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the PublicAdvertisedPrefix resource to return. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String publicAdvertisedPrefix; - /** The name of the region for this request. + /** Name of the PublicAdvertisedPrefix resource to return. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + /** Name of the PublicAdvertisedPrefix resource to return. */ + public Get setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.publicAdvertisedPrefix = publicAdvertisedPrefix; return this; } - /** Name or id of the resource for this request. */ + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @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 resource; + private java.lang.String project; - /** Name or id of the resource for this request. + /** Project ID for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getProject() { + return project; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = resource; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified backend service. For more - * information, seeGoogle Cloud Armor Overview + * Lists the PublicAdvertisedPrefixes for a project. * - * Create a request for the method "regionBackendServices.setSecurityPolicy". + * 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 SetSecurityPolicy#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class SetSecurityPolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 + * Lists the PublicAdvertisedPrefixes for a project. * - * Create a request for the method "regionBackendServices.setSecurityPolicy". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); } @Override - public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + 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; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region scoping this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region scoping this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } /** - * Name of the BackendService resource to which the security policy should be set. The name - * should conform to RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String pageToken; - /** Name of the BackendService resource to which the security policy should be set. The name should - conform to RFC1035. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getPageToken() { + return pageToken; } /** - * Name of the BackendService resource to which the security policy should be set. The name - * should conform to RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public SetSecurityPolicy setBackendService(java.lang.String backendService) { - this.backendService = backendService; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public SetSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "regionBackendServices.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 permissions that a caller has on the specified resource. + * 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 "regionBackendServices.testIamPermissions". + * 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 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.

    + * 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 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} + * @param publicAdvertisedPrefix Name of the PublicAdvertisedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicAdvertisedPrefix} * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -143919,7 +131911,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -143929,184 +131921,190 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the PublicAdvertisedPrefix resource to patch. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String publicAdvertisedPrefix; - /** The name of the region for this request. + /** Name of the PublicAdvertisedPrefix resource to patch. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** Name of the PublicAdvertisedPrefix resource to patch. */ + public Patch setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.publicAdvertisedPrefix = publicAdvertisedPrefix; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Updates the specified regional BackendService resource with the data included in the request. For - * more information, see Backend services overview. + * Withdraws the specified PublicAdvertisedPrefix * - * Create a request for the method "regionBackendServices.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Withdraw#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} + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. * @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); + 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 Update extends ComputeRequest { + public class Withdraw extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; + private static final String REST_PATH = "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Withdraws the specified PublicAdvertisedPrefix * - * Create a request for the method "regionBackendServices.update". + * 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 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.

    + * 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 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} + * @param publicAdvertisedPrefix The name of the public advertised prefix. It should comply with RFC1035. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.publicAdvertisedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicAdvertisedPrefix, "Required parameter publicAdvertisedPrefix must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Withdraw set$Xgafv(java.lang.String $Xgafv) { + return (Withdraw) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Withdraw setAccessToken(java.lang.String accessToken) { + return (Withdraw) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Withdraw setAlt(java.lang.String alt) { + return (Withdraw) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Withdraw setCallback(java.lang.String callback) { + return (Withdraw) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Withdraw setFields(java.lang.String fields) { + return (Withdraw) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Withdraw setKey(java.lang.String key) { + return (Withdraw) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Withdraw setOauthToken(java.lang.String oauthToken) { + return (Withdraw) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -144120,7 +132118,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -144130,45 +132128,19 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. */ + /** The name of the public advertised prefix. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String backendService; + private java.lang.String publicAdvertisedPrefix; - /** Name of the BackendService resource to update. + /** The name of the public advertised prefix. It should comply with RFC1035. */ - public java.lang.String getBackendService() { - return backendService; + public java.lang.String getPublicAdvertisedPrefix() { + return publicAdvertisedPrefix; } - /** 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; + /** The name of the public advertised prefix. It should comply with RFC1035. */ + public Withdraw setPublicAdvertisedPrefix(java.lang.String publicAdvertisedPrefix) { + this.publicAdvertisedPrefix = publicAdvertisedPrefix; return this; } @@ -144216,51 +132188,51 @@ public java.lang.String getRequestId() { * 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) { + public Withdraw setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Withdraw set(String parameterName, Object value) { + return (Withdraw) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionCommitments collection. + * An accessor for creating requests from the PublicDelegatedPrefixes collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionCommitments.List request = compute.regionCommitments().list(parameters ...)}
    +   *   {@code Compute.PublicDelegatedPrefixes.List request = compute.publicDelegatedPrefixes().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionCommitments regionCommitments() { - return new RegionCommitments(); + public PublicDelegatedPrefixes publicDelegatedPrefixes() { + return new PublicDelegatedPrefixes(); } /** - * The "regionCommitments" collection of methods. + * The "publicDelegatedPrefixes" collection of methods. */ - public class RegionCommitments { + public class PublicDelegatedPrefixes { /** - * Retrieves an aggregated list of commitments by region. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "regionCommitments.aggregatedList". + * 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 Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -144269,20 +132241,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/commitments"; + private static final String REST_PATH = "projects/{project}/aggregated/publicDelegatedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "regionCommitments.aggregatedList". + * 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. @@ -144290,11 +132262,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Project ID for this request. + * @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.CommitmentAggregatedList.class); + 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(), @@ -144373,17 +132345,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** 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(), @@ -144721,27 +132693,502 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Returns the specified commitment resource. + * Announces the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "regionCommitments.get". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 for this request. - * @param commitment Name of the commitment to return. + * @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 commitment) throws java.io.IOException { - Get result = new Get(project, region, commitment); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -144749,13 +133196,13 @@ public class Get extends ComputeRequest {@link @@ -144763,12 +133210,12 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param commitment Name of the commitment to return. + * @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 commitment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Commitment.class); + 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(), @@ -144781,10 +133228,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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}"); } } @@ -144880,17 +133327,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -144901,24 +133348,24 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the commitment to return. */ + /** Name of the PublicDelegatedPrefix resource to return. */ @com.google.api.client.util.Key - private java.lang.String commitment; + private java.lang.String publicDelegatedPrefix; - /** Name of the commitment to return. + /** Name of the PublicDelegatedPrefix resource to return. */ - public java.lang.String getCommitment() { - return commitment; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** Name of the commitment to return. */ - public Get setCommitment(java.lang.String commitment) { + /** Name of the PublicDelegatedPrefix resource to return. */ + public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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.commitment = commitment; + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -144928,19 +133375,20 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a commitment in the specified project using the data included in the request. + * 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 "regionCommitments.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.Commitment} + * @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.Commitment content) throws java.io.IOException { + 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; @@ -144948,7 +133396,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -144957,9 +133405,10 @@ public class Insert extends ComputeRequest {@link @@ -144967,11 +133416,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.Commitment content) { + 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()) { @@ -145068,17 +133517,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -145144,15 +133593,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of commitments contained within the specified region. + * Lists the PublicDelegatedPrefixes for a project in the given region. * - * Create a request for the method "regionCommitments.list". + * 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 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 { @@ -145161,9 +133610,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -145172,9 +133621,9 @@ public class List extends ComputeRequest {@link @@ -145182,11 +133631,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.CommitmentList.class); + 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(), @@ -145292,17 +133741,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -145583,230 +134032,29 @@ public List set(String parameterName, Object value) { } } /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionCommitments.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}/commitments/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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 "regionCommitments.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}"); - } - } - - @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 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. + * 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 "regionCommitments.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 commitment Name of the commitment that you want to update. - * @param content the {@link com.google.api.services.compute.model.Commitment} + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @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); + 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 Update extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -145814,28 +134062,27 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 commitment Name of the commitment that you want to update. - * @param content the {@link com.google.api.services.compute.model.Commitment} + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @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) { + 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()) { @@ -145849,72 +134096,72 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -145928,7 +134175,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -145949,7 +134196,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Update setRegion(java.lang.String region) { + 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 " + @@ -145959,39 +134206,24 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the commitment that you want to update. */ + /** Name of the PublicDelegatedPrefix resource to patch. */ @com.google.api.client.util.Key - private java.lang.String commitment; + private java.lang.String publicDelegatedPrefix; - /** Name of the commitment that you want to update. + /** Name of the PublicDelegatedPrefix resource to patch. */ - public java.lang.String getCommitment() { - return commitment; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** Name of the commitment that you want to update. */ - public Update setCommitment(java.lang.String commitment) { + /** Name of the PublicDelegatedPrefix resource to patch. */ + public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(COMMITMENT_PATTERN.matcher(commitment).matches(), - "Parameter commitment must conform to the pattern " + + 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.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; + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -146039,85 +134271,62 @@ public java.lang.String getRequestId() { * 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) { + 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 Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment. + * Withdraws the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "regionCommitments.updateReservations". + * 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 UpdateReservations#execute()} method to invoke the remote operation. + * parameters, call the {@link Withdraw#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 for which the reservations are being updated. - * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} + * @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 UpdateReservations updateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) throws java.io.IOException { - UpdateReservations result = new UpdateReservations(project, region, commitment, content); + 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 UpdateReservations extends ComputeRequest { + public class Withdraw extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}/updateReservations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); - /** - * Transfers GPUs or Local SSD disks between reservations that are attached to the same - * commitment. + * Withdraws the specified PublicDelegatedPrefix in the given region. * - * Create a request for the method "regionCommitments.updateReservations". + * 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 UpdateReservations#execute()} method to invoke the remote - * operation.

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

    + * 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 Name of the region for this request. - * @param commitment Name of the commitment for which the reservations are being updated. - * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} + * @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 UpdateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -146125,714 +134334,227 @@ protected UpdateReservations(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public UpdateReservations set$Xgafv(java.lang.String $Xgafv) { - return (UpdateReservations) super.set$Xgafv($Xgafv); - } - - @Override - public UpdateReservations setAccessToken(java.lang.String accessToken) { - return (UpdateReservations) super.setAccessToken(accessToken); - } - - @Override - public UpdateReservations setAlt(java.lang.String alt) { - return (UpdateReservations) super.setAlt(alt); - } - - @Override - public UpdateReservations setCallback(java.lang.String callback) { - return (UpdateReservations) super.setCallback(callback); - } - - @Override - public UpdateReservations setFields(java.lang.String fields) { - return (UpdateReservations) super.setFields(fields); - } - - @Override - public UpdateReservations setKey(java.lang.String key) { - return (UpdateReservations) super.setKey(key); - } - - @Override - public UpdateReservations setOauthToken(java.lang.String oauthToken) { - return (UpdateReservations) super.setOauthToken(oauthToken); - } - - @Override - public UpdateReservations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateReservations) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpdateReservations setQuotaUser(java.lang.String quotaUser) { - return (UpdateReservations) super.setQuotaUser(quotaUser); - } - - @Override - public UpdateReservations setUploadType(java.lang.String uploadType) { - return (UpdateReservations) super.setUploadType(uploadType); - } - - @Override - public UpdateReservations setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateReservations) super.setUploadProtocol(uploadProtocol); - } - - @Override - public UpdateReservations setUserIp(java.lang.String userIp) { - return (UpdateReservations) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public UpdateReservations setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[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 UpdateReservations setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter 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 for which the reservations are being updated. */ - @com.google.api.client.util.Key - private java.lang.String commitment; - - /** Name of the commitment for which the reservations are being updated. - */ - public java.lang.String getCommitment() { - return commitment; - } - - /** Name of the commitment for which the reservations are being updated. */ - public UpdateReservations 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public UpdateReservations setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public UpdateReservations set(String parameterName, Object value) { - return (UpdateReservations) 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Withdraw set$Xgafv(java.lang.String $Xgafv) { + return (Withdraw) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Withdraw setAccessToken(java.lang.String accessToken) { + return (Withdraw) super.setAccessToken(accessToken); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Withdraw setAlt(java.lang.String alt) { + return (Withdraw) super.setAlt(alt); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Withdraw setCallback(java.lang.String callback) { + return (Withdraw) super.setCallback(callback); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Withdraw setFields(java.lang.String fields) { + return (Withdraw) super.setFields(fields); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Withdraw setKey(java.lang.String key) { + return (Withdraw) super.setKey(key); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Withdraw setOauthToken(java.lang.String oauthToken) { + return (Withdraw) super.setOauthToken(oauthToken); } @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; + public Withdraw setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Withdraw) super.setPrettyPrint(prettyPrint); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if 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; + @Override + public Withdraw setQuotaUser(java.lang.String quotaUser) { + return (Withdraw) super.setQuotaUser(quotaUser); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Withdraw setUploadType(java.lang.String uploadType) { + return (Withdraw) super.setUploadType(uploadType); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Withdraw setUploadProtocol(java.lang.String uploadProtocol) { + return (Withdraw) super.setUploadProtocol(uploadProtocol); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Withdraw setUserIp(java.lang.String userIp) { + return (Withdraw) super.setUserIp(userIp); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * 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 pageToken; + private java.lang.String region; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of theregion where the public delegated prefix is located. It should comply with RFC1035. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRegion() { + return region; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * The name of theregion where the public delegated prefix is located. It should comply with + * RFC1035. */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Withdraw setRegion(java.lang.String region) { + this.region = region; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The name of the public delegated prefix. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String publicDelegatedPrefix; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The name of the public delegated prefix. It should comply with RFC1035. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** The name of the public delegated prefix. It should comply with RFC1035. */ + public Withdraw setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String requestId; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getRequestId() { + return requestId; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public Withdraw setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + 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 CompositeHealthCheck in the given region + * Deletes the specified autoscaler. * - * Create a request for the method "regionCompositeHealthChecks.delete". + * 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 compositeHealthCheck Name of the CompositeHealthCheck resource to delete. + * @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 compositeHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, region, compositeHealthCheck); + 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}/compositeHealthChecks/{compositeHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -146840,13 +134562,13 @@ public class Delete extends ComputeRequest {@link @@ -146855,10 +134577,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers/{autoscaler}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147086,13 +134808,13 @@ public class Get extends ComputeRequest {@link @@ -147101,11 +134823,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147295,10 +135016,9 @@ public class Insert extends ComputeRequest {@link @@ -147307,10 +135027,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147511,9 +135231,9 @@ public class List extends ComputeRequest {@link @@ -147525,7 +135245,7 @@ public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/autoscalers"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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])?"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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])?"); + } + } + + @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 pageToken; + private java.lang.String autoscaler; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the autoscaler to update. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getAutoscaler() { + return autoscaler; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + 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 { + /** - * 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. + * Deletes the specified regional BackendBucket resource. * - * Create a request for the method "regionCompositeHealthChecks.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 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} + * @param backendBucket Name of the BackendBucket resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -147955,28 +136375,26 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 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} + * @param backendBucket Name of the BackendBucket resource to delete. * @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); + 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(), @@ -147989,67 +136407,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148063,7 +136486,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -148084,7 +136507,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + 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 " + @@ -148094,26 +136517,47 @@ public Patch setRegion(java.lang.String 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; + } + /** - * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and - * comply with RFC1035. + * Force delete the backend bucket even if it is still in use by other resources. It's + * intended to be used internally only for requests from wipeout. */ @com.google.api.client.util.Key - private java.lang.String compositeHealthCheck; + private java.lang.Boolean forceDelete; - /** Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and comply with - RFC1035. + /** Force delete the backend bucket even if it is still in use by other resources. It's intended to be + used internally only for requests from wipeout. */ - public java.lang.String getCompositeHealthCheck() { - return compositeHealthCheck; + public java.lang.Boolean getForceDelete() { + return forceDelete; } /** - * Name of the CompositeHealthCheck to update. The name must be 1-63 characters long, and - * comply with RFC1035. + * Force delete the backend bucket even if it is still in use by other resources. It's + * intended to be used internally only for requests from wipeout. */ - public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { - this.compositeHealthCheck = compositeHealthCheck; + public Delete setForceDelete(java.lang.Boolean forceDelete) { + this.forceDelete = forceDelete; return this; } @@ -148128,7 +136572,7 @@ public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -148142,7 +136586,7 @@ public Patch setCompositeHealthCheck(java.lang.String compositeHealthCheck) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -148159,41 +136603,40 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified regional BackendBucket resource. * - * Create a request for the method "regionCompositeHealthChecks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148201,28 +136644,26 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. + * @param backendBucket Name of the BackendBucket resource to return. * @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); + 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(), @@ -148235,72 +136676,82 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -148314,7 +136765,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -148324,18 +136775,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String 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 " + @@ -148345,76 +136796,54 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the BackendBucket resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String backendBucket; - /** Name or id of the resource for this request. + /** Name of the BackendBucket resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getBackendBucket() { + return backendBucket; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the BackendBucket resource to return. */ + public Get setBackendBucket(java.lang.String backendBucket) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.backendBucket = backendBucket; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionDiskSettings collection. - * - *

    The typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionDiskSettings.List request = compute.regionDiskSettings().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public RegionDiskSettings regionDiskSettings() { - return new RegionDiskSettings(); - } - - /** - * The "regionDiskSettings" collection of methods. - */ - public class RegionDiskSettings { - /** - * Get Regional Disk Settings. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionDiskSettings.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region 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 Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); + 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 Get extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148422,22 +136851,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region 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 Get(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskSettings.class); + 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(), @@ -148450,6 +136885,12 @@ protected Get(java.lang.String project, java.lang.String region) { "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}"); + } } @Override @@ -148463,63 +136904,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148533,7 +136974,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -148543,18 +136984,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -148564,33 +137005,71 @@ public Get setRegion(java.lang.String 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Patch Regional Disk Settings + * 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 "regionDiskSettings.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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.DiskSettings} + * @param region Name of the region of this request. + * @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, com.google.api.services.compute.model.DiskSettings content) throws java.io.IOException { - Patch result = new Patch(project, region, content); + 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 Patch extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148599,22 +137078,23 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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.DiskSettings} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.BackendBucket} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DiskSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -148630,63 +137110,63 @@ protected Patch(java.lang.String project, java.lang.String region, com.google.ap } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -148700,7 +137180,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -148710,18 +137190,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -148775,77 +137255,38 @@ public java.lang.String getRequestId() { * 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) { + public Insert 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); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves the list of BackendBucket resources available to the specified project in the given + * region. * - * Create a request for the method "regionDiskTypes.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. - * @param diskType Name of the disk type to return. + * @param region Name of the region of this request. * @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); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -148853,26 +137294,23 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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. - * @param diskType Name of the disk type to return. + * @param region Name of the region of this request. * @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); + 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(), @@ -148885,12 +137323,6 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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}"); - } } @Override @@ -148904,154 +137336,398 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + 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; } - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** The name of the region for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of the region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name of the disk type to return. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String diskType; + private java.lang.Boolean returnPartialSuccess; - /** Name of the disk type to return. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getDiskType() { - return diskType; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves a list of regional disk types available to the specified project. + * Retrieves a list of all usable backend buckets in the specified project in the given region. * - * Create a request for the method "regionDiskTypes.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link ListUsable#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 region Name of the region scoping this request. + It must be a string that meets the requirements in 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); + 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 List extends ComputeRequest { + public class ListUsable extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/listUsable"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -149060,21 +137736,23 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 The name of the region 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionDiskTypeList.class); + 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(), @@ -149100,63 +137778,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListUsable set$Xgafv(java.lang.String $Xgafv) { + return (ListUsable) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListUsable setAccessToken(java.lang.String accessToken) { + return (ListUsable) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListUsable setAlt(java.lang.String alt) { + return (ListUsable) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListUsable setCallback(java.lang.String callback) { + return (ListUsable) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListUsable setFields(java.lang.String fields) { + return (ListUsable) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListUsable setKey(java.lang.String key) { + return (ListUsable) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListUsable setOauthToken(java.lang.String oauthToken) { + return (ListUsable) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListUsable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListUsable) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListUsable setQuotaUser(java.lang.String quotaUser) { + return (ListUsable) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListUsable setUploadType(java.lang.String uploadType) { + return (ListUsable) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListUsable setUploadProtocol(java.lang.String uploadProtocol) { + return (ListUsable) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListUsable setUserIp(java.lang.String userIp) { + return (ListUsable) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -149170,7 +137848,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -149180,18 +137858,25 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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; - /** The name of the region for this request. + /** 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; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String 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 " + @@ -149332,7 +138017,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListUsable setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -149361,7 +138046,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListUsable setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -149405,7 +138090,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListUsable setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -149428,7 +138113,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListUsable setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -149460,63 +138145,40 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListUsable set(String parameterName, Object value) { + return (ListUsable) 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. + * 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 "regionDisks.addResourcePolicies". + * 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 AddResourcePolicies#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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} + * @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 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); + 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 AddResourcePolicies extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{backendBucket}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -149524,29 +138186,28 @@ public class AddResourcePolicies extends ComputeRequest {@link AddResourcePolicies#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -149559,72 +138220,72 @@ protected AddResourcePolicies(java.lang.String project, java.lang.String region, "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -149638,7 +138299,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddResourcePolicies setProject(java.lang.String project) { + 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 " + @@ -149648,18 +138309,18 @@ public AddResourcePolicies setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public AddResourcePolicies setRegion(java.lang.String 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 " + @@ -149669,24 +138330,24 @@ public AddResourcePolicies setRegion(java.lang.String region) { return this; } - /** The disk name for this request. */ + /** Name of the BackendBucket resource to patch. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String backendBucket; - /** The disk name for this request. + /** Name of the BackendBucket resource to patch. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getBackendBucket() { + return backendBucket; } - /** The disk name for this request. */ - public AddResourcePolicies setDisk(java.lang.String disk) { + /** Name of the BackendBucket resource to patch. */ + public Patch setBackendBucket(java.lang.String backendBucket) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + this.backendBucket = backendBucket; return this; } @@ -149701,7 +138362,7 @@ public AddResourcePolicies setDisk(java.lang.String disk) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -149715,7 +138376,7 @@ public AddResourcePolicies setDisk(java.lang.String disk) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -149732,40 +138393,41 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public AddResourcePolicies setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddResourcePolicies set(String parameterName, Object value) { - return (AddResourcePolicies) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Bulk create a set of disks. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionDisks.bulkInsert". + * 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 BulkInsert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @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 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); + 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 BulkInsert extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -149773,24 +138435,28 @@ public class BulkInsert extends ComputeRequest + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * BulkInsert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 content the {@link com.google.api.services.compute.model.BulkInsertDiskResource} + * @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 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); + 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(), @@ -149803,66 +138469,72 @@ protected BulkInsert(java.lang.String project, java.lang.String region, com.goog "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}"); + } } @Override - public BulkInsert set$Xgafv(java.lang.String $Xgafv) { - return (BulkInsert) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public BulkInsert setAccessToken(java.lang.String accessToken) { - return (BulkInsert) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public BulkInsert setAlt(java.lang.String alt) { - return (BulkInsert) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public BulkInsert setCallback(java.lang.String callback) { - return (BulkInsert) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public BulkInsert setFields(java.lang.String fields) { - return (BulkInsert) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public BulkInsert setKey(java.lang.String key) { - return (BulkInsert) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public BulkInsert setOauthToken(java.lang.String oauthToken) { - return (BulkInsert) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkInsert) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public BulkInsert setQuotaUser(java.lang.String quotaUser) { - return (BulkInsert) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public BulkInsert setUploadType(java.lang.String uploadType) { - return (BulkInsert) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkInsert) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public BulkInsert setUserIp(java.lang.String userIp) { - return (BulkInsert) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -149876,7 +138548,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public BulkInsert setProject(java.lang.String project) { + 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 " + @@ -149897,7 +138569,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public BulkInsert setRegion(java.lang.String region) { + 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 " + @@ -149907,85 +138579,55 @@ public BulkInsert setRegion(java.lang.String 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionDisks.createSnapshot". + * 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 CreateSnapshot#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 CreateSnapshot extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendBuckets/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -149993,30 +138635,28 @@ public class CreateSnapshot extends ComputeRequest {@link CreateSnapshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 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} + * @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 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); + 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(), @@ -150029,72 +138669,72 @@ protected CreateSnapshot(java.lang.String project, java.lang.String region, java "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { - return (CreateSnapshot) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public CreateSnapshot setAccessToken(java.lang.String accessToken) { - return (CreateSnapshot) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public CreateSnapshot setAlt(java.lang.String alt) { - return (CreateSnapshot) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public CreateSnapshot setCallback(java.lang.String callback) { - return (CreateSnapshot) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public CreateSnapshot setFields(java.lang.String fields) { - return (CreateSnapshot) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public CreateSnapshot setKey(java.lang.String key) { - return (CreateSnapshot) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public CreateSnapshot setOauthToken(java.lang.String oauthToken) { - return (CreateSnapshot) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateSnapshot) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { - return (CreateSnapshot) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public CreateSnapshot setUploadType(java.lang.String uploadType) { - return (CreateSnapshot) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public CreateSnapshot setUserIp(java.lang.String userIp) { - return (CreateSnapshot) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -150108,7 +138748,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateSnapshot setProject(java.lang.String project) { + 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 " + @@ -150118,18 +138758,18 @@ public CreateSnapshot setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -150139,105 +138779,77 @@ public CreateSnapshot setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to snapshot. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String resource; - /** Name of the regional persistent disk to snapshot. + /** Name or id of the resource for this request. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getResource() { + return resource; } - /** Name of the regional persistent disk to snapshot. */ - public CreateSnapshot setDisk(java.lang.String disk) { + /** 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.disk = disk; + 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. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionBackendServices" collection of methods. + */ + public class RegionBackendServices { - @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. + * Deletes the specified regional BackendService resource. * - * Create a request for the method "regionDisks.delete". + * 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 for this request. - * @param disk Name of the regional persistent disk to delete. + * @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 disk) throws java.io.IOException { - Delete result = new Delete(project, region, disk); + 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}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150245,15 +138857,13 @@ public class Delete extends ComputeRequest {@link @@ -150261,11 +138871,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 disk) { + 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()) { @@ -150279,11 +138889,11 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); + 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}"); } } @@ -150368,17 +138978,17 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -150389,24 +138999,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to delete. */ + /** Name of the BackendService resource to delete. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String backendService; - /** Name of the regional persistent disk to delete. + /** Name of the BackendService resource to delete. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getBackendService() { + return backendService; } - /** Name of the regional persistent disk to delete. */ - public Delete setDisk(java.lang.String disk) { + /** Name of the BackendService resource to delete. */ + public Delete setBackendService(java.lang.String backendService) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + - "\\S{1,66}"); + 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.disk = disk; + this.backendService = backendService; return this; } @@ -150434,58 +139044,266 @@ public Delete setDisk(java.lang.String disk) { with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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 getRequestId() { - return requestId; + public java.lang.String getBackendService() { + return backendService; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns a specified regional persistent disk. + * Gets the most recent health check results for this regional BackendService. * - * Create a request for the method "regionDisks.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 for this request. - * @param disk Name of the regional persistent disk to return. + * @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 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); + 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 Get extends ComputeRequest { + public class GetHealth extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/getHealth"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150493,26 +139311,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 for this request. - * @param disk Name of the regional persistent disk to return. + * @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 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); + 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(), @@ -150525,96 +139345,85 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetHealth set$Xgafv(java.lang.String $Xgafv) { + return (GetHealth) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetHealth setAccessToken(java.lang.String accessToken) { + return (GetHealth) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetHealth setAlt(java.lang.String alt) { + return (GetHealth) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetHealth setCallback(java.lang.String callback) { + return (GetHealth) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetHealth setFields(java.lang.String fields) { + return (GetHealth) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetHealth setKey(java.lang.String key) { + return (GetHealth) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetHealth setOauthToken(java.lang.String oauthToken) { + return (GetHealth) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetHealth setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetHealth) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetHealth setQuotaUser(java.lang.String quotaUser) { + return (GetHealth) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetHealth setUploadType(java.lang.String uploadType) { + return (GetHealth) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetHealth setUploadProtocol(java.lang.String uploadProtocol) { + return (GetHealth) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + 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 Get setProject(java.lang.String 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 " + @@ -150624,18 +139433,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -150645,36 +139454,36 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk to return. */ + /** Name of the BackendService resource for which to get health. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String backendService; - /** Name of the regional persistent disk to return. + /** Name of the BackendService resource for which to get health. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getBackendService() { + return backendService; } - /** Name of the regional persistent disk to return. */ - public Get setDisk(java.lang.String disk) { + /** 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + this.backendService = backendService; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + 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 "regionDisks.getIamPolicy". + * 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. @@ -150692,7 +139501,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String regi public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150707,7 +139516,7 @@ public class GetIamPolicy extends ComputeRequest @@ -150897,20 +139706,20 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a persistent regional disk in the specified project using the data included in the - * request. + * 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 "regionDisks.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.Disk} + * @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.Disk content) throws java.io.IOException { + 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; @@ -150918,7 +139727,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -150927,10 +139736,10 @@ public class Insert extends ComputeRequest {@link @@ -150938,11 +139747,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.Disk content) { + 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()) { @@ -151039,17 +139848,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -151109,37 +139918,22 @@ public Insert setRequestId(java.lang.String 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. + * Retrieves the list of regional BackendService resources available to the specified project in the + * given region. * - * Create a request for the method "regionDisks.list". + * 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 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 { @@ -151148,9 +139942,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -151159,9 +139953,10 @@ public class List extends ComputeRequest {@link @@ -151169,11 +139964,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.DiskList.class); + 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(), @@ -151279,17 +140074,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -151570,29 +140365,716 @@ public List set(String parameterName, Object value) { } } /** - * Removes resource policies from a regional disk. + * Retrieves a list of all usable backend services in the specified project in the given region. * - * Create a request for the method "regionDisks.removeResourcePolicies". + * 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 RemoveResourcePolicies#execute()} method to invoke the remote - * operation. + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 in the specified project in the given region. + * + * 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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListUsable setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} + * @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 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); + 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 RemoveResourcePolicies extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -151600,28 +141082,28 @@ public class RemoveResourcePolicies extends ComputeRequest {@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 disk The disk name for this request. - * @param content the {@link com.google.api.services.compute.model.RegionDisksRemoveResourcePoliciesRequest} + * @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 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); + 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(), @@ -151634,72 +141116,72 @@ protected RemoveResourcePolicies(java.lang.String project, java.lang.String regi "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -151713,7 +141195,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveResourcePolicies setProject(java.lang.String project) { + 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 " + @@ -151734,7 +141216,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public RemoveResourcePolicies setRegion(java.lang.String region) { + 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 " + @@ -151744,104 +141226,58 @@ public RemoveResourcePolicies setRegion(java.lang.String region) { return this; } - /** The disk name for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String resource; - /** The disk name for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getResource() { + return resource; } - /** The disk name for this request. */ - public RemoveResourcePolicies setDisk(java.lang.String disk) { + /** 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public RemoveResourcePolicies set(String parameterName, Object value) { - return (RemoveResourcePolicies) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Resizes the specified regional persistent disk. + * 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 "regionDisks.resize". + * 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 Resize#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSecurityPolicy#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} + * @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 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); + 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 Resize extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -151849,26 +141285,27 @@ public class Resize extends ComputeRequest {@link - * Resize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 Resize(java.lang.String project, java.lang.String region, java.lang.String disk, com.google.api.services.compute.model.RegionDisksResizeRequest content) { + 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()) { @@ -151882,86 +141319,81 @@ protected Resize(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } + this.backendService = com.google.api.client.util.Preconditions.checkNotNull(backendService, "Required parameter backendService must be specified."); } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** 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) { + /** 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 " + @@ -151971,18 +141403,18 @@ public Resize setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Resize setRegion(java.lang.String 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 " + @@ -151992,24 +141424,26 @@ public Resize setRegion(java.lang.String region) { return this; } - /** Name of the regional persistent disk. */ + /** + * 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 disk; + private java.lang.String backendService; - /** Name of the regional persistent disk. + /** Name of the BackendService resource to which the security policy should be set. The name should + conform to RFC1035. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getBackendService() { + return backendService; } - /** 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; + /** + * 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; } @@ -152057,39 +141491,39 @@ public java.lang.String getRequestId() { * 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) { + public SetSecurityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionDisks.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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.RegionSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -152101,24 +141535,24 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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.RegionSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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); + 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(), @@ -152140,63 +141574,63 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -152210,7 +141644,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -152231,7 +141665,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + 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 " + @@ -152252,7 +141686,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -152263,33 +141697,34 @@ public SetIamPolicy setResource(java.lang.String resource) { } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Sets the labels on the target regional disk. + * 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 "regionDisks.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#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} + * @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 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); + 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 SetLabels extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/backendServices/{backendService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -152297,28 +141732,28 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -152331,72 +141766,72 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -152410,7 +141845,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -152420,18 +141855,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String 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 " + @@ -152441,24 +141876,24 @@ public SetLabels setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the BackendService resource to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String backendService; - /** Name or id of the resource for this request. + /** Name of the BackendService resource to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getBackendService() { + return backendService; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the BackendService resource to update. */ + public Update setBackendService(java.lang.String backendService) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.backendService = backendService; return this; } @@ -152506,40 +141941,532 @@ public java.lang.String getRequestId() { * 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) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + 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 { + /** - * Starts asynchronous replication. Must be invoked on the primary disk. + * Retrieves an aggregated list of commitments by region. * - * Create a request for the method "regionDisks.startAsyncReplication". + * 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 StartAsyncReplication#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class StartAsyncReplication extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; + private static final String REST_PATH = "projects/{project}/aggregated/commitments"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -152547,28 +142474,26 @@ public class StartAsyncReplication extends ComputeRequest {@link StartAsyncReplication#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 disk The name of the persistent disk. - * @param content the {@link com.google.api.services.compute.model.RegionDisksStartAsyncReplicationRequest} + * @param region Name of the region for this request. + * @param commitment Name of the commitment to return. * @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); + 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(), @@ -152581,72 +142506,82 @@ protected StartAsyncReplication(java.lang.String project, java.lang.String regio "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @Override - public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StartAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StartAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StartAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StartAsyncReplication setAlt(java.lang.String alt) { - return (StartAsyncReplication) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public StartAsyncReplication setCallback(java.lang.String callback) { - return (StartAsyncReplication) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public StartAsyncReplication setFields(java.lang.String fields) { - return (StartAsyncReplication) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public StartAsyncReplication setKey(java.lang.String key) { - return (StartAsyncReplication) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StartAsyncReplication) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StartAsyncReplication) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public StartAsyncReplication setUploadType(java.lang.String uploadType) { - return (StartAsyncReplication) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public StartAsyncReplication setUserIp(java.lang.String userIp) { - return (StartAsyncReplication) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -152660,7 +142595,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -152670,18 +142605,18 @@ public StartAsyncReplication setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -152691,104 +142626,54 @@ public StartAsyncReplication setRegion(java.lang.String region) { return this; } - /** The name of the persistent disk. */ + /** Name of the commitment to return. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String commitment; - /** The name of the persistent disk. + /** Name of the commitment to return. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getCommitment() { + return commitment; } - /** The name of the persistent disk. */ - public StartAsyncReplication setDisk(java.lang.String disk) { + /** Name of the commitment to return. */ + public Get setCommitment(java.lang.String commitment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.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; + this.commitment = commitment; return this; } @Override - public StartAsyncReplication set(String parameterName, Object value) { - return (StartAsyncReplication) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + * Creates a commitment in the specified project using the data included in the request. * - * Create a request for the method "regionDisks.stopAsyncReplication". + * 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 StopAsyncReplication#execute()} method to invoke the remote - * operation. + * 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 disk The name of the persistent disk. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Commitment} * @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); + 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 StopAsyncReplication extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -152796,27 +142681,23 @@ public class StopAsyncReplication extends ComputeRequest {@link StopAsyncReplication#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 disk The name of the persistent disk. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.Commitment} * @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); + 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(), @@ -152829,72 +142710,66 @@ protected StopAsyncReplication(java.lang.String project, java.lang.String region "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}"); - } } @Override - public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopAsyncReplication) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public StopAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopAsyncReplication) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public StopAsyncReplication setAlt(java.lang.String alt) { - return (StopAsyncReplication) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public StopAsyncReplication setCallback(java.lang.String callback) { - return (StopAsyncReplication) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public StopAsyncReplication setFields(java.lang.String fields) { - return (StopAsyncReplication) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public StopAsyncReplication setKey(java.lang.String key) { - return (StopAsyncReplication) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopAsyncReplication) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopAsyncReplication) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public StopAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopAsyncReplication) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public StopAsyncReplication setUserIp(java.lang.String userIp) { - return (StopAsyncReplication) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -152908,7 +142783,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -152918,18 +142793,18 @@ public StopAsyncReplication setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -152939,27 +142814,6 @@ public StopAsyncReplication setRegion(java.lang.String 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 @@ -153004,42 +142858,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public StopAsyncReplication set(String parameterName, Object value) { - return (StopAsyncReplication) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Stops asynchronous replication for a consistency group of disks. Can be invoked either in the - * primary or secondary scope. + * Retrieves a list of commitments contained within the specified region. * - * Create a request for the method "regionDisks.stopGroupAsyncReplication". + * 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 StopGroupAsyncReplication#execute()} method to invoke the remote - * operation. + * 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. 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} + * @param region Name of the region for this request. * @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); + 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 StopGroupAsyncReplication extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -153048,26 +142897,21 @@ public class StopGroupAsyncReplication extends ComputeRequest {@link StopGroupAsyncReplication#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * 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. 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} + * @param region Name of the region for this request. * @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); + 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(), @@ -153083,63 +142927,73 @@ protected StopGroupAsyncReplication(java.lang.String project, java.lang.String r } @Override - public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { - return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { - return (StopGroupAsyncReplication) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StopGroupAsyncReplication setAlt(java.lang.String alt) { - return (StopGroupAsyncReplication) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public StopGroupAsyncReplication setCallback(java.lang.String callback) { - return (StopGroupAsyncReplication) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public StopGroupAsyncReplication setFields(java.lang.String fields) { - return (StopGroupAsyncReplication) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public StopGroupAsyncReplication setKey(java.lang.String key) { - return (StopGroupAsyncReplication) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { - return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { - return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { - return (StopGroupAsyncReplication) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { - return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { - return (StopGroupAsyncReplication) super.setUserIp(userIp); + 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. */ @@ -153153,7 +143007,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopGroupAsyncReplication setProject(java.lang.String project) { + 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 " + @@ -153163,25 +143017,18 @@ public StopGroupAsyncReplication setProject(java.lang.String 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. - */ + /** 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. This must be the region of the primary or secondary disks - in the consistency group. + /** Name of the region for this request. */ 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) { + /** 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 " + @@ -153192,63 +143039,278 @@ public StopGroupAsyncReplication setRegion(java.lang.String region) { } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public StopGroupAsyncReplication setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public StopGroupAsyncReplication set(String parameterName, Object value) { - return (StopGroupAsyncReplication) super.set(parameterName, value); + 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 "regionDisks.testIamPermissions". + * Create a request for the method "regionCommitments.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. @@ -153267,7 +143329,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -153281,7 +143343,7 @@ public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -153476,14 +143539,15 @@ public class Update extends ComputeRequest {@link @@ -153491,12 +143555,12 @@ public class Update extends ComputeRequest * * @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} + * @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 disk, com.google.api.services.compute.model.Disk content) { + 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()) { @@ -153510,10 +143574,10 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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}"); } } @@ -153599,17 +143663,17 @@ public Update setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ + /** 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(), @@ -153620,24 +143684,24 @@ public Update setRegion(java.lang.String region) { return this; } - /** The disk name for this request. */ + /** Name of the commitment that you want to update. */ @com.google.api.client.util.Key - private java.lang.String disk; + private java.lang.String commitment; - /** The disk name for this request. + /** Name of the commitment that you want to update. */ - public java.lang.String getDisk() { - return disk; + public java.lang.String getCommitment() { + return commitment; } - /** The disk name for this request. */ - public Update setDisk(java.lang.String disk) { + /** 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(DISK_PATTERN.matcher(disk).matches(), - "Parameter disk must conform to the pattern " + + 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.disk = disk; + this.commitment = commitment; return this; } @@ -153726,37 +143790,287 @@ public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } + /** + * Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment. + * + * Create a request for the method "regionCommitments.updateReservations". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdateReservations#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 for which the reservations are being updated. + * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} + * @return the request + */ + public UpdateReservations updateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) throws java.io.IOException { + UpdateReservations result = new UpdateReservations(project, region, commitment, content); + initialize(result); + return result; + } + + public class UpdateReservations extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/commitments/{commitment}/updateReservations"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + + /** + * Transfers GPUs or Local SSD disks between reservations that are attached to the same + * commitment. + * + * Create a request for the method "regionCommitments.updateReservations". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdateReservations#execute()} method to invoke the remote + * operation.

    {@link UpdateReservations#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 for this request. + * @param commitment Name of the commitment for which the reservations are being updated. + * @param content the {@link com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest} + * @since 1.13 + */ + protected UpdateReservations(java.lang.String project, java.lang.String region, java.lang.String commitment, com.google.api.services.compute.model.RegionCommitmentsUpdateReservationsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } + } + + @Override + public UpdateReservations set$Xgafv(java.lang.String $Xgafv) { + return (UpdateReservations) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateReservations setAccessToken(java.lang.String accessToken) { + return (UpdateReservations) super.setAccessToken(accessToken); + } + + @Override + public UpdateReservations setAlt(java.lang.String alt) { + return (UpdateReservations) super.setAlt(alt); + } + + @Override + public UpdateReservations setCallback(java.lang.String callback) { + return (UpdateReservations) super.setCallback(callback); + } + + @Override + public UpdateReservations setFields(java.lang.String fields) { + return (UpdateReservations) super.setFields(fields); + } + + @Override + public UpdateReservations setKey(java.lang.String key) { + return (UpdateReservations) super.setKey(key); + } + + @Override + public UpdateReservations setOauthToken(java.lang.String oauthToken) { + return (UpdateReservations) super.setOauthToken(oauthToken); + } + + @Override + public UpdateReservations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateReservations) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateReservations setQuotaUser(java.lang.String quotaUser) { + return (UpdateReservations) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateReservations setUploadType(java.lang.String uploadType) { + return (UpdateReservations) super.setUploadType(uploadType); + } + + @Override + public UpdateReservations setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateReservations) super.setUploadProtocol(uploadProtocol); + } + + @Override + public UpdateReservations setUserIp(java.lang.String userIp) { + return (UpdateReservations) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public UpdateReservations setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[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 UpdateReservations setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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 for which the reservations are being updated. */ + @com.google.api.client.util.Key + private java.lang.String commitment; + + /** Name of the commitment for which the reservations are being updated. + */ + public java.lang.String getCommitment() { + return commitment; + } + + /** Name of the commitment for which the reservations are being updated. */ + public UpdateReservations 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; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public UpdateReservations setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public UpdateReservations set(String parameterName, Object value) { + return (UpdateReservations) super.set(parameterName, value); + } + } } /** - * An accessor for creating requests from the RegionHealthAggregationPolicies collection. + * An accessor for creating requests from the RegionCompositeHealthChecks collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionHealthAggregationPolicies.List request = compute.regionHealthAggregationPolicies().list(parameters ...)}
    +   *   {@code Compute.RegionCompositeHealthChecks.List request = compute.regionCompositeHealthChecks().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionHealthAggregationPolicies regionHealthAggregationPolicies() { - return new RegionHealthAggregationPolicies(); + public RegionCompositeHealthChecks regionCompositeHealthChecks() { + return new RegionCompositeHealthChecks(); } /** - * The "regionHealthAggregationPolicies" collection of methods. + * The "regionCompositeHealthChecks" collection of methods. */ - public class RegionHealthAggregationPolicies { + public class RegionCompositeHealthChecks { /** - * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to - * the specified project. + * 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 "regionHealthAggregationPolicies.aggregatedList". + * 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. @@ -153770,21 +144084,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/healthAggregationPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "regionHealthAggregationPolicies.aggregatedList". + * 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. @@ -153796,7 +144110,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -154251,13 +144565,13 @@ public class Delete extends ComputeRequest {@link @@ -154266,10 +144580,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -154497,13 +144811,13 @@ public class Get extends ComputeRequest {@link @@ -154512,11 +144826,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -154706,10 +145020,10 @@ public class Insert extends ComputeRequest {@link @@ -154718,10 +145032,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -154922,9 +145236,9 @@ public class List extends ComputeRequest {@link @@ -154936,7 +145250,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -155367,11 +145681,11 @@ public class Patch extends ComputeRequest {@link @@ -155380,13 +145694,13 @@ public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -155618,7 +145932,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -156414,7 +146039,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -156424,18 +146049,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -156445,107 +146070,76 @@ public Delete setRegion(java.lang.String region) { return this; } - /** - * Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply - * with RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheckService; + private java.lang.String resource; - /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with - RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthCheckService() { - return healthCheckService; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * An accessor for creating requests from the RegionDiskSettings collection. + * + *

    The typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.RegionDiskSettings.List request = compute.regionDiskSettings().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public RegionDiskSettings regionDiskSettings() { + return new RegionDiskSettings(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionDiskSettings" collection of methods. + */ + public class RegionDiskSettings { - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Returns the specified regional HealthCheckService resource. + * Get Regional Disk Settings. * - * Create a request for the method "regionHealthCheckServices.get". + * Create a request for the method "regionDiskSettings.get". * * This request holds the 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. + * @param region Name of the region for this request. * @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); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -156554,9 +146148,9 @@ public class Get extends ComputeRequest {@link @@ -156564,14 +146158,11 @@ public class Get extends ComputeRequest * * @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 region Name of the region for this request. * @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); + protected Get(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.DiskSettings.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -156584,7 +146175,6 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); } @Override @@ -156678,17 +146268,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -156699,57 +146289,33 @@ public Get setRegion(java.lang.String 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. + * Patch Regional Disk Settings * - * Create a request for the method "regionHealthCheckServices.insert". + * Create a request for the method "regionDiskSettings.patch". * * 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. + * 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.HealthCheckService} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.DiskSettings} * @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); + public Patch patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DiskSettings content) throws java.io.IOException { + Patch result = new Patch(project, region, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -156758,23 +146324,22 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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.HealthCheckService} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.DiskSettings} * @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); + protected Patch(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.DiskSettings 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(), @@ -156790,63 +146355,63 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -156860,7 +146425,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -156870,18 +146435,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -156935,38 +146500,77 @@ public java.lang.String getRequestId() { * 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) { + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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 { + /** - * Lists all the HealthCheckService resources that have been configured for the specified project in - * the given region. + * Returns the specified regional disk type. * - * Create a request for the method "regionHealthCheckServices.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 region The name of the region for this request. + * @param diskType Name of the disk type to return. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes/{diskType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -156974,23 +146578,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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 region The name of the region for this request. + * @param diskType Name of the disk type to return. * @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); + 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(), @@ -157003,6 +146610,12 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override @@ -157016,63 +146629,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -157086,7 +146699,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -157096,18 +146709,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String 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 " + @@ -157117,301 +146730,53 @@ public List setRegion(java.lang.String region) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the disk type to return. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String diskType; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the disk type to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getDiskType() { + return diskType; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Retrieves a list of regional disk types available to the specified project. * - * Create a request for the method "regionHealthCheckServices.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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. - * @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} + * @param region The name of the region for this request. * @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); + 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 Patch extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/diskTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -157420,27 +146785,21 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @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} + * @param region The name of the region for this request. * @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); + 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(), @@ -157453,67 +146812,76 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + 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. */ @@ -157527,7 +146895,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -157537,18 +146905,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -157559,327 +146927,321 @@ public Patch setRegion(java.lang.String region) { } /** - * 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` * - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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. + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. * - * Create a request for the method "regionHealthCheckServices.testIamPermissions". + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` * - * 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.

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

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionHealthChecks.List request = compute.regionHealthChecks().list(parameters ...)}
    +   *   {@code Compute.RegionDisks.List request = compute.regionDisks().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionHealthChecks regionHealthChecks() { - return new RegionHealthChecks(); + public RegionDisks regionDisks() { + return new RegionDisks(); } /** - * The "regionHealthChecks" collection of methods. + * The "regionDisks" collection of methods. */ - public class RegionHealthChecks { + public class RegionDisks { /** - * Deletes the specified HealthCheck resource. + * 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 "regionHealthChecks.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link AddResourcePolicies#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class AddResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -157887,26 +147249,29 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to delete. + * @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 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); + 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(), @@ -157919,72 +147284,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -157998,7 +147363,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -158008,18 +147373,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -158029,24 +147394,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to delete. */ + /** The disk name for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String disk; - /** Name of the HealthCheck resource to delete. + /** The disk name for this request. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getDisk() { + return disk; } - /** Name of the HealthCheck resource to delete. */ - public Delete setHealthCheck(java.lang.String healthCheck) { + /** The disk name for this request. */ + public AddResourcePolicies setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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.healthCheck = healthCheck; + this.disk = disk; return this; } @@ -158094,38 +147459,38 @@ public java.lang.String getRequestId() { * 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) { + public AddResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); } } /** - * Returns the specified HealthCheck resource. + * Bulk create a set of disks. * - * Create a request for the method "regionHealthChecks.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link BulkInsert#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. + * @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 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); + 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 Get extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/bulkInsert"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -158133,26 +147498,24 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param healthCheck Name of the HealthCheck resource to return. + * @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 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); + 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(), @@ -158165,82 +147528,66 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158254,7 +147601,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -158264,18 +147611,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -158285,54 +147632,85 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to return. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String requestId; - /** Name of the HealthCheck resource to return. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); } } /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * 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 "regionHealthChecks.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @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 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); + 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 Insert extends ComputeRequest { + public class CreateSnapshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/createSnapshot"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -158340,22 +147718,29 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthCheck content) { + 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()) { @@ -158369,66 +147754,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public CreateSnapshot set$Xgafv(java.lang.String $Xgafv) { + return (CreateSnapshot) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public CreateSnapshot setAccessToken(java.lang.String accessToken) { + return (CreateSnapshot) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public CreateSnapshot setAlt(java.lang.String alt) { + return (CreateSnapshot) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public CreateSnapshot setCallback(java.lang.String callback) { + return (CreateSnapshot) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public CreateSnapshot setFields(java.lang.String fields) { + return (CreateSnapshot) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public CreateSnapshot setKey(java.lang.String key) { + return (CreateSnapshot) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public CreateSnapshot setOauthToken(java.lang.String oauthToken) { + return (CreateSnapshot) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public CreateSnapshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateSnapshot) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public CreateSnapshot setQuotaUser(java.lang.String quotaUser) { + return (CreateSnapshot) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public CreateSnapshot setUploadType(java.lang.String uploadType) { + return (CreateSnapshot) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public CreateSnapshot setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateSnapshot) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public CreateSnapshot setUserIp(java.lang.String userIp) { + return (CreateSnapshot) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158442,7 +147833,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -158452,18 +147843,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -158473,6 +147864,27 @@ public Insert setRegion(java.lang.String 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 @@ -158517,37 +147929,40 @@ public java.lang.String getRequestId() { * 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) { + public CreateSnapshot setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public CreateSnapshot set(String parameterName, Object value) { + return (CreateSnapshot) super.set(parameterName, value); } } /** - * Retrieves the list of HealthCheck resources available to the specified project. + * 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 "regionHealthChecks.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -158555,22 +147970,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 region Name of the region for this request. + * @param disk Name of the regional persistent disk to delete. * @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); + 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(), @@ -158583,76 +148004,72 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -158666,7 +148083,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -158676,320 +148093,124 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the regional persistent disk to delete. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String disk; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the regional persistent disk to delete. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getDisk() { + return disk; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns a specified regional persistent disk. * - * Create a request for the method "regionHealthChecks.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. * @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); + 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 Patch extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -158997,28 +148218,26 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region for this request. + * @param disk Name of the regional persistent disk to return. * @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); + 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(), @@ -159031,72 +148250,82 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); + 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(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -159110,7 +148339,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -159120,18 +148349,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String 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 " + @@ -159141,104 +148370,54 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the HealthCheck resource to patch. */ + /** Name of the regional persistent disk to return. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String disk; - /** Name of the HealthCheck resource to patch. + /** Name of the regional persistent disk to return. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getDisk() { + return disk; } - /** Name of the HealthCheck resource to patch. */ - public Patch setHealthCheck(java.lang.String healthCheck) { + /** Name of the regional persistent disk to return. */ + public Get setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + 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.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; + this.disk = disk; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionHealthChecks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 TestIamPermissions extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -159250,24 +148429,24 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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. - * @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); + 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(), @@ -159289,63 +148468,73 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -159359,7 +148548,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -159380,7 +148569,7 @@ public java.lang.String getRegion() { } /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + 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 " + @@ -159401,7 +148590,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + 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 " + @@ -159411,34 +148600,50 @@ public TestIamPermissions setResource(java.lang.String 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Creates a persistent regional disk in the specified project using the data included in the + * request. * - * Create a request for the method "regionHealthChecks.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region 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 healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Update result = new Update(project, region, healthCheck, content); + 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 Update extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -159446,27 +148651,24 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region 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 healthCheck, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -159479,72 +148681,66 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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}"); - } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -159558,7 +148754,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -159568,18 +148764,18 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String 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 " + @@ -159589,27 +148785,6 @@ public Update setRegion(java.lang.String 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 @@ -159654,93 +148829,88 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); - } - } - - } + /** Source image to restore onto a disk. This field is optional. */ + @com.google.api.client.util.Key + private java.lang.String sourceImage; - /** - * 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(); - } + /** Source image to restore onto a disk. This field is optional. + */ + public java.lang.String getSourceImage() { + return sourceImage; + } - /** - * The "regionHealthSources" collection of methods. - */ - public class RegionHealthSources { + /** 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 all HealthSource resources (all regional) available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of persistent disks contained within the specified region. * - * Create a request for the method "regionHealthSources.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param region Name of the region for this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 all HealthSource resources (all regional) available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of persistent disks contained within the specified region. * - * Create a request for the method "regionHealthSources.aggregatedList". + * 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 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.

    + * 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 Name of the project scoping this request. + * @param project Project ID for this request. + * @param region Name of the region 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.HealthSourceAggregatedList.class); + 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])?"); + } } @Override @@ -159754,77 +148924,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String 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 " + @@ -159834,6 +149004,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -159965,45 +149156,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -160028,7 +149185,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -160072,7 +149229,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -160095,7 +149252,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -160127,61 +149284,289 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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; + } + /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String requestId; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getRequestId() { + return requestId; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public RemoveResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); } } /** - * Deletes the specified HealthSource in the given region + * Resizes the specified regional persistent disk. * - * Create a request for the method "regionHealthSources.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 healthSource Name of the HealthSource resource to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -160189,26 +149574,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 healthSource Name of the HealthSource resource to delete. + * @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 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); + 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(), @@ -160221,86 +149607,86 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String 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 " + @@ -160310,18 +149696,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -160331,24 +149717,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the HealthSource resource to delete. */ + /** Name of the regional persistent disk. */ @com.google.api.client.util.Key - private java.lang.String healthSource; + private java.lang.String disk; - /** Name of the HealthSource resource to delete. + /** Name of the regional persistent disk. */ - public java.lang.String getHealthSource() { - return healthSource; + public java.lang.String getDisk() { + return disk; } - /** Name of the HealthSource resource to delete. */ - public Delete setHealthSource(java.lang.String healthSource) { + /** Name of the regional persistent disk. */ + public Resize setDisk(java.lang.String disk) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + + 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.healthSource = healthSource; + this.disk = disk; return this; } @@ -160396,38 +149782,39 @@ public java.lang.String getRequestId() { * 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) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } /** - * Returns the specified HealthSource resource in the given region. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionHealthSources.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -160435,26 +149822,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param healthSource Name of the HealthSource resource to return. + * @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 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); + 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(), @@ -160467,82 +149856,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -160556,7 +149935,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -160566,18 +149945,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -160587,55 +149966,55 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the HealthSource resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String healthSource; + private java.lang.String resource; - /** Name of the HealthSource resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getHealthSource() { - return healthSource; + public java.lang.String getResource() { + return resource; } - /** Name of the HealthSource resource to return. */ - public Get setHealthSource(java.lang.String healthSource) { + /** 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(HEALTH_SOURCE_PATTERN.matcher(healthSource).matches(), - "Parameter healthSource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.healthSource = healthSource; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Create a HealthSource in the specified project in the given region using the parameters that are - * included in the request. + * Sets the labels on the target regional disk. * - * Create a request for the method "regionHealthSources.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -160643,23 +150022,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.HealthSource} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HealthSource content) { + 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()) { @@ -160673,66 +150056,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -160746,7 +150135,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -160756,18 +150145,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -160777,6 +150166,27 @@ public Insert setRegion(java.lang.String 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 @@ -160821,37 +150231,40 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Lists the HealthSources for a project in the given region. + * Starts asynchronous replication. Must be invoked on the primary disk. * - * Create a request for the method "regionHealthSources.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link StartAsyncReplication#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region scoping 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class StartAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -160859,22 +150272,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthSourceList.class); + 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(), @@ -160887,76 +150306,72 @@ protected List(java.lang.String project, java.lang.String region) { "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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public StartAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StartAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StartAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StartAsyncReplication) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StartAsyncReplication setAlt(java.lang.String alt) { + return (StartAsyncReplication) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StartAsyncReplication setCallback(java.lang.String callback) { + return (StartAsyncReplication) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StartAsyncReplication setFields(java.lang.String fields) { + return (StartAsyncReplication) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StartAsyncReplication setKey(java.lang.String key) { + return (StartAsyncReplication) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StartAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StartAsyncReplication) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StartAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StartAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StartAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StartAsyncReplication setUploadType(java.lang.String uploadType) { + return (StartAsyncReplication) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StartAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StartAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StartAsyncReplication setUserIp(java.lang.String userIp) { + return (StartAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -160970,7 +150385,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -160980,18 +150395,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String 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 " + @@ -161001,300 +150416,355 @@ public List setRegion(java.lang.String 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; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionDisks.stopAsyncReplication". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - @com.google.api.client.util.Key - private java.lang.String filter; + 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}"); + } + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + @Override + public StopAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopAsyncReplication) super.set$Xgafv($Xgafv); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public StopAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopAsyncReplication) super.setAccessToken(accessToken); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public StopAsyncReplication setAlt(java.lang.String alt) { + return (StopAsyncReplication) super.setAlt(alt); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public StopAsyncReplication setCallback(java.lang.String callback) { + return (StopAsyncReplication) super.setCallback(callback); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public StopAsyncReplication setFields(java.lang.String fields) { + return (StopAsyncReplication) super.setFields(fields); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public StopAsyncReplication setKey(java.lang.String key) { + return (StopAsyncReplication) super.setKey(key); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public StopAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopAsyncReplication) super.setOauthToken(oauthToken); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public StopAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopAsyncReplication) super.setPrettyPrint(prettyPrint); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public StopAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopAsyncReplication) super.setQuotaUser(quotaUser); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public StopAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopAsyncReplication) super.setUploadType(uploadType); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public StopAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopAsyncReplication) super.setUploadProtocol(uploadProtocol); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public StopAsyncReplication setUserIp(java.lang.String userIp) { + return (StopAsyncReplication) super.setUserIp(userIp); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** The name of the region for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the persistent disk. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String disk; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the persistent disk. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getDisk() { + return disk; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StopAsyncReplication setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public StopAsyncReplication set(String parameterName, Object value) { + return (StopAsyncReplication) 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. + * 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 "regionHealthSources.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link StopGroupAsyncReplication#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class StopGroupAsyncReplication extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/stopGroupAsyncReplication"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -161303,25 +150773,26 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -161334,67 +150805,66 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "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."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public StopGroupAsyncReplication set$Xgafv(java.lang.String $Xgafv) { + return (StopGroupAsyncReplication) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public StopGroupAsyncReplication setAccessToken(java.lang.String accessToken) { + return (StopGroupAsyncReplication) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public StopGroupAsyncReplication setAlt(java.lang.String alt) { + return (StopGroupAsyncReplication) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public StopGroupAsyncReplication setCallback(java.lang.String callback) { + return (StopGroupAsyncReplication) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public StopGroupAsyncReplication setFields(java.lang.String fields) { + return (StopGroupAsyncReplication) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public StopGroupAsyncReplication setKey(java.lang.String key) { + return (StopGroupAsyncReplication) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public StopGroupAsyncReplication setOauthToken(java.lang.String oauthToken) { + return (StopGroupAsyncReplication) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public StopGroupAsyncReplication setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopGroupAsyncReplication) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public StopGroupAsyncReplication setQuotaUser(java.lang.String quotaUser) { + return (StopGroupAsyncReplication) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public StopGroupAsyncReplication setUploadType(java.lang.String uploadType) { + return (StopGroupAsyncReplication) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public StopGroupAsyncReplication setUploadProtocol(java.lang.String uploadProtocol) { + return (StopGroupAsyncReplication) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public StopGroupAsyncReplication setUserIp(java.lang.String userIp) { + return (StopGroupAsyncReplication) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -161408,7 +150878,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -161418,18 +150888,25 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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; - /** Name of the region scoping this request. + /** 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; } - /** Name of the region scoping this request. */ - public Patch setRegion(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 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 " + @@ -161439,28 +150916,6 @@ public Patch setRegion(java.lang.String 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 @@ -161505,20 +150960,20 @@ public java.lang.String getRequestId() { * 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) { + public StopGroupAsyncReplication setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + 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 "regionHealthSources.testIamPermissions". + * 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. @@ -161537,7 +150992,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -161551,7 +151006,7 @@ public class TestIamPermissions extends ComputeRequestThe 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. + * Update the specified disk 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 modified: + * user_license. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * 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 - 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. + * @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 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); + 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 Cancel extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; + private static final String REST_PATH = "projects/{project}/regions/{region}/disks/{disk}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Update the specified disk 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 modified: + * user_license. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.cancel". + * 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 Cancel#execute()} method to invoke the remote operation.

    {@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 - 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. + * @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 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); + 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(), @@ -161798,68 +151232,77 @@ protected Cancel(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -161873,7 +151316,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Cancel setProject(java.lang.String project) { + 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 " + @@ -161883,65 +151326,60 @@ public Cancel setProject(java.lang.String project) { return this; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region scoping this request. Name should conform to RFC1035. + /** The name of the region for this request. */ 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) { + /** 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 name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ + /** The disk name for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String disk; - /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + /** The disk name for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getDisk() { + return disk; } - /** - * 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; + /** 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; } - /** - * 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; + private java.util.List paths; + + /** - /** 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; + public java.util.List getPaths() { + return paths; } - /** - * 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; + public Update setPaths(java.util.List paths) { + this.paths = paths; return this; } @@ -161989,52 +151427,564 @@ public java.lang.String getRequestId() { * 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) { + 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 Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) 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 { + /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. - * Deleting request does not delete instances that were provisioned previously. + * Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to + * the specified project. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 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. + * @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 instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Delete result = new Delete(project, region, instanceGroupManager, resizeRequest); + 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}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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, inactive resize request. Requests that are still active cannot be - * deleted. Deleting request does not delete instances that were provisioned previously. + * Deletes the specified HealthAggregationPolicy in the given region. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.delete". + * 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 @@ -162042,15 +151992,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 instanceGroupManager, java.lang.String resizeRequest) { + 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()) { @@ -162059,8 +152005,17 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -162144,65 +152099,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** 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; } - /** - * 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. - */ + /** Name of the HealthAggregationPolicy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String resizeRequest; + private java.lang.String healthAggregationPolicy; - /** The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID. + /** Name of the HealthAggregationPolicy resource to delete. */ - public java.lang.String getResizeRequest() { - return resizeRequest; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } - /** - * 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; + /** 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; } @@ -162261,39 +152196,41 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns all of the details about the specified resize request. + * Returns the specified HealthAggregationPolicy resource in the given region. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.get". + * 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 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. + * @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 instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Get result = new Get(project, region, instanceGroupManager, resizeRequest); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 all of the details about the specified resize request. + * Returns the specified HealthAggregationPolicy resource in the given region. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.get". + * 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 @@ -162301,16 +152238,12 @@ public class Get extends ComputeRequest * * @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. + * @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 instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest.class); + 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(), @@ -162318,8 +152251,17 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -162413,63 +152355,45 @@ public Get setProject(java.lang.String project) { return this; } - /** - * The name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ 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 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; } - /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ + /** Name of the HealthAggregationPolicy resource to return. */ @com.google.api.client.util.Key - private java.lang.String resizeRequest; + private java.lang.String healthAggregationPolicy; - /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + /** Name of the HealthAggregationPolicy resource to return. */ - public java.lang.String getResizeRequest() { - return resizeRequest; + public java.lang.String getHealthAggregationPolicy() { + return healthAggregationPolicy; } - /** - * 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; + /** 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; } @@ -162479,39 +152403,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. + * 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 "regionInstanceGroupManagerResizeRequests.insert". + * 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. 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} + * @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, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { - Insert result = new Insert(project, region, instanceGroupManager, content); + 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}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 Resize Request that starts provisioning VMs immediately or queues VM creation. + * 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 "regionInstanceGroupManagerResizeRequests.insert". + * 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 @@ -162519,15 +152444,11 @@ public class Insert extends ComputeRequest * * @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} + * @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, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) { + 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()) { @@ -162536,7 +152457,11 @@ protected Insert(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -162620,49 +152545,27 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ + /** 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; } - /** - * 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 @@ -162718,36 +152621,37 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of Resize Requests that are contained in the managed instance group. + * Lists the HealthAggregationPolicies for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.list". + * 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. Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @param region Name of the region scoping this request. * @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); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthAggregationPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 Resize Requests that are contained in the managed instance group. + * Lists the HealthAggregationPolicies for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagerResizeRequests.list". + * 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 @@ -162755,13 +152659,11 @@ public class List extends ComputeRequest * * @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. + * @param region Name of the region scoping this request. * @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); + 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(), @@ -162769,7 +152671,11 @@ protected List(java.lang.String project, java.lang.String region, java.lang.Stri "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -162863,42 +152769,27 @@ public List setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** - * Name of the region scoping this request. Name should conform to RFC1035. - */ + /** 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; } - /** 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 @@ -163168,99 +153059,529 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 RegionInstanceGroupManagers collection. + * An accessor for creating requests from the RegionHealthCheckServices collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionInstanceGroupManagers.List request = compute.regionInstanceGroupManagers().list(parameters ...)}
    +   *   {@code Compute.RegionHealthCheckServices.List request = compute.regionHealthCheckServices().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionInstanceGroupManagers regionInstanceGroupManagers() { - return new RegionInstanceGroupManagers(); + public RegionHealthCheckServices regionHealthCheckServices() { + return new RegionHealthCheckServices(); } /** - * The "regionInstanceGroupManagers" collection of methods. + * The "regionHealthCheckServices" collection of methods. */ - public class RegionInstanceGroupManagers { + public class RegionHealthCheckServices { /** - * 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. + * Deletes the specified regional HealthCheckService. * - * Create a request for the method "regionInstanceGroupManagers.abandonInstances". + * 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 AbandonInstances#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param healthCheckService Name of the HealthCheckService to delete. The name + must be 1-63 characters long, and comply with + * RFC1035. * @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); + 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 AbandonInstances extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * Deletes the specified regional HealthCheckService. * - * Create a request for the method "regionInstanceGroupManagers.abandonInstances". + * 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 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.

    + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} + * @param healthCheckService Name of the HealthCheckService to delete. The name + must be 1-63 characters long, and comply with + * RFC1035. * @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); + 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(), @@ -163268,67 +153589,72 @@ protected AbandonInstances(java.lang.String project, java.lang.String region, ja "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -163342,7 +153668,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AbandonInstances setProject(java.lang.String project) { + 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 " + @@ -163363,24 +153689,36 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public AbandonInstances setRegion(java.lang.String region) { + 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 managed instance group. */ + /** + * 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 instanceGroupManager; + private java.lang.String healthCheckService; - /** Name of the managed instance group. + /** Name of the HealthCheckService to delete. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthCheckService() { + return healthCheckService; } - /** Name of the managed instance group. */ - public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * 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; } @@ -163428,73 +153766,268 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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); } } /** - * Flags the specified instances to be adopted to the managed instance group. Adopting an instance - * does not change the instance status, but it adds the instance to any target pools that are - * applied by the managed instance group. This method increases the targetSize of the managed - * instance group by the number of instances that you adopt. This operation is marked as DONE when - * the action is scheduled even if the instances have not been adopted to the group yet. You must - * separately verify the status of the adopting action with the listManagedInstances method. + * Creates a regional HealthCheckService resource in the specified project and region using the data + * included in the request. * - * Create a request for the method "regionInstanceGroupManagers.adoptInstances". + * 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 AdoptInstances#execute()} method to invoke the remote operation. + * 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. It should conform to RFC1035. - * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a - resource ID. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} * @return the request */ - public AdoptInstances adoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) throws java.io.IOException { - AdoptInstances result = new AdoptInstances(project, region, instanceGroupManager, content); + 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 AdoptInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/adoptInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Flags the specified instances to be adopted to the managed instance group. Adopting an instance - * does not change the instance status, but it adds the instance to any target pools that are - * applied by the managed instance group. This method increases the targetSize of the managed - * instance group by the number of instances that you adopt. This operation is marked as DONE when - * the action is scheduled even if the instances have not been adopted to the group yet. You must - * separately verify the status of the adopting action with the listManagedInstances method. + * Creates a regional HealthCheckService resource in the specified project and region using the + * data included in the request. * - * Create a request for the method "regionInstanceGroupManagers.adoptInstances". + * 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 AdoptInstances#execute()} method to invoke the remote operation. - *

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

    + * 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. It should conform to RFC1035. - * @param instanceGroupManager Name of the managed instance group. It should conform to RFC1035 or be a - resource ID. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.HealthCheckService} * @since 1.13 */ - protected AdoptInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersAdoptInstancesRequest content) { + 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()) { @@ -163503,67 +154036,71 @@ protected AdoptInstances(java.lang.String project, java.lang.String region, java "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public AdoptInstances set$Xgafv(java.lang.String $Xgafv) { - return (AdoptInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AdoptInstances setAccessToken(java.lang.String accessToken) { - return (AdoptInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AdoptInstances setAlt(java.lang.String alt) { - return (AdoptInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AdoptInstances setCallback(java.lang.String callback) { - return (AdoptInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AdoptInstances setFields(java.lang.String fields) { - return (AdoptInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AdoptInstances setKey(java.lang.String key) { - return (AdoptInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AdoptInstances setOauthToken(java.lang.String oauthToken) { - return (AdoptInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AdoptInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AdoptInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AdoptInstances setQuotaUser(java.lang.String quotaUser) { - return (AdoptInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AdoptInstances setUploadType(java.lang.String uploadType) { - return (AdoptInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AdoptInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AdoptInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AdoptInstances setUserIp(java.lang.String userIp) { - return (AdoptInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -163577,7 +154114,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AdoptInstances setProject(java.lang.String project) { + 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 " + @@ -163587,42 +154124,27 @@ public AdoptInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. It should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. It should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. It should conform to RFC1035. */ - public AdoptInstances setRegion(java.lang.String 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; } - /** - * Name of the managed instance group. It 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. It should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * Name of the managed instance group. It should conform to RFC1035 or be a resource ID. - */ - public AdoptInstances 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 @@ -163667,63 +154189,62 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AdoptInstances setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AdoptInstances set(String parameterName, Object value) { - return (AdoptInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Apply updates to selected instances the managed instance group. + * Lists all the HealthCheckService resources that have been configured for the specified project in + * the given region. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * 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 ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region Name of the region scoping this request. * @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); + 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 ApplyUpdatesToInstances extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Apply updates to selected instances the managed instance group. + * Lists all the HealthCheckService resources that have been configured for the specified project + * in the given region. * - * Create a request for the method "regionInstanceGroupManagers.applyUpdatesToInstances". + * 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 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.

    + * 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, 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} + * @param region Name of the region scoping this request. * @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); + 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(), @@ -163731,67 +154252,81 @@ protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String reg "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { - return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { - return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ApplyUpdatesToInstances setAlt(java.lang.String alt) { - return (ApplyUpdatesToInstances) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ApplyUpdatesToInstances setCallback(java.lang.String callback) { - return (ApplyUpdatesToInstances) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ApplyUpdatesToInstances setFields(java.lang.String fields) { - return (ApplyUpdatesToInstances) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ApplyUpdatesToInstances setKey(java.lang.String key) { - return (ApplyUpdatesToInstances) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { - return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { - return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { - return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { - return (ApplyUpdatesToInstances) super.setUserIp(userIp); + 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. */ @@ -163805,7 +154340,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ApplyUpdatesToInstances setProject(java.lang.String project) { + 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 " + @@ -163815,332 +154350,351 @@ public ApplyUpdatesToInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionInstanceGroupManagers.createInstances". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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."); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) 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. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** The name of theregion where the managed instance group is located. It should conform to RFC1035. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } /** - * The name of theregion where the managed instance group is located. It should conform to - * RFC1035. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public CreateInstances setRegion(java.lang.String region) { - this.region = region; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * The name of the managed instance group. It should conform to RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String pageToken; - /** The name of the managed instance group. It should conform to RFC1035. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getPageToken() { + return pageToken; } /** - * The name of the managed instance group. It should conform to RFC1035. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public CreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified managed instance group and all of the instances in that group. + * 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 "regionInstanceGroupManagers.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 Name of the managed instance group to delete. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 managed instance group and all of the instances in that group. + * 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 "regionInstanceGroupManagers.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 Name of the managed instance group to delete. + * @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 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); + 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(), @@ -164148,67 +154702,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -164222,7 +154781,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -164243,24 +154802,36 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 managed instance group to delete. */ + /** + * 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 instanceGroupManager; + private java.lang.String healthCheckService; - /** Name of the managed instance group to delete. + /** Name of the HealthCheckService to update. The name must be 1-63 characters long, and comply with + RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthCheckService() { + return healthCheckService; } - /** Name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * 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; } @@ -164308,84 +154879,68 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * 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 DeleteInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 DeleteInstances extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.deleteInstances". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -164393,67 +154948,77 @@ protected DeleteInstances(java.lang.String project, java.lang.String region, jav "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -164467,7 +155032,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String project) { + 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 " + @@ -164477,139 +155042,125 @@ public DeleteInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public DeleteInstances setRegion(java.lang.String 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 of the managed instance group. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** Name of the managed instance group. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** Name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionHealthChecks" collection of methods. + */ + public class RegionHealthChecks { - @Override - public DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); - } - } /** - * Deletes selected per-instance configurations for the managed instance group. + * Deletes the specified HealthCheck resource. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * 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 DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. * @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); + 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 DeletePerInstanceConfigs extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 selected per-instance configurations for the managed instance group. + * Deletes the specified HealthCheck resource. * - * Create a request for the method "regionInstanceGroupManagers.deletePerInstanceConfigs". + * 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 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.

    + * 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, 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} + * @param region Name of the region scoping this request. + * @param healthCheck Name of the HealthCheck resource to delete. * @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); + 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(), @@ -164617,67 +155168,77 @@ protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String re "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } - @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -164691,7 +155252,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeletePerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -164701,73 +155262,138 @@ public DeletePerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** The name of the managed instance group. It should conform to RFC1035. */ + /** Name of the HealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String healthCheck; - /** The name of the managed instance group. It should conform to RFC1035. + /** Name of the HealthCheck resource to delete. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** The name of the managed instance group. It should conform to RFC1035. */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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 DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns all of the details about the specified managed instance group. + * Returns the specified HealthCheck resource. * - * Create a request for the method "regionInstanceGroupManagers.get". + * 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 instanceGroupManager Name of the managed instance group to return. + * @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 instanceGroupManager) throws java.io.IOException { - Get result = new Get(project, region, instanceGroupManager); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 all of the details about the specified managed instance group. + * Returns the specified HealthCheck resource. * - * Create a request for the method "regionInstanceGroupManagers.get". + * 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 @@ -164776,11 +155402,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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. + * Creates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "regionInstanceGroupManagers.insert". + * 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 @@ -164969,10 +155606,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 managed instance groups that are contained within the specified region. + * Retrieves the list of HealthCheck resources available to the specified project. * - * Create a request for the method "regionInstanceGroupManagers.list". + * 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 @@ -165174,7 +155824,7 @@ public class List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Lists all errors thrown by actions on instances for a given regional managed instance group. - * The filter andorderBy query parameters are not supported. + * 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 "regionInstanceGroupManagers.listErrors". + * 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 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.

    + * 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. - 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}. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @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); + 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(), @@ -165623,77 +156280,77 @@ protected ListErrors(java.lang.String project, java.lang.String region, java.lan "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -165707,7 +156364,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListErrors setProject(java.lang.String project) { + 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 " + @@ -165717,372 +156374,154 @@ public ListErrors setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. This should conform to RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. This should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** - * 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`) - */ + /** Name of the HealthCheck resource to patch. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String healthCheck; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the HealthCheck resource to patch. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListErrors setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListErrors setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListErrors set(String parameterName, Object value) { - return (ListErrors) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.listManagedInstances". + * 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 ListManagedInstances#execute()} method to invoke the remote - * operation. + * parameters, call the {@link TestIamPermissions#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 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 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); + 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 ListManagedInstances extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.listManagedInstances". + * 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 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 + * 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 Name of the region scoping this request. - * @param instanceGroupManager The name of the managed instance group. + * @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 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); + 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(), @@ -166090,67 +156529,77 @@ protected ListManagedInstances(java.lang.String project, java.lang.String region "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListManagedInstances) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ListManagedInstances setAccessToken(java.lang.String accessToken) { - return (ListManagedInstances) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ListManagedInstances setAlt(java.lang.String alt) { - return (ListManagedInstances) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ListManagedInstances setCallback(java.lang.String callback) { - return (ListManagedInstances) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ListManagedInstances setFields(java.lang.String fields) { - return (ListManagedInstances) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ListManagedInstances setKey(java.lang.String key) { - return (ListManagedInstances) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ListManagedInstances setOauthToken(java.lang.String oauthToken) { - return (ListManagedInstances) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListManagedInstances) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { - return (ListManagedInstances) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ListManagedInstances setUploadType(java.lang.String uploadType) { - return (ListManagedInstances) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ListManagedInstances setUserIp(java.lang.String userIp) { - return (ListManagedInstances) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -166164,7 +156613,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListManagedInstances setProject(java.lang.String project) { + 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 " + @@ -166174,436 +156623,462 @@ public ListManagedInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public ListManagedInstances setRegion(java.lang.String 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; } - /** The name of the managed instance group. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** The name of the managed instance group. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** The name of the managed instance group. */ - public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Updates a HealthCheck resource in the specified project using the data included in the request. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionHealthChecks.update". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + 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}"); + } + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + @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.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region scoping this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the HealthCheck resource to update. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String healthCheck; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the HealthCheck resource to update. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListManagedInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListManagedInstances set(String parameterName, Object value) { - return (ListManagedInstances) super.set(parameterName, value); + 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 { + /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy - * query parameter is not supported. + * Retrieves the list of all HealthSource resources (all regional) available to the specified + * project. * - * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". + * 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 ListPerInstanceConfigs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AggregatedList#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 project Name of the project scoping this request. * @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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListPerInstanceConfigs extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/aggregated/healthSources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of all HealthSource resources (all regional) available to the specified + * project. * - * Create a request for the method "regionInstanceGroupManagers.listPerInstanceConfigs". + * 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 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.

    + * 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. - * @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 project Name of the project scoping this request. * @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); + 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])?))"); } - 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."); } @Override - public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (ListPerInstanceConfigs) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ListPerInstanceConfigs setAlt(java.lang.String alt) { - return (ListPerInstanceConfigs) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListPerInstanceConfigs setCallback(java.lang.String callback) { - return (ListPerInstanceConfigs) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListPerInstanceConfigs setFields(java.lang.String fields) { - return (ListPerInstanceConfigs) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListPerInstanceConfigs setKey(java.lang.String key) { - return (ListPerInstanceConfigs) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (ListPerInstanceConfigs) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (ListPerInstanceConfigs) super.setUserIp(userIp); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public ListPerInstanceConfigs setProject(java.lang.String 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 " + @@ -166613,38 +157088,6 @@ public ListPerInstanceConfigs setProject(java.lang.String 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 @@ -166776,11 +157219,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListPerInstanceConfigs setFilter(java.lang.String filter) { + 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 @@ -166805,7 +157282,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -166849,7 +157326,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListPerInstanceConfigs setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -166872,7 +157349,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -166904,79 +157381,88 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListPerInstanceConfigs setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 ListPerInstanceConfigs set(String parameterName, Object value) { - return (ListPerInstanceConfigs) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified HealthSource in the given region * - * Create a request for the method "regionInstanceGroupManagers.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param healthSource Name of the HealthSource resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Deletes the specified HealthSource in the given region * - * Create a request for the method "regionInstanceGroupManagers.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param healthSource Name of the HealthSource resource to delete. * @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); + 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(), @@ -166984,67 +157470,77 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -167058,7 +157554,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -167079,24 +157575,34 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + 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 group manager. */ + /** Name of the HealthSource resource to delete. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String healthSource; - /** The name of the instance group manager. + /** Name of the HealthSource resource to delete. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthSource() { + return healthSource; } - /** The name of the instance group manager. */ - public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } @@ -167144,67 +157650,65 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns the specified HealthSource resource in the given region. * - * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". + * 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 PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to return. * @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); + 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 PatchPerInstanceConfigs extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Returns the specified HealthSource resource in the given region. * - * Create a request for the method "regionInstanceGroupManagers.patchPerInstanceConfigs". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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, 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} + * @param region Name of the region scoping this request. + * @param healthSource Name of the HealthSource resource to return. * @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); + 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(), @@ -167212,67 +157716,87 @@ protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String reg "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchPerInstanceConfigs setAlt(java.lang.String alt) { - return (PatchPerInstanceConfigs) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchPerInstanceConfigs setCallback(java.lang.String callback) { - return (PatchPerInstanceConfigs) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchPerInstanceConfigs setFields(java.lang.String fields) { - return (PatchPerInstanceConfigs) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchPerInstanceConfigs setKey(java.lang.String key) { - return (PatchPerInstanceConfigs) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (PatchPerInstanceConfigs) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (PatchPerInstanceConfigs) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -167286,7 +157810,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -167296,161 +157820,100 @@ public PatchPerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** 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; } - /** - * 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). - */ + /** Name of the HealthSource resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String healthSource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the HealthSource resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getHealthSource() { + return healthSource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 PatchPerInstanceConfigs set(String parameterName, Object value) { - return (PatchPerInstanceConfigs) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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 HealthSource in the specified project in the given region using the parameters that are + * included in the request. * - * Create a request for the method "regionInstanceGroupManagers.recreateInstances". + * 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 RecreateInstances#execute()} method to invoke the remote operation. + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} + * @param content the {@link com.google.api.services.compute.model.HealthSource} * @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); + 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 RecreateInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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 HealthSource in the specified project in the given region using the parameters that + * are included in the request. * - * Create a request for the method "regionInstanceGroupManagers.recreateInstances". + * 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 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.

    + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersRecreateRequest} + * @param content the {@link com.google.api.services.compute.model.HealthSource} * @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) { + 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()) { @@ -167459,67 +157922,71 @@ protected RecreateInstances(java.lang.String project, java.lang.String region, j "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (RecreateInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RecreateInstances setAccessToken(java.lang.String accessToken) { - return (RecreateInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RecreateInstances setAlt(java.lang.String alt) { - return (RecreateInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RecreateInstances setCallback(java.lang.String callback) { - return (RecreateInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RecreateInstances setFields(java.lang.String fields) { - return (RecreateInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RecreateInstances setKey(java.lang.String key) { - return (RecreateInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RecreateInstances setOauthToken(java.lang.String oauthToken) { - return (RecreateInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RecreateInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RecreateInstances setQuotaUser(java.lang.String quotaUser) { - return (RecreateInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RecreateInstances setUploadType(java.lang.String uploadType) { - return (RecreateInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RecreateInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RecreateInstances setUserIp(java.lang.String userIp) { - return (RecreateInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -167533,7 +158000,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RecreateInstances setProject(java.lang.String project) { + 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 " + @@ -167554,27 +158021,16 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public RecreateInstances setRegion(java.lang.String region) { + 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; } - /** 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; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -167619,85 +158075,60 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RecreateInstances set(String parameterName, Object value) { - return (RecreateInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Lists the HealthSources for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagers.resize". + * 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 Resize#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 Resize extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-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. + * Lists the HealthSources for a project in the given region. * - * Create a request for the method "regionInstanceGroupManagers.resize". + * 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 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.

    + * 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. - * @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); + 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(), @@ -167705,68 +158136,81 @@ protected Resize(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) super.setUserIp(userIp); + 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. */ @@ -167780,7 +158224,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Resize setProject(java.lang.String project) { + 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 " + @@ -167801,177 +158245,337 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Resize setRegion(java.lang.String region) { + 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; } - /** Name of the managed instance group. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** Name of the managed instance group. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getFilter() { + return filter; } - /** Name of the managed instance group. */ - public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } /** - * Number of instances that should exist in this instance group manager. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ @com.google.api.client.util.Key - private java.lang.Integer size; - - /** Number of instances that should exist in this instance group manager. + private java.lang.Long maxResults; - [minimum: 0] + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.Integer getSize() { - return size; + public java.lang.Long getMaxResults() { + return maxResults; } /** - * Number of instances that should exist in this instance group manager. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ - public Resize setSize(java.lang.Integer size) { - this.size = size; + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public Resize setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Resizes the regional managed instance group with advanced configuration options like disabling - * creation retries. This is an extended version of theresize method. - * - * 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 the get orlistmanagedinstances 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. + * 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 "regionInstanceGroupManagers.resizeAdvanced". + * 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 ResizeAdvanced#execute()} method to invoke the remote operation. + * 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. - It must be a string that meets the requirements in RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} + * @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 ResizeAdvanced resizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) throws java.io.IOException { - ResizeAdvanced result = new ResizeAdvanced(project, region, instanceGroupManager, content); + 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 ResizeAdvanced extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{healthSource}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Resizes the regional managed instance group with advanced configuration options like disabling - * creation retries. This is an extended version of theresize method. - * - * 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 the get orlistmanagedinstances 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. + * 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 "regionInstanceGroupManagers.resizeAdvanced". + * 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 ResizeAdvanced#execute()} method to invoke the remote operation. - *

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

    + * 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. - It must be a string that meets the requirements in RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} + * @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 ResizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -167979,67 +158583,72 @@ protected ResizeAdvanced(java.lang.String project, java.lang.String region, java "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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."); } @Override - public ResizeAdvanced set$Xgafv(java.lang.String $Xgafv) { - return (ResizeAdvanced) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ResizeAdvanced setAccessToken(java.lang.String accessToken) { - return (ResizeAdvanced) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ResizeAdvanced setAlt(java.lang.String alt) { - return (ResizeAdvanced) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ResizeAdvanced setCallback(java.lang.String callback) { - return (ResizeAdvanced) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ResizeAdvanced setFields(java.lang.String fields) { - return (ResizeAdvanced) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ResizeAdvanced setKey(java.lang.String key) { - return (ResizeAdvanced) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ResizeAdvanced setOauthToken(java.lang.String oauthToken) { - return (ResizeAdvanced) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ResizeAdvanced setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResizeAdvanced) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ResizeAdvanced setQuotaUser(java.lang.String quotaUser) { - return (ResizeAdvanced) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ResizeAdvanced setUploadType(java.lang.String uploadType) { - return (ResizeAdvanced) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ResizeAdvanced setUploadProtocol(java.lang.String uploadProtocol) { - return (ResizeAdvanced) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ResizeAdvanced setUserIp(java.lang.String userIp) { - return (ResizeAdvanced) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -168053,7 +158662,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ResizeAdvanced setProject(java.lang.String project) { + 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 " + @@ -168063,48 +158672,46 @@ public ResizeAdvanced setProject(java.lang.String project) { return this; } - /** - * Name of the region scoping this request. It must be a string that meets the requirements in - * RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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 ResizeAdvanced setRegion(java.lang.String 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; } /** - * The name of the managed instance group. It must be a string that meets the requirements in + * 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 instanceGroupManager; + private java.lang.String healthSource; - /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035. + /** Name of the HealthSource to update. The name must be 1-63 characters long, and comply with RFC1035. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getHealthSource() { + return healthSource; } /** - * The name of the managed instance group. It must be a string that meets the requirements in + * Name of the HealthSource to update. The name must be 1-63 characters long, and comply with * RFC1035. */ - public ResizeAdvanced setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + public Patch setHealthSource(java.lang.String healthSource) { + this.healthSource = healthSource; return this; } @@ -168152,88 +158759,68 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public ResizeAdvanced setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public ResizeAdvanced set(String parameterName, Object value) { - return (ResizeAdvanced) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.resumeInstances". + * 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 ResumeInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 ResumeInstances extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstanceGroupManagers.resumeInstances". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -168241,67 +158828,77 @@ protected ResumeInstances(java.lang.String project, java.lang.String region, jav "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { - return (ResumeInstances) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ResumeInstances setAccessToken(java.lang.String accessToken) { - return (ResumeInstances) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ResumeInstances setAlt(java.lang.String alt) { - return (ResumeInstances) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ResumeInstances setCallback(java.lang.String callback) { - return (ResumeInstances) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ResumeInstances setFields(java.lang.String fields) { - return (ResumeInstances) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ResumeInstances setKey(java.lang.String key) { - return (ResumeInstances) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ResumeInstances setOauthToken(java.lang.String oauthToken) { - return (ResumeInstances) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResumeInstances) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ResumeInstances setQuotaUser(java.lang.String quotaUser) { - return (ResumeInstances) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ResumeInstances setUploadType(java.lang.String uploadType) { - return (ResumeInstances) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ResumeInstances) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ResumeInstances setUserIp(java.lang.String userIp) { - return (ResumeInstances) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -168315,7 +158912,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ResumeInstances setProject(java.lang.String project) { + 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 " + @@ -168325,141 +158922,129 @@ public ResumeInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public ResumeInstances setRegion(java.lang.String 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 of the managed instance group. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String resource; - /** Name of the managed instance group. + /** Name or id of the resource for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getResource() { + return resource; } - /** Name of the managed instance group. */ - public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionInstanceGroupManagerResizeRequests" collection of methods. + */ + public class RegionInstanceGroupManagerResizeRequests { - @Override - public ResumeInstances set(String parameterName, Object value) { - return (ResumeInstances) super.set(parameterName, value); - } - } /** - * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] - * This method is deprecated. UseregionInstanceGroupManagers.patch instead. + * 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 "regionInstanceGroupManagers.setAutoHealingPolicies". + * 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 SetAutoHealingPolicies#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Cancel#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.RegionInstanceGroupManagersSetAutoHealingRequest} + * @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 SetAutoHealingPolicies setAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) throws java.io.IOException { - SetAutoHealingPolicies result = new SetAutoHealingPolicies(project, region, instanceGroupManager, content); + 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 SetAutoHealingPolicies extends ComputeRequest { + public class Cancel extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 autohealing policy for the instances in this managed instance group. [Deprecated] - * This method is deprecated. UseregionInstanceGroupManagers.patch instead. + * 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 "regionInstanceGroupManagers.setAutoHealingPolicies". + * 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 SetAutoHealingPolicies#execute()} method to invoke the remote - * operation.

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

    + * 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 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.RegionInstanceGroupManagersSetAutoHealingRequest} + * @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 SetAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -168468,66 +159053,67 @@ protected SetAutoHealingPolicies(java.lang.String project, java.lang.String regi } 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."); } @Override - public SetAutoHealingPolicies set$Xgafv(java.lang.String $Xgafv) { - return (SetAutoHealingPolicies) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public SetAutoHealingPolicies setAccessToken(java.lang.String accessToken) { - return (SetAutoHealingPolicies) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public SetAutoHealingPolicies setAlt(java.lang.String alt) { - return (SetAutoHealingPolicies) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public SetAutoHealingPolicies setCallback(java.lang.String callback) { - return (SetAutoHealingPolicies) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public SetAutoHealingPolicies setFields(java.lang.String fields) { - return (SetAutoHealingPolicies) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public SetAutoHealingPolicies setKey(java.lang.String key) { - return (SetAutoHealingPolicies) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public SetAutoHealingPolicies setOauthToken(java.lang.String oauthToken) { - return (SetAutoHealingPolicies) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public SetAutoHealingPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetAutoHealingPolicies) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public SetAutoHealingPolicies setQuotaUser(java.lang.String quotaUser) { - return (SetAutoHealingPolicies) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public SetAutoHealingPolicies setUploadType(java.lang.String uploadType) { - return (SetAutoHealingPolicies) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public SetAutoHealingPolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (SetAutoHealingPolicies) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } @Override - public SetAutoHealingPolicies setUserIp(java.lang.String userIp) { - return (SetAutoHealingPolicies) super.setUserIp(userIp); + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -168541,7 +159127,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetAutoHealingPolicies setProject(java.lang.String project) { + 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 " + @@ -168551,38 +159137,68 @@ public SetAutoHealingPolicies setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * The 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. + /** The 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. */ - public SetAutoHealingPolicies setRegion(java.lang.String 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; } - /** Name of the managed instance group. */ + /** + * 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; - /** Name of the managed instance group. + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** Name of the managed instance group. */ - public SetAutoHealingPolicies setInstanceGroupManager(java.lang.String 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 @@ -168627,64 +159243,69 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public SetAutoHealingPolicies setRequestId(java.lang.String requestId) { + public Cancel setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetAutoHealingPolicies set(String parameterName, Object value) { - return (SetAutoHealingPolicies) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) 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. + * 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 "regionInstanceGroupManagers.setInstanceTemplate". + * 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 SetInstanceTemplate#execute()} method to invoke the remote operation. + * 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 region The name of the region + scoping this request. Name should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest} + 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 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); + 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 SetInstanceTemplate extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "regionInstanceGroupManagers.setInstanceTemplate". + * 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 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.

    + * 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 region The name of the region + scoping this request. Name should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTemplateRequest} + 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 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); + 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(), @@ -168693,66 +159314,67 @@ protected SetInstanceTemplate(java.lang.String project, java.lang.String region, } 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."); } @Override - public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetInstanceTemplate) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { - return (SetInstanceTemplate) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetInstanceTemplate setAlt(java.lang.String alt) { - return (SetInstanceTemplate) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetInstanceTemplate setCallback(java.lang.String callback) { - return (SetInstanceTemplate) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetInstanceTemplate setFields(java.lang.String fields) { - return (SetInstanceTemplate) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetInstanceTemplate setKey(java.lang.String key) { - return (SetInstanceTemplate) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { - return (SetInstanceTemplate) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetInstanceTemplate) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetInstanceTemplate setUploadType(java.lang.String uploadType) { - return (SetInstanceTemplate) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetInstanceTemplate setUserIp(java.lang.String userIp) { - return (SetInstanceTemplate) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -168766,7 +159388,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetInstanceTemplate setProject(java.lang.String project) { + 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 " + @@ -168776,38 +159398,68 @@ public SetInstanceTemplate setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * The 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. + /** The 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. */ - public SetInstanceTemplate setRegion(java.lang.String 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. */ + /** + * 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. + /** 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. */ - public SetInstanceTemplate setInstanceGroupManager(java.lang.String 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 @@ -168852,64 +159504,67 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetInstanceTemplate set(String parameterName, Object value) { - return (SetInstanceTemplate) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns all of the details about the specified resize request. * - * Create a request for the method "regionInstanceGroupManagers.setTargetPools". + * 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 SetTargetPools#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest} + * @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 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); + 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 SetTargetPools extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Returns all of the details about the specified resize request. * - * Create a request for the method "regionInstanceGroupManagers.setTargetPools". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersSetTargetPoolsRequest} + * @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 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); + 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(), @@ -168918,66 +159573,77 @@ protected SetTargetPools(java.lang.String project, java.lang.String region, java } 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."); } @Override - public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { - return (SetTargetPools) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetTargetPools setAccessToken(java.lang.String accessToken) { - return (SetTargetPools) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetTargetPools setAlt(java.lang.String alt) { - return (SetTargetPools) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetTargetPools setCallback(java.lang.String callback) { - return (SetTargetPools) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetTargetPools setFields(java.lang.String fields) { - return (SetTargetPools) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetTargetPools setKey(java.lang.String key) { - return (SetTargetPools) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetTargetPools setOauthToken(java.lang.String oauthToken) { - return (SetTargetPools) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTargetPools) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetTargetPools setQuotaUser(java.lang.String quotaUser) { - return (SetTargetPools) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetTargetPools setUploadType(java.lang.String uploadType) { - return (SetTargetPools) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTargetPools) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetTargetPools setUserIp(java.lang.String userIp) { - return (SetTargetPools) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -168991,7 +159657,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetTargetPools setProject(java.lang.String project) { + 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 " + @@ -169001,163 +159667,121 @@ public SetTargetPools setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * The 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. + /** The 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. */ - public SetTargetPools setRegion(java.lang.String 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; } - /** Name of the managed instance group. */ + /** + * 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; - /** Name of the managed instance group. + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** Name of the managed instance group. */ - public SetTargetPools setInstanceGroupManager(java.lang.String 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resizeRequest; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResizeRequest() { + return resizeRequest; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. */ - public SetTargetPools setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public Get setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; return this; } @Override - public SetTargetPools set(String parameterName, Object value) { - return (SetTargetPools) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. * - * Create a request for the method "regionInstanceGroupManagers.startInstances". + * 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 StartInstances#execute()} method to invoke the remote operation. + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest} + * @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 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); + 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 StartInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation. * - * Create a request for the method "regionInstanceGroupManagers.startInstances". + * 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 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.

    + * 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 instanceGroupManager Name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest} + * @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 StartInstances(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersStartInstancesRequest content) { + 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()) { @@ -169170,63 +159794,63 @@ protected StartInstances(java.lang.String project, java.lang.String region, java } @Override - public StartInstances set$Xgafv(java.lang.String $Xgafv) { - return (StartInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public StartInstances setAccessToken(java.lang.String accessToken) { - return (StartInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public StartInstances setAlt(java.lang.String alt) { - return (StartInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public StartInstances setCallback(java.lang.String callback) { - return (StartInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public StartInstances setFields(java.lang.String fields) { - return (StartInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public StartInstances setKey(java.lang.String key) { - return (StartInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public StartInstances setOauthToken(java.lang.String oauthToken) { - return (StartInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public StartInstances setQuotaUser(java.lang.String quotaUser) { - return (StartInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public StartInstances setUploadType(java.lang.String uploadType) { - return (StartInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StartInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public StartInstances setUserIp(java.lang.String userIp) { - return (StartInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -169240,7 +159864,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartInstances setProject(java.lang.String project) { + 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 " + @@ -169250,34 +159874,45 @@ public StartInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 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. */ - public StartInstances setRegion(java.lang.String 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. */ + /** + * 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. + /** 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. */ - public StartInstances setInstanceGroupManager(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 Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -169326,99 +159961,61 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public StartInstances set(String parameterName, Object value) { - return (StartInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves a list of Resize Requests that are contained in the managed instance group. * - * Create a request for the method "regionInstanceGroupManagers.stopInstances". + * 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 StopInstances#execute()} method to invoke the remote operation. + * 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. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStopInstancesRequest} + * @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 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); + 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 StopInstances extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves a list of Resize Requests that are contained in the managed instance group. * - * Create a request for the method "regionInstanceGroupManagers.stopInstances". + * 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 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. - *

    + * 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. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersStopInstancesRequest} + * @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 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); + 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(), @@ -169430,63 +160027,73 @@ protected StopInstances(java.lang.String project, java.lang.String region, java. } @Override - public StopInstances set$Xgafv(java.lang.String $Xgafv) { - return (StopInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public StopInstances setAccessToken(java.lang.String accessToken) { - return (StopInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public StopInstances setAlt(java.lang.String alt) { - return (StopInstances) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public StopInstances setCallback(java.lang.String callback) { - return (StopInstances) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public StopInstances setFields(java.lang.String fields) { - return (StopInstances) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public StopInstances setKey(java.lang.String key) { - return (StopInstances) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public StopInstances setOauthToken(java.lang.String oauthToken) { - return (StopInstances) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopInstances) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public StopInstances setQuotaUser(java.lang.String quotaUser) { - return (StopInstances) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public StopInstances setUploadType(java.lang.String uploadType) { - return (StopInstances) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StopInstances) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public StopInstances setUserIp(java.lang.String userIp) { - return (StopInstances) super.setUserIp(userIp); + 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. */ @@ -169500,7 +160107,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopInstances setProject(java.lang.String project) { + 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 " + @@ -169510,175 +160117,403 @@ public StopInstances setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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 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. */ - public StopInstances setRegion(java.lang.String 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 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 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. */ - public StopInstances setInstanceGroupManager(java.lang.String 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public StopInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public StopInstances set(String parameterName, Object value) { - return (StopInstances) super.set(parameterName, value); + 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 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. + * 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 - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. + * 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.suspendInstances". + * 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 SuspendInstances#execute()} method to invoke the remote operation. + * 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.RegionInstanceGroupManagersSuspendInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} * @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); + 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 SuspendInstances extends ComputeRequest { + public class AbandonInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. + * removed or deleted. * * You can specify a maximum of 1000 instances with this method per request. * - * Create a request for the method "regionInstanceGroupManagers.suspendInstances". + * 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 SuspendInstances#execute()} method to invoke the remote operation. - *

    {@link SuspendInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * 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.RegionInstanceGroupManagersSuspendInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersAbandonInstancesRequest} * @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) { + 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()) { @@ -169691,63 +160526,63 @@ protected SuspendInstances(java.lang.String project, java.lang.String region, ja } @Override - public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { - return (SuspendInstances) super.set$Xgafv($Xgafv); + public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { + return (AbandonInstances) super.set$Xgafv($Xgafv); } @Override - public SuspendInstances setAccessToken(java.lang.String accessToken) { - return (SuspendInstances) super.setAccessToken(accessToken); + public AbandonInstances setAccessToken(java.lang.String accessToken) { + return (AbandonInstances) super.setAccessToken(accessToken); } @Override - public SuspendInstances setAlt(java.lang.String alt) { - return (SuspendInstances) super.setAlt(alt); + public AbandonInstances setAlt(java.lang.String alt) { + return (AbandonInstances) super.setAlt(alt); } @Override - public SuspendInstances setCallback(java.lang.String callback) { - return (SuspendInstances) super.setCallback(callback); + public AbandonInstances setCallback(java.lang.String callback) { + return (AbandonInstances) super.setCallback(callback); } @Override - public SuspendInstances setFields(java.lang.String fields) { - return (SuspendInstances) super.setFields(fields); + public AbandonInstances setFields(java.lang.String fields) { + return (AbandonInstances) super.setFields(fields); } @Override - public SuspendInstances setKey(java.lang.String key) { - return (SuspendInstances) super.setKey(key); + public AbandonInstances setKey(java.lang.String key) { + return (AbandonInstances) super.setKey(key); } @Override - public SuspendInstances setOauthToken(java.lang.String oauthToken) { - return (SuspendInstances) super.setOauthToken(oauthToken); + public AbandonInstances setOauthToken(java.lang.String oauthToken) { + return (AbandonInstances) super.setOauthToken(oauthToken); } @Override - public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SuspendInstances) super.setPrettyPrint(prettyPrint); + public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AbandonInstances) super.setPrettyPrint(prettyPrint); } @Override - public SuspendInstances setQuotaUser(java.lang.String quotaUser) { - return (SuspendInstances) super.setQuotaUser(quotaUser); + public AbandonInstances setQuotaUser(java.lang.String quotaUser) { + return (AbandonInstances) super.setQuotaUser(quotaUser); } @Override - public SuspendInstances setUploadType(java.lang.String uploadType) { - return (SuspendInstances) super.setUploadType(uploadType); + public AbandonInstances setUploadType(java.lang.String uploadType) { + return (AbandonInstances) super.setUploadType(uploadType); } @Override - public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (SuspendInstances) super.setUploadProtocol(uploadProtocol); + public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AbandonInstances) super.setUploadProtocol(uploadProtocol); } @Override - public SuspendInstances setUserIp(java.lang.String userIp) { - return (SuspendInstances) super.setUserIp(userIp); + public AbandonInstances setUserIp(java.lang.String userIp) { + return (AbandonInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -169761,7 +160596,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SuspendInstances setProject(java.lang.String project) { + 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 " + @@ -169782,7 +160617,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public SuspendInstances setRegion(java.lang.String region) { + public AbandonInstances setRegion(java.lang.String region) { this.region = region; return this; } @@ -169798,7 +160633,7 @@ public java.lang.String getInstanceGroupManager() { } /** Name of the managed instance group. */ - public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -169847,68 +160682,63 @@ public java.lang.String getRequestId() { * 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) { + public AbandonInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SuspendInstances set(String parameterName, Object value) { - return (SuspendInstances) super.set(parameterName, value); + public AbandonInstances set(String parameterName, Object value) { + return (AbandonInstances) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Apply updates to selected instances the managed instance group. * - * Create a request for the method "regionInstanceGroupManagers.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link ApplyUpdatesToInstances#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class ApplyUpdatesToInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Apply updates to selected instances the managed instance group. * - * Create a request for the method "regionInstanceGroupManagers.testIamPermissions". + * 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 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 + * 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 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} + * @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 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); + 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(), @@ -169916,77 +160746,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { + return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { + return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ApplyUpdatesToInstances setAlt(java.lang.String alt) { + return (ApplyUpdatesToInstances) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ApplyUpdatesToInstances setCallback(java.lang.String callback) { + return (ApplyUpdatesToInstances) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ApplyUpdatesToInstances setFields(java.lang.String fields) { + return (ApplyUpdatesToInstances) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ApplyUpdatesToInstances setKey(java.lang.String key) { + return (ApplyUpdatesToInstances) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { + return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { + return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { + return (ApplyUpdatesToInstances) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { + return (ApplyUpdatesToInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170000,7 +160820,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -170010,114 +160830,103 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request, should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request, should conform to RFC1035. */ 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])?"); - } + /** Name of the region scoping this request, should conform to RFC1035. */ + public ApplyUpdatesToInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** The name of the managed instance group, should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** The name of the managed instance group, should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public ApplyUpdatesToInstances set(String parameterName, Object value) { + return (ApplyUpdatesToInstances) 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 updated even if the instances in the group have not - * yet been updated. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * 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. + * 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.update". + * 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 Update#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateInstances#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} + * @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 Update update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { - Update result = new Update(project, region, instanceGroupManager, content); + 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 Update extends ComputeRequest { + public class CreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 updated even if the instances in the group have - * not yet been updated. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * 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. + * 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.update". + * 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 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.

    + * 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 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} + * @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 Update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -170129,63 +160938,63 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170199,7 +161008,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -170209,34 +161018,44 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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; - /** Name of the region scoping this request. + /** The name of theregion where the managed instance group is located. It should conform to RFC1035. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String 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 instance group manager. */ + /** + * 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 instance group manager. + /** The name of the managed instance group. It should conform to RFC1035. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the instance group manager. */ - public Update setInstanceGroupManager(java.lang.String 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; } @@ -170249,7 +161068,7 @@ public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -170262,8 +161081,7 @@ public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + 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). @@ -170280,72 +161098,64 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. * * 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) { + public CreateInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) 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. + * Deletes the specified managed instance group and all of the instances in that group. * - * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". + * 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 UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * 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, 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} + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group to delete. * @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); + 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 UpdatePerInstanceConfigs extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Deletes the specified managed instance group and all of the instances in that group. * - * Create a request for the method "regionInstanceGroupManagers.updatePerInstanceConfigs". + * 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 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.

    + * 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, 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} + * @param region Name of the region scoping this request. + * @param instanceGroupManager Name of the managed instance group to delete. * @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); + 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(), @@ -170357,63 +161167,63 @@ protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String re } @Override - public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { - return (UpdatePerInstanceConfigs) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { - return (UpdatePerInstanceConfigs) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public UpdatePerInstanceConfigs setFields(java.lang.String fields) { - return (UpdatePerInstanceConfigs) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public UpdatePerInstanceConfigs setKey(java.lang.String key) { - return (UpdatePerInstanceConfigs) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (UpdatePerInstanceConfigs) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170427,7 +161237,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdatePerInstanceConfigs setProject(java.lang.String project) { + 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 " + @@ -170437,38 +161247,34 @@ public UpdatePerInstanceConfigs setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request, should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request, should conform to RFC1035. + /** Name of the region scoping this request. */ 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) { + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { this.region = region; return this; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ + /** 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. It should conform to RFC1035. + /** Name of the managed instance group to delete. */ 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) { + /** Name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -170517,82 +161323,84 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdatePerInstanceConfigs set(String parameterName, Object value) { - return (UpdatePerInstanceConfigs) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * 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. * - * Create a request for the method "regionInstanceGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 instanceGroup Name of the instance group resource to return. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} * @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); + 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 Get extends ComputeRequest { + public class DeleteInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "regionInstanceGroups.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 instanceGroup Name of the instance group resource to return. + * @param instanceGroupManager Name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersDeleteInstancesRequest} * @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); + 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(), @@ -170600,77 +161408,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170684,7 +161482,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -170705,73 +161503,128 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + public DeleteInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the instance group resource to return. */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String instanceGroup; + private java.lang.String instanceGroupManager; - /** Name of the instance group resource to return. + /** Name of the managed instance group. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** Name of the instance group resource to return. */ - public Get setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** Name of the managed instance group. */ + public DeleteInstances 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 DeleteInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public DeleteInstances set(String parameterName, Object value) { + return (DeleteInstances) super.set(parameterName, value); } } /** - * Retrieves the list of instance group resources contained within the specified region. + * Deletes selected per-instance configurations for the managed instance group. * - * Create a request for the method "regionInstanceGroups.list". + * 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 List#execute()} method to invoke the remote operation. + * 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. + * @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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class DeletePerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Deletes selected per-instance configurations for the managed instance group. * - * Create a request for the method "regionInstanceGroups.list". + * 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 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.

    + * 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. + * @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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionInstanceGroupList.class); + 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(), @@ -170779,76 +161632,67 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public DeletePerInstanceConfigs setAlt(java.lang.String alt) { + return (DeletePerInstanceConfigs) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public DeletePerInstanceConfigs setCallback(java.lang.String callback) { + return (DeletePerInstanceConfigs) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public DeletePerInstanceConfigs setFields(java.lang.String fields) { + return (DeletePerInstanceConfigs) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public DeletePerInstanceConfigs setKey(java.lang.String key) { + return (DeletePerInstanceConfigs) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (DeletePerInstanceConfigs) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (DeletePerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -170862,7 +161706,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -170872,343 +161716,86 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** 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. + /** 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. */ - public List setRegion(java.lang.String region) { + /** Name of the region scoping this request, should conform to RFC1035. */ + public DeletePerInstanceConfigs 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The name of the managed instance group. It should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String instanceGroupManager; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public DeletePerInstanceConfigs set(String parameterName, Object value) { + return (DeletePerInstanceConfigs) 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. + * Returns all of the details about the specified managed instance group. * - * Create a request for the method "regionInstanceGroups.listInstances". + * 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 ListInstances#execute()} method to invoke the remote operation. + * 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 regional instance group for which we want to list the - instances. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupsListInstancesRequest} + * @param instanceGroupManager Name of the managed instance group to return. * @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); + 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 ListInstances extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Returns all of the details about the specified managed instance group. * - * Create a request for the method "regionInstanceGroups.listInstances". + * 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 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. - *

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 regional instance group for which we want to list the - instances. - * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupsListInstancesRequest} + * @param instanceGroupManager Name of the managed instance group to return. * @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); + 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(), @@ -171216,67 +161803,77 @@ protected ListInstances(java.lang.String project, java.lang.String region, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public ListInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListInstances) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ListInstances setAccessToken(java.lang.String accessToken) { - return (ListInstances) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ListInstances setAlt(java.lang.String alt) { - return (ListInstances) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListInstances setCallback(java.lang.String callback) { - return (ListInstances) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListInstances setFields(java.lang.String fields) { - return (ListInstances) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListInstances setKey(java.lang.String key) { - return (ListInstances) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListInstances setOauthToken(java.lang.String oauthToken) { - return (ListInstances) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListInstances) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListInstances setQuotaUser(java.lang.String quotaUser) { - return (ListInstances) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListInstances setUploadType(java.lang.String uploadType) { - return (ListInstances) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListInstances) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListInstances setUserIp(java.lang.String userIp) { - return (ListInstances) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -171290,7 +161887,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListInstances setProject(java.lang.String project) { + 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 " + @@ -171311,345 +161908,86 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public ListInstances setRegion(java.lang.String region) { + public Get 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the managed instance group to return. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String instanceGroupManager; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the managed instance group to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the managed instance group to return. */ + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @Override - public ListInstances set(String parameterName, Object value) { - return (ListInstances) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the named ports for the specified regional instance group. + * 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. * - * Create a request for the method "regionInstanceGroups.setNamedPorts". + * 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 SetNamedPorts#execute()} method to invoke the remote operation. + * 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 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} + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @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); + 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 SetNamedPorts extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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. * - * Create a request for the method "regionInstanceGroups.setNamedPorts". + * 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 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. - *

    + * 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 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} + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @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) { + 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()) { @@ -171658,67 +161996,66 @@ protected SetNamedPorts(java.lang.String project, java.lang.String region, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { - return (SetNamedPorts) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetNamedPorts setAccessToken(java.lang.String accessToken) { - return (SetNamedPorts) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetNamedPorts setAlt(java.lang.String alt) { - return (SetNamedPorts) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetNamedPorts setCallback(java.lang.String callback) { - return (SetNamedPorts) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetNamedPorts setFields(java.lang.String fields) { - return (SetNamedPorts) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetNamedPorts setKey(java.lang.String key) { - return (SetNamedPorts) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetNamedPorts setOauthToken(java.lang.String oauthToken) { - return (SetNamedPorts) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNamedPorts) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { - return (SetNamedPorts) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetNamedPorts setUploadType(java.lang.String uploadType) { - return (SetNamedPorts) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetNamedPorts setUserIp(java.lang.String userIp) { - return (SetNamedPorts) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -171732,7 +162069,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNamedPorts setProject(java.lang.String project) { + 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 " + @@ -171753,27 +162090,11 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public SetNamedPorts setRegion(java.lang.String region) { + public Insert 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 @@ -171818,68 +162139,57 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNamedPorts set(String parameterName, Object value) { - return (SetNamedPorts) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of managed instance groups that are contained within the specified region. * - * Create a request for the method "regionInstanceGroups.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Retrieves the list of managed instance groups that are contained within the specified region. * - * Create a request for the method "regionInstanceGroups.testIamPermissions". + * 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 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.

    + * 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. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region scoping this request. * @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); + 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(), @@ -171887,77 +162197,76 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -171971,7 +162280,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -171981,373 +162290,347 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "regionInstanceTemplates.delete". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @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 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** The name of the region for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** The name of the region for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** The name of the instance template to delete. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String instanceTemplate; + private java.lang.String pageToken; - /** The name of the instance template to delete. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - 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; + public java.lang.String getPageToken() { + return pageToken; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the specified instance template. + * 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 "regionInstanceTemplates.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link ListErrors#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. + * @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 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); + 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 Get extends ComputeRequest { + public class ListErrors extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionInstanceTemplates.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 The name of the region for this request. - * @param instanceTemplate The name of the instance template. + * @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 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); + 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(), @@ -172355,17 +162638,7 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override @@ -172379,63 +162652,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListErrors set$Xgafv(java.lang.String $Xgafv) { + return (ListErrors) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListErrors setAccessToken(java.lang.String accessToken) { + return (ListErrors) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListErrors setAlt(java.lang.String alt) { + return (ListErrors) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListErrors setCallback(java.lang.String callback) { + return (ListErrors) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListErrors setFields(java.lang.String fields) { + return (ListErrors) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListErrors setKey(java.lang.String key) { + return (ListErrors) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListErrors setOauthToken(java.lang.String oauthToken) { + return (ListErrors) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListErrors) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListErrors setQuotaUser(java.lang.String quotaUser) { + return (ListErrors) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListErrors setUploadType(java.lang.String uploadType) { + return (ListErrors) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { + return (ListErrors) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListErrors setUserIp(java.lang.String userIp) { + return (ListErrors) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -172449,7 +162722,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -172459,117 +162732,372 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * Name of the region scoping this request. This should conform to RFC1035. + */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. This should conform to RFC1035. */ 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])?"); - } + /** + * 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 instance template. */ + /** + * 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 instanceTemplate; + private java.lang.String instanceGroupManager; - /** The name of the instance template. + /** 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 getInstanceTemplate() { - return instanceTemplate; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** + * 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; } - /** View of the instance template. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String filter; - /** View of the instance template. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getView() { - return view; + public java.lang.String getFilter() { + return filter; } - /** View of the instance template. */ - public Get setView(java.lang.String view) { - this.view = view; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListErrors setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListErrors set(String parameterName, Object value) { + return (ListErrors) 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. + * 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 "regionInstanceTemplates.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link ListManagedInstances#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} + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. * @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); + 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 Insert extends ComputeRequest { + public class ListManagedInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "regionInstanceTemplates.insert". + * 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 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.

    + * 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 The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @param region Name of the region scoping this request. + * @param instanceGroupManager The name of the managed instance group. * @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); + 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(), @@ -172577,71 +163105,67 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListManagedInstances) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public ListManagedInstances setAccessToken(java.lang.String accessToken) { + return (ListManagedInstances) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public ListManagedInstances setAlt(java.lang.String alt) { + return (ListManagedInstances) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public ListManagedInstances setCallback(java.lang.String callback) { + return (ListManagedInstances) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public ListManagedInstances setFields(java.lang.String fields) { + return (ListManagedInstances) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public ListManagedInstances setKey(java.lang.String key) { + return (ListManagedInstances) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public ListManagedInstances setOauthToken(java.lang.String oauthToken) { + return (ListManagedInstances) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListManagedInstances) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { + return (ListManagedInstances) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public ListManagedInstances setUploadType(java.lang.String uploadType) { + return (ListManagedInstances) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public ListManagedInstances setUserIp(java.lang.String userIp) { + return (ListManagedInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -172655,7 +163179,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -172665,127 +163189,354 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** 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; + } + /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListManagedInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public ListManagedInstances set(String parameterName, Object value) { + return (ListManagedInstances) super.set(parameterName, value); } } /** - * Retrieves a list of instance templates that are contained within the specified project and - * region. + * 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 "regionInstanceTemplates.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region The name of the regions 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class ListPerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "regionInstanceTemplates.list". + * 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 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.

    + * 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 The name of the regions 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateList.class); + 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(), @@ -172793,81 +163544,67 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (ListPerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListPerInstanceConfigs setAlt(java.lang.String alt) { + return (ListPerInstanceConfigs) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListPerInstanceConfigs setCallback(java.lang.String callback) { + return (ListPerInstanceConfigs) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListPerInstanceConfigs setFields(java.lang.String fields) { + return (ListPerInstanceConfigs) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListPerInstanceConfigs setKey(java.lang.String key) { + return (ListPerInstanceConfigs) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (ListPerInstanceConfigs) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (ListPerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -172881,7 +163618,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -172891,24 +163628,35 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the regions for this request. */ + /** 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 region; + private java.lang.String instanceGroupManager; - /** The name of the regions for this request. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** The name of the managed instance group. It should conform to RFC1035. */ + public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -173043,7 +163791,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListPerInstanceConfigs setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -173072,7 +163820,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListPerInstanceConfigs setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -173116,7 +163864,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListPerInstanceConfigs setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -173139,7 +163887,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListPerInstanceConfigs setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -173171,345 +163919,79 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListPerInstanceConfigs setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** View of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** View of the instance template. - */ - public java.lang.String getView() { - return view; - } - - /** View of the instance template. */ - public List setView(java.lang.String view) { - this.view = view; - return this; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListPerInstanceConfigs set(String parameterName, Object value) { + return (ListPerInstanceConfigs) 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. + * 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. * - * @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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 + * 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 "regionInstantSnapshotGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 + * 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 "regionInstantSnapshotGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 name of the region for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to delete. + * @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 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); + 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(), @@ -173517,77 +163999,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -173601,7 +164073,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -173611,45 +164083,35 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the InstantSnapshotGroup resource to delete. */ + /** The name of the instance group manager. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; + private java.lang.String instanceGroupManager; - /** Name of the InstantSnapshotGroup resource to delete. + /** The name of the instance group manager. */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** The name of the instance group manager. */ + public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -173697,65 +164159,67 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * returns the specified InstantSnapshotGroup resource in the specified region. + * 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 "regionInstantSnapshotGroups.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchPerInstanceConfigs#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. + * @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 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); + 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 Get extends ComputeRequest { + public class PatchPerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{instantSnapshotGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionInstantSnapshotGroups.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 The name of the region for this request. - * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @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 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); + 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(), @@ -173763,87 +164227,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchPerInstanceConfigs setAlt(java.lang.String alt) { + return (PatchPerInstanceConfigs) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchPerInstanceConfigs setCallback(java.lang.String callback) { + return (PatchPerInstanceConfigs) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchPerInstanceConfigs setFields(java.lang.String fields) { + return (PatchPerInstanceConfigs) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchPerInstanceConfigs setKey(java.lang.String key) { + return (PatchPerInstanceConfigs) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (PatchPerInstanceConfigs) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (PatchPerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -173857,7 +164301,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -173867,437 +164311,39 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request, should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request, should conform to RFC1035. */ 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])?"); - } + /** Name of the region scoping this request, should conform to RFC1035. */ + public PatchPerInstanceConfigs setRegion(java.lang.String region) { 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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. + * The name of the managed instance group. It should conform to RFC1035. */ - 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; + private java.lang.String instanceGroupManager; - /** Requested IAM Policy version. + /** The name of the managed instance group. It should conform to RFC1035. */ - 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); + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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. + * The name of the managed instance group. It should conform to RFC1035. */ - 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; + public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -174345,158 +164391,150 @@ public java.lang.String getRequestId() { * 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) { + public PatchPerInstanceConfigs 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); + public PatchPerInstanceConfigs set(String parameterName, Object value) { + return (PatchPerInstanceConfigs) super.set(parameterName, value); } } /** - * retrieves the list of InstantSnapshotGroup resources contained within the specified region. + * 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 "regionInstantSnapshotGroups.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link RecreateInstances#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 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class RecreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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. * - * Create a request for the method "regionInstantSnapshotGroups.list". + * 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 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.

    + * 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 The name of the region 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListInstantSnapshotGroups.class); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (RecreateInstances) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RecreateInstances setAccessToken(java.lang.String accessToken) { + return (RecreateInstances) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RecreateInstances setAlt(java.lang.String alt) { + return (RecreateInstances) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RecreateInstances setCallback(java.lang.String callback) { + return (RecreateInstances) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RecreateInstances setFields(java.lang.String fields) { + return (RecreateInstances) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RecreateInstances setKey(java.lang.String key) { + return (RecreateInstances) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RecreateInstances setOauthToken(java.lang.String oauthToken) { + return (RecreateInstances) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RecreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RecreateInstances setQuotaUser(java.lang.String quotaUser) { + return (RecreateInstances) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RecreateInstances setUploadType(java.lang.String uploadType) { + return (RecreateInstances) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RecreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public RecreateInstances setUserIp(java.lang.String userIp) { + return (RecreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -174510,7 +164548,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -174520,348 +164558,161 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public RecreateInstances 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`) - */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String instanceGroupManager; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the managed instance group. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** Name of the managed instance group. */ + public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public RecreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public RecreateInstances set(String parameterName, Object value) { + return (RecreateInstances) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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 "regionInstantSnapshotGroups.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Resize#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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionInstantSnapshotGroups.setIamPolicy". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -174869,77 +164720,68 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -174953,7 +164795,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -174963,105 +164805,188 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public Resize setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** Name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Resizes the regional managed instance group with advanced configuration options like disabling + * creation retries. This is an extended version of theresize method. + * + * 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 the get orlistmanagedinstances 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 "regionInstantSnapshotGroups.testIamPermissions". + * Create a request for the method "regionInstanceGroupManagers.resizeAdvanced". * * 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. + * parameters, call the {@link ResizeAdvanced#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} + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} * @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); + public ResizeAdvanced resizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) throws java.io.IOException { + ResizeAdvanced result = new ResizeAdvanced(project, region, instanceGroupManager, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class ResizeAdvanced extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshotGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Resizes the regional managed instance group with advanced configuration options like disabling + * creation retries. This is an extended version of theresize method. + * + * 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 the get orlistmanagedinstances 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 "regionInstantSnapshotGroups.testIamPermissions". + * Create a request for the method "regionInstanceGroupManagers.resizeAdvanced". * * 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.

    + * parameters, call the {@link ResizeAdvanced#execute()} method to invoke the remote operation. + *

    {@link ResizeAdvanced#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 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} + * @param region Name of the region scoping this request. + It must be a string that meets the requirements in RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It must be a string that meets the requirements in RFC1035. + * @param content the {@link com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest} * @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); + protected ResizeAdvanced(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersResizeAdvancedRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -175069,77 +164994,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public ResizeAdvanced set$Xgafv(java.lang.String $Xgafv) { + return (ResizeAdvanced) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public ResizeAdvanced setAccessToken(java.lang.String accessToken) { + return (ResizeAdvanced) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public ResizeAdvanced setAlt(java.lang.String alt) { + return (ResizeAdvanced) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public ResizeAdvanced setCallback(java.lang.String callback) { + return (ResizeAdvanced) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public ResizeAdvanced setFields(java.lang.String fields) { + return (ResizeAdvanced) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public ResizeAdvanced setKey(java.lang.String key) { + return (ResizeAdvanced) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public ResizeAdvanced setOauthToken(java.lang.String oauthToken) { + return (ResizeAdvanced) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public ResizeAdvanced setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResizeAdvanced) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public ResizeAdvanced setQuotaUser(java.lang.String quotaUser) { + return (ResizeAdvanced) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public ResizeAdvanced setUploadType(java.lang.String uploadType) { + return (ResizeAdvanced) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public ResizeAdvanced setUploadProtocol(java.lang.String uploadProtocol) { + return (ResizeAdvanced) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public ResizeAdvanced setUserIp(java.lang.String userIp) { + return (ResizeAdvanced) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -175153,7 +165068,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public ResizeAdvanced setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -175163,135 +165078,177 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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; - /** The name of the region for this request. + /** 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; } - /** 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])?"); - } + /** + * Name of the region scoping this request. It must be a string that meets the requirements in + * RFC1035. + */ + public ResizeAdvanced setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035. + */ + public ResizeAdvanced setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "regionInstantSnapshots" collection of methods. - */ - public class RegionInstantSnapshots { + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public ResizeAdvanced setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override + public ResizeAdvanced set(String parameterName, Object value) { + return (ResizeAdvanced) 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. + * 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. * - * For more information, seeDeleting instantSnapshots. + * 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. * - * Create a request for the method "regionInstantSnapshots.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link ResumeInstances#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. + * @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 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); + 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 Delete extends ComputeRequest { + public class ResumeInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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. * - * For more information, seeDeleting instantSnapshots. + * 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. * - * Create a request for the method "regionInstantSnapshots.delete". + * 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 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.

    + * 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 The name of the region for this request. - * @param instantSnapshot Name of the InstantSnapshot resource to delete. + * @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 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); + 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(), @@ -175299,77 +165256,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { + return (ResumeInstances) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public ResumeInstances setAccessToken(java.lang.String accessToken) { + return (ResumeInstances) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public ResumeInstances setAlt(java.lang.String alt) { + return (ResumeInstances) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public ResumeInstances setCallback(java.lang.String callback) { + return (ResumeInstances) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public ResumeInstances setFields(java.lang.String fields) { + return (ResumeInstances) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public ResumeInstances setKey(java.lang.String key) { + return (ResumeInstances) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public ResumeInstances setOauthToken(java.lang.String oauthToken) { + return (ResumeInstances) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResumeInstances) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public ResumeInstances setQuotaUser(java.lang.String quotaUser) { + return (ResumeInstances) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public ResumeInstances setUploadType(java.lang.String uploadType) { + return (ResumeInstances) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ResumeInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public ResumeInstances setUserIp(java.lang.String userIp) { + return (ResumeInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -175383,7 +165330,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -175393,45 +165340,35 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public ResumeInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the InstantSnapshot resource to delete. */ + /** Name of the managed instance group. */ @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; + 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; } @@ -175479,65 +165416,65 @@ public java.lang.String getRequestId() { * 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) { + public ResumeInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ResumeInstances set(String parameterName, Object value) { + return (ResumeInstances) super.set(parameterName, value); } } /** - * Returns the specified InstantSnapshot resource in the specified region. + * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] + * This method is deprecated. UseregionInstanceGroupManagers.patch instead. * - * Create a request for the method "regionInstantSnapshots.get". + * Create a request for the method "regionInstanceGroupManagers.setAutoHealingPolicies". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetAutoHealingPolicies#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. + * @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.RegionInstanceGroupManagersSetAutoHealingRequest} * @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); + public SetAutoHealingPolicies setAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) throws java.io.IOException { + SetAutoHealingPolicies result = new SetAutoHealingPolicies(project, region, instanceGroupManager, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SetAutoHealingPolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] + * This method is deprecated. UseregionInstanceGroupManagers.patch instead. * - * Create a request for the method "regionInstantSnapshots.get". + * Create a request for the method "regionInstanceGroupManagers.setAutoHealingPolicies". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link SetAutoHealingPolicies#execute()} method to invoke the remote + * operation.

    {@link SetAutoHealingPolicies#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 instantSnapshot Name of the InstantSnapshot resource to return. + * @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.RegionInstanceGroupManagersSetAutoHealingRequest} * @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); + protected SetAutoHealingPolicies(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.RegionInstanceGroupManagersSetAutoHealingRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -175545,87 +165482,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetAutoHealingPolicies set$Xgafv(java.lang.String $Xgafv) { + return (SetAutoHealingPolicies) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetAutoHealingPolicies setAccessToken(java.lang.String accessToken) { + return (SetAutoHealingPolicies) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetAutoHealingPolicies setAlt(java.lang.String alt) { + return (SetAutoHealingPolicies) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetAutoHealingPolicies setCallback(java.lang.String callback) { + return (SetAutoHealingPolicies) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetAutoHealingPolicies setFields(java.lang.String fields) { + return (SetAutoHealingPolicies) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetAutoHealingPolicies setKey(java.lang.String key) { + return (SetAutoHealingPolicies) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetAutoHealingPolicies setOauthToken(java.lang.String oauthToken) { + return (SetAutoHealingPolicies) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetAutoHealingPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetAutoHealingPolicies) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetAutoHealingPolicies setQuotaUser(java.lang.String quotaUser) { + return (SetAutoHealingPolicies) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetAutoHealingPolicies setUploadType(java.lang.String uploadType) { + return (SetAutoHealingPolicies) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetAutoHealingPolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (SetAutoHealingPolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetAutoHealingPolicies setUserIp(java.lang.String userIp) { + return (SetAutoHealingPolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -175639,7 +165556,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SetAutoHealingPolicies setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -175649,104 +165566,140 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public SetAutoHealingPolicies setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the InstantSnapshot resource to return. */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshot; + private java.lang.String instanceGroupManager; - /** Name of the InstantSnapshot resource to return. + /** Name of the managed instance group. */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** Name of the managed instance group. */ + public SetAutoHealingPolicies 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 SetAutoHealingPolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetAutoHealingPolicies set(String parameterName, Object value) { + return (SetAutoHealingPolicies) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * 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 "regionInstantSnapshots.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetInstanceTemplate#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 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class SetInstanceTemplate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionInstantSnapshots.getIamPolicy". + * 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 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.

    + * 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 The name of the region for this request. - * @param resource Name or id of the resource 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 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); + 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(), @@ -175754,87 +165707,67 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetInstanceTemplate) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { + return (SetInstanceTemplate) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetInstanceTemplate setAlt(java.lang.String alt) { + return (SetInstanceTemplate) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetInstanceTemplate setCallback(java.lang.String callback) { + return (SetInstanceTemplate) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetInstanceTemplate setFields(java.lang.String fields) { + return (SetInstanceTemplate) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetInstanceTemplate setKey(java.lang.String key) { + return (SetInstanceTemplate) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { + return (SetInstanceTemplate) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetInstanceTemplate) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetInstanceTemplate setUploadType(java.lang.String uploadType) { + return (SetInstanceTemplate) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetInstanceTemplate setUserIp(java.lang.String userIp) { + return (SetInstanceTemplate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -175848,7 +165781,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -175858,114 +165791,139 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public SetInstanceTemplate setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** The name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** The name of the managed instance group. */ + public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public SetInstanceTemplate set(String parameterName, Object value) { + return (SetInstanceTemplate) super.set(parameterName, value); } } /** - * Creates an instant snapshot in the specified region. + * 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 "regionInstantSnapshots.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @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 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); + 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 Insert extends ComputeRequest { + public class SetTargetPools extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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 "regionInstantSnapshots.insert". + * 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 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.

    + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InstantSnapshot content) { + 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()) { @@ -175974,71 +165932,67 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { + return (SetTargetPools) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetTargetPools setAccessToken(java.lang.String accessToken) { + return (SetTargetPools) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetTargetPools setAlt(java.lang.String alt) { + return (SetTargetPools) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetTargetPools setCallback(java.lang.String callback) { + return (SetTargetPools) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetTargetPools setFields(java.lang.String fields) { + return (SetTargetPools) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetTargetPools setKey(java.lang.String key) { + return (SetTargetPools) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetTargetPools setOauthToken(java.lang.String oauthToken) { + return (SetTargetPools) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTargetPools) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetTargetPools setQuotaUser(java.lang.String quotaUser) { + return (SetTargetPools) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetTargetPools setUploadType(java.lang.String uploadType) { + return (SetTargetPools) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTargetPools) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetTargetPools setUserIp(java.lang.String userIp) { + return (SetTargetPools) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176052,7 +166006,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -176062,27 +166016,38 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** 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 @@ -176127,60 +166092,88 @@ public java.lang.String getRequestId() { * 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) { + public SetTargetPools setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetTargetPools set(String parameterName, Object value) { + return (SetTargetPools) super.set(parameterName, value); } } /** - * Retrieves the list of InstantSnapshot resources contained within the specified region. + * 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. * - * Create a request for the method "regionInstantSnapshots.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link StartInstances#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 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class StartInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * 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. * - * Create a request for the method "regionInstantSnapshots.list". + * 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 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.

    + * 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 The name of the region 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotList.class); + 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(), @@ -176188,81 +166181,67 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public StartInstances set$Xgafv(java.lang.String $Xgafv) { + return (StartInstances) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StartInstances setAccessToken(java.lang.String accessToken) { + return (StartInstances) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StartInstances setAlt(java.lang.String alt) { + return (StartInstances) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StartInstances setCallback(java.lang.String callback) { + return (StartInstances) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StartInstances setFields(java.lang.String fields) { + return (StartInstances) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StartInstances setKey(java.lang.String key) { + return (StartInstances) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StartInstances setOauthToken(java.lang.String oauthToken) { + return (StartInstances) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartInstances) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StartInstances setQuotaUser(java.lang.String quotaUser) { + return (StartInstances) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StartInstances setUploadType(java.lang.String uploadType) { + return (StartInstances) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StartInstances) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StartInstances setUserIp(java.lang.String userIp) { + return (StartInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176276,7 +166255,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -176286,348 +166265,175 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public StartInstances 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`) - */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String instanceGroupManager; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the managed instance group. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** Name of the managed instance group. */ + public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StartInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public StartInstances set(String parameterName, Object value) { + return (StartInstances) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * 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. * - * Create a request for the method "regionInstantSnapshots.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link StopInstances#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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class StopInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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. * - * Create a request for the method "regionInstantSnapshots.setIamPolicy". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -176635,77 +166441,67 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public StopInstances set$Xgafv(java.lang.String $Xgafv) { + return (StopInstances) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public StopInstances setAccessToken(java.lang.String accessToken) { + return (StopInstances) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public StopInstances setAlt(java.lang.String alt) { + return (StopInstances) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public StopInstances setCallback(java.lang.String callback) { + return (StopInstances) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public StopInstances setFields(java.lang.String fields) { + return (StopInstances) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public StopInstances setKey(java.lang.String key) { + return (StopInstances) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public StopInstances setOauthToken(java.lang.String oauthToken) { + return (StopInstances) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopInstances) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public StopInstances setQuotaUser(java.lang.String quotaUser) { + return (StopInstances) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public StopInstances setUploadType(java.lang.String uploadType) { + return (StopInstances) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StopInstances) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public StopInstances setUserIp(java.lang.String userIp) { + return (StopInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176719,7 +166515,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -176729,106 +166525,175 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public StopInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** The name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** The name of the managed instance group. */ + public StopInstances 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 StopInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public StopInstances set(String parameterName, Object value) { + return (StopInstances) super.set(parameterName, value); } } /** - * Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the - * Labeling Resources documentation. + * 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. * - * Create a request for the method "regionInstantSnapshots.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link SuspendInstances#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} + * @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 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); + 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 SetLabels extends ComputeRequest { + public class SuspendInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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. * - * Create a request for the method "regionInstantSnapshots.setLabels". + * 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 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.

    + * 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 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} + * @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 SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { + 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()) { @@ -176837,77 +166702,67 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { + return (SuspendInstances) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public SuspendInstances setAccessToken(java.lang.String accessToken) { + return (SuspendInstances) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public SuspendInstances setAlt(java.lang.String alt) { + return (SuspendInstances) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public SuspendInstances setCallback(java.lang.String callback) { + return (SuspendInstances) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public SuspendInstances setFields(java.lang.String fields) { + return (SuspendInstances) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public SuspendInstances setKey(java.lang.String key) { + return (SuspendInstances) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public SuspendInstances setOauthToken(java.lang.String oauthToken) { + return (SuspendInstances) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SuspendInstances) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public SuspendInstances setQuotaUser(java.lang.String quotaUser) { + return (SuspendInstances) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public SuspendInstances setUploadType(java.lang.String uploadType) { + return (SuspendInstances) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (SuspendInstances) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public SuspendInstances setUserIp(java.lang.String userIp) { + return (SuspendInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -176921,7 +166776,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + 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 " + @@ -176931,45 +166786,35 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public SuspendInstances setRegion(java.lang.String region) { this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** Name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** Name of the managed instance group. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** 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; + /** Name of the managed instance group. */ + public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -177017,20 +166862,20 @@ public java.lang.String getRequestId() { * 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) { + public SuspendInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public SuspendInstances set(String parameterName, Object value) { + return (SuspendInstances) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionInstantSnapshots.testIamPermissions". + * Create a request for the method "regionInstanceGroupManagers.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. @@ -177049,7 +166894,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -177063,7 +166908,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionMultiMigMembers.List request = compute.regionMultiMigMembers().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public RegionMultiMigMembers regionMultiMigMembers() { - return new RegionMultiMigMembers(); - } - - /** - * The "regionMultiMigMembers" collection of methods. - */ - public class RegionMultiMigMembers { - /** - * Retrieves information about the specified multi-MIG member. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is updated even if the instances in the group have not + * yet been updated. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. + * + * 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 "regionMultiMigMembers.get". + * Create a request for the method "regionInstanceGroupManagers.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * 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. Region name should conform to RFC1035. - * @param multiMig The name of the multi-MIG. - Name should conform to RFC1035 or be a resource ID. - * @param multiMigMember The name of the multi-MIG member. - Name should conform to RFC1035 or be a resource ID. + * @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 Get get(java.lang.String project, java.lang.String region, java.lang.String multiMig, java.lang.String multiMigMember) throws java.io.IOException { - Get result = new Get(project, region, multiMig, multiMigMember); + public Update update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Update result = new Update(project, region, instanceGroupManager, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers/{multiMigMember}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern MULTI_MIG_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 MULTI_MIG_MEMBER_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 multi-MIG member. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is updated even if the instances in the group have + * not yet been updated. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. + * + * 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 "regionMultiMigMembers.get". + * Create a request for the method "regionInstanceGroupManagers.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * 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. Region name should conform to RFC1035. - * @param multiMig The name of the multi-MIG. - Name should conform to RFC1035 or be a resource ID. - * @param multiMigMember The name of the multi-MIG member. - Name should conform to RFC1035 or be a resource ID. + * @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 Get(java.lang.String project, java.lang.String region, java.lang.String multiMig, java.lang.String multiMigMember) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigMember.class); + protected Update(java.lang.String project, java.lang.String region, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager 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(), @@ -177315,93 +167140,67 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), - "Parameter multiMig must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.multiMigMember = com.google.api.client.util.Preconditions.checkNotNull(multiMigMember, "Required parameter multiMigMember must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_MEMBER_PATTERN.matcher(multiMigMember).matches(), - "Parameter multiMigMember must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -177415,7 +167214,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -177425,602 +167224,143 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. Region name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. Region name should conform to RFC1035. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. Region name should conform to RFC1035. */ - 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 multi-MIG. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String multiMig; - - /** The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getMultiMig() { - return multiMig; - } - - /** - * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. - */ - public Get setMultiMig(java.lang.String multiMig) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), - "Parameter multiMig must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.multiMig = multiMig; - return this; - } - - /** - * The name of the multi-MIG member. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String multiMigMember; - - /** The name of the multi-MIG member. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getMultiMigMember() { - return multiMigMember; - } - - /** - * The name of the multi-MIG member. Name should conform to RFC1035 or be a resource ID. - */ - public Get setMultiMigMember(java.lang.String multiMigMember) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_MEMBER_PATTERN.matcher(multiMigMember).matches(), - "Parameter multiMigMember must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.multiMigMember = multiMigMember; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves a list of members of a specific multi-MIG. - * - * Create a request for the method "regionMultiMigMembers.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. Region name should conform to RFC1035. - * @param multiMig The name of the multi-MIG. - Name should conform to RFC1035 or be a resource ID. - * @return the request - */ - public List list(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { - List result = new List(project, region, multiMig); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers"; - - 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 members of a specific multi-MIG. - * - * Create a request for the method "regionMultiMigMembers.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. Region name should conform to RFC1035. - * @param multiMig The name of the multi-MIG. - Name should conform to RFC1035 or be a resource ID. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String region, java.lang.String multiMig) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigMemberList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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 region for this request. Region name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. Region name should conform to RFC1035. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. Region name should conform to RFC1035. */ - 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])?"); - } + /** Name of the region scoping this request. */ + public Update setRegion(java.lang.String region) { this.region = region; return this; } - /** - * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String multiMig; - - /** The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getMultiMig() { - return multiMig; - } - - /** - * The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID. - */ - public List setMultiMig(java.lang.String multiMig) { - this.multiMig = multiMig; - return this; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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`) - */ + /** The name of the instance group manager. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String instanceGroupManager; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** The name of the instance group manager. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** The name of the instance group manager. */ + public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionMultiMigs collection. - * - *

    The typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionMultiMigs.List request = compute.regionMultiMigs().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public RegionMultiMigs regionMultiMigs() { - return new RegionMultiMigs(); - } - - /** - * The "regionMultiMigs" collection of methods. - */ - public class RegionMultiMigs { - /** - * Deletes a multi-MIG in the specified project. + * 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 "regionMultiMigs.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 for this request. - * @param multiMig Name of the multi-MIG to delete. + * @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 Delete delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { - Delete result = new Delete(project, region, multiMig); + 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 Delete extends ComputeRequest { + public class UpdatePerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 a multi-MIG in the specified project. + * 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 "regionMultiMigs.delete". + * 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 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.

    + * 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 for this request. - * @param multiMig Name of the multi-MIG to delete. + * @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 Delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -178028,72 +167368,67 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { + return (UpdatePerInstanceConfigs) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { + return (UpdatePerInstanceConfigs) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public UpdatePerInstanceConfigs setFields(java.lang.String fields) { + return (UpdatePerInstanceConfigs) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public UpdatePerInstanceConfigs setKey(java.lang.String key) { + return (UpdatePerInstanceConfigs) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (UpdatePerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -178107,7 +167442,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -178117,40 +167452,39 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** 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 for this request. + /** Name of the region scoping this request, should conform to RFC1035. */ 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])?"); - } + /** Name of the region scoping this request, should conform to RFC1035. */ + public UpdatePerInstanceConfigs setRegion(java.lang.String region) { this.region = region; return this; } - /** Name of the multi-MIG to delete. */ + /** + * The name of the managed instance group. It should conform to RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String multiMig; + private java.lang.String instanceGroupManager; - /** Name of the multi-MIG to delete. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getMultiMig() { - return multiMig; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** Name of the multi-MIG to delete. */ - public Delete setMultiMig(java.lang.String multiMig) { - this.multiMig = multiMig; + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -178198,52 +167532,69 @@ public java.lang.String getRequestId() { * 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) { + public UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + 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 all the details of a specific multi-MIG. + * Returns the specified instance group resource. * - * Create a request for the method "regionMultiMigs.get". + * 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 for this request. - * @param multiMig Name of the multi-MIG resource to return. + * @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 multiMig) throws java.io.IOException { - Get result = new Get(project, region, multiMig); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern MULTI_MIG_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 multi-MIG. + * Returns the specified instance group resource. * - * Create a request for the method "regionMultiMigs.get". + * 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 @@ -178251,12 +167602,12 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param multiMig Name of the multi-MIG resource to return. + * @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 multiMig) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMig.class); + 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(), @@ -178264,17 +167615,7 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), - "Parameter multiMig must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override @@ -178368,45 +167709,35 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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 multi-MIG resource to return. */ + /** Name of the instance group resource to return. */ @com.google.api.client.util.Key - private java.lang.String multiMig; + private java.lang.String instanceGroup; - /** Name of the multi-MIG resource to return. + /** Name of the instance group resource to return. */ - public java.lang.String getMultiMig() { - return multiMig; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** Name of the multi-MIG resource to return. */ - public Get setMultiMig(java.lang.String multiMig) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), - "Parameter multiMig must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.multiMig = multiMig; + /** Name of the instance group resource to return. */ + public Get setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; return this; } @@ -178416,51 +167747,46 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a multi-MIG in the specified project. + * Retrieves the list of instance group resources contained within the specified region. * - * Create a request for the method "regionMultiMigs.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.MultiMig} + * @param region Name of the region scoping this request. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.MultiMig content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + 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 Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 multi-MIG in the specified project. + * Retrieves the list of instance group resources contained within the specified region. * - * Create a request for the method "regionMultiMigs.insert". + * 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 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.

    + * 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. - * @param content the {@link com.google.api.services.compute.model.MultiMig} + * @param region Name of the region scoping this request. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.MultiMig content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -178468,71 +167794,76 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -178546,7 +167877,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -178556,125 +167887,343 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** Name of the region scoping this request. */ + public List 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents you from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents you - from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getFilter() { + return filter; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents you from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves a list of multi-MIGs in a project and region. + * 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 "regionMultiMigs.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class ListInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 multi-MIGs in a project and region. + * 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 "regionMultiMigs.list". + * 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 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.

    + * 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 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigsList.class); + 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(), @@ -178682,81 +168231,67 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListInstances) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListInstances setAccessToken(java.lang.String accessToken) { + return (ListInstances) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListInstances setAlt(java.lang.String alt) { + return (ListInstances) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListInstances setCallback(java.lang.String callback) { + return (ListInstances) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListInstances setFields(java.lang.String fields) { + return (ListInstances) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListInstances setKey(java.lang.String key) { + return (ListInstances) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListInstances setOauthToken(java.lang.String oauthToken) { + return (ListInstances) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListInstances) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListInstances setQuotaUser(java.lang.String quotaUser) { + return (ListInstances) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListInstances setUploadType(java.lang.String uploadType) { + return (ListInstances) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListInstances) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListInstances setUserIp(java.lang.String userIp) { + return (ListInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -178770,7 +168305,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -178780,27 +168315,42 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping 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])?"); - } + /** 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 @@ -178932,7 +168482,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListInstances setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -178961,7 +168511,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListInstances setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -179005,7 +168555,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListInstances setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -179028,7 +168578,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListInstances setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -179060,93 +168610,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListInstances set(String parameterName, Object value) { + return (ListInstances) 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. + * Sets the named ports for the specified regional instance group. * - * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". + * 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 AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetNamedPorts#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} + * @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 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); + 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 AttachNetworkEndpoints extends ComputeRequest { + public class SetNamedPorts extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Sets the named ports for the specified regional instance group. * - * Create a request for the method "regionNetworkEndpointGroups.attachNetworkEndpoints". + * 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 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.

    + * 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 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} + * @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 AttachNetworkEndpoints(java.lang.String project, java.lang.String region, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.RegionNetworkEndpointGroupsAttachEndpointsRequest content) { + 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()) { @@ -179155,67 +168673,67 @@ protected AttachNetworkEndpoints(java.lang.String project, java.lang.String regi "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { + return (SetNamedPorts) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public SetNamedPorts setAccessToken(java.lang.String accessToken) { + return (SetNamedPorts) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public SetNamedPorts setAlt(java.lang.String alt) { + return (SetNamedPorts) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public SetNamedPorts setCallback(java.lang.String callback) { + return (SetNamedPorts) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public SetNamedPorts setFields(java.lang.String fields) { + return (SetNamedPorts) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public SetNamedPorts setKey(java.lang.String key) { + return (SetNamedPorts) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public SetNamedPorts setOauthToken(java.lang.String oauthToken) { + return (SetNamedPorts) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNamedPorts) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { + return (SetNamedPorts) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public SetNamedPorts setUploadType(java.lang.String uploadType) { + return (SetNamedPorts) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public SetNamedPorts setUserIp(java.lang.String userIp) { + return (SetNamedPorts) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -179229,7 +168747,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -179239,49 +168757,35 @@ public AttachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ + /** Name of the region scoping this request. */ @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. + /** Name of the region scoping this request. */ 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) { + /** Name of the region scoping this request. */ + public SetNamedPorts 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. - */ + /** The name of the regional instance group where the named ports are updated. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String instanceGroup; - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. + /** The name of the regional instance group where the named ports are updated. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** - * 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; + /** 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; } @@ -179329,65 +168833,68 @@ public java.lang.String getRequestId() { * 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) { + public SetNamedPorts setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); + public SetNamedPorts set(String parameterName, Object value) { + return (SetNamedPorts) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionNetworkEndpointGroups.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 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. + * @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 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); + 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 Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is - * configured as a backend of a backend service. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionNetworkEndpointGroups.delete". + * 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 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.

    + * 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 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. + * @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 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); + 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(), @@ -179395,67 +168902,77 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -179469,7 +168986,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -179479,157 +168996,127 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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) { + /** 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; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String resource; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getResource() { + return resource; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** + * 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionInstanceTemplates" collection of methods. + */ + public class RegionInstanceTemplates { - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Detach the network endpoint from the specified network endpoint group. + * Deletes the specified instance template. Deleting an instance template is permanent and cannot be + * undone. * - * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". + * 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 DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * 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 you are detaching network - endpoints from. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionNetworkEndpointGroupsDetachEndpointsRequest} + * @param region The name of the region for this request. + * @param instanceTemplate The name of the instance template to delete. * @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); + 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 DetachNetworkEndpoints extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * Detach the network endpoint from the specified network endpoint group. + * Deletes the specified instance template. Deleting an instance template is permanent and cannot + * be undone. * - * Create a request for the method "regionNetworkEndpointGroups.detachNetworkEndpoints". + * 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 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.

    + * 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 you are detaching network - endpoints from. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.RegionNetworkEndpointGroupsDetachEndpointsRequest} + * @param region The name of the region for this request. + * @param instanceTemplate The name of the instance template to delete. * @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); + 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(), @@ -179637,67 +169124,77 @@ protected DetachNetworkEndpoints(java.lang.String project, java.lang.String regi "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -179711,7 +169208,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -179721,48 +169218,45 @@ public DetachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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) { + /** 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 network endpoint group you are detaching network endpoints from. It should - * comply with RFC1035. - */ + /** The name of the instance template to delete. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String instanceTemplate; - /** The name of the network endpoint group you are detaching network endpoints from. It should comply - with RFC1035. + /** The name of the instance template to delete. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getInstanceTemplate() { + return instanceTemplate; } - /** - * 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; + /** 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; } @@ -179777,7 +169271,7 @@ public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEn * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -179791,7 +169285,7 @@ public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEn clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -179808,49 +169302,54 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ - public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Returns the specified instance template. * - * Create a request for the method "regionNetworkEndpointGroups.get". + * 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 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. + * @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 networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, region, networkEndpointGroup); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 network endpoint group. + * Returns the specified instance template. * - * Create a request for the method "regionNetworkEndpointGroups.get". + * 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 @@ -179858,13 +169357,12 @@ public class Get extends ComputeRequest * * @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. + * @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 networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); + 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(), @@ -179872,7 +169370,17 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -179966,41 +169474,61 @@ public Get setProject(java.lang.String project) { return this; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** - * The name of the region where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** 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 network endpoint group. It should comply with RFC1035. */ + /** The name of the instance template. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String instanceTemplate; - /** The name of the network endpoint group. It should comply with RFC1035. + /** The name of the instance template. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getInstanceTemplate() { + return instanceTemplate; } - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** 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; + } + + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public Get setView(java.lang.String view) { + this.view = view; return this; } @@ -180010,28 +169538,20 @@ public Get set(String parameterName, Object 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 + * 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 "regionNetworkEndpointGroups.insert". + * 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 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} + * @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.NetworkEndpointGroup content) throws java.io.IOException { + 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; @@ -180039,22 +169559,19 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 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 + * 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 "regionNetworkEndpointGroups.insert". + * 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 @@ -180062,13 +169579,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.NetworkEndpointGroup content) { + 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()) { @@ -180077,6 +169592,11 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -180160,25 +169680,23 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * The name of the region where you want to create the network endpoint group. It should - * comply with RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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. - */ + /** 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; } @@ -180238,17 +169756,16 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of regional network endpoint groups available to the specified project in the - * given region. + * Retrieves a list of instance templates that are contained within the specified project and + * region. * - * Create a request for the method "regionNetworkEndpointGroups.list". + * 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 theregion - where the network endpoint group is located. It should comply with RFC1035. + * @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 { @@ -180257,18 +169774,21 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instanceTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 network endpoint groups available to the specified project in - * the given region. + * Retrieves a list of instance templates that are contained within the specified project and + * region. * - * Create a request for the method "regionNetworkEndpointGroups.list". + * 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 @@ -180276,12 +169796,11 @@ public class List extends ComputeRequest * * @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 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.NetworkEndpointGroupList.class); + 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(), @@ -180289,6 +169808,11 @@ protected List(java.lang.String project, java.lang.String region) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -180382,24 +169906,23 @@ public List setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the regions for this request. */ @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. + /** The name of the regions for this request. */ public java.lang.String getRegion() { return region; } - /** - * The name of theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** 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; } @@ -180668,62 +170191,98 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public List setView(java.lang.String view) { + this.view = view; + 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 { + /** - * Lists the network endpoints in the specified network endpoint group. + * Creates multiple instances in a given region. Count specifies the number of instances to create. * - * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". + * 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 ListNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link BulkInsert#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. + * @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 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); + 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 ListNetworkEndpoints extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instances/bulkInsert"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 network endpoints in the specified network endpoint group. + * Creates multiple instances in a given region. Count specifies the number of instances to + * create. * - * Create a request for the method "regionNetworkEndpointGroups.listNetworkEndpoints". + * 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 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.

    + * 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 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. + * @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 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); + 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(), @@ -180731,67 +170290,71 @@ protected ListNetworkEndpoints(java.lang.String project, java.lang.String region "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -180805,7 +170368,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints setProject(java.lang.String project) { + 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 " + @@ -180815,366 +170378,131 @@ public ListNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of theregion where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** The name of the region for this request. */ @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. + /** The name of the region for this request. */ 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) { + /** 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; } /** - * 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies 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; - } + private java.lang.String requestId; - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public BulkInsert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionNetworkFirewallPolicies collection. + * An accessor for creating requests from the RegionInstantSnapshots collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionNetworkFirewallPolicies.List request = compute.regionNetworkFirewallPolicies().list(parameters ...)}
    +   *   {@code Compute.RegionInstantSnapshots.List request = compute.regionInstantSnapshots().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionNetworkFirewallPolicies regionNetworkFirewallPolicies() { - return new RegionNetworkFirewallPolicies(); + public RegionInstantSnapshots regionInstantSnapshots() { + return new RegionInstantSnapshots(); } /** - * The "regionNetworkFirewallPolicies" collection of methods. + * The "regionInstantSnapshots" collection of methods. */ - public class RegionNetworkFirewallPolicies { + public class RegionInstantSnapshots { /** - * Inserts an association for the specified network firewall policy. + * 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. * - * Create a request for the method "regionNetworkFirewallPolicies.addAssociation". + * 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 AddAssociation#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. * @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); + 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 AddAssociation extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181182,31 +170510,31 @@ public class AddAssociation extends ComputeRequest {@link AddAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. * @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); + 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(), @@ -181219,72 +170547,72 @@ protected AddAssociation(java.lang.String project, java.lang.String region, java "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."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -181298,7 +170626,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + 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 " + @@ -181308,18 +170636,18 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public AddAssociation setRegion(java.lang.String 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 " + @@ -181329,75 +170657,24 @@ public AddAssociation setRegion(java.lang.String 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'. - */ + /** Name of the InstantSnapshot resource to delete. */ @com.google.api.client.util.Key - private java.lang.String associatedPolicyToBeReplaced; + private java.lang.String instantSnapshot; - /** Name of the firewall policy associated with the target network to swap association with. This field - is mutually exclusive with 'replace_existing_association'. + /** Name of the InstantSnapshot resource to delete. */ - public java.lang.String getAssociatedPolicyToBeReplaced() { - return associatedPolicyToBeReplaced; + public java.lang.String getInstantSnapshot() { + return instantSnapshot; } - /** - * 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) { + /** Name of the InstantSnapshot resource to delete. */ + public Delete setInstantSnapshot(java.lang.String instantSnapshot) { 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 " + + 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.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; + this.instantSnapshot = instantSnapshot; return this; } @@ -181445,39 +170722,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts a rule into a network firewall policy. + * Returns the specified InstantSnapshot resource in the specified region. * - * Create a request for the method "regionNetworkFirewallPolicies.addRule". + * 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 AddRule#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. * @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); + 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 AddRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181485,28 +170761,26 @@ public class AddRule extends ComputeRequest - * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param region The name of the region for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. * @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); + 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(), @@ -181519,72 +170793,82 @@ protected AddRule(java.lang.String project, java.lang.String region, java.lang.S "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."); + 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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}"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -181598,7 +170882,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -181608,18 +170892,18 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public AddRule setRegion(java.lang.String 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 " + @@ -181629,149 +170913,279 @@ public AddRule setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the InstantSnapshot resource to return. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String instantSnapshot; - /** Name of the firewall policy to update. + /** Name of the InstantSnapshot resource to return. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getInstantSnapshot() { + return instantSnapshot; } - /** Name of the firewall policy to update. */ - public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the InstantSnapshot resource to return. */ + public Get setInstantSnapshot(java.lang.String instantSnapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + 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.firewallPolicy = firewallPolicy; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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.Integer maxPriority; + private java.lang.String project; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** Project ID for this request. */ - public java.lang.Integer getMaxPriority() { - return maxPriority; + public java.lang.String getProject() { + return project; } - /** - * 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; + /** 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; } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Integer minPriority; + private java.lang.String region; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The name of the region for this request. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String resource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Copies rules to the specified network firewall policy. + * Creates an instant snapshot in the specified region. * - * Create a request for the method "regionNetworkFirewallPolicies.cloneRules". + * 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 CloneRules#execute()} method to invoke the remote operation. + * 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 firewallPolicy Name of the firewall policy to update. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @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); + 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 CloneRules extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -181779,27 +171193,23 @@ public class CloneRules extends ComputeRequest - * {@link - * CloneRules#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 firewallPolicy Name of the firewall policy to update. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @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); + 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(), @@ -181812,72 +171222,66 @@ protected CloneRules(java.lang.String project, java.lang.String region, java.lan "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -181891,7 +171295,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CloneRules setProject(java.lang.String project) { + 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 " + @@ -181901,18 +171305,18 @@ public CloneRules setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public CloneRules setRegion(java.lang.String 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 " + @@ -181922,27 +171326,6 @@ public CloneRules setRegion(java.lang.String 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 @@ -181987,54 +171370,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert 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); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Deletes the specified network firewall policy. + * Retrieves the list of InstantSnapshot resources contained within the specified region. * - * Create a request for the method "regionNetworkFirewallPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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. - * @param firewallPolicy Name of the firewall policy to delete. + * @param region The name of the region for this request. * @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); + 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 Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182042,26 +171408,22 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @param firewallPolicy Name of the firewall policy to delete. + * @param region The name of the region for this request. * @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); + 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(), @@ -182074,213 +171436,412 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + 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; } - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region scoping this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region scoping this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the firewall policy to delete. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String pageToken; - /** Name of the firewall policy to delete. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the specified network firewall policy. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionNetworkFirewallPolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 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); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182288,26 +171849,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to get. + * @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 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); + 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(), @@ -182320,82 +171883,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -182409,7 +171962,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -182419,18 +171972,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -182440,54 +171993,56 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to get. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String resource; - /** Name of the firewall policy to get. + /** Name or id of the resource for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the firewall policy to get. */ - public Get setFirewallPolicy(java.lang.String firewallPolicy) { + /** 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.firewallPolicy = firewallPolicy; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Gets an association with the specified name. + * 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 "regionNetworkFirewallPolicies.getAssociation". + * 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 GetAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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. + * @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 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); + 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 GetAssociation extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182495,27 +172050,29 @@ public class GetAssociation extends ComputeRequest {@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 Name of the region scoping this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @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 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); + 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(), @@ -182528,82 +172085,72 @@ protected GetAssociation(java.lang.String project, java.lang.String region, java "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -182617,7 +172164,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetAssociation setProject(java.lang.String project) { + 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 " + @@ -182627,18 +172174,18 @@ public GetAssociation setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public GetAssociation setRegion(java.lang.String 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 " + @@ -182648,71 +172195,104 @@ public GetAssociation setRegion(java.lang.String region) { return this; } - /** Name of the firewall policy to which the queried association belongs. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String resource; - /** Name of the firewall policy to which the queried association belongs. + /** Name or id of the resource for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the firewall policy to which the queried association belongs. */ - public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + /** 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.firewallPolicy = firewallPolicy; + this.resource = resource; return this; } - /** The name of the association to get from the firewall policy. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String requestId; - /** The name of the association to get from the firewall policy. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getName() { - return name; + public java.lang.String getRequestId() { + return requestId; } - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Returns the effective firewalls on a given network. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regionNetworkFirewallPolicies.getEffectiveFirewalls". + * 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 GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. + * parameters, call the {@link TestIamPermissions#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 + * @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 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); + 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 GetEffectiveFirewalls extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls"; + private static final String REST_PATH = "projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182720,24 +172300,28 @@ public class GetEffectiveFirewalls extends ComputeRequest {@link GetEffectiveFirewalls#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * 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 Name of the region scoping this request. - * @param network Network reference + * @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 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); + 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(), @@ -182750,77 +172334,72 @@ protected GetEffectiveFirewalls(java.lang.String project, java.lang.String regio "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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -182834,7 +172413,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { + 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 " + @@ -182844,18 +172423,18 @@ public GetEffectiveFirewalls setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public GetEffectiveFirewalls setRegion(java.lang.String 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 " + @@ -182865,49 +172444,77 @@ public GetEffectiveFirewalls setRegion(java.lang.String region) { return this; } - /** Network reference */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String resource; - /** Network reference + /** Name or id of the resource for this request. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getResource() { + return resource; } - /** Network reference */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { - this.network = network; + /** 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 GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the RegionMultiMigs collection. + * + *

    The typical use is:

    + *
    +   *   {@code Compute compute = new Compute(...);}
    +   *   {@code Compute.RegionMultiMigs.List request = compute.regionMultiMigs().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public RegionMultiMigs regionMultiMigs() { + return new RegionMultiMigs(); + } + + /** + * The "regionMultiMigs" collection of methods. + */ + public class RegionMultiMigs { + /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Deletes a multi-MIG in the specified project. * - * Create a request for the method "regionNetworkFirewallPolicies.getIamPolicy". + * Create a request for the method "regionMultiMigs.delete". * * 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. + * 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 resource Name or id of the resource for this request. + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG to delete. * @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); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { + Delete result = new Delete(project, region, multiMig); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -182915,28 +172522,23 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 resource Name or id of the resource for this request. + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG to delete. * @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); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String multiMig) { + 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(), @@ -182949,82 +172551,67 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig must be specified."); } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -183038,7 +172625,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -183048,18 +172635,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -183069,70 +172656,98 @@ public GetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the multi-MIG to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String multiMig; - /** Name or id of the resource for this request. + /** Name of the multi-MIG to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getMultiMig() { + return multiMig; } - /** 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; + /** Name of the multi-MIG to delete. */ + public Delete setMultiMig(java.lang.String multiMig) { + this.multiMig = multiMig; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Returns all the details of a specific multi-MIG. * - * Create a request for the method "regionNetworkFirewallPolicies.getRule". + * Create a request for the method "regionMultiMigs.get". * * 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. + * 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 which the queried rule belongs. + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG resource to return. * @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); + public Get get(java.lang.String project, java.lang.String region, java.lang.String multiMig) throws java.io.IOException { + Get result = new Get(project, region, multiMig); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs/{multiMig}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183140,27 +172755,26 @@ public class GetRule extends ComputeRequest - * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 which the queried rule belongs. + * @param region Name of the region for this request. + * @param multiMig Name of the multi-MIG resource to return. * @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); + protected Get(java.lang.String project, java.lang.String region, java.lang.String multiMig) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMig.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -183173,10 +172787,10 @@ protected GetRule(java.lang.String project, java.lang.String region, java.lang.S "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."); + this.multiMig = com.google.api.client.util.Preconditions.checkNotNull(multiMig, "Required parameter multiMig 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 " + + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), + "Parameter multiMig must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -183192,63 +172806,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -183262,7 +172876,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + 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 " + @@ -183272,83 +172886,67 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for 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) { + + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.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 = firewallPolicy; + this.region = region; return this; } - /** The priority of the rule to get from the firewall policy. */ + /** Name of the multi-MIG resource to return. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String multiMig; - /** The priority of the rule to get from the firewall policy. + /** Name of the multi-MIG resource to return. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getMultiMig() { + return multiMig; } - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** Name of the multi-MIG resource to return. */ + public Get setMultiMig(java.lang.String multiMig) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MULTI_MIG_PATTERN.matcher(multiMig).matches(), + "Parameter multiMig must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.multiMig = multiMig; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new network firewall policy in the specified project and region. + * Creates a multi-MIG in the specified project. * - * Create a request for the method "regionNetworkFirewallPolicies.insert". + * Create a request for the method "regionMultiMigs.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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.MultiMig} * @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 { + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.MultiMig content) throws java.io.IOException { Insert result = new Insert(project, region, content); initialize(result); return result; @@ -183356,7 +172954,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183365,9 +172963,9 @@ public class Insert extends ComputeRequest {@link @@ -183375,11 +172973,11 @@ public class Insert extends ComputeRequest * * @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} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.MultiMig} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.FirewallPolicy content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.MultiMig content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -183476,17 +173074,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -183505,7 +173103,7 @@ public Insert setRegion(java.lang.String region) { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. This prevents you from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -183518,8 +173116,8 @@ public Insert setRegion(java.lang.String region) { For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + with the same request ID was received, and if so, will ignore the second request. This prevents you + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). @@ -183536,7 +173134,7 @@ public java.lang.String getRequestId() { * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * request. This prevents you from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). @@ -183552,16 +173150,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists all the network firewall policies that have been configured for the specified project in - * the given region. + * Retrieves a list of multi-MIGs in a project and region. * - * Create a request for the method "regionNetworkFirewallPolicies.list". + * Create a request for the method "regionMultiMigs.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. + * @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 { @@ -183570,9 +173167,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/multiMigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -183581,10 +173178,9 @@ public class List extends ComputeRequest {@link @@ -183592,11 +173188,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.FirewallPolicyList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MultiMigsList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -183702,17 +173298,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -183992,305 +173588,83 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 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(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + /** + * The "regionNetworkEndpointGroups" collection of methods. + */ + public class RegionNetworkEndpointGroups { - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } /** - * Updates an association for the specified network firewall policy. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "regionNetworkFirewallPolicies.patchAssociation". + * 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 PatchAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link AttachNetworkEndpoints#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} + * @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 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); + 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 PatchAssociation extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "regionNetworkFirewallPolicies.patchAssociation". + * 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 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.

    + * 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 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} + * @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 PatchAssociation(java.lang.String project, java.lang.String region, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { + 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()) { @@ -184299,77 +173673,67 @@ protected PatchAssociation(java.lang.String project, java.lang.String region, ja "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { - return (PatchAssociation) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public PatchAssociation setAccessToken(java.lang.String accessToken) { - return (PatchAssociation) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public PatchAssociation setAlt(java.lang.String alt) { - return (PatchAssociation) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public PatchAssociation setCallback(java.lang.String callback) { - return (PatchAssociation) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public PatchAssociation setFields(java.lang.String fields) { - return (PatchAssociation) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public PatchAssociation setKey(java.lang.String key) { - return (PatchAssociation) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public PatchAssociation setOauthToken(java.lang.String oauthToken) { - return (PatchAssociation) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchAssociation) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public PatchAssociation setQuotaUser(java.lang.String quotaUser) { - return (PatchAssociation) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public PatchAssociation setUploadType(java.lang.String uploadType) { - return (PatchAssociation) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchAssociation) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public PatchAssociation setUserIp(java.lang.String userIp) { - return (PatchAssociation) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -184383,7 +173747,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchAssociation setProject(java.lang.String project) { + 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 " + @@ -184393,573 +173757,49 @@ public PatchAssociation setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ - @com.google.api.client.util.Key - private java.lang.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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * The name of the region where you want to create the network endpoint group. It should + * comply with RFC1035. */ - 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. + /** 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; } - /** 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; + * 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; } - /** Name for the association that will be removed. */ + /** + * 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 name; + private java.lang.String networkEndpointGroup; - /** Name for the association that will be removed. + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. */ - public java.lang.String getName() { - return name; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** Name for the association that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + /** + * 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; } @@ -185007,66 +173847,65 @@ public java.lang.String getRequestId() { * 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) { + public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * 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 "regionNetworkFirewallPolicies.removeRule". + * 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 RemoveRule#execute()} method to invoke the remote operation. + * 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 update. + * @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 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); + 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 RemoveRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * 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 "regionNetworkFirewallPolicies.removeRule". + * 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 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.

    + * 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 update. + * @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 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); + 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(), @@ -185074,77 +173913,67 @@ protected RemoveRule(java.lang.String project, java.lang.String region, java.lan "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -185158,7 +173987,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -185168,61 +173997,45 @@ public RemoveRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** + * 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; - /** Name of the region scoping this request. + /** The name of the region where the network endpoint group is located. It should comply with RFC1035. */ 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])?"); - } + /** + * 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; } - /** 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. + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. */ - 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; + private java.lang.String networkEndpointGroup; - /** The priority of the rule to remove from the firewall policy. + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** The priority of the rule to remove from the firewall policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * 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; } @@ -185270,68 +174083,71 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "regionNetworkFirewallPolicies.setIamPolicy". + * 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 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.

    + * 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 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} + * @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 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); + 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(), @@ -185339,77 +174155,67 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -185423,7 +174229,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -185433,105 +174239,150 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 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])?"); - } + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String networkEndpointGroup; - /** Name or id of the resource for this request. + /** The name of the network endpoint group you are detaching network endpoints from. It should comply + with RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** + * 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified network endpoint group. * - * Create a request for the method "regionNetworkFirewallPolicies.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Returns the specified network endpoint group. * - * Create a request for the method "regionNetworkFirewallPolicies.testIamPermissions". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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(), @@ -185539,77 +174390,77 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -185623,7 +174474,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -185633,127 +174484,97 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * 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 for this request. + /** 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 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])?"); - } + /** + * 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; } - /** Name or id of the resource for this request. */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkEndpointGroup; - /** Name or id of the resource for this request. + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** 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; + /** 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the RegionNetworkPolicies collection. - * - *

    The typical use is:

    - *
    -   *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionNetworkPolicies.List request = compute.regionNetworkPolicies().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public RegionNetworkPolicies regionNetworkPolicies() { - return new RegionNetworkPolicies(); - } - - /** - * The "regionNetworkPolicies" collection of methods. - */ - public class RegionNetworkPolicies { - /** - * Inserts an association for the specified network policy. + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "regionNetworkPolicies.addAssociation". + * 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 AddAssociation#execute()} method to invoke the remote operation. + * 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 networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} + * @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 AddAssociation addAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(project, region, networkPolicy, content); + 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 AddAssociation extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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_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 network policy. + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "regionNetworkPolicies.addAssociation". + * 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 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.

    + * 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 networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} + * @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 AddAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) { + 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()) { @@ -185762,77 +174583,66 @@ protected AddAssociation(java.lang.String project, java.lang.String region, java "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -185846,7 +174656,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + 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 " + @@ -185856,45 +174666,26 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** + * 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; - /** Name of the region of this request. + /** 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; } - /** Name of the region of 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 network policy resource to update. */ - @com.google.api.client.util.Key - private java.lang.String networkPolicy; - - /** Name of the network policy resource to update. + /** + * The name of the region where you want to create the network endpoint group. It should + * comply with RFC1035. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; - } - - /** Name of the network policy resource to update. */ - public AddAssociation setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; + public Insert setRegion(java.lang.String region) { + this.region = region; return this; } @@ -185942,69 +174733,61 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Inserts a rule into a network policy. + * Retrieves the list of regional network endpoint groups available to the specified project in the + * given region. * - * Create a request for the method "regionNetworkPolicies.addTrafficClassificationRule". + * 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 AddTrafficClassificationRule#execute()} method to invoke the remote - * operation. + * 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. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @param region The name of theregion + where the network endpoint group is located. It should comply with RFC1035. * @return the request */ - public AddTrafficClassificationRule addTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { - AddTrafficClassificationRule result = new AddTrafficClassificationRule(project, region, networkPolicy, content); + 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 AddTrafficClassificationRule extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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_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 policy. + * Retrieves the list of regional network endpoint groups available to the specified project in + * the given region. * - * Create a request for the method "regionNetworkPolicies.addTrafficClassificationRule". + * 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 AddTrafficClassificationRule#execute()} method to invoke the remote - * operation.

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

    + * 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. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @param region The name of theregion + where the network endpoint group is located. It should comply with RFC1035. * @since 1.13 */ - protected AddTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -186012,317 +174795,509 @@ protected AddTrafficClassificationRule(java.lang.String project, java.lang.Strin "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public AddTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (AddTrafficClassificationRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (AddTrafficClassificationRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddTrafficClassificationRule setAlt(java.lang.String alt) { - return (AddTrafficClassificationRule) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AddTrafficClassificationRule setCallback(java.lang.String callback) { - return (AddTrafficClassificationRule) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AddTrafficClassificationRule setFields(java.lang.String fields) { - return (AddTrafficClassificationRule) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AddTrafficClassificationRule setKey(java.lang.String key) { - return (AddTrafficClassificationRule) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AddTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (AddTrafficClassificationRule) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AddTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AddTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (AddTrafficClassificationRule) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AddTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (AddTrafficClassificationRule) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AddTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AddTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (AddTrafficClassificationRule) super.setUserIp(userIp); + 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; } - /** Project ID for this request. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Long maxResults; - /** Project ID for this request. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Project ID for this request. */ - public AddTrafficClassificationRule setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - /** Name of the region of this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region of this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** Name of the region of this request. */ - public AddTrafficClassificationRule setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the network policy resource to update. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String pageToken; - /** Name of the network policy resource to update. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getPageToken() { + return pageToken; } - /** Name of the network policy resource to update. */ - public AddTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public AddTrafficClassificationRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public AddTrafficClassificationRule set(String parameterName, Object value) { - return (AddTrafficClassificationRule) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of network policies. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "regionNetworkPolicies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class ListNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 policies. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "regionNetworkPolicies.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAggregatedList.class); + 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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -186336,7 +175311,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -186346,6 +175321,51 @@ public AggregatedList setProject(java.lang.String 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 @@ -186477,45 +175497,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListNetworkEndpoints 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 @@ -186540,7 +175526,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -186584,7 +175570,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -186607,7 +175593,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListNetworkEndpoints setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -186639,61 +175625,62 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + 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 { + /** - * Deletes the specified policy. + * Inserts an association for the specified network firewall policy. * - * Create a request for the method "regionNetworkPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkPolicy Name of the network policy resource to delete. + * @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 Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, networkPolicy); + 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 Delete extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -186701,26 +175688,31 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy resource to delete. + * @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 Delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -186733,72 +175725,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -186812,7 +175804,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -186822,18 +175814,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -186843,24 +175835,75 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to delete. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String firewallPolicy; - /** Name of the network policy resource to delete. + /** Name of the firewall policy to update. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network policy resource to delete. */ - public Delete setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the firewall policy to update. */ + public AddAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + 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; } @@ -186908,38 +175951,39 @@ public java.lang.String getRequestId() { * 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) { + public AddAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); } } /** - * Returns the specified network policy. + * Inserts a rule into a network firewall policy. * - * Create a request for the method "regionNetworkPolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkPolicy Name of the network policy resource to return. + * @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 Get get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - Get result = new Get(project, region, networkPolicy); + 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 Get extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -186947,26 +175991,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy resource to return. + * @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 Get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicy.class); + 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(), @@ -186979,82 +176025,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -187068,7 +176104,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -187078,18 +176114,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Get setRegion(java.lang.String 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 " + @@ -187099,279 +176135,149 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to return. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String firewallPolicy; - /** Name of the network policy resource to return. + /** Name of the firewall policy to update. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network policy resource to return. */ - public Get setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the firewall policy to update. */ + public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + 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 "regionNetworkPolicies.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 of this request. - * @param networkPolicy Name of the network policy to which the queried association belongs. - * @return the request - */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, region, networkPolicy); - initialize(result); - return result; - } - - public class GetAssociation extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getAssociation"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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_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 "regionNetworkPolicies.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 of this request. - * @param networkPolicy Name of the network policy to which the queried association belongs. - * @since 1.13 + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. */ - protected GetAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAssociation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public 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; + private java.lang.Integer maxPriority; - /** Project ID for this request. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getProject() { - return project; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** 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; + /** + * 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; } - /** Name of the region of this request. */ + /** + * 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.String region; + private java.lang.Integer minPriority; - /** Name of the region of this request. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getRegion() { - return region; + public java.lang.Integer getMinPriority() { + return minPriority; } - /** Name of the region of 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; + /** + * 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; } - /** Name of the network policy to which the queried association belongs. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String requestId; - /** Name of the network policy to which the queried association belongs. - */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name of the network policy to which the queried association belongs. */ - public GetAssociation setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; - return this; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** The name of the association to get from the network policy. */ - @com.google.api.client.util.Key - private java.lang.String name; + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } - /** The name of the association to get from the network policy. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getName() { - return name; - } - - /** The name of the association to get from the network policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + public AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Copies rules to the specified network firewall policy. * - * Create a request for the method "regionNetworkPolicies.getTrafficClassificationRule". + * 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 GetTrafficClassificationRule#execute()} method to invoke the remote - * operation. + * 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 of this request. - * @param networkPolicy Name of the network policy to which the queried rule belongs. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public GetTrafficClassificationRule getTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - GetTrafficClassificationRule result = new GetTrafficClassificationRule(project, region, networkPolicy); + 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 GetTrafficClassificationRule extends ComputeRequest { + public class CloneRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -187379,27 +176285,27 @@ public class GetTrafficClassificationRule extends ComputeRequest {@link GetTrafficClassificationRule#initialize(com.google.api.client.googleapis. - * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy to which the queried rule belongs. + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected GetTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule.class); + 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(), @@ -187412,82 +176318,72 @@ protected GetTrafficClassificationRule(java.lang.String project, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (GetTrafficClassificationRule) super.set$Xgafv($Xgafv); + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); } @Override - public GetTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (GetTrafficClassificationRule) super.setAccessToken(accessToken); + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); } @Override - public GetTrafficClassificationRule setAlt(java.lang.String alt) { - return (GetTrafficClassificationRule) super.setAlt(alt); + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); } @Override - public GetTrafficClassificationRule setCallback(java.lang.String callback) { - return (GetTrafficClassificationRule) super.setCallback(callback); + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); } @Override - public GetTrafficClassificationRule setFields(java.lang.String fields) { - return (GetTrafficClassificationRule) super.setFields(fields); + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); } @Override - public GetTrafficClassificationRule setKey(java.lang.String key) { - return (GetTrafficClassificationRule) super.setKey(key); + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); } @Override - public GetTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (GetTrafficClassificationRule) super.setOauthToken(oauthToken); + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); } @Override - public GetTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); } @Override - public GetTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (GetTrafficClassificationRule) super.setQuotaUser(quotaUser); + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); } @Override - public GetTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (GetTrafficClassificationRule) super.setUploadType(uploadType); + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); } @Override - public GetTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); } @Override - public GetTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (GetTrafficClassificationRule) super.setUserIp(userIp); + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -187501,7 +176397,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -187511,18 +176407,18 @@ public GetTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public GetTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -187532,70 +176428,119 @@ public GetTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy to which the queried rule belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String firewallPolicy; - /** Name of the network policy to which the queried rule belongs. + /** Name of the firewall policy to update. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network policy to which the queried rule belongs. */ - public GetTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + /** Name of the firewall policy to update. */ + public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; + this.firewallPolicy = firewallPolicy; return this; } - /** The priority of the rule to get from the network policy. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String requestId; - /** The priority of the rule to get from the network policy. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRequestId() { + return requestId; } - /** The priority of the rule to get from the network policy. */ - public GetTrafficClassificationRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetTrafficClassificationRule set(String parameterName, Object value) { - return (GetTrafficClassificationRule) super.set(parameterName, value); + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project using the data included in the request. + * Deletes the specified network firewall policy. * - * Create a request for the method "regionNetworkPolicies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to delete. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + 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 Insert extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -187603,23 +176548,26 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @param region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to delete. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -187632,66 +176580,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -187705,7 +176659,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -187715,18 +176669,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -187736,6 +176690,27 @@ public Insert setRegion(java.lang.String 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 @@ -187780,37 +176755,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Lists all the policies that have been configured for the specified project in the given region. + * Returns the specified network firewall policy. * - * Create a request for the method "regionNetworkPolicies.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to get. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -187818,22 +176794,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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 region Name of the region scoping this request. + * @param firewallPolicy Name of the firewall policy to get. * @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.NetworkPolicyList.class); + 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(), @@ -187846,6 +176826,12 @@ protected List(java.lang.String project, java.lang.String region) { "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -187859,63 +176845,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -187929,7 +176915,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -187939,18 +176925,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public List setRegion(java.lang.String 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 " + @@ -187960,298 +176946,279 @@ public List setRegion(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Gets an association with the specified name. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionNetworkFirewallPolicies.getAssociation". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - @com.google.api.client.util.Key - private java.lang.String filter; + 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}"); + } + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + @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.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region scoping this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the firewall policy to which the queried association belongs. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String firewallPolicy; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the firewall policy to which the queried association belongs. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The name of the association to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String name; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The name of the association to get from the firewall policy. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getName() { + return name; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Returns the effective firewalls on a given network. * - * Create a request for the method "regionNetworkPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @param region Name of the region scoping this request. + * @param network Network reference * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, networkPolicy, content); + 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 Patch extends ComputeRequest { + public class GetEffectiveFirewalls extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188259,27 +177226,24 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} + * @param region Name of the region scoping this request. + * @param network Network reference * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -188292,72 +177256,77 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + 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. */ @@ -188371,7 +177340,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -188381,126 +177350,70 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public Patch setRegion(java.lang.String 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; - } - - /** Name of the network policy resource to update. */ - @com.google.api.client.util.Key - private java.lang.String networkPolicy; - - /** Name of the network policy resource to update. - */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; - } - - /** Name of the network policy resource to update. */ - public Patch setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + return this; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Network reference */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** Network reference */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNetwork() { + return network; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** Network reference */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { + this.network = network; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionNetworkPolicies.patchTrafficClassificationRule". + * 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 PatchTrafficClassificationRule#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @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 PatchTrafficClassificationRule patchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { - PatchTrafficClassificationRule result = new PatchTrafficClassificationRule(project, region, networkPolicy, content); + 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 PatchTrafficClassificationRule extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/patchTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188508,28 +177421,28 @@ public class PatchTrafficClassificationRule extends ComputeRequest {@link PatchTrafficClassificationRule#initialize(com.google.api.client.go - * ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

    + * 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 Name of the region of this request. - * @param networkPolicy Name of the network policy resource to update. - * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} + * @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 PatchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -188542,72 +177455,82 @@ protected PatchTrafficClassificationRule(java.lang.String project, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public PatchTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchTrafficClassificationRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (PatchTrafficClassificationRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchTrafficClassificationRule setAlt(java.lang.String alt) { - return (PatchTrafficClassificationRule) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public PatchTrafficClassificationRule setCallback(java.lang.String callback) { - return (PatchTrafficClassificationRule) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public PatchTrafficClassificationRule setFields(java.lang.String fields) { - return (PatchTrafficClassificationRule) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public PatchTrafficClassificationRule setKey(java.lang.String key) { - return (PatchTrafficClassificationRule) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public PatchTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (PatchTrafficClassificationRule) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public PatchTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public PatchTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (PatchTrafficClassificationRule) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public PatchTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (PatchTrafficClassificationRule) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public PatchTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public PatchTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (PatchTrafficClassificationRule) super.setUserIp(userIp); + 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. */ @@ -188621,7 +177544,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -188631,18 +177554,18 @@ public PatchTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public PatchTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -188652,126 +177575,70 @@ public PatchTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String resource; - /** Name of the network policy resource to update. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the network policy resource to update. */ - public PatchTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + /** 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkPolicy = networkPolicy; - return this; - } - - /** - * The priority of the traffic classification rule to patch. Only rules with a priority value - * between 1 and 2147482647 (inclusive) can be patched. - */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the traffic classification rule to patch. Only rules with a priority value between - 1 and 2147482647 (inclusive) can be patched. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** - * The priority of the traffic classification rule to patch. Only rules with a priority value - * between 1 and 2147482647 (inclusive) can be patched. - */ - public PatchTrafficClassificationRule setPriority(java.lang.Integer priority) { - this.priority = priority; + 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). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public PatchTrafficClassificationRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public PatchTrafficClassificationRule set(String parameterName, Object value) { - return (PatchTrafficClassificationRule) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Removes an association for the specified network policy. + * Gets a rule of the specified priority. * - * Create a request for the method "regionNetworkPolicies.removeAssociation". + * 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 RemoveAssociation#execute()} method to invoke the remote operation. + * 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 of this request. - * @param networkPolicy Name of the network policy resource to update. + * @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 RemoveAssociation removeAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, region, networkPolicy); + 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 RemoveAssociation extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -188779,27 +177646,27 @@ public class RemoveAssociation extends ComputeRequest {@link RemoveAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 of this request. - * @param networkPolicy Name of the network policy resource to update. + * @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 RemoveAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -188812,72 +177679,82 @@ protected RemoveAssociation(java.lang.String project, java.lang.String region, j "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + 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. */ @@ -188891,7 +177768,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + 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 " + @@ -188901,18 +177778,18 @@ public RemoveAssociation setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public RemoveAssociation setRegion(java.lang.String 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 " + @@ -188922,120 +177799,70 @@ public RemoveAssociation setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String networkPolicy; + private java.lang.String firewallPolicy; - /** Name of the network policy resource to update. + /** Name of the firewall policy to which the queried rule belongs. */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network policy resource to update. */ - public RemoveAssociation setNetworkPolicy(java.lang.String networkPolicy) { + /** 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(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + + 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.networkPolicy = networkPolicy; - 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; + 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). - */ + /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer priority; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The priority of the rule to get from the firewall policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPriority() { + return priority; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * Creates a new network firewall policy in the specified project and region. * - * Create a request for the method "regionNetworkPolicies.removeTrafficClassificationRule". + * 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 RemoveTrafficClassificationRule#execute()} method to invoke the - * remote operation. + * 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 networkPolicy Name of the network policy resource to update. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @return the request */ - public RemoveTrafficClassificationRule removeTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { - RemoveTrafficClassificationRule result = new RemoveTrafficClassificationRule(project, region, networkPolicy); + 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 RemoveTrafficClassificationRule extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeTrafficClassificationRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -189043,27 +177870,23 @@ public class RemoveTrafficClassificationRule extends ComputeRequest {@link RemoveTrafficClassificationRule#initialize(com.google.api.client.g - * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

    + * 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 networkPolicy Name of the network policy resource to update. + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @since 1.13 */ - protected RemoveTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(), @@ -189076,72 +177899,66 @@ protected RemoveTrafficClassificationRule(java.lang.String project, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public RemoveTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveTrafficClassificationRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RemoveTrafficClassificationRule setAccessToken(java.lang.String accessToken) { - return (RemoveTrafficClassificationRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RemoveTrafficClassificationRule setAlt(java.lang.String alt) { - return (RemoveTrafficClassificationRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RemoveTrafficClassificationRule setCallback(java.lang.String callback) { - return (RemoveTrafficClassificationRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RemoveTrafficClassificationRule setFields(java.lang.String fields) { - return (RemoveTrafficClassificationRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RemoveTrafficClassificationRule setKey(java.lang.String key) { - return (RemoveTrafficClassificationRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RemoveTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { - return (RemoveTrafficClassificationRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RemoveTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveTrafficClassificationRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RemoveTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveTrafficClassificationRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RemoveTrafficClassificationRule setUploadType(java.lang.String uploadType) { - return (RemoveTrafficClassificationRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RemoveTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveTrafficClassificationRule setUserIp(java.lang.String userIp) { - return (RemoveTrafficClassificationRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -189155,7 +177972,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveTrafficClassificationRule setProject(java.lang.String project) { + 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 " + @@ -189165,18 +177982,18 @@ public RemoveTrafficClassificationRule setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region of this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region of this request. */ - public RemoveTrafficClassificationRule setRegion(java.lang.String 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 " + @@ -189186,43 +178003,6 @@ public RemoveTrafficClassificationRule setRegion(java.lang.String region) { return this; } - /** Name of the network policy resource to update. */ - @com.google.api.client.util.Key - private java.lang.String networkPolicy; - - /** Name of the network policy resource to update. - */ - public java.lang.String getNetworkPolicy() { - return networkPolicy; - } - - /** Name of the network policy resource to update. */ - public RemoveTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), - "Parameter networkPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkPolicy = networkPolicy; - return this; - } - - /** The priority of the rule to remove from the network policy. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to remove from the network policy. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to remove from the network policy. */ - public RemoveTrafficClassificationRule 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 @@ -189267,87 +178047,74 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public RemoveTrafficClassificationRule setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveTrafficClassificationRule set(String parameterName, Object value) { - return (RemoveTrafficClassificationRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Lists all the network firewall policies that have been configured for the specified project in + * the given region. * - * Create a request for the method "regionNotificationEndpoints.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param region Name of the region scoping this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/notificationEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 all NotificationEndpoint resources, regional and global, available to the - * specified project. + * Lists all the network firewall policies that have been configured for the specified project in + * the given region. * - * Create a request for the method "regionNotificationEndpoints.aggregatedList". + * 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 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.

    + * 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 Name of the project scoping this request. + * @param project Project ID for this request. + * @param region Name of the region 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); + 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])?"); + } } @Override @@ -189361,77 +178128,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String 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 " + @@ -189441,6 +178208,27 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.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 @@ -189572,45 +178360,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -189635,7 +178389,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -189679,7 +178433,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -189702,7 +178456,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -189734,61 +178488,287 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * 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}"); + } + } + + @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.Long serviceProjectNumber; + private java.lang.String region; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name of the region scoping this request. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + 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; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified NotificationEndpoint in the given region + * Updates an association for the specified network firewall policy. * - * Create a request for the method "regionNotificationEndpoints.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 notificationEndpoint Name of the NotificationEndpoint resource to delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @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); + 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 Delete extends ComputeRequest { + public class PatchAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -189796,26 +178776,28 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 notificationEndpoint Name of the NotificationEndpoint resource to delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @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); + 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(), @@ -189828,72 +178810,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { + return (PatchAssociation) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public PatchAssociation setAccessToken(java.lang.String accessToken) { + return (PatchAssociation) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public PatchAssociation setAlt(java.lang.String alt) { + return (PatchAssociation) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public PatchAssociation setCallback(java.lang.String callback) { + return (PatchAssociation) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public PatchAssociation setFields(java.lang.String fields) { + return (PatchAssociation) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public PatchAssociation setKey(java.lang.String key) { + return (PatchAssociation) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public PatchAssociation setOauthToken(java.lang.String oauthToken) { + return (PatchAssociation) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public PatchAssociation setQuotaUser(java.lang.String quotaUser) { + return (PatchAssociation) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public PatchAssociation setUploadType(java.lang.String uploadType) { + return (PatchAssociation) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public PatchAssociation setUserIp(java.lang.String userIp) { + return (PatchAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -189907,7 +178889,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -189928,7 +178910,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + 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 " + @@ -189938,24 +178920,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the NotificationEndpoint resource to delete. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String notificationEndpoint; + private java.lang.String firewallPolicy; - /** Name of the NotificationEndpoint resource to delete. + /** Name of the firewall policy to update. */ - public java.lang.String getNotificationEndpoint() { - return notificationEndpoint; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the NotificationEndpoint resource to delete. */ - public Delete setNotificationEndpoint(java.lang.String notificationEndpoint) { + /** Name of the firewall policy to update. */ + public PatchAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + 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.notificationEndpoint = notificationEndpoint; + this.firewallPolicy = firewallPolicy; return this; } @@ -190003,38 +178985,39 @@ public java.lang.String getRequestId() { * 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) { + public PatchAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PatchAssociation set(String parameterName, Object value) { + return (PatchAssociation) super.set(parameterName, value); } } /** - * Returns the specified NotificationEndpoint resource in the given region. + * Patches a rule of the specified priority. * - * Create a request for the method "regionNotificationEndpoints.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 notificationEndpoint Name of the NotificationEndpoint resource to return. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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 Get extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190042,26 +179025,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 notificationEndpoint Name of the NotificationEndpoint resource to return. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @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); + 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(), @@ -190074,82 +179059,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -190163,7 +179138,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -190184,7 +179159,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + 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 " + @@ -190194,55 +179169,119 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the NotificationEndpoint resource to return. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String notificationEndpoint; + private java.lang.String firewallPolicy; - /** Name of the NotificationEndpoint resource to return. + /** Name of the firewall policy to update. */ - public java.lang.String getNotificationEndpoint() { - return notificationEndpoint; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the NotificationEndpoint resource to return. */ - public Get setNotificationEndpoint(java.lang.String notificationEndpoint) { + /** Name of the firewall policy to update. */ + public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NOTIFICATION_ENDPOINT_PATTERN.matcher(notificationEndpoint).matches(), - "Parameter notificationEndpoint must conform to the pattern " + + 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.notificationEndpoint = notificationEndpoint; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Create a NotificationEndpoint in the specified project in the given region using the parameters - * that are included in the request. + * Removes an association for the specified network firewall policy. * - * Create a request for the method "regionNotificationEndpoints.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.NotificationEndpoint} + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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 Insert extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190250,24 +179289,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 content the {@link com.google.api.services.compute.model.NotificationEndpoint} + * @param firewallPolicy Name of the firewall policy to update. * @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); + 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(), @@ -190280,66 +179322,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -190353,7 +179401,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -190374,7 +179422,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + 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 " + @@ -190384,6 +179432,43 @@ public Insert setRegion(java.lang.String 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 @@ -190428,37 +179513,38 @@ public java.lang.String getRequestId() { * 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) { + public RemoveAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Lists the NotificationEndpoints for a project in the given region. + * Deletes a rule of the specified priority. * - * Create a request for the method "regionNotificationEndpoints.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190466,22 +179552,27 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NotificationEndpointList.class); + 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(), @@ -190494,76 +179585,72 @@ protected List(java.lang.String project, java.lang.String region) { "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -190577,7 +179664,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -190598,7 +179685,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + 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 " + @@ -190608,279 +179695,301 @@ public List setRegion(java.lang.String 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. - */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String firewallPolicy; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the firewall policy to update. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + /** 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 maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** The priority of the rule to remove from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Integer priority; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** The priority of the rule to remove from the firewall policy. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Integer getPriority() { + return priority; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** The priority of the rule to remove from the firewall policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String requestId; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRequestId() { + return requestId; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * 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}"); + } + } + + @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 pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String region; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The name of the region for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRegion() { + return region; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + /** 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + 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 "regionNotificationEndpoints.testIamPermissions". + * 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. @@ -190899,7 +180008,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -190913,7 +180022,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)}
    +   *   {@code Compute.RegionNetworkPolicies.List request = compute.regionNetworkPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionOperations regionOperations() { - return new RegionOperations(); + public RegionNetworkPolicies regionNetworkPolicies() { + return new RegionNetworkPolicies(); } /** - * The "regionOperations" collection of methods. + * The "regionNetworkPolicies" collection of methods. */ - public class RegionOperations { + public class RegionNetworkPolicies { /** - * Deletes the specified region-specific Operations resource. + * Inserts an association for the specified network policy. * - * Create a request for the method "regionOperations.delete". + * Create a request for the method "regionNetworkPolicies.addAssociation". * * 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. + * 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 for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} * @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); + public AddAssociation addAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(project, region, networkPolicy, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191130,27 +180239,28 @@ public class Delete extends ComputeRequest { private final java.util.regex.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 = + private final java.util.regex.Pattern NETWORK_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 region-specific Operations resource. + * Inserts an association for the specified network policy. * - * Create a request for the method "regionOperations.delete". + * Create a request for the method "regionNetworkPolicies.addAssociation". * * 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.

    + * 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 for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyAssociation} * @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); + protected AddAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyAssociation content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -191163,72 +180273,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -191242,7 +180352,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -191252,18 +180362,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** Name of the region of 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 " + @@ -191273,59 +180383,105 @@ public Delete setRegion(java.lang.String region) { return this; } + /** Name of the network policy resource to update. */ + @com.google.api.client.util.Key + private java.lang.String networkPolicy; + + /** Name of the network policy resource to update. + */ + public java.lang.String getNetworkPolicy() { + return networkPolicy; + } + + /** Name of the network policy resource to update. */ + public AddAssociation setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; + return this; + } + /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String requestId; - /** Name of the Operations resource to delete, or its unique numeric identifier. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to delete, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 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; + public AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); } } /** - * Retrieves the specified region-specific Operations resource. + * Inserts a rule into a network policy. * - * Create a request for the method "regionOperations.get". + * Create a request for the method "regionNetworkPolicies.addTrafficClassificationRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link AddTrafficClassificationRule#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. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} * @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); + public AddTrafficClassificationRule addTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { + AddTrafficClassificationRule result = new AddTrafficClassificationRule(project, region, networkPolicy, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class AddTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -191333,27 +180489,28 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link AddTrafficClassificationRule#execute()} method to invoke the remote + * operation.

    {@link AddTrafficClassificationRule#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must 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. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} * @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); + protected AddTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -191366,82 +180523,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AddTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (AddTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AddTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (AddTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AddTrafficClassificationRule setAlt(java.lang.String alt) { + return (AddTrafficClassificationRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AddTrafficClassificationRule setCallback(java.lang.String callback) { + return (AddTrafficClassificationRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AddTrafficClassificationRule setFields(java.lang.String fields) { + return (AddTrafficClassificationRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AddTrafficClassificationRule setKey(java.lang.String key) { + return (AddTrafficClassificationRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AddTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (AddTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AddTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AddTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (AddTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AddTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (AddTrafficClassificationRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AddTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AddTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (AddTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -191455,7 +180602,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public AddTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -191465,18 +180612,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public AddTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -191486,92 +180633,132 @@ public Get setRegion(java.lang.String region) { return this; } + /** Name of the network policy resource to update. */ + @com.google.api.client.util.Key + private java.lang.String networkPolicy; + + /** Name of the network policy resource to update. + */ + public java.lang.String getNetworkPolicy() { + return networkPolicy; + } + + /** Name of the network policy resource to update. */ + public AddTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkPolicy = networkPolicy; + return this; + } + /** - * Name of the Operations resource to return, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String requestId; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; + public AddTrafficClassificationRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AddTrafficClassificationRule set(String parameterName, Object value) { + return (AddTrafficClassificationRule) super.set(parameterName, value); } } /** - * Retrieves a list of Operation resources contained within the specified region. + * Retrieves an aggregated list of network policies. * - * Create a request for the method "regionOperations.list". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "regionNetworkPolicies.aggregatedList". * * 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. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/operations"; + private static final String REST_PATH = "projects/{project}/aggregated/networkPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves an aggregated list of network policies. * - * Create a request for the method "regionOperations.list". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "regionNetworkPolicies.aggregatedList". * * 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.

    + * 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. - * @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); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -191585,63 +180772,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -191655,7 +180842,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -191665,27 +180852,6 @@ public List setProject(java.lang.String 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 @@ -191817,11 +180983,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -191846,7 +181046,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -191890,7 +181090,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -191913,7 +181113,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -191945,283 +181145,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * 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.String operation; + private java.lang.Long serviceProjectNumber; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** 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.String getOperation() { - return operation; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - 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; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified policy. * - * Create a request for the method "regionSecurityPolicies.addRule". + * Create a request for the method "regionNetworkPolicies.delete". * * 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. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to delete. * @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); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + Delete result = new Delete(project, region, networkPolicy); initialize(result); return result; } - public class AddRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192229,28 +181207,26 @@ public class AddRule extends ComputeRequest - * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to delete. * @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); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + 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(), @@ -192263,72 +181239,72 @@ protected AddRule(java.lang.String project, java.lang.String region, java.lang.S "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -192342,7 +181318,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -192352,18 +181328,18 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public AddRule setRegion(java.lang.String 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 " + @@ -192373,70 +181349,103 @@ public AddRule setRegion(java.lang.String region) { return this; } - /** Name of the security policy to update. */ + /** Name of the network policy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String networkPolicy; - /** Name of the security policy to update. + /** Name of the network policy resource to delete. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the network policy resource to delete. */ + public Delete setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.securityPolicy = securityPolicy; + this.networkPolicy = networkPolicy; return this; } - /** If true, the request will not be committed. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.String requestId; - /** If true, the request will not be committed. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.String getRequestId() { + return requestId; } - /** If true, the request will not be committed. */ - public AddRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes the specified policy. + * Returns the specified network policy. * - * Create a request for the method "regionSecurityPolicies.delete". + * Create a request for the method "regionNetworkPolicies.get". * * 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. + * 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 delete. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to return. * @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); + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + Get result = new Get(project, region, networkPolicy); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192444,26 +181453,26 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 delete. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to return. * @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); + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -192476,72 +181485,82 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -192555,7 +181574,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -192565,18 +181584,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String 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 " + @@ -192586,103 +181605,54 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the security policy to delete. */ + /** Name of the network policy resource to return. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String networkPolicy; - /** Name of the security policy to delete. + /** Name of the network policy resource to return. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the network policy resource to return. */ + public Get setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy 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; + this.networkPolicy = networkPolicy; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * List all of the ordered rules present in a single specified policy. + * Gets an association with the specified name. * - * Create a request for the method "regionSecurityPolicies.get". + * Create a request for the method "regionNetworkPolicies.getAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * 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 securityPolicy Name of the security policy to get. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy to which the queried association belongs. * @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); + public GetAssociation getAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(project, region, networkPolicy); initialize(result); return result; } - public class Get extends ComputeRequest { + public class GetAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192690,26 +181660,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 securityPolicy Name of the security policy to get. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy to which the queried association belongs. * @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); + protected GetAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyAssociation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -192722,10 +181693,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -192741,63 +181712,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -192811,7 +181782,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -192821,18 +181792,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** Name of the region of 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 " + @@ -192842,54 +181813,71 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the security policy to get. */ + /** Name of the network policy to which the queried association belongs. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String networkPolicy; - /** Name of the security policy to get. + /** Name of the network policy to which the queried association belongs. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the network policy to which the queried association belongs. */ + public GetAssociation setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.securityPolicy = securityPolicy; + this.networkPolicy = networkPolicy; + return this; + } + + /** The name of the association to get from the network policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the network policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the network policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Gets a rule at the specified priority. + * Gets a rule of the specified priority. * - * Create a request for the method "regionSecurityPolicies.getRule". + * Create a request for the method "regionNetworkPolicies.getTrafficClassificationRule". * * 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. + * parameters, call the {@link GetTrafficClassificationRule#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. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network 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); + public GetTrafficClassificationRule getTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + GetTrafficClassificationRule result = new GetTrafficClassificationRule(project, region, networkPolicy); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class GetTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -192897,27 +181885,27 @@ public class GetRule extends ComputeRequest - * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link GetTrafficClassificationRule#execute()} method to invoke the remote + * operation.

    {@link GetTrafficClassificationRule#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize 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. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network 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); + protected GetTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -192930,10 +181918,10 @@ protected GetRule(java.lang.String project, java.lang.String region, java.lang.S "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -192949,63 +181937,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public GetTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (GetTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public GetTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (GetTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public GetTrafficClassificationRule setAlt(java.lang.String alt) { + return (GetTrafficClassificationRule) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public GetTrafficClassificationRule setCallback(java.lang.String callback) { + return (GetTrafficClassificationRule) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public GetTrafficClassificationRule setFields(java.lang.String fields) { + return (GetTrafficClassificationRule) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public GetTrafficClassificationRule setKey(java.lang.String key) { + return (GetTrafficClassificationRule) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public GetTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (GetTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public GetTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public GetTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (GetTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public GetTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (GetTrafficClassificationRule) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public GetTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public GetTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (GetTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -193019,7 +182007,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + public GetTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -193029,18 +182017,18 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public GetRule setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public GetTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -193050,62 +182038,62 @@ public GetRule setRegion(java.lang.String region) { return this; } - /** Name of the security policy to which the queried rule belongs. */ + /** Name of the network policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String networkPolicy; - /** Name of the security policy to which the queried rule belongs. + /** Name of the network policy to which the queried rule belongs. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the network policy to which the queried rule belongs. */ + public GetTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.securityPolicy = securityPolicy; + this.networkPolicy = networkPolicy; return this; } - /** The priority of the rule to get from the security policy. */ + /** The priority of the rule to get from the network policy. */ @com.google.api.client.util.Key private java.lang.Integer priority; - /** The priority of the rule to get from the security policy. + /** The priority of the rule to get from the network 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) { + /** The priority of the rule to get from the network policy. */ + public GetTrafficClassificationRule setPriority(java.lang.Integer priority) { this.priority = priority; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public GetTrafficClassificationRule set(String parameterName, Object value) { + return (GetTrafficClassificationRule) 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". + * Create a request for the method "regionNetworkPolicies.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} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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 { + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { Insert result = new Insert(project, region, content); initialize(result); return result; @@ -193113,7 +182101,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -193124,7 +182112,7 @@ public class Insert extends ComputeRequest {@link @@ -193132,11 +182120,11 @@ public class Insert extends ComputeRequest * * @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} + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.SecurityPolicy content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkPolicy content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -193233,17 +182221,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -193303,37 +182291,21 @@ public Insert setRequestId(java.lang.String 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. + * Lists all the policies that have been configured for the specified project in the given region. * - * Create a request for the method "regionSecurityPolicies.list". + * Create a request for the method "regionNetworkPolicies.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. + * @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 { @@ -193342,9 +182314,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -193353,9 +182325,9 @@ public class List extends ComputeRequest {@link @@ -193363,11 +182335,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.SecurityPolicyList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkPolicyList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -193473,17 +182445,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -193692,619 +182664,100 @@ public java.lang.String getOrderBy() { * order based on the resource name. * * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Indicates fields to be cleared as part of this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String pageToken; - /** Indicates fields to be cleared as part of this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getPageToken() { + return pageToken; } - /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Specifies 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; } - /** If true, the request will not be committed. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.Boolean returnPartialSuccess; - /** If true, the request will not be committed. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** If true, the request will not be committed. */ - public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes a rule at the specified priority. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "regionSecurityPolicies.removeRule". + * Create a request for the method "regionNetworkPolicies.patch". * * 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. + * 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 region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy content) throws java.io.IOException { + Patch result = new Patch(project, region, networkPolicy, content); initialize(result); return result; } - public class RemoveRule extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194312,27 +182765,27 @@ public class RemoveRule extends ComputeRequest - * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicy} * @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); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicy 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(), @@ -194345,72 +182798,72 @@ protected RemoveRule(java.lang.String project, java.lang.String region, java.lan "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy 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 " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194424,7 +182877,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + 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 " + @@ -194434,18 +182887,18 @@ public RemoveRule setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public RemoveRule setRegion(java.lang.String region) { + /** Name of the region of 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 " + @@ -194455,72 +182908,105 @@ public RemoveRule setRegion(java.lang.String region) { return this; } - /** Name of the security policy to update. */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String networkPolicy; - /** Name of the security policy to update. + /** Name of the network policy resource to update. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the network policy resource to update. */ + public Patch setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.securityPolicy = securityPolicy; + this.networkPolicy = networkPolicy; return this; } - /** The priority of the rule to remove from the security policy. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String requestId; - /** The priority of the rule to remove from the security policy. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRequestId() { + return requestId; } - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources - * documentation. + * Patches a rule of the specified priority. * - * Create a request for the method "regionSecurityPolicies.setLabels". + * Create a request for the method "regionNetworkPolicies.patchTrafficClassificationRule". * * 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. + * parameters, call the {@link PatchTrafficClassificationRule#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} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} * @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); + public PatchTrafficClassificationRule patchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) throws java.io.IOException { + PatchTrafficClassificationRule result = new PatchTrafficClassificationRule(project, region, networkPolicy, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class PatchTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/patchTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194528,28 +183014,27 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link PatchTrafficClassificationRule#execute()} method to invoke the + * remote operation.

    {@link PatchTrafficClassificationRule#initialize(com.google.api.client.go + * ogleapis.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} + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. + * @param content the {@link com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule} * @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) { + protected PatchTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy, com.google.api.services.compute.model.NetworkPolicyTrafficClassificationRule content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -194563,72 +183048,72 @@ protected SetLabels(java.lang.String project, java.lang.String region, java.lang "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public PatchTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public PatchTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (PatchTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public PatchTrafficClassificationRule setAlt(java.lang.String alt) { + return (PatchTrafficClassificationRule) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public PatchTrafficClassificationRule setCallback(java.lang.String callback) { + return (PatchTrafficClassificationRule) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public PatchTrafficClassificationRule setFields(java.lang.String fields) { + return (PatchTrafficClassificationRule) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public PatchTrafficClassificationRule setKey(java.lang.String key) { + return (PatchTrafficClassificationRule) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public PatchTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (PatchTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public PatchTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public PatchTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (PatchTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public PatchTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (PatchTrafficClassificationRule) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public PatchTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public PatchTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (PatchTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194642,7 +183127,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public PatchTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -194652,18 +183137,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public PatchTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -194673,24 +183158,47 @@ public SetLabels setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkPolicy; - /** Name or id of the resource for this request. + /** Name of the network policy resource to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the network policy resource to update. */ + public PatchTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.networkPolicy = networkPolicy; + return this; + } + + /** + * The priority of the traffic classification rule to patch. Only rules with a priority value + * between 1 and 2147482647 (inclusive) can be patched. + */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the traffic classification rule to patch. Only rules with a priority value between + 1 and 2147482647 (inclusive) can be patched. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** + * The priority of the traffic classification rule to patch. Only rules with a priority value + * between 1 and 2147482647 (inclusive) can be patched. + */ + public PatchTrafficClassificationRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -194738,60 +183246,38 @@ public java.lang.String getRequestId() { * 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) { + public PatchTrafficClassificationRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public PatchTrafficClassificationRule set(String parameterName, Object value) { + return (PatchTrafficClassificationRule) 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. + * Removes an association for the specified network policy. * - * Create a request for the method "regionSnapshotSettings.get". + * Create a request for the method "regionNetworkPolicies.removeAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * 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 for this request. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @return the request */ - public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); + public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(project, region, networkPolicy); initialize(result); return result; } - public class Get extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -194799,22 +183285,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 for this request. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + protected RemoveAssociation(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + 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(), @@ -194827,76 +183318,72 @@ protected Get(java.lang.String project, java.lang.String region) { "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -194910,7 +183397,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -194920,18 +183407,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** Name of the region of 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 " + @@ -194941,170 +183428,40 @@ public Get setRegion(java.lang.String 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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. */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String networkPolicy; - /** Project ID for this request. + /** Name of the network policy resource to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + /** Name of the network policy resource to update. */ + public RemoveAssociation setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.networkPolicy = networkPolicy; return this; } - /** Name of the region for this request. */ + /** Name for the association that will be removed. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String name; - /** Name of the region for this request. + /** Name for the association that will be removed. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getName() { + return name; } - /** 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; + /** Name for the association that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; return this; } @@ -195152,82 +183509,39 @@ public java.lang.String getRequestId() { * 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) { + public RemoveAssociation 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); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) 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. + * Deletes a rule of the specified priority. * - * Create a request for the method "regionSnapshots.delete". + * Create a request for the method "regionNetworkPolicies.removeTrafficClassificationRule". * * 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. + * parameters, call the {@link RemoveTrafficClassificationRule#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. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + public RemoveTrafficClassificationRule removeTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) throws java.io.IOException { + RemoveTrafficClassificationRule result = new RemoveTrafficClassificationRule(project, region, networkPolicy); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class RemoveTrafficClassificationRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeTrafficClassificationRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -195235,31 +183549,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link RemoveTrafficClassificationRule#execute()} method to invoke the + * remote operation.

    {@link RemoveTrafficClassificationRule#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. - * @param region The name of the region for this request. - * @param snapshot Name of the snapshot resource to delete. + * @param region Name of the region of this request. + * @param networkPolicy Name of the network policy resource to update. * @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); + protected RemoveTrafficClassificationRule(java.lang.String project, java.lang.String region, java.lang.String networkPolicy) { + 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(), @@ -195272,72 +183582,72 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + this.networkPolicy = com.google.api.client.util.Preconditions.checkNotNull(networkPolicy, "Required parameter networkPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public RemoveTrafficClassificationRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveTrafficClassificationRule) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public RemoveTrafficClassificationRule setAccessToken(java.lang.String accessToken) { + return (RemoveTrafficClassificationRule) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public RemoveTrafficClassificationRule setAlt(java.lang.String alt) { + return (RemoveTrafficClassificationRule) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public RemoveTrafficClassificationRule setCallback(java.lang.String callback) { + return (RemoveTrafficClassificationRule) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public RemoveTrafficClassificationRule setFields(java.lang.String fields) { + return (RemoveTrafficClassificationRule) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public RemoveTrafficClassificationRule setKey(java.lang.String key) { + return (RemoveTrafficClassificationRule) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public RemoveTrafficClassificationRule setOauthToken(java.lang.String oauthToken) { + return (RemoveTrafficClassificationRule) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public RemoveTrafficClassificationRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveTrafficClassificationRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public RemoveTrafficClassificationRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveTrafficClassificationRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public RemoveTrafficClassificationRule setUploadType(java.lang.String uploadType) { + return (RemoveTrafficClassificationRule) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public RemoveTrafficClassificationRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveTrafficClassificationRule) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public RemoveTrafficClassificationRule setUserIp(java.lang.String userIp) { + return (RemoveTrafficClassificationRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195351,7 +183661,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public RemoveTrafficClassificationRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -195361,18 +183671,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public RemoveTrafficClassificationRule setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -195382,24 +183692,40 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the snapshot resource to delete. */ + /** Name of the network policy resource to update. */ @com.google.api.client.util.Key - private java.lang.String snapshot; + private java.lang.String networkPolicy; - /** Name of the snapshot resource to delete. + /** Name of the network policy resource to update. */ - public java.lang.String getSnapshot() { - return snapshot; + public java.lang.String getNetworkPolicy() { + return networkPolicy; } - /** Name of the snapshot resource to delete. */ - public Delete setSnapshot(java.lang.String snapshot) { + /** Name of the network policy resource to update. */ + public RemoveTrafficClassificationRule setNetworkPolicy(java.lang.String networkPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_POLICY_PATTERN.matcher(networkPolicy).matches(), + "Parameter networkPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.snapshot = snapshot; + this.networkPolicy = networkPolicy; + return this; + } + + /** The priority of the rule to remove from the network policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the network policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the network policy. */ + public RemoveTrafficClassificationRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -195447,38 +183773,61 @@ public java.lang.String getRequestId() { * 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) { + public RemoveTrafficClassificationRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public RemoveTrafficClassificationRule set(String parameterName, Object value) { + return (RemoveTrafficClassificationRule) 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 { + /** - * Returns the specified Snapshot resource. + * Deletes the specified NotificationEndpoint in the given region * - * Create a request for the method "regionSnapshots.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 snapshot Name of the Snapshot resource to return. + * @param region Name of the region scoping this request. + * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. * @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); + 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 Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -195486,26 +183835,26 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 snapshot Name of the Snapshot resource to return. + * @param region Name of the region scoping this request. + * @param notificationEndpoint Name of the NotificationEndpoint resource to delete. * @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); + 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(), @@ -195518,82 +183867,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195607,7 +183946,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -195617,18 +183956,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String 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 " + @@ -195638,54 +183977,103 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the Snapshot resource to return. */ + /** Name of the NotificationEndpoint resource to delete. */ @com.google.api.client.util.Key - private java.lang.String snapshot; + private java.lang.String notificationEndpoint; - /** Name of the Snapshot resource to return. + /** Name of the NotificationEndpoint resource to delete. */ - public java.lang.String getSnapshot() { - return snapshot; + public java.lang.String getNotificationEndpoint() { + return notificationEndpoint; } - /** Name of the Snapshot resource to return. */ - public Get setSnapshot(java.lang.String snapshot) { + /** Name of the NotificationEndpoint resource to delete. */ + public Delete setNotificationEndpoint(java.lang.String notificationEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_PATTERN.matcher(snapshot).matches(), - "Parameter snapshot must conform to the pattern " + + 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.snapshot = snapshot; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified NotificationEndpoint resource in the given region. * - * Create a request for the method "regionSnapshots.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -195693,28 +184081,26 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource 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 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); + 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(), @@ -195727,10 +184113,10 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @@ -195746,63 +184132,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -195816,7 +184202,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -195826,18 +184212,18 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String 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 " + @@ -195847,62 +184233,47 @@ public GetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the NotificationEndpoint resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String notificationEndpoint; - /** Name or id of the resource for this request. + /** Name of the NotificationEndpoint resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNotificationEndpoint() { + return notificationEndpoint; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the NotificationEndpoint resource to return. */ + public Get setNotificationEndpoint(java.lang.String notificationEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.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; + this.notificationEndpoint = notificationEndpoint; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a snapshot in the specified region using the data included in the request. + * 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 "regionSnapshots.insert". + * 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 for this request. - * @param content the {@link com.google.api.services.compute.model.Snapshot} + * @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.Snapshot content) throws java.io.IOException { + 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; @@ -195910,7 +184281,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -195919,9 +184290,10 @@ public class Insert extends ComputeRequest {@link @@ -195929,11 +184301,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.Snapshot content) { + 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()) { @@ -196030,17 +184402,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -196106,15 +184478,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of Snapshot resources contained within the specified region. + * Lists the NotificationEndpoints for a project in the given region. * - * Create a request for the method "regionSnapshots.list". + * 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 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 { @@ -196123,9 +184495,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -196134,9 +184506,9 @@ public class List extends ComputeRequest {@link @@ -196144,11 +184516,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region 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.SnapshotList.class); + 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(), @@ -196254,17 +184626,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region for this request. */ + /** 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(), @@ -196544,461 +184916,10 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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". + * 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. @@ -197017,7 +184938,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -197031,7 +184952,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionSslCertificates.List request = compute.regionSslCertificates().list(parameters ...)}
    +   *   {@code Compute.RegionOperations.List request = compute.regionOperations().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionSslCertificates regionSslCertificates() { - return new RegionSslCertificates(); + public RegionOperations regionOperations() { + return new RegionOperations(); } /** - * The "regionSslCertificates" collection of methods. + * The "regionOperations" collection of methods. */ - public class RegionSslCertificates { + public class RegionOperations { /** - * Deletes the specified SslCertificate resource in the region. + * Deletes the specified region-specific Operations resource. * - * Create a request for the method "regionSslCertificates.delete". + * 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 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * @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 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); + 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 Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -197494,27 +185169,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 return. + * @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 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); + 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(), @@ -197527,82 +185202,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -197616,7 +185281,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -197626,18 +185291,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String 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 " + @@ -197647,55 +185312,59 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the SslCertificate resource to return. */ + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ @com.google.api.client.util.Key - private java.lang.String sslCertificate; + private java.lang.String operation; - /** Name of the SslCertificate resource to return. + /** Name of the Operations resource to delete, or its unique numeric identifier. */ - public java.lang.String getSslCertificate() { - return sslCertificate; + public java.lang.String getOperation() { + return operation; } - /** Name of the SslCertificate resource to return. */ - public Get setSslCertificate(java.lang.String sslCertificate) { + /** + * 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(SSL_CERTIFICATE_PATTERN.matcher(sslCertificate).matches(), - "Parameter sslCertificate must conform to the pattern " + + 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.sslCertificate = sslCertificate; + this.operation = operation; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a SslCertificate resource in the specified project and region using the data included in - * the request + * Retrieves the specified region-specific Operations resource. * - * Create a request for the method "regionSslCertificates.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.SslCertificate} + * @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 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); + 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 Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -197703,24 +185372,27 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.SslCertificate} + * @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 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); + 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(), @@ -197733,66 +185405,82 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -197806,7 +185494,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -197816,18 +185504,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -197838,70 +185526,45 @@ public Insert setRegion(java.lang.String region) { } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to return, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to return, or its unique numeric identifier. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the list of SslCertificate resources available to the specified project in the - * specified region. + * Retrieves a list of Operation resources contained within the specified region. * - * Create a request for the method "regionSslCertificates.list". + * 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 scoping 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 { @@ -197910,9 +185573,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -197921,10 +185584,9 @@ public class List extends ComputeRequest {@link @@ -197932,11 +185594,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.SslCertificateList.class); + 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(), @@ -198042,17 +185704,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -198333,28 +185995,37 @@ public List set(String parameterName, Object value) { } } /** - * Returns permissions that a caller has on the specified resource and region. + * 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. * - * Create a request for the method "regionSslCertificates.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class Wait extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/operations/{operation}/wait"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -198362,28 +186033,36 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -198396,72 +186075,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Wait setUserIp(java.lang.String userIp) { + return (Wait) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -198475,7 +186154,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -198485,18 +186164,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -198506,79 +186185,297 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String operation; - /** Name or id of the resource for this request. + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getOperation() { + return operation; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** + * 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.operation = operation; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionSslPolicies collection. + * An accessor for creating requests from the RegionSecurityPolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionSslPolicies.List request = compute.regionSslPolicies().list(parameters ...)}
    +   *   {@code Compute.RegionSecurityPolicies.List request = compute.regionSecurityPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionSslPolicies regionSslPolicies() { - return new RegionSslPolicies(); + public RegionSecurityPolicies regionSecurityPolicies() { + return new RegionSecurityPolicies(); } /** - * The "regionSslPolicies" collection of methods. + * The "regionSecurityPolicies" collection of methods. */ - public class RegionSslPolicies { + public class RegionSecurityPolicies { /** - * 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. + * Inserts a rule into a security policy. * - * Create a request for the method "regionSslPolicies.delete". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 sslPolicy Name of the SSL policy to delete. The name must be 1-63 characters long, - and comply with RFC1035. + * @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 sslPolicy) throws java.io.IOException { - Delete result = new Delete(project, region, sslPolicy); + 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}/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -198586,11 +186483,13 @@ public class Delete extends ComputeRequest {@link @@ -198599,11 +186498,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -198828,10 +186729,13 @@ public class Get extends ComputeRequest {@link @@ -198840,12 +186744,11 @@ public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * Name of the SSL policy to update. The name must be 1-63 characters long, and comply with - * RFC1035. + * 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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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.String sslPolicy; + private java.lang.Integer priority; - /** Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. + /** The priority of the rule to get from the security policy. */ - public java.lang.String getSslPolicy() { - return sslPolicy; + public java.lang.Integer getPriority() { + return priority; } - /** - * 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; + /** 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project and region using the data included in the request. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "regionSslPolicies.insert". + * 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.SslPolicy} + * @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.SslPolicy content) throws java.io.IOException { + 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; @@ -199021,7 +187152,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -199030,10 +187161,9 @@ public class Insert extends ComputeRequest {@link @@ -199042,10 +187172,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -199246,9 +187392,9 @@ public class List extends ComputeRequest {@link @@ -199260,7 +187406,7 @@ public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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. + * 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 "regionSslPolicies.patch". + * 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 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} + * @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 sslPolicy, com.google.api.services.compute.model.SslPolicy content) throws java.io.IOException { - Patch result = new Patch(project, region, sslPolicy, content); + 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}/sslPolicies/{sslPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -200128,10 +187835,16 @@ public class Patch extends ComputeRequest {@link @@ -200140,12 +187853,11 @@ public class Patch extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -200370,28 +188103,29 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -200404,72 +188138,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200483,7 +188217,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -200493,18 +188227,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String 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 " + @@ -200514,323 +188248,102 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String securityPolicy; - /** Name or id of the resource for this request. + /** Name of the security policy to update. */ - 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); + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - } - - } - - /** - * 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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."); + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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}"); } - } - - @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; + this.securityPolicy = securityPolicy; return this; } - /** Name of the region scoping this request. */ + /** The priority of the rule to patch. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.Integer priority; - /** Name of the region scoping this request. + /** The priority of the rule to patch. */ - public java.lang.String getRegion() { - return region; + public java.lang.Integer getPriority() { + return priority; } - /** 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; + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } - /** Name of the TargetHttpProxy resource to delete. */ + /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private String updateMask; - /** Name of the TargetHttpProxy resource to delete. + /** Indicates fields to be cleared as part of this request. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public String getUpdateMask() { + return updateMask; } - /** 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; + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** If true, the request will not be committed. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Boolean validateOnly; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** If true, the request will not be committed. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getValidateOnly() { + return validateOnly; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** If true, the request will not be committed. */ + public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Returns the specified TargetHttpProxy resource in the specified region. + * Deletes a rule at the specified priority. * - * Create a request for the method "regionTargetHttpProxies.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @param securityPolicy Name of the security policy to update. * @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); + 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 Get extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -200838,26 +188351,27 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 targetHttpProxy Name of the TargetHttpProxy resource to return. + * @param securityPolicy Name of the security policy to update. * @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); + 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(), @@ -200870,82 +188384,72 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -200959,7 +188463,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -200980,7 +188484,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + 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 " + @@ -200990,55 +188494,72 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the TargetHttpProxy resource to return. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String targetHttpProxy; + private java.lang.String securityPolicy; - /** Name of the TargetHttpProxy resource to return. + /** Name of the security policy to update. */ - public java.lang.String getTargetHttpProxy() { - return targetHttpProxy; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the TargetHttpProxy resource to return. */ - public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTP_PROXY_PATTERN.matcher(targetHttpProxy).matches(), - "Parameter targetHttpProxy must conform to the pattern " + + 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.targetHttpProxy = targetHttpProxy; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); } } /** - * Creates a TargetHttpProxy resource in the specified project and region using the data included in - * the request. + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "regionTargetHttpProxies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -201046,23 +188567,28 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} + * @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 Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.TargetHttpProxy content) { + 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()) { @@ -201076,66 +188602,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201149,7 +188681,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -201159,18 +188691,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String 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 " + @@ -201180,6 +188712,27 @@ public Insert setRegion(java.lang.String 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 @@ -201224,38 +188777,60 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 { + /** - * Retrieves the list of TargetHttpProxy resources available to the specified project in the - * specified region. + * Get region snapshot settings. * - * Create a request for the method "regionTargetHttpProxies.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 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); + 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 List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -201264,22 +188839,21 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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 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.TargetHttpProxyList.class); + 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(), @@ -201305,63 +188879,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201375,7 +188949,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -201385,18 +188959,18 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String 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 " + @@ -201406,298 +188980,33 @@ public List setRegion(java.lang.String region) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpProxy. + * Patch region snapshot settings. * - * Create a request for the method "regionTargetHttpProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation. + * 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 targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} * @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); + 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 SetUrlMap extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshotSettings"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -201705,28 +189014,23 @@ public class SetUrlMap extends ComputeRequest - * {@link - * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param content the {@link com.google.api.services.compute.model.UrlMapReference} + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotSettings} * @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); + 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(), @@ -201739,72 +189043,66 @@ protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang "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}"); - } } @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -201818,7 +189116,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUrlMap setProject(java.lang.String project) { + 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 " + @@ -201828,18 +189126,18 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetUrlMap setRegion(java.lang.String 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 " + @@ -201849,27 +189147,6 @@ public SetUrlMap setRegion(java.lang.String 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 @@ -201914,261 +189191,82 @@ public java.lang.String getRequestId() { * 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "regionTargetHttpProxies.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}/targetHttpProxies/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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 "regionTargetHttpProxies.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}"); - } - } - - @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. */ + /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private String updateMask; - /** Name or id of the resource for this request. + /** update_mask indicates fields to be updated as part of this request. */ - public java.lang.String getResource() { - return resource; + public String getUpdateMask() { + return updateMask; } - /** 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; + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the RegionTargetHttpsProxies collection. + * An accessor for creating requests from the RegionSnapshots collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionTargetHttpsProxies.List request = compute.regionTargetHttpsProxies().list(parameters ...)}
    +   *   {@code Compute.RegionSnapshots.List request = compute.regionSnapshots().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionTargetHttpsProxies regionTargetHttpsProxies() { - return new RegionTargetHttpsProxies(); + public RegionSnapshots regionSnapshots() { + return new RegionSnapshots(); } /** - * The "regionTargetHttpsProxies" collection of methods. + * The "regionSnapshots" collection of methods. */ - public class RegionTargetHttpsProxies { + public class RegionSnapshots { /** - * Deletes the specified TargetHttpsProxy resource. + * 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. * - * Create a request for the method "regionTargetHttpsProxies.delete". + * 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 Name of the region scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. + * @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 targetHttpsProxy) throws java.io.IOException { - Delete result = new Delete(project, region, targetHttpsProxy); + 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}/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -202176,13 +189274,18 @@ public class Delete extends ComputeRequest {@link @@ -202190,11 +189293,11 @@ public class Delete extends ComputeRequest * * @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. + * @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 targetHttpsProxy) { + 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()) { @@ -202208,10 +189311,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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}"); } } @@ -202297,17 +189400,17 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -202318,24 +189421,24 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the TargetHttpsProxy resource to delete. */ + /** Name of the snapshot resource to delete. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String snapshot; - /** Name of the TargetHttpsProxy resource to delete. + /** Name of the snapshot resource to delete. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getSnapshot() { + return snapshot; } - /** Name of the TargetHttpsProxy resource to delete. */ - public Delete setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** Name of the snapshot resource to delete. */ + public Delete setSnapshot(java.lang.String snapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.targetHttpsProxy = targetHttpsProxy; + this.snapshot = snapshot; return this; } @@ -202394,27 +189497,27 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified TargetHttpsProxy resource in the specified region. + * Returns the specified Snapshot resource. * - * Create a request for the method "regionTargetHttpsProxies.get". + * 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 scoping this request. - * @param targetHttpsProxy Name of the TargetHttpsProxy resource to return. + * @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 targetHttpsProxy) throws java.io.IOException { - Get result = new Get(project, region, targetHttpsProxy); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{snapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -202422,13 +189525,13 @@ public class Get extends ComputeRequest {@link @@ -202436,12 +189539,12 @@ public class Get extends ComputeRequest * * @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. + * @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 targetHttpsProxy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.TargetHttpsProxy.class); + 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(), @@ -202454,10 +189557,10 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "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."); + 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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}"); } } @@ -202553,17 +189656,17 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -202574,24 +189677,24 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the TargetHttpsProxy resource to return. */ + /** Name of the Snapshot resource to return. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String snapshot; - /** Name of the TargetHttpsProxy resource to return. + /** Name of the Snapshot resource to return. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getSnapshot() { + return snapshot; } - /** Name of the TargetHttpsProxy resource to return. */ - public Get setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** Name of the Snapshot resource to return. */ + public Get setSnapshot(java.lang.String snapshot) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + 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.targetHttpsProxy = targetHttpsProxy; + this.snapshot = snapshot; return this; } @@ -202601,20 +189704,244 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a TargetHttpsProxy resource in the specified project and region using the data included - * in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "regionTargetHttpsProxies.insert". + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} + * @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.TargetHttpsProxy content) throws java.io.IOException { + 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; @@ -202622,7 +189949,7 @@ public Insert insert(java.lang.String project, java.lang.String region, com.goog public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -202631,10 +189958,9 @@ public class Insert extends ComputeRequest {@link @@ -202642,11 +189968,11 @@ public class Insert extends ComputeRequest * * @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} + * @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.TargetHttpsProxy content) { + 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()) { @@ -202743,17 +190069,17 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -202819,16 +190145,15 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of TargetHttpsProxy resources available to the specified project in the - * specified region. + * Retrieves the list of Snapshot resources contained within the specified region. * - * Create a request for the method "regionTargetHttpsProxies.list". + * 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 scoping 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 { @@ -202837,9 +190162,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -202848,10 +190173,9 @@ public class List extends ComputeRequest {@link @@ -202859,11 +190183,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region scoping 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.TargetHttpsProxyList.class); + 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(), @@ -202969,17 +190293,17 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ + /** 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(), @@ -203260,279 +190584,28 @@ public List set(String parameterName, Object 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "regionTargetHttpsProxies.setSslCertificates". + * 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 SetSslCertificates#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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} + * @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 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); + 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 SetSslCertificates extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -203540,29 +190613,28 @@ public class SetSslCertificates extends ComputeRequest {@link SetSslCertificates#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -203575,72 +190647,72 @@ protected SetSslCertificates(java.lang.String project, java.lang.String region, "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { - return (SetSslCertificates) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetSslCertificates setAccessToken(java.lang.String accessToken) { - return (SetSslCertificates) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetSslCertificates setAlt(java.lang.String alt) { - return (SetSslCertificates) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetSslCertificates setCallback(java.lang.String callback) { - return (SetSslCertificates) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetSslCertificates setFields(java.lang.String fields) { - return (SetSslCertificates) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetSslCertificates setKey(java.lang.String key) { - return (SetSslCertificates) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetSslCertificates setOauthToken(java.lang.String oauthToken) { - return (SetSslCertificates) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSslCertificates) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { - return (SetSslCertificates) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetSslCertificates setUploadType(java.lang.String uploadType) { - return (SetSslCertificates) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetSslCertificates setUserIp(java.lang.String userIp) { - return (SetSslCertificates) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203654,7 +190726,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSslCertificates setProject(java.lang.String project) { + 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 " + @@ -203664,18 +190736,18 @@ public SetSslCertificates setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetSslCertificates setRegion(java.lang.String 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 " + @@ -203685,108 +190757,56 @@ public SetSslCertificates setRegion(java.lang.String region) { return this; } - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String resource; - /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getResource() { + return resource; } - /** - * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. - */ - public SetSslCertificates setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource 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; + this.resource = resource; return this; } @Override - public SetSslCertificates set(String parameterName, Object value) { - return (SetSslCertificates) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Changes the URL map for TargetHttpsProxy. + * Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "regionTargetHttpsProxies.setUrlMap". + * 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 SetUrlMap#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @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 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); + 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 SetUrlMap extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -203794,27 +190814,28 @@ public class SetUrlMap extends ComputeRequest + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * SetUrlMap#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @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 SetUrlMap(java.lang.String project, java.lang.String region, java.lang.String targetHttpsProxy, com.google.api.services.compute.model.UrlMapReference content) { + 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()) { @@ -203828,72 +190849,72 @@ protected SetUrlMap(java.lang.String project, java.lang.String region, java.lang "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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 " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { - return (SetUrlMap) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetUrlMap setAccessToken(java.lang.String accessToken) { - return (SetUrlMap) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetUrlMap setAlt(java.lang.String alt) { - return (SetUrlMap) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetUrlMap setCallback(java.lang.String callback) { - return (SetUrlMap) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetUrlMap setFields(java.lang.String fields) { - return (SetUrlMap) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetUrlMap setKey(java.lang.String key) { - return (SetUrlMap) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetUrlMap setOauthToken(java.lang.String oauthToken) { - return (SetUrlMap) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetUrlMap) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetUrlMap setQuotaUser(java.lang.String quotaUser) { - return (SetUrlMap) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetUrlMap setUploadType(java.lang.String uploadType) { - return (SetUrlMap) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { - return (SetUrlMap) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetUrlMap setUserIp(java.lang.String userIp) { - return (SetUrlMap) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -203907,7 +190928,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetUrlMap setProject(java.lang.String project) { + 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 " + @@ -203917,18 +190938,18 @@ public SetUrlMap setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public SetUrlMap setRegion(java.lang.String 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 " + @@ -203938,24 +190959,24 @@ public SetUrlMap setRegion(java.lang.String region) { return this; } - /** Name of the TargetHttpsProxy to set a URL map for. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String targetHttpsProxy; + private java.lang.String resource; - /** Name of the TargetHttpsProxy to set a URL map for. + /** Name or id of the resource for this request. */ - public java.lang.String getTargetHttpsProxy() { - return targetHttpsProxy; + public java.lang.String getResource() { + return resource; } - /** Name of the TargetHttpsProxy to set a URL map for. */ - public SetUrlMap setTargetHttpsProxy(java.lang.String targetHttpsProxy) { + /** 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(TARGET_HTTPS_PROXY_PATTERN.matcher(targetHttpsProxy).matches(), - "Parameter targetHttpsProxy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.targetHttpsProxy = targetHttpsProxy; + this.resource = resource; return this; } @@ -204003,20 +191024,20 @@ public java.lang.String getRequestId() { * 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) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetUrlMap set(String parameterName, Object value) { - return (SetUrlMap) super.set(parameterName, value); + 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 "regionTargetHttpsProxies.testIamPermissions". + * 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. @@ -204035,7 +191056,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/snapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204049,7 +191070,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionTargetTcpProxies.List request = compute.regionTargetTcpProxies().list(parameters ...)}
    +   *   {@code Compute.RegionSslCertificates.List request = compute.regionSslCertificates().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionTargetTcpProxies regionTargetTcpProxies() { - return new RegionTargetTcpProxies(); + public RegionSslCertificates regionSslCertificates() { + return new RegionSslCertificates(); } /** - * The "regionTargetTcpProxies" collection of methods. + * The "regionSslCertificates" collection of methods. */ - public class RegionTargetTcpProxies { + public class RegionSslCertificates { /** - * Deletes the specified TargetTcpProxy resource. + * Deletes the specified SslCertificate resource in the region. * - * Create a request for the method "regionTargetTcpProxies.delete". + * 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 targetTcpProxy Name of the TargetTcpProxy resource to delete. + * @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 targetTcpProxy) throws java.io.IOException { - Delete result = new Delete(project, region, targetTcpProxy); + 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}/targetTcpProxies/{targetTcpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204265,13 +191286,13 @@ public class Delete extends ComputeRequest {@link @@ -204280,10 +191301,10 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{sslCertificate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204511,13 +191533,14 @@ public class Get extends ComputeRequest {@link @@ -204526,11 +191549,11 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204720,10 +191743,10 @@ public class Insert extends ComputeRequest {@link @@ -204732,10 +191755,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -204937,10 +191960,10 @@ public class List extends ComputeRequest {@link @@ -204952,7 +191975,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -205382,9 +192405,9 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.RegionUrlMaps.List request = compute.regionUrlMaps().list(parameters ...)}
    +   *   {@code Compute.RegionSslPolicies.List request = compute.regionSslPolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public RegionUrlMaps regionUrlMaps() { - return new RegionUrlMaps(); + public RegionSslPolicies regionSslPolicies() { + return new RegionSslPolicies(); } /** - * The "regionUrlMaps" collection of methods. + * The "regionSslPolicies" collection of methods. */ - public class RegionUrlMaps { + public class RegionSslPolicies { /** - * Deletes the specified UrlMap resource. + * 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 "regionUrlMaps.delete". + * 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 urlMap Name of the UrlMap resource to delete. + * @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 urlMap) throws java.io.IOException { - Delete result = new Delete(project, region, urlMap); + 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}/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -205600,13 +192625,11 @@ public class Delete extends ComputeRequest {@link @@ -205615,10 +192638,11 @@ public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -205817,13 +192867,10 @@ public class Get extends ComputeRequest {@link @@ -205832,11 +192879,12 @@ public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -206025,9 +193069,10 @@ public class Insert extends ComputeRequest {@link @@ -206036,10 +193081,10 @@ public class Insert extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -206215,31 +193284,22 @@ public class InvalidateCache extends ComputeRequest {@link InvalidateCache#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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. - * @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 region, 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); + 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(), @@ -206252,72 +193312,76 @@ protected InvalidateCache(java.lang.String project, java.lang.String region, jav "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}"); - } } @Override - public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { - return (InvalidateCache) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public InvalidateCache setAccessToken(java.lang.String accessToken) { - return (InvalidateCache) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public InvalidateCache setAlt(java.lang.String alt) { - return (InvalidateCache) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public InvalidateCache setCallback(java.lang.String callback) { - return (InvalidateCache) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public InvalidateCache setFields(java.lang.String fields) { - return (InvalidateCache) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public InvalidateCache setKey(java.lang.String key) { - return (InvalidateCache) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public InvalidateCache setOauthToken(java.lang.String oauthToken) { - return (InvalidateCache) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvalidateCache) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public InvalidateCache setQuotaUser(java.lang.String quotaUser) { - return (InvalidateCache) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public InvalidateCache setUploadType(java.lang.String uploadType) { - return (InvalidateCache) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { - return (InvalidateCache) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public InvalidateCache setUserIp(java.lang.String userIp) { - return (InvalidateCache) super.setUserIp(userIp); + 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. */ @@ -206331,7 +193395,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public InvalidateCache setProject(java.lang.String project) { + 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 " + @@ -206352,7 +193416,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public InvalidateCache setRegion(java.lang.String region) { + 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 " + @@ -206362,74 +193426,297 @@ public InvalidateCache setRegion(java.lang.String region) { return this; } - /** Name of the UrlMap scoping this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String filter; - /** Name of the UrlMap scoping this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.Long maxResults; - /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Long getMaxResults() { + return maxResults; } /** - * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) */ - public InvalidateCache setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public InvalidateCache set(String parameterName, Object value) { - return (InvalidateCache) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves the list of UrlMap resources available to the specified project in the specified - * region. + * Lists all features that can be specified in the SSL policy when using custom profile. * - * Create a request for the method "regionUrlMaps.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class ListAvailableFeatures extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -206438,22 +193725,22 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

    + * 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 List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.UrlMapList.class); + 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(), @@ -206479,63 +193766,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListAvailableFeatures set$Xgafv(java.lang.String $Xgafv) { + return (ListAvailableFeatures) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListAvailableFeatures setAccessToken(java.lang.String accessToken) { + return (ListAvailableFeatures) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListAvailableFeatures setAlt(java.lang.String alt) { + return (ListAvailableFeatures) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListAvailableFeatures setCallback(java.lang.String callback) { + return (ListAvailableFeatures) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListAvailableFeatures setFields(java.lang.String fields) { + return (ListAvailableFeatures) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListAvailableFeatures setKey(java.lang.String key) { + return (ListAvailableFeatures) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListAvailableFeatures setOauthToken(java.lang.String oauthToken) { + return (ListAvailableFeatures) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListAvailableFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAvailableFeatures) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListAvailableFeatures setQuotaUser(java.lang.String quotaUser) { + return (ListAvailableFeatures) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListAvailableFeatures setUploadType(java.lang.String uploadType) { + return (ListAvailableFeatures) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListAvailableFeatures setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAvailableFeatures) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListAvailableFeatures setUserIp(java.lang.String userIp) { + return (ListAvailableFeatures) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -206549,7 +193836,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -206570,7 +193857,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + 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 " + @@ -206711,7 +193998,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListAvailableFeatures setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -206740,7 +194027,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListAvailableFeatures setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -206784,7 +194071,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListAvailableFeatures setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -206807,7 +194094,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListAvailableFeatures setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -206839,40 +194126,40 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListAvailableFeatures setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListAvailableFeatures set(String parameterName, Object value) { + return (ListAvailableFeatures) 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. + * Patches the specified SSL policy with the data included in the request. * - * Create a request for the method "regionUrlMaps.patch". + * 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 urlMap Name of the UrlMap resource to patch. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @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 urlMap, com.google.api.services.compute.model.UrlMap content) throws java.io.IOException { - Patch result = new Patch(project, region, urlMap, content); + 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}/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{sslPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -206880,14 +194167,10 @@ public class Patch extends ComputeRequest {@link @@ -206896,11 +194179,12 @@ public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -207106,7 +194415,7 @@ public class TestIamPermissions extends ComputeRequestThe 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207213,7 +194742,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -207223,18 +194752,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String 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 " + @@ -207244,55 +194773,103 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the TargetHttpProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String targetHttpProxy; - /** Name or id of the resource for this request. + /** Name of the TargetHttpProxy resource to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the TargetHttpProxy resource to delete. */ + public Delete setTargetHttpProxy(java.lang.String targetHttpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates the specified UrlMap resource with the data included in the request. + * Returns the specified TargetHttpProxy resource in the specified region. * - * Create a request for the method "regionUrlMaps.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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); + 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 Update extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -207300,27 +194877,26 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 update. - * @param content the {@link com.google.api.services.compute.model.UrlMap} + * @param targetHttpProxy Name of the TargetHttpProxy resource to return. * @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); + 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(), @@ -207333,72 +194909,82 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St "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."); + 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(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -207412,7 +194998,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -207433,7 +195019,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Update setRegion(java.lang.String region) { + 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 " + @@ -207443,76 +195029,55 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the UrlMap resource to update. */ + /** Name of the TargetHttpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String targetHttpProxy; - /** Name of the UrlMap resource to update. + /** Name of the TargetHttpProxy resource to return. */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getTargetHttpProxy() { + return targetHttpProxy; } - /** Name of the UrlMap resource to update. */ - public Update setUrlMap(java.lang.String urlMap) { + /** Name of the TargetHttpProxy resource to return. */ + public Get setTargetHttpProxy(java.lang.String targetHttpProxy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(URL_MAP_PATTERN.matcher(urlMap).matches(), - "Parameter urlMap must conform to the pattern " + + 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.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; + this.targetHttpProxy = targetHttpProxy; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Creates a TargetHttpProxy resource in the specified project and region using the data included in + * the request. * - * Create a request for the method "regionUrlMaps.validate". + * 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 Validate#execute()} method to invoke the remote operation. + * 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 urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.model.RegionUrlMapsValidateRequest} + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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); + 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 Validate extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/validate"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -207520,29 +195085,24 @@ public class Validate extends ComputeRequest - * {@link - * Validate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 urlMap Name of the UrlMap resource to be validated as. - * @param content the {@link com.google.api.services.compute.model.RegionUrlMapsValidateRequest} + * @param content the {@link com.google.api.services.compute.model.TargetHttpProxy} * @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); + 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(), @@ -207555,72 +195115,66 @@ protected Validate(java.lang.String project, java.lang.String region, java.lang. "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}"); - } } @Override - public Validate set$Xgafv(java.lang.String $Xgafv) { - return (Validate) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Validate setAccessToken(java.lang.String accessToken) { - return (Validate) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Validate setAlt(java.lang.String alt) { - return (Validate) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Validate setCallback(java.lang.String callback) { - return (Validate) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Validate setFields(java.lang.String fields) { - return (Validate) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Validate setKey(java.lang.String key) { - return (Validate) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Validate setOauthToken(java.lang.String oauthToken) { - return (Validate) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Validate) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Validate setQuotaUser(java.lang.String quotaUser) { - return (Validate) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Validate setUploadType(java.lang.String uploadType) { - return (Validate) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Validate setUploadProtocol(java.lang.String uploadProtocol) { - return (Validate) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Validate setUserIp(java.lang.String userIp) { - return (Validate) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -207634,7 +195188,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Validate setProject(java.lang.String project) { + 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 " + @@ -207655,7 +195209,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public Validate setRegion(java.lang.String region) { + 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 " + @@ -207665,66 +195219,71 @@ public Validate setRegion(java.lang.String region) { return this; } - /** Name of the UrlMap resource to be validated as. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String urlMap; + private java.lang.String requestId; - /** Name of the UrlMap resource to be validated as. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getUrlMap() { - return urlMap; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 Validate set(String parameterName, Object value) { - return (Validate) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) 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. + * Retrieves the list of TargetHttpProxy resources available to the specified project in the + * specified region. * - * Create a request for the method "regionZones.list". + * 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 Region 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 { @@ -207733,9 +195292,9 @@ public List list(java.lang.String project, java.lang.String region) throws java. return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/zones"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -207744,10 +195303,10 @@ public class List extends ComputeRequest {@link @@ -207755,11 +195314,11 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Region 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.ZoneList.class); + 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(), @@ -207865,17 +195424,17 @@ public List setProject(java.lang.String project) { return this; } - /** Region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Region for this request. */ + /** 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(), @@ -208155,98 +195714,58 @@ 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. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "regions.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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 resource to return. + * @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 Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { - Get result = new Get(project, region); + 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 Get extends ComputeRequest { + public class SetUrlMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); private final java.util.regex.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 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. + * Changes the URL map for TargetHttpProxy. * - * Create a request for the method "regions.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 resource to return. + * @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 Get(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Region.class); + 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(), @@ -208257,78 +195776,74 @@ protected Get(java.lang.String project, java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -208342,7 +195857,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -208352,172 +195867,232 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region resource to return. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region resource to return. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region resource to return. */ - public Get setRegion(java.lang.String 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])?|[1-9][0-9]{0,19}"); + "[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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regions.list". + * Create a request for the method "regionTargetHttpProxies.testIamPermissions". * * 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. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "regions.list". + * Create a request for the method "regionTargetHttpProxies.testIamPermissions". * * 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RegionList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -208531,7 +196106,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -208541,328 +196116,358 @@ public List setProject(java.lang.String 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 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Deletes the specified TargetHttpsProxy resource. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "regionTargetHttpsProxies.delete". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @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 */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + 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}"); + } + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + @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.Long maxResults; + private java.lang.String project; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region scoping this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the TargetHttpsProxy resource to delete. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String targetHttpsProxy; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the TargetHttpsProxy resource to delete. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Returns the specified TargetHttpsProxy resource in the specified region. * - * Create a request for the method "reservationBlocks.get". + * 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 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 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 zone, java.lang.String reservation, java.lang.String reservationBlock) throws java.io.IOException { - Get result = new Get(project, zone, reservation, reservationBlock); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); /** - * Retrieves information about the specified reservation block. + * Returns the specified TargetHttpsProxy resource in the specified region. * - * Create a request for the method "reservationBlocks.get". + * 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 @@ -208870,19 +196475,30 @@ public class Get extends ComputeRequest * * @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 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 zone, java.lang.String reservation, java.lang.String reservationBlock) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationBlocksGetResponse.class); + 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."); - 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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override @@ -208967,79 +196583,54 @@ public java.lang.String getProject() { /** 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. 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String reservationBlock; + private java.lang.String region; - /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + /** Name of the region scoping this request. */ - public java.lang.String getReservationBlock() { - return reservationBlock; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } - /** View of the Block. */ + /** Name of the TargetHttpsProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String targetHttpsProxy; - /** View of the Block. + /** Name of the TargetHttpsProxy resource to return. */ - public java.lang.String getView() { - return view; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** View of the Block. */ - public Get setView(java.lang.String view) { - this.view = view; + /** 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; } @@ -209049,155 +196640,125 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Creates a TargetHttpsProxy resource in the specified project and region using the data included + * in the request. * - * Create a request for the method "reservationBlocks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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 region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @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); + 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 GetIamPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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. + * Creates a TargetHttpsProxy resource in the specified project and region using the data included + * in the request. * - * Create a request for the method "reservationBlocks.getIamPolicy". + * 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 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.

    + * 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 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 region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetHttpsProxy} * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209211,7 +196772,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -209221,118 +196782,115 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - 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; - } + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Requested IAM Policy version. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of reservation blocks under a single reservation. + * Retrieves the list of TargetHttpsProxy resources available to the specified project in the + * specified region. * - * Create a request for the method "reservationBlocks.list". + * 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 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 region Name of the region scoping this request. * @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); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 reservation blocks under a single reservation. + * Retrieves the list of TargetHttpsProxy resources available to the specified project in the + * specified region. * - * Create a request for the method "reservationBlocks.list". + * 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 @@ -209340,16 +196898,23 @@ public class List extends ComputeRequest * * @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 region Name of the region scoping this request. * @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); + 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."); - 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(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -209434,43 +196999,33 @@ public java.lang.String getProject() { /** 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. 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String region; - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + /** Name of the region scoping this request. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } @@ -209707,155 +197262,424 @@ public List setPageToken(java.lang.String pageToken) { } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Allows customers to perform maintenance on a reservation block + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "reservationBlocks.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSslCertificates#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} + * @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 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); + 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 PerformMaintenance extends ComputeRequest { + public class SetSslCertificates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); /** - * Allows customers to perform maintenance on a reservation block + * Replaces SslCertificates for TargetHttpsProxy. * - * Create a request for the method "reservationBlocks.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote - * operation.

    {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A + * 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 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} + * @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 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) { + 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."); - 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."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + } } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public SetSslCertificates set$Xgafv(java.lang.String $Xgafv) { + return (SetSslCertificates) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public SetSslCertificates setAccessToken(java.lang.String accessToken) { + return (SetSslCertificates) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public SetSslCertificates setAlt(java.lang.String alt) { + return (SetSslCertificates) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public SetSslCertificates setCallback(java.lang.String callback) { + return (SetSslCertificates) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public SetSslCertificates setFields(java.lang.String fields) { + return (SetSslCertificates) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public SetSslCertificates setKey(java.lang.String key) { + return (SetSslCertificates) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public SetSslCertificates setOauthToken(java.lang.String oauthToken) { + return (SetSslCertificates) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public SetSslCertificates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSslCertificates) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public SetSslCertificates setQuotaUser(java.lang.String quotaUser) { + return (SetSslCertificates) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public SetSslCertificates setUploadType(java.lang.String uploadType) { + return (SetSslCertificates) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public SetSslCertificates setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSslCertificates) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public SetSslCertificates setUserIp(java.lang.String userIp) { + return (SetSslCertificates) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -209869,64 +197693,59 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + 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 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. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String region; - /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. + /** Name of the region scoping this request. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getRegion() { + return region; } - /** - * 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; + /** 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; } /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ @com.google.api.client.util.Key - private java.lang.String reservationBlock; + private java.lang.String targetHttpsProxy; - /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + /** Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ - public java.lang.String getReservationBlock() { - return reservationBlock; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } /** - * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. + * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. */ - public PerformMaintenance setReservationBlock(java.lang.String reservationBlock) { - this.reservationBlock = reservationBlock; + 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; } @@ -209974,157 +197793,146 @@ public java.lang.String getRequestId() { * 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) { + public SetSslCertificates setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public SetSslCertificates set(String parameterName, Object value) { + return (SetSslCertificates) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Changes the URL map for TargetHttpsProxy. * - * Create a request for the method "reservationBlocks.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetUrlMap#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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class SetUrlMap extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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 = + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Changes the URL map for TargetHttpsProxy. * - * Create a request for the method "reservationBlocks.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetUrlMap#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetUrlMap set$Xgafv(java.lang.String $Xgafv) { + return (SetUrlMap) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetUrlMap setAccessToken(java.lang.String accessToken) { + return (SetUrlMap) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetUrlMap setAlt(java.lang.String alt) { + return (SetUrlMap) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetUrlMap setCallback(java.lang.String callback) { + return (SetUrlMap) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetUrlMap setFields(java.lang.String fields) { + return (SetUrlMap) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetUrlMap setKey(java.lang.String key) { + return (SetUrlMap) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetUrlMap setOauthToken(java.lang.String oauthToken) { + return (SetUrlMap) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetUrlMap setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetUrlMap) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetUrlMap setQuotaUser(java.lang.String quotaUser) { + return (SetUrlMap) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetUrlMap setUploadType(java.lang.String uploadType) { + return (SetUrlMap) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetUrlMap setUploadProtocol(java.lang.String uploadProtocol) { + return (SetUrlMap) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetUrlMap setUserIp(java.lang.String userIp) { + return (SetUrlMap) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -210138,7 +197946,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -210148,115 +197956,139 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public SetUrlMap setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name or id of parent resource of the resource for this request. */ + /** Name of the TargetHttpsProxy to set a URL map for. */ @com.google.api.client.util.Key - private java.lang.String parentResource; + private java.lang.String targetHttpsProxy; - /** Name or id of parent resource of the resource for this request. + /** Name of the TargetHttpsProxy to set a URL map for. */ - public java.lang.String getParentResource() { - return parentResource; + public java.lang.String getTargetHttpsProxy() { + return targetHttpsProxy; } - /** Name or id of parent resource of the resource for this request. */ - public SetIamPolicy setParentResource(java.lang.String parentResource) { + /** 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(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])?"); + 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.parentResource = parentResource; + this.targetHttpsProxy = targetHttpsProxy; return this; } - /** Name or id of the resource for this request. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public SetUrlMap set(String parameterName, Object value) { + return (SetUrlMap) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "reservationBlocks.testIamPermissions". + * Create a request for the method "regionTargetHttpsProxies.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 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 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); + 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}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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". + * Create a request for the method "regionTargetHttpsProxies.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 @@ -210265,13 +198097,12 @@ public class TestIamPermissions extends ComputeRequest * * @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 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 zone, java.lang.String parentResource, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -210279,18 +198110,12 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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(), @@ -210380,45 +198205,24 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** The name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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; + this.region = region; return this; } @@ -210452,85 +198256,338 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the ReservationSlots collection. + * An accessor for creating requests from the RegionTargetTcpProxies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ReservationSlots.List request = compute.reservationSlots().list(parameters ...)}
    +   *   {@code Compute.RegionTargetTcpProxies.List request = compute.regionTargetTcpProxies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ReservationSlots reservationSlots() { - return new ReservationSlots(); + public RegionTargetTcpProxies regionTargetTcpProxies() { + return new RegionTargetTcpProxies(); } /** - * The "reservationSlots" collection of methods. + * The "regionTargetTcpProxies" collection of methods. */ - public class ReservationSlots { + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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); + } + } /** - * Retrieves information about the specified reservation slot. + * Returns the specified TargetTcpProxy resource. * - * Create a request for the method "reservationSlots.get". + * 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 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. + * @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 zone, java.lang.String parentName, java.lang.String reservationSlot) throws java.io.IOException { - Get result = new Get(project, zone, parentName, reservationSlot); + 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 { + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{targetTcpProxy}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - 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})"); + 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}"); /** - * Retrieves information about the specified reservation slot. + * Returns the specified TargetTcpProxy resource. * - * Create a request for the method "reservationSlots.get". + * 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 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. + * @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 zone, java.lang.String parentName, java.lang.String reservationSlot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsGetResponse.class); + 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."); - 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})"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); } @Override @@ -210603,85 +198660,66 @@ public Get setUserIp(java.lang.String userIp) { return (Get) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** The project ID for this request. */ + /** 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, 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} - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r - eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + /** Name of the region scoping this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { 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})"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.parentName = parentName; + this.region = region; return this; } - /** - * The name of the reservation slot, formatted as RFC1035 or a resource ID number. - */ + /** Name of the TargetTcpProxy resource to return. */ @com.google.api.client.util.Key - private java.lang.String reservationSlot; + private java.lang.String targetTcpProxy; - /** The name of the reservation slot, formatted as RFC1035 or a resource ID number. + /** Name of the TargetTcpProxy resource to return. */ - public java.lang.String getReservationSlot() { - return reservationSlot; + public java.lang.String getTargetTcpProxy() { + return targetTcpProxy; } - /** - * The name of the reservation slot, formatted as RFC1035 or a resource ID number. - */ - public Get setReservationSlot(java.lang.String reservationSlot) { - this.reservationSlot = reservationSlot; + /** 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; } @@ -210691,130 +198729,125 @@ public Get set(String parameterName, Object value) { } } /** - * Allows customers to get SBOM versions of a reservation slot. + * Creates a TargetTcpProxy resource in the specified project and region using the data included in + * the request. * - * Create a request for the method "reservationSlots.getVersion". + * 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 GetVersion#execute()} method to invoke the remote operation. + * 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. 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} * @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); + 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 GetVersion extends ComputeRequest { + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getVersion"; + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - 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})"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Allows customers to get SBOM versions of a reservation slot. + * Creates a TargetTcpProxy resource in the specified project and region using the data included + * in the request. * - * Create a request for the method "reservationSlots.getVersion". + * 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 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.

    + * 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. 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} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.TargetTcpProxy} * @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) { + 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."); - 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})"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); } @Override - public GetVersion set$Xgafv(java.lang.String $Xgafv) { - return (GetVersion) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public GetVersion setAccessToken(java.lang.String accessToken) { - return (GetVersion) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetVersion setAlt(java.lang.String alt) { - return (GetVersion) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetVersion setCallback(java.lang.String callback) { - return (GetVersion) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetVersion setFields(java.lang.String fields) { - return (GetVersion) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetVersion setKey(java.lang.String key) { - return (GetVersion) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetVersion setOauthToken(java.lang.String oauthToken) { - return (GetVersion) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVersion) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetVersion setQuotaUser(java.lang.String quotaUser) { - return (GetVersion) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetVersion setUploadType(java.lang.String uploadType) { - return (GetVersion) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVersion) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetVersion setUserIp(java.lang.String userIp) { - return (GetVersion) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -210828,74 +198861,34 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetVersion setProject(java.lang.String project) { + 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. 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} - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** 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} + /** Name of the region scoping this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { 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})"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - 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; + this.region = region; return this; } @@ -210943,70 +198936,73 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of reservation slots under a single reservation. + * Retrieves a list of TargetTcpProxy resources available to the specified project in a given + * region. * - * Create a request for the method "reservationSlots.list". + * 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 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 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 zone, java.lang.String parentName) throws java.io.IOException { - List result = new List(project, zone, parentName); + 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 { + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots"; + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - 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})"); + 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 reservation slots under a single reservation. + * Retrieves a list of TargetTcpProxy resources available to the specified project in a given + * region. * - * Create a request for the method "reservationSlots.list". + * 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 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 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 zone, java.lang.String parentName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationSlotsListResponse.class); + 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."); - 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})"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -211080,65 +199076,45 @@ public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** The project ID for this request. */ + /** 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, 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} - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block, formatted as reservations/{reservation_name}/r - eservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + /** Name of the region scoping this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { 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})"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.parentName = parentName; + this.region = region; return this; } @@ -211412,364 +199388,355 @@ public List set(String parameterName, Object value) { } } /** - * Update a reservation slot in the specified sub-block. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "reservationSlots.update". + * Create a request for the method "regionTargetTcpProxies.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Update extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/targetTcpProxies/{resource}/testIamPermissions"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}"; + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - 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})"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "reservationSlots.update". + * Create a request for the method "regionTargetTcpProxies.testIamPermissions". * * 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.

    + * 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 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} + * @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 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); + 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."); - 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})"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } - this.reservationSlot = com.google.api.client.util.Preconditions.checkNotNull(reservationSlot, "Required parameter reservationSlot must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** 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) { + /** 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, 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. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the sub-block resource. + /** The name of the region for this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** The name of the sub-block resource. */ - public Update setParentName(java.lang.String parentName) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { 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})"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - 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; + this.region = region; return this; } - /** The fields to be updated as part of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** The fields to be updated as part of this request. + /** Name or id of the resource for this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } - /** The fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** 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 Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the ReservationSubBlocks collection. + * An accessor for creating requests from the RegionUrlMaps collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.ReservationSubBlocks.List request = compute.reservationSubBlocks().list(parameters ...)}
    +   *   {@code Compute.RegionUrlMaps.List request = compute.regionUrlMaps().list(parameters ...)}
        * 
    * * @return the resource collection */ - public ReservationSubBlocks reservationSubBlocks() { - return new ReservationSubBlocks(); + public RegionUrlMaps regionUrlMaps() { + return new RegionUrlMaps(); } /** - * The "reservationSubBlocks" collection of methods. + * The "regionUrlMaps" collection of methods. */ - public class ReservationSubBlocks { + public class RegionUrlMaps { /** - * Retrieves information about the specified reservation subBlock. + * Deletes the specified UrlMap resource. * - * Create a request for the method "reservationSubBlocks.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. 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 region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to delete. * @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); + 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 Get extends ComputeRequest { + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}"; + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + 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}"); /** - * Retrieves information about the specified reservation subBlock. + * Deletes the specified UrlMap resource. * - * Create a request for the method "reservationSubBlocks.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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. 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 region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to delete. * @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); + 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."); - 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -211783,174 +199750,148 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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. Zone name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. Zone name should conform to RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; + /** 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; } - /** - * The name of the parent reservation and parent block. In the format of - * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - */ + /** Name of the UrlMap resource to delete. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String urlMap; - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** Name of the UrlMap resource to delete. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getUrlMap() { + return urlMap; } - /** - * 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) { + /** Name of the UrlMap resource to delete. */ + public Delete setUrlMap(java.lang.String urlMap) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); + 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.parentName = parentName; + this.urlMap = urlMap; return this; } /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; + private java.lang.String requestId; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getRequestId() { + return requestId; } /** - * 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. + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public java.lang.String getView() { - return view; - } - - /** View of the subBlock. */ - public Get setView(java.lang.String view) { - this.view = view; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified UrlMap resource. * - * Create a request for the method "reservationSubBlocks.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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 region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to return. * @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); + 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 GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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 = + 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}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the specified UrlMap resource. * - * Create a request for the method "reservationSubBlocks.getIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 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 region Name of the region scoping this request. + * @param urlMap Name of the UrlMap resource to return. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @@ -211966,63 +199907,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212036,7 +199977,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -212046,211 +199987,376 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name or id of parent resource of the resource for this request. */ + /** Name of the UrlMap resource to return. */ @com.google.api.client.util.Key - private java.lang.String parentResource; + private java.lang.String urlMap; - /** Name or id of parent resource of the resource for this request. + /** Name of the UrlMap resource to return. */ - public java.lang.String getParentResource() { - return parentResource; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name or id of parent resource of the resource for this request. */ - public GetIamPolicy setParentResource(java.lang.String parentResource) { + /** Name of the UrlMap resource to return. */ + public Get setUrlMap(java.lang.String urlMap) { 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])?"); + 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.parentResource = parentResource; + this.urlMap = urlMap; return this; } - /** Name or id of the resource for this request. */ + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); + } + } + + @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 resource; + private java.lang.String project; - /** Name or id of the resource for this request. + /** Project ID for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getProject() { + return project; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 = resource; + this.project = project; return this; } - /** Requested IAM Policy version. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String region; - /** Requested IAM Policy version. + /** Name of the region scoping this request. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRegion() { + return region; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Allows customers to get SBOM versions of a reservation subBlock. + * 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 "reservationSubBlocks.getVersion". + * Create a request for the method "regionUrlMaps.invalidateCache". * * 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. + * parameters, call the {@link InvalidateCache#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} + * @param region Name of the region scoping 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 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); + public InvalidateCache invalidateCache(java.lang.String project, java.lang.String region, java.lang.String urlMap, com.google.api.services.compute.model.CacheInvalidationRule content) throws java.io.IOException { + InvalidateCache result = new InvalidateCache(project, region, urlMap, content); initialize(result); return result; } - public class GetVersion extends ComputeRequest { + public class InvalidateCache extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion"; + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + 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}"); /** - * Allows customers to get SBOM versions of a reservation subBlock. + * 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 "reservationSubBlocks.getVersion". + * Create a request for the method "regionUrlMaps.invalidateCache". * * 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.

    + * 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 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} + * @param region Name of the region scoping 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 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) { + protected InvalidateCache(java.lang.String project, java.lang.String region, 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."); - 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override - public GetVersion set$Xgafv(java.lang.String $Xgafv) { - return (GetVersion) super.set$Xgafv($Xgafv); + public InvalidateCache set$Xgafv(java.lang.String $Xgafv) { + return (InvalidateCache) super.set$Xgafv($Xgafv); } @Override - public GetVersion setAccessToken(java.lang.String accessToken) { - return (GetVersion) super.setAccessToken(accessToken); + public InvalidateCache setAccessToken(java.lang.String accessToken) { + return (InvalidateCache) super.setAccessToken(accessToken); } @Override - public GetVersion setAlt(java.lang.String alt) { - return (GetVersion) super.setAlt(alt); + public InvalidateCache setAlt(java.lang.String alt) { + return (InvalidateCache) super.setAlt(alt); } @Override - public GetVersion setCallback(java.lang.String callback) { - return (GetVersion) super.setCallback(callback); + public InvalidateCache setCallback(java.lang.String callback) { + return (InvalidateCache) super.setCallback(callback); } @Override - public GetVersion setFields(java.lang.String fields) { - return (GetVersion) super.setFields(fields); + public InvalidateCache setFields(java.lang.String fields) { + return (InvalidateCache) super.setFields(fields); } @Override - public GetVersion setKey(java.lang.String key) { - return (GetVersion) super.setKey(key); + public InvalidateCache setKey(java.lang.String key) { + return (InvalidateCache) super.setKey(key); } @Override - public GetVersion setOauthToken(java.lang.String oauthToken) { - return (GetVersion) super.setOauthToken(oauthToken); + public InvalidateCache setOauthToken(java.lang.String oauthToken) { + return (InvalidateCache) super.setOauthToken(oauthToken); } @Override - public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVersion) super.setPrettyPrint(prettyPrint); + public InvalidateCache setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvalidateCache) super.setPrettyPrint(prettyPrint); } @Override - public GetVersion setQuotaUser(java.lang.String quotaUser) { - return (GetVersion) super.setQuotaUser(quotaUser); + public InvalidateCache setQuotaUser(java.lang.String quotaUser) { + return (InvalidateCache) super.setQuotaUser(quotaUser); } @Override - public GetVersion setUploadType(java.lang.String uploadType) { - return (GetVersion) super.setUploadType(uploadType); + public InvalidateCache setUploadType(java.lang.String uploadType) { + return (InvalidateCache) super.setUploadType(uploadType); } @Override - public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVersion) super.setUploadProtocol(uploadProtocol); + public InvalidateCache setUploadProtocol(java.lang.String uploadProtocol) { + return (InvalidateCache) super.setUploadProtocol(uploadProtocol); } @Override - public GetVersion setUserIp(java.lang.String userIp) { - return (GetVersion) super.setUserIp(userIp); + public InvalidateCache setUserIp(java.lang.String userIp) { + return (InvalidateCache) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212264,160 +200370,117 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetVersion setProject(java.lang.String project) { + 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 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} - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** Name of the region scoping this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** Name of the region scoping this request. */ + public InvalidateCache setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.parentName = parentName; + this.region = region; return this; } - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ + /** Name of the UrlMap scoping this request. */ @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; + private java.lang.String urlMap; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** Name of the UrlMap scoping this request. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getUrlMap() { + return urlMap; } - /** - * 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; + /** 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). + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ @com.google.api.client.util.Key private java.lang.String requestId; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + public java.lang.String getRequestId() { + return requestId; + } + + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public GetVersion setRequestId(java.lang.String requestId) { + public InvalidateCache setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); + public InvalidateCache set(String parameterName, Object value) { + return (InvalidateCache) super.set(parameterName, value); } } /** - * Retrieves a list of reservation subBlocks under a single reservation. + * Retrieves the list of UrlMap resources available to the specified project in the specified + * region. * - * Create a request for the method "reservationSubBlocks.list". + * 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 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 region Name of the region scoping this request. * @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); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + 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 reservation subBlocks under a single reservation. + * Retrieves the list of UrlMap resources available to the specified project in the specified + * region. * - * Create a request for the method "reservationSubBlocks.list". + * 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 @@ -212425,20 +200488,22 @@ public class List extends ComputeRequest * * @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 region Name of the region scoping this request. * @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); + 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."); - 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -212524,51 +200589,33 @@ public java.lang.String getProject() { /** 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. 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} - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** Name of the region scoping this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.parentName = parentName; + this.region = region; return this; } @@ -212842,124 +200889,136 @@ public List set(String parameterName, Object value) { } } /** - * Allows customers to perform maintenance on a reservation subBlock + * 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 "reservationSubBlocks.performMaintenance". + * 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 PerformMaintenance#execute()} method to invoke the remote operation. + * 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. 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 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 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); + 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 PerformMaintenance extends ComputeRequest { + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + 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}"); /** - * Allows customers to perform maintenance on a reservation subBlock + * 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 "reservationSubBlocks.performMaintenance". + * 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 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.

    + * 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. 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 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 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); + 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."); - 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override - public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { - return (PerformMaintenance) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -212973,250 +201032,213 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + 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. 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} - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** Name of the region scoping this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.parentName = parentName; + this.region = region; return this; } - /** - * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. - */ + /** Name of the UrlMap resource to patch. */ @com.google.api.client.util.Key - private java.lang.String reservationSubBlock; + private java.lang.String urlMap; - /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID. + /** Name of the UrlMap resource to patch. */ - public java.lang.String getReservationSubBlock() { - return reservationSubBlock; + public java.lang.String getUrlMap() { + return urlMap; } - /** - * 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; + /** 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). + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ @com.google.api.client.util.Key private java.lang.String requestId; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ public java.lang.String getRequestId() { return requestId; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public PerformMaintenance setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Allows customers to report a faulty subBlock. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "reservationSubBlocks.reportFaulty". + * Create a request for the method "regionUrlMaps.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 ReportFaulty extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern PARENT_NAME_PATTERN = - java.util.regex.Pattern.compile("^reservations/[^/]+/reservationBlocks/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Allows customers to report a faulty subBlock. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "reservationSubBlocks.reportFaulty". + * Create a request for the method "regionUrlMaps.testIamPermissions". * * 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.

    + * 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 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} + * @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 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); + 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."); - 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); } - this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override - public ReportFaulty set$Xgafv(java.lang.String $Xgafv) { - return (ReportFaulty) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ReportFaulty setAccessToken(java.lang.String accessToken) { - return (ReportFaulty) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ReportFaulty setAlt(java.lang.String alt) { - return (ReportFaulty) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ReportFaulty setCallback(java.lang.String callback) { - return (ReportFaulty) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ReportFaulty setFields(java.lang.String fields) { - return (ReportFaulty) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ReportFaulty setKey(java.lang.String key) { - return (ReportFaulty) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ReportFaulty setOauthToken(java.lang.String oauthToken) { - return (ReportFaulty) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ReportFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportFaulty) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ReportFaulty setQuotaUser(java.lang.String quotaUser) { - return (ReportFaulty) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ReportFaulty setUploadType(java.lang.String uploadType) { - return (ReportFaulty) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ReportFaulty setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportFaulty) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ReportFaulty setUserIp(java.lang.String userIp) { - return (ReportFaulty) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213230,270 +201252,192 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ReportFaulty setProject(java.lang.String project) { + 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 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} - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String parentName; + private java.lang.String region; - /** The name of the parent reservation and parent block. In the format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + /** The name of the region for this request. */ - public java.lang.String getParentName() { - return parentName; + public java.lang.String getRegion() { + return region; } - /** - * 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) { + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), - "Parameter parentName must conform to the pattern " + - "^reservations/[^/]+/reservationBlocks/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - 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; + 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). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 ReportFaulty set(String parameterName, Object value) { - return (ReportFaulty) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Updates the specified UrlMap resource with the data included in the request. * - * Create a request for the method "reservationSubBlocks.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * 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 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} + * @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 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); + 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 SetIamPolicy extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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 = + 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}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Updates the specified UrlMap resource with the data included in the request. * - * Create a request for the method "reservationSubBlocks.setIamPolicy". + * 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 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.

    + * 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 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} + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213507,7 +201451,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -213517,215 +201461,205 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Update setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.region = region; return this; } - /** Name or id of parent resource of the resource for this request. */ + /** Name of the UrlMap resource to update. */ @com.google.api.client.util.Key - private java.lang.String parentResource; + private java.lang.String urlMap; - /** Name or id of parent resource of the resource for this request. + /** Name of the UrlMap resource to update. */ - public java.lang.String getParentResource() { - return parentResource; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name or id of parent resource of the resource for this request. */ - public SetIamPolicy setParentResource(java.lang.String parentResource) { + /** Name of the UrlMap resource to update. */ + public Update setUrlMap(java.lang.String urlMap) { 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])?"); + 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.parentResource = parentResource; + this.urlMap = urlMap; return this; } - /** Name or id of the resource for this request. */ + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String requestId; - /** Name or id of the resource for this request. + /** begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRequestId() { + return requestId; } - /** 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; + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * 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 "reservationSubBlocks.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Validate#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class Validate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{+parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/urlMaps/{urlMap}/validate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern REGION_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 = + 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 permissions that a caller has on the specified resource. + * 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 "reservationSubBlocks.testIamPermissions". + * 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 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.

    + * 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 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} + * @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 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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Validate set$Xgafv(java.lang.String $Xgafv) { + return (Validate) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Validate setAccessToken(java.lang.String accessToken) { + return (Validate) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Validate setAlt(java.lang.String alt) { + return (Validate) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Validate setCallback(java.lang.String callback) { + return (Validate) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Validate setFields(java.lang.String fields) { + return (Validate) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Validate setKey(java.lang.String key) { + return (Validate) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Validate setOauthToken(java.lang.String oauthToken) { + return (Validate) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Validate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Validate) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Validate setQuotaUser(java.lang.String quotaUser) { + return (Validate) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Validate setUploadType(java.lang.String uploadType) { + return (Validate) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Validate setUploadProtocol(java.lang.String uploadProtocol) { + return (Validate) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Validate setUserIp(java.lang.String userIp) { + return (Validate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213739,7 +201673,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -213749,149 +201683,134 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone for this request. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + /** Name of the region scoping this request. */ + public Validate setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region 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; + this.region = region; return this; } - /** Name or id of the resource for this request. */ + /** Name of the UrlMap resource to be validated as. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String urlMap; - /** Name or id of the resource for this request. + /** Name of the UrlMap resource to be validated as. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getUrlMap() { + return urlMap; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.urlMap = urlMap; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Validate set(String parameterName, Object value) { + return (Validate) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Reservations collection. + * An accessor for creating requests from the RegionZones collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.Reservations.List request = compute.reservations().list(parameters ...)}
    +   *   {@code Compute.RegionZones.List request = compute.regionZones().list(parameters ...)}
        * 
    * * @return the resource collection */ - public Reservations reservations() { - return new Reservations(); + public RegionZones regionZones() { + return new RegionZones(); } /** - * The "reservations" collection of methods. + * The "regionZones" collection of methods. */ - public class Reservations { + public class RegionZones { /** - * Retrieves an aggregated list of reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of Zone resources under the specific region available to the specified + * project. * - * Create a request for the method "reservations.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/reservations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/zones"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 an aggregated list of reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of Zone resources under the specific region available to the specified + * project. * - * Create a request for the method "reservations.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationAggregatedList.class); + 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])?"); + } } @Override @@ -213905,63 +201824,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -213975,7 +201894,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + 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 " + @@ -213985,6 +201904,27 @@ public AggregatedList setProject(java.lang.String 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 @@ -214116,45 +202056,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -214179,7 +202085,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -214223,7 +202129,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -214246,7 +202152,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -214278,166 +202184,190 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + 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 { + /** - * Deletes the specified reservation. + * Returns the specified Region resource. * - * Create a request for the method "reservations.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * 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 delete. + * @param region Name of the region resource to return. * @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); + 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 Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 = + 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}"); /** - * Deletes the specified reservation. + * Returns the specified Region resource. * - * Create a request for the method "reservations.delete". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 delete. + * @param region Name of the region resource to return. * @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); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + com.google.api.client.util.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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -214451,7 +202381,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -214461,169 +202391,102 @@ public Delete setProject(java.lang.String 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. */ + /** Name of the region resource to return. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String region; - /** Name of the reservation to delete. + /** Name of the region resource to return. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getRegion() { + return region; } - /** Name of the reservation to delete. */ - public Delete setReservation(java.lang.String reservation) { + /** Name of the region resource to return. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + com.google.api.client.util.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.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; + this.region = region; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves information about the specified reservation. + * Retrieves the list of region resources available to the specified project. * - * Create a request for the method "reservations.get". + * 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 Get#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + private static final String REST_PATH = "projects/{project}/regions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves the list of region resources available to the specified project. * - * Create a request for the method "reservations.get". + * 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 Get#execute()} method to invoke the remote operation.

    {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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. - * @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); + 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])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override @@ -214637,63 +202500,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214707,7 +202570,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -214717,122 +202580,348 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String filter; - /** Name of the zone for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getFilter() { + return filter; } - /** 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; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - /** Name of the reservation to retrieve. */ + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.Long maxResults; - /** Name of the reservation to retrieve. + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] */ - public java.lang.String getReservation() { - return reservation; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + 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 { + /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Retrieves information about the specified reservation block. * - * Create a request for the method "reservations.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource 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 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); + 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 GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + public class Get extends ComputeRequest { - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}"; /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Retrieves information about the specified reservation block. * - * Create a request for the method "reservations.getIamPolicy". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource 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 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); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); } @Override @@ -214846,63 +202935,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -214916,101 +203005,111 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public Get setProject(java.lang.String project) { this.project = project; return this; } - /** The name of the zone for this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ 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])?"); - } + /** 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; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String reservation; - /** Name or id of the resource for this request. + /** The name of the reservation. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getReservation() { + return reservation; } - /** 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; + /** + * 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; } - /** Requested IAM Policy version. */ + /** + * 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.Integer optionsRequestedPolicyVersion; + private java.lang.String reservationBlock; - /** Requested IAM Policy version. + /** The name of the reservation block. Name should conform to RFC1035 or be a resource ID. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getReservationBlock() { + return reservationBlock; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new reservation. For more information, readReserving zonal resources. + * 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.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -215018,23 +203117,32 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.Reservation} + * @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 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); + 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(), @@ -215047,66 +203155,88 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + 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. */ @@ -215120,7 +203250,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -215130,18 +203260,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -215151,94 +203281,97 @@ public Insert setZone(java.lang.String 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). - */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String parentResource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * A list of all the reservations that have been configured for the specified project in specified - * zone. + * Retrieves a list of reservation blocks under a single reservation. * - * Create a request for the method "reservations.list". + * 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. + * @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) throws java.io.IOException { - List result = new List(project, zone); + 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"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + public class List extends ComputeRequest { - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks"; /** - * A list of all the reservations that have been configured for the specified project in specified - * zone. + * Retrieves a list of reservation blocks under a single reservation. * - * Create a request for the method "reservations.list". + * 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 @@ -215246,23 +203379,16 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone 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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReservationList.class); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); } @Override @@ -215347,36 +203473,46 @@ public java.lang.String getProject() { /** 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 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. + /** 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. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ 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; } + /** + * 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 @@ -215647,9 +203783,9 @@ public List set(String parameterName, Object value) { } } /** - * Perform maintenance on an extended reservation + * Allows customers to perform maintenance on a reservation block * - * Create a request for the method "reservations.performMaintenance". + * 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. @@ -215658,26 +203794,25 @@ public List set(String parameterName, Object value) { * @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} + * @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, com.google.api.services.compute.model.ReservationsPerformMaintenanceRequest content) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, reservation, content); + 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}/performMaintenance"; - - 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}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance"; /** - * Perform maintenance on an extended reservation + * Allows customers to perform maintenance on a reservation block * - * Create a request for the method "reservations.performMaintenance". + * 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 @@ -215689,19 +203824,17 @@ public class PerformMaintenance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/resize"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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])?"); - } - } - - @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. + * The name of the reservation block. Name should conform to RFC1035 or be a resource ID. */ - 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; + public PerformMaintenance setReservationBlock(java.lang.String reservationBlock) { + this.reservationBlock = reservationBlock; return this; } @@ -216115,39 +204013,40 @@ public java.lang.String getRequestId() { * 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) { + public PerformMaintenance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); + 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 "reservations.setIamPolicy". + * 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.ZoneSetPolicyRequest} + * @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 resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + 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/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216155,13 +204054,16 @@ public class SetIamPolicy extends ComputeRequest @@ -216171,11 +204073,12 @@ public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{parentResource}/reservationBlocks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216355,13 +204286,16 @@ public class TestIamPermissions extends ComputeRequestThe 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 { + /** - * Update share settings of the reservation. + * Retrieves information about the specified reservation subBlock. * - * Create a request for the method "reservations.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.Reservation} + * @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 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); + 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 Update extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}"; + + /** + * 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."); + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.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) { + 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 final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -216555,27 +204758,32 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -216588,72 +204796,88 @@ protected Update(java.lang.String project, java.lang.String zone, java.lang.Stri "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."); + 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(RESERVATION_PATTERN.matcher(reservation).matches(), - "Parameter reservation must conform to the pattern " + + 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}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + 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 Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216667,7 +204891,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -216677,18 +204901,18 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -216698,187 +204922,114 @@ public Update setZone(java.lang.String zone) { return this; } - /** Name of the reservation to update. */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String reservation; + private java.lang.String parentResource; - /** Name of the reservation to update. + /** Name or id of parent resource of the resource for this request. */ - public java.lang.String getReservation() { - return reservation; + public java.lang.String getParentResource() { + return parentResource; } - /** Name of the reservation to update. */ - public Update setReservation(java.lang.String reservation) { + /** 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(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}"); + 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.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; + this.parentResource = parentResource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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; } - /** Update_mask indicates fields to be updated as part of this request. */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.Integer optionsRequestedPolicyVersion; - /** Update_mask indicates fields to be updated as part of this request. + /** Requested IAM Policy version. */ - public String getUpdateMask() { - return updateMask; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** Update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) 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`. + * Retrieves a list of reservation subBlocks under a single reservation. * - * Create a request for the method "resourcePolicies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/resourcePolicies"; + public class List extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks"; /** - * Retrieves an aggregated list of resource policies. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves a list of reservation subBlocks under a single reservation. * - * Create a request for the method "resourcePolicies.aggregatedList". + * 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 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.

    + * 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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ResourcePolicyAggregatedList.class); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); } @Override @@ -216892,63 +205043,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -216962,16 +205113,50 @@ public java.lang.String getProject() { } /** 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])?))"); - } + 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) { + 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 @@ -217103,45 +205288,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List 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 @@ -217166,7 +205317,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -217210,7 +205361,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -217233,7 +205384,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -217265,166 +205416,127 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified resource policy. + * Allows customers to perform maintenance on a reservation subBlock * - * Create a request for the method "resourcePolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#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. + * @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 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); + 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 Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + public class PerformMaintenance extends ComputeRequest { - 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}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance"; /** - * Deletes the specified resource policy. + * Allows customers to perform maintenance on a reservation subBlock * - * Create a request for the method "resourcePolicies.delete". + * 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 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.

    + * 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 region Name of the region for this request. - * @param resourcePolicy Name of the resource policy to delete. + * @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 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); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } + 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."); + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217438,55 +205550,67 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public PerformMaintenance setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region for this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region for this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } - /** Name of the resource policy to delete. */ + /** + * 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 resourcePolicy; + private java.lang.String parentName; - /** Name of the resource policy to delete. + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; + public java.lang.String getParentName() { + return parentName; } - /** 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; + /** + * 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) { + 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; } @@ -217534,153 +205658,129 @@ public java.lang.String getRequestId() { * 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) { + public PerformMaintenance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Retrieves all information of the specified resource policy. + * Allows customers to report a faulty subBlock. * - * Create a request for the method "resourcePolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link ReportFaulty#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. + * @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 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); + 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 Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + public class ReportFaulty extends ComputeRequest { - 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}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty"; /** - * Retrieves all information of the specified resource policy. + * Allows customers to report a faulty subBlock. * - * Create a request for the method "resourcePolicies.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 region Name of the region for this request. - * @param resourcePolicy Name of the resource policy to retrieve. + * @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 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); + 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."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + 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."); + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ReportFaulty set$Xgafv(java.lang.String $Xgafv) { + return (ReportFaulty) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ReportFaulty setAccessToken(java.lang.String accessToken) { + return (ReportFaulty) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ReportFaulty setAlt(java.lang.String alt) { + return (ReportFaulty) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ReportFaulty setCallback(java.lang.String callback) { + return (ReportFaulty) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ReportFaulty setFields(java.lang.String fields) { + return (ReportFaulty) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ReportFaulty setKey(java.lang.String key) { + return (ReportFaulty) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ReportFaulty setOauthToken(java.lang.String oauthToken) { + return (ReportFaulty) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ReportFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReportFaulty) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ReportFaulty setQuotaUser(java.lang.String quotaUser) { + return (ReportFaulty) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ReportFaulty setUploadType(java.lang.String uploadType) { + return (ReportFaulty) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ReportFaulty setUploadProtocol(java.lang.String uploadProtocol) { + return (ReportFaulty) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ReportFaulty setUserIp(java.lang.String userIp) { + return (ReportFaulty) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217694,126 +205794,199 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public ReportFaulty setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the region for this request. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region for this request. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** 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; + /** 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; } - /** Name of the resource policy to retrieve. */ + /** + * 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 resourcePolicy; + private java.lang.String parentName; - /** Name of the resource policy to retrieve. + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; + public java.lang.String getParentName() { + return parentName; } - /** 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; + /** + * 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) { + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ReportFaulty set(String parameterName, Object value) { + return (ReportFaulty) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "resourcePolicies.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * 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 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 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); + 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 GetIamPolicy extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "resourcePolicies.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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(), @@ -217823,73 +205996,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -217903,7 +206066,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -217913,24 +206076,45 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + 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; } @@ -217945,7 +206129,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + 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 " + @@ -217955,145 +206139,152 @@ public GetIamPolicy setResource(java.lang.String 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); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates a new resource policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "resourcePolicies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentResource}/reservationSubBlocks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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}"); + /** - * Creates a new resource policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "resourcePolicies.insert". + * 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 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.

    + * 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 Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @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 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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218107,7 +206298,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -218117,139 +206308,149 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + 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). - */ + /** Name or id of parent resource of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String parentResource; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name or id of parent resource of the resource for this request. + */ + public java.lang.String getParentResource() { + return parentResource; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + 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 { + /** - * A list all the resource policies that have been configured for the specified project in specified - * region. + * Retrieves an aggregated list of reservations. * - * Create a request for the method "resourcePolicies.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/reservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Retrieves an aggregated list of reservations. * - * Create a request for the method "resourcePolicies.list". + * 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 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.

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -218263,63 +206464,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218333,7 +206534,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -218343,27 +206544,6 @@ public List setProject(java.lang.String 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 @@ -218495,11 +206675,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + 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 @@ -218524,7 +206738,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -218568,7 +206782,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -218591,7 +206805,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -218623,145 +206837,166 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Modify the specified resource policy. + * Deletes the specified reservation. * - * Create a request for the method "resourcePolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 Id of the resource policy to patch. - * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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_POLICY_PATTERN = + 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}"); /** - * Modify the specified resource policy. + * Deletes the specified reservation. * - * Create a request for the method "resourcePolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation.

    {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 Id of the resource policy to patch. - * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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."); + 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(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + + 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}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -218775,7 +207010,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -218785,45 +207020,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region for this request. + /** Name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { + /** Name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Id of the resource policy to patch. */ + /** Name of the reservation to delete. */ @com.google.api.client.util.Key - private java.lang.String resourcePolicy; + private java.lang.String reservation; - /** Id of the resource policy to patch. + /** Name of the reservation to delete. */ - public java.lang.String getResourcePolicy() { - return resourcePolicy; + public java.lang.String getReservation() { + return reservation; } - /** Id of the resource policy to patch. */ - public Patch setResourcePolicy(java.lang.String resourcePolicy) { + /** Name of the reservation to delete. */ + public Delete setReservation(java.lang.String reservation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_POLICY_PATTERN.matcher(resourcePolicy).matches(), - "Parameter resourcePolicy must conform to the pattern " + + 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.resourcePolicy = resourcePolicy; + this.reservation = reservation; return this; } @@ -218871,571 +207106,153 @@ public java.lang.String getRequestId() { * 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) { + public Delete 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves information about the specified reservation. * - * Create a request for the method "resourcePolicies.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to retrieve. * @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); + 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 TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + 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 = + 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}"); /** - * Returns permissions that a caller has on the specified resource. + * Retrieves information about the specified reservation. * - * Create a request for the method "resourcePolicies.testIamPermissions". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone Name of the zone for this request. + * @param reservation Name of the reservation to retrieve. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } - } - - @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) { + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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."); + 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(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), - "Parameter rolloutPlan must conform to the pattern " + + 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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -219449,7 +207266,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -219459,135 +207276,120 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the RolloutPlan resource to delete. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String rolloutPlan; + private java.lang.String zone; - /** Name of the RolloutPlan resource to delete. + /** Name of the zone for this request. */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; + public java.lang.String getZone() { + return zone; } - /** Name of the RolloutPlan resource to delete. */ - public Delete setRolloutPlan(java.lang.String rolloutPlan) { + /** Name of the zone for this request. */ + public Get setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.rolloutPlan = rolloutPlan; + 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). - */ + /** Name of the reservation to retrieve. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String reservation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the reservation to retrieve. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getReservation() { + return reservation; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets details of a single project-scoped RolloutPlan. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "rolloutPlans.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rolloutPlan Name of the persistent rollout plan to return. + * @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 Get get(java.lang.String project, java.lang.String rolloutPlan) throws java.io.IOException { - Get result = new Get(project, rolloutPlan); + 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 Get extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 details of a single project-scoped RolloutPlan. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "rolloutPlans.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 rolloutPlan Name of the persistent rollout plan to return. + * @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 Get(java.lang.String project, java.lang.String rolloutPlan) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlan.class); + 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.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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 " + + com.google.api.client.util.Preconditions.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}"); } } @@ -219603,63 +207405,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -219673,7 +207475,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -219683,61 +207485,102 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the persistent rollout plan to return. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String rolloutPlan; + private java.lang.String zone; - /** Name of the persistent rollout plan to return. + /** The name of the zone for this request. */ - public java.lang.String getRolloutPlan() { - return rolloutPlan; + public java.lang.String getZone() { + return zone; } - /** Name of the persistent rollout plan to return. */ - public Get setRolloutPlan(java.lang.String rolloutPlan) { + /** The name of the zone for this request. */ + public GetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), - "Parameter rolloutPlan must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.rolloutPlan = rolloutPlan; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Creates a new RolloutPlan in a given project and location. + * Creates a new reservation. For more information, readReserving zonal resources. * - * Create a request for the method "rolloutPlans.insert". + * 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 content the {@link com.google.api.services.compute.model.RolloutPlan} + * @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, com.google.api.services.compute.model.RolloutPlan content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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}/global/rolloutPlans"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 RolloutPlan in a given project and location. + * Creates a new reservation. For more information, readReserving zonal resources. * - * Create a request for the method "rolloutPlans.insert". + * 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 @@ -219745,10 +207588,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @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, com.google.api.services.compute.model.RolloutPlan content) { + 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()) { @@ -219756,6 +207600,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -219839,6 +207689,27 @@ public Insert setProject(java.lang.String 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 @@ -219894,33 +207765,39 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists RolloutPlans in a given project and location. + * A list of all the reservations that have been configured for the specified project in specified + * zone. * - * Create a request for the method "rolloutPlans.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 RolloutPlans in a given project and location. + * A list of all the reservations that have been configured for the specified project in specified + * zone. * - * Create a request for the method "rolloutPlans.list". + * 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 @@ -219928,16 +207805,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlansListResponse.class); + 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])?"); + } } @Override @@ -220031,6 +207915,27 @@ public List setProject(java.lang.String 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 @@ -220300,145 +208205,122 @@ 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 { - /** - * Cancels a Rollout. + * Perform maintenance on an extended reservation * - * Create a request for the method "rollouts.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rollout Name of the Rollout resource to cancel. + * @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 Cancel cancel(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Cancel result = new Cancel(project, rollout); + 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 Cancel extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + public class PerformMaintenance extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance"; - private final java.util.regex.Pattern ROLLOUT_PATTERN = + 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}"); /** - * Cancels a Rollout. + * Perform maintenance on an extended reservation * - * Create a request for the method "rollouts.cancel". + * 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 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.

    + * 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 rollout Name of the Rollout resource to cancel. + * @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 Cancel(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "PATCH", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 " + + 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}"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -220452,34 +208334,49 @@ public java.lang.String getProject() { } /** 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])?))"); - } + public PerformMaintenance setProject(java.lang.String project) { this.project = project; return this; } - /** Name of the Rollout resource to cancel. */ + /** Name of the zone for this request. Zone name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String rollout; + private java.lang.String zone; - /** Name of the Rollout resource to cancel. + /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public java.lang.String getRollout() { - return rollout; + public java.lang.String getZone() { + return zone; } - /** Name of the Rollout resource to cancel. */ - public Cancel setRollout(java.lang.String rollout) { + /** 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(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + + 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.rollout = rollout; + this.reservation = reservation; return this; } @@ -220527,158 +208424,147 @@ public java.lang.String getRequestId() { * 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) { + public PerformMaintenance 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); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Deletes a Rollout. + * Resizes the reservation (applicable to standalone reservations only). For more information, + * readModifying reservations. * - * Create a request for the method "rollouts.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rollout Name of the Rollout resource to delete. + * @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 Delete delete(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Delete result = new Delete(project, rollout); + 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 Delete extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + 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])?"); /** - * Deletes a Rollout. + * Resizes the reservation (applicable to standalone reservations only). For more information, + * readModifying reservations. * - * Create a request for the method "rollouts.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 rollout Name of the Rollout resource to delete. + * @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 Delete(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone 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}"); + com.google.api.client.util.Preconditions.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])?"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -220692,7 +208578,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -220702,24 +208588,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the Rollout resource to delete. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String rollout; + private java.lang.String zone; - /** Name of the Rollout resource to delete. + /** Name of the zone for this request. */ - public java.lang.String getRollout() { - return rollout; + public java.lang.String getZone() { + return zone; } - /** Name of the Rollout resource to delete. */ - public Delete setRollout(java.lang.String rollout) { + /** Name of the zone for this request. */ + public Resize setZone(java.lang.String zone) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.rollout = rollout; + 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; } @@ -220767,142 +208674,346 @@ public java.lang.String getRequestId() { * 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) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } /** - * Gets details of a single project-scoped Rollout. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "rollouts.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param rollout Name of the persistent rollout to return. + * @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 Get get(java.lang.String project, java.lang.String rollout) throws java.io.IOException { - Get result = new Get(project, rollout); + 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 Get extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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 details of a single project-scoped Rollout. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "rollouts.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 rollout Name of the persistent rollout to return. + * @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 Get(java.lang.String project, java.lang.String rollout) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Rollout.class); + 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.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -220916,7 +209027,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -220926,147 +209037,182 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the persistent rollout to return. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String rollout; + private java.lang.String zone; - /** Name of the persistent rollout to return. + /** The name of the zone for this request. */ - public java.lang.String getRollout() { - return rollout; + public java.lang.String getZone() { + return zone; } - /** Name of the persistent rollout to return. */ - public Get setRollout(java.lang.String rollout) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), - "Parameter rollout must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(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.rollout = rollout; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Lists Rollouts in a given project and location. + * Update share settings of the reservation. * - * Create a request for the method "rollouts.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/rollouts"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/reservations/{reservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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}"); + /** - * Lists Rollouts in a given project and location. + * Update share settings of the reservation. * - * Create a request for the method "rollouts.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutsListResponse.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -221080,7 +209226,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -221090,305 +209236,163 @@ public List setProject(java.lang.String 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. - */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String zone; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the zone for this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getZone() { + return zone; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + /** 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 maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Name of the reservation to update. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String reservation; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the reservation to update. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getReservation() { + return reservation; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + /** 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; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + private java.util.List paths; - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + /** - Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.util.List getPaths() { + return paths; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + public Update setPaths(java.util.List paths) { + this.paths = paths; return this; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String requestId; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRequestId() { + return requestId; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private String updateMask; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Update_mask indicates fields to be updated as part of this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getUpdateMask() { + return updateMask; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Routers collection. + * An accessor for creating requests from the ResourcePolicies collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.Routers.List request = compute.routers().list(parameters ...)}
    +   *   {@code Compute.ResourcePolicies.List request = compute.resourcePolicies().list(parameters ...)}
        * 
    * * @return the resource collection */ - public Routers routers() { - return new Routers(); + public ResourcePolicies resourcePolicies() { + return new ResourcePolicies(); } /** - * The "routers" collection of methods. + * The "resourcePolicies" collection of methods. */ - public class Routers { + public class ResourcePolicies { /** - * Retrieves an aggregated list of routers. + * 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 "routers.aggregatedList". + * 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. @@ -221402,20 +209406,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/routers"; + private static final String REST_PATH = "projects/{project}/aggregated/resourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * 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 "routers.aggregatedList". + * 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. @@ -221427,7 +209431,7 @@ public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.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}"); - } - } - - @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; + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } - /** Name of the region for this request. */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String orderBy; - /** Name of the region for this request. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the Router resource where Named Set is defined. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String pageToken; - /** Name of the Router resource where Named Set is defined. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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 Named Set name for this request. Name must conform to RFC1035 */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String namedSet; + private java.lang.Boolean returnPartialSuccess; - /** The Named Set name for this request. Name must conform to RFC1035 + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getNamedSet() { - return namedSet; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** The Named Set name for this request. Name must conform to RFC1035 */ - public DeleteNamedSet setNamedSet(java.lang.String namedSet) { - this.namedSet = namedSet; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Long serviceProjectNumber; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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.String getRequestId() { - return requestId; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. */ - public DeleteNamedSet setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public DeleteNamedSet set(String parameterName, Object value) { - return (DeleteNamedSet) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Deletes Route Policy + * Deletes the specified resource policy. * - * Create a request for the method "routers.deleteRoutePolicy". + * 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 DeleteRoutePolicy#execute()} method to invoke the remote operation. + * 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 where Route Policy is defined. + * @param resourcePolicy Name of the resource policy to delete. * @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); + 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 DeleteRoutePolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -222391,27 +209886,26 @@ public class DeleteRoutePolicy extends ComputeRequest {@link DeleteRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 where Route Policy is defined. + * @param resourcePolicy Name of the resource policy to delete. * @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); + 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(), @@ -222424,72 +209918,72 @@ protected DeleteRoutePolicy(java.lang.String project, java.lang.String region, j "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."); + 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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}"); } } @Override - public DeleteRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (DeleteRoutePolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeleteRoutePolicy setAccessToken(java.lang.String accessToken) { - return (DeleteRoutePolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeleteRoutePolicy setAlt(java.lang.String alt) { - return (DeleteRoutePolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeleteRoutePolicy setCallback(java.lang.String callback) { - return (DeleteRoutePolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeleteRoutePolicy setFields(java.lang.String fields) { - return (DeleteRoutePolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeleteRoutePolicy setKey(java.lang.String key) { - return (DeleteRoutePolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeleteRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (DeleteRoutePolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeleteRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteRoutePolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeleteRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (DeleteRoutePolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeleteRoutePolicy setUploadType(java.lang.String uploadType) { - return (DeleteRoutePolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeleteRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteRoutePolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteRoutePolicy setUserIp(java.lang.String userIp) { - return (DeleteRoutePolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -222503,7 +209997,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -222524,7 +210018,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public DeleteRoutePolicy setRegion(java.lang.String region) { + 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 " + @@ -222534,40 +210028,24 @@ public DeleteRoutePolicy setRegion(java.lang.String region) { return this; } - /** Name of the Router resource where Route Policy is defined. */ + /** Name of the resource policy to delete. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String resourcePolicy; - /** Name of the Router resource where Route Policy is defined. + /** Name of the resource policy to delete. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getResourcePolicy() { + return resourcePolicy; } - /** Name of the Router resource where Route Policy is defined. */ - public DeleteRoutePolicy setRouter(java.lang.String router) { + /** Name of the resource policy to delete. */ + public Delete setResourcePolicy(java.lang.String resourcePolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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.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; + this.resourcePolicy = resourcePolicy; return this; } @@ -222615,38 +210093,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DeleteRoutePolicy set(String parameterName, Object value) { - return (DeleteRoutePolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the specified Router resource. + * Retrieves all information of the specified resource policy. * - * Create a request for the method "routers.get". + * 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 router Name of the Router resource to return. + * @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 router) throws java.io.IOException { - Get result = new Get(project, region, router); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -222654,13 +210132,13 @@ public class Get extends ComputeRequest {@link @@ -222669,11 +210147,11 @@ public class Get extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNamedSet"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -222862,25 +210339,28 @@ public class GetNamedSet extends ComputeRequest + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

    * {@link - * GetNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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. + * @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 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); + 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(), @@ -222893,7 +210373,12 @@ protected GetNamedSet(java.lang.String project, java.lang.String region, java.la "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -222907,63 +210392,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (GetNamedSet) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetNamedSet setAccessToken(java.lang.String accessToken) { - return (GetNamedSet) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetNamedSet setAlt(java.lang.String alt) { - return (GetNamedSet) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public GetNamedSet setCallback(java.lang.String callback) { - return (GetNamedSet) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public GetNamedSet setFields(java.lang.String fields) { - return (GetNamedSet) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public GetNamedSet setKey(java.lang.String key) { - return (GetNamedSet) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public GetNamedSet setOauthToken(java.lang.String oauthToken) { - return (GetNamedSet) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNamedSet) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetNamedSet setQuotaUser(java.lang.String quotaUser) { - return (GetNamedSet) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetNamedSet setUploadType(java.lang.String uploadType) { - return (GetNamedSet) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public GetNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNamedSet) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetNamedSet setUserIp(java.lang.String userIp) { - return (GetNamedSet) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -222977,7 +210462,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetNamedSet setProject(java.lang.String project) { + 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 " + @@ -222987,18 +210472,18 @@ public GetNamedSet setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -223008,70 +210493,70 @@ public GetNamedSet setRegion(java.lang.String region) { return this; } - /** - * Name of the Router resource to query for the named set. The name should conform to RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String resource; - /** Name of the Router resource to query for the named set. The name should conform to RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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; } - /** The Named Set name for this request. Name must conform to RFC1035 */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String namedSet; + private java.lang.Integer optionsRequestedPolicyVersion; - /** The Named Set name for this request. Name must conform to RFC1035 + /** Requested IAM Policy version. */ - public java.lang.String getNamedSet() { - return namedSet; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** The Named Set name for this request. Name must conform to RFC1035 */ - public GetNamedSet setNamedSet(java.lang.String namedSet) { - this.namedSet = namedSet; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public GetNamedSet set(String parameterName, Object value) { - return (GetNamedSet) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves runtime NAT IP information. + * Creates a new resource policy. * - * Create a request for the method "routers.getNatIpInfo". + * 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 GetNatIpInfo#execute()} method to invoke the remote operation. + * 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 router Name of the Router resource to query for Nat IP information. The name - should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} * @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); + 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 GetNatIpInfo extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -223080,24 +210565,22 @@ public class GetNatIpInfo extends ComputeRequest - * {@link - * GetNatIpInfo#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

    + * 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 router Name of the Router resource to query for Nat IP information. The name - should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.ResourcePolicy} * @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); + 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(), @@ -223110,77 +210593,66 @@ protected GetNatIpInfo(java.lang.String project, java.lang.String region, java.l "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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public GetNatIpInfo setAccessToken(java.lang.String accessToken) { - return (GetNatIpInfo) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public GetNatIpInfo setAlt(java.lang.String alt) { - return (GetNatIpInfo) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public GetNatIpInfo setCallback(java.lang.String callback) { - return (GetNatIpInfo) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public GetNatIpInfo setFields(java.lang.String fields) { - return (GetNatIpInfo) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public GetNatIpInfo setKey(java.lang.String key) { - return (GetNatIpInfo) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public GetNatIpInfo setOauthToken(java.lang.String oauthToken) { - return (GetNatIpInfo) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public GetNatIpInfo setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNatIpInfo) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public GetNatIpInfo setQuotaUser(java.lang.String quotaUser) { - return (GetNatIpInfo) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public GetNatIpInfo setUploadType(java.lang.String uploadType) { - return (GetNatIpInfo) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public GetNatIpInfo setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNatIpInfo) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public GetNatIpInfo setUserIp(java.lang.String userIp) { - return (GetNatIpInfo) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223194,7 +210666,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetNatIpInfo setProject(java.lang.String project) { + 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 " + @@ -223215,7 +210687,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public GetNatIpInfo setRegion(java.lang.String region) { + 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 " + @@ -223226,78 +210698,81 @@ public GetNatIpInfo setRegion(java.lang.String region) { } /** - * Name of the Router resource to query for Nat IP information. The name should conform to - * RFC1035. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @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; - } + private java.lang.String requestId; - /** - * 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; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** - * 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; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** 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. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNatName() { - return natName; + public java.lang.String getRequestId() { + return requestId; } /** - * 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public GetNatIpInfo setNatName(java.lang.String natName) { - this.natName = natName; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetNatIpInfo set(String parameterName, Object value) { - return (GetNatIpInfo) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves runtime Nat mapping information of VM endpoints. + * A list all the resource policies that have been configured for the specified project in specified + * region. * - * Create a request for the method "routers.getNatMappingInfo". + * 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 GetNatMappingInfo#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 GetNatMappingInfo extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -223305,28 +210780,23 @@ public class GetNatMappingInfo extends ComputeRequest {@link GetNatMappingInfo#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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. - * @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); + 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(), @@ -223339,12 +210809,6 @@ protected GetNatMappingInfo(java.lang.String project, java.lang.String region, j "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}"); - } } @Override @@ -223358,63 +210822,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetNatMappingInfo set$Xgafv(java.lang.String $Xgafv) { - return (GetNatMappingInfo) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetNatMappingInfo setAccessToken(java.lang.String accessToken) { - return (GetNatMappingInfo) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetNatMappingInfo setAlt(java.lang.String alt) { - return (GetNatMappingInfo) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetNatMappingInfo setCallback(java.lang.String callback) { - return (GetNatMappingInfo) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetNatMappingInfo setFields(java.lang.String fields) { - return (GetNatMappingInfo) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetNatMappingInfo setKey(java.lang.String key) { - return (GetNatMappingInfo) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetNatMappingInfo setOauthToken(java.lang.String oauthToken) { - return (GetNatMappingInfo) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetNatMappingInfo setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetNatMappingInfo) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetNatMappingInfo setQuotaUser(java.lang.String quotaUser) { - return (GetNatMappingInfo) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public GetNatMappingInfo setUploadType(java.lang.String uploadType) { - return (GetNatMappingInfo) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public GetNatMappingInfo setUploadProtocol(java.lang.String uploadProtocol) { - return (GetNatMappingInfo) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public GetNatMappingInfo setUserIp(java.lang.String userIp) { - return (GetNatMappingInfo) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223428,7 +210892,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetNatMappingInfo setProject(java.lang.String project) { + 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 " + @@ -223449,7 +210913,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public GetNatMappingInfo setRegion(java.lang.String region) { + 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 " + @@ -223459,31 +210923,6 @@ public GetNatMappingInfo setRegion(java.lang.String 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 @@ -223615,7 +211054,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public GetNatMappingInfo setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -223644,34 +211083,11 @@ public java.lang.Long getMaxResults() { * 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) { + public List 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. @@ -223711,7 +211127,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public GetNatMappingInfo setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -223734,71 +211150,335 @@ public java.lang.String getPageToken() { * Specifies 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; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** update_mask indicates fields to be updated as part of this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private String updateMask; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** update_mask indicates fields to be updated as part of this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getUpdateMask() { + return updateMask; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public GetNatMappingInfo setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** update_mask indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public GetNatMappingInfo set(String parameterName, Object value) { - return (GetNatMappingInfo) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns specified Route Policy + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "routers.getRoutePolicy". + * 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 GetRoutePolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#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. + * @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 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); + 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 GetRoutePolicy extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -223806,25 +211486,28 @@ public class GetRoutePolicy extends ComputeRequest {@link GetRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 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. + * @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 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); + 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(), @@ -223837,77 +211520,72 @@ protected GetRoutePolicy(java.lang.String project, java.lang.String region, java "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."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public GetRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetRoutePolicy) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetRoutePolicy setAccessToken(java.lang.String accessToken) { - return (GetRoutePolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetRoutePolicy setAlt(java.lang.String alt) { - return (GetRoutePolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetRoutePolicy setCallback(java.lang.String callback) { - return (GetRoutePolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetRoutePolicy setFields(java.lang.String fields) { - return (GetRoutePolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetRoutePolicy setKey(java.lang.String key) { - return (GetRoutePolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (GetRoutePolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRoutePolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (GetRoutePolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetRoutePolicy setUploadType(java.lang.String uploadType) { - return (GetRoutePolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRoutePolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetRoutePolicy setUserIp(java.lang.String userIp) { - return (GetRoutePolicy) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -223921,7 +211599,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -223931,18 +211609,18 @@ public GetRoutePolicy setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -223952,71 +211630,55 @@ public GetRoutePolicy setRegion(java.lang.String 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 */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String policy; + private java.lang.String resource; - /** The Policy name for this request. Name must conform to RFC1035 + /** Name or id of the resource for this request. */ - public java.lang.String getPolicy() { - return policy; + public java.lang.String getResource() { + return resource; } - /** The Policy name for this request. Name must conform to RFC1035 */ - public GetRoutePolicy setPolicy(java.lang.String policy) { - this.policy = policy; + /** 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 GetRoutePolicy set(String parameterName, Object value) { - return (GetRoutePolicy) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves runtime information of the specified router. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "routers.getRouterStatus". + * 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 GetRouterStatus#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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 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 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); + 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 GetRouterStatus extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRouterStatus"; + private static final String REST_PATH = "projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -224024,27 +211686,28 @@ public class GetRouterStatus extends ComputeRequest {@link GetRouterStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 Name of the region for this request. - * @param router Name of the Router resource to query. + * @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 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); + 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(), @@ -224057,82 +211720,72 @@ protected GetRouterStatus(java.lang.String project, java.lang.String region, jav "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."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetRouterStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetRouterStatus) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetRouterStatus setAccessToken(java.lang.String accessToken) { - return (GetRouterStatus) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetRouterStatus setAlt(java.lang.String alt) { - return (GetRouterStatus) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetRouterStatus setCallback(java.lang.String callback) { - return (GetRouterStatus) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetRouterStatus setFields(java.lang.String fields) { - return (GetRouterStatus) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetRouterStatus setKey(java.lang.String key) { - return (GetRouterStatus) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetRouterStatus setOauthToken(java.lang.String oauthToken) { - return (GetRouterStatus) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetRouterStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRouterStatus) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetRouterStatus setQuotaUser(java.lang.String quotaUser) { - return (GetRouterStatus) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetRouterStatus setUploadType(java.lang.String uploadType) { - return (GetRouterStatus) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetRouterStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRouterStatus) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetRouterStatus setUserIp(java.lang.String userIp) { - return (GetRouterStatus) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -224146,7 +211799,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRouterStatus setProject(java.lang.String project) { + 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 " + @@ -224156,18 +211809,18 @@ public GetRouterStatus setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The 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. + /** The 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) { + /** 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 " + @@ -224177,152 +211830,171 @@ public GetRouterStatus setRegion(java.lang.String region) { return this; } - /** Name of the Router resource to query. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.String resource; - /** Name of the Router resource to query. + /** Name or id of the resource for this request. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getResource() { + return resource; } - /** Name of the Router resource to query. */ - public GetRouterStatus setRouter(java.lang.String router) { + /** 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.router = router; + this.resource = resource; return this; } @Override - public GetRouterStatus set(String parameterName, Object value) { - return (GetRouterStatus) super.set(parameterName, value); + 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 { + /** - * Creates a Router resource in the specified project and region using the data included in the - * request. + * Deletes a RolloutPlan. * - * Create a request for the method "routers.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.compute.model.Router} + * @param rolloutPlan Name of the RolloutPlan resource to delete. * @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); + 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 Insert extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; + private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-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}"); /** - * Creates a Router resource in the specified project and region using the data included in the - * request. + * Deletes a RolloutPlan. * - * Create a request for the method "routers.insert". + * 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 Insert#execute()} method to invoke the remote operation.

    {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 content the {@link com.google.api.services.compute.model.Router} + * @param rolloutPlan Name of the RolloutPlan resource to delete. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -224336,7 +212008,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -224346,24 +212018,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the RolloutPlan resource to delete. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String rolloutPlan; - /** Name of the region for this request. + /** Name of the RolloutPlan resource to delete. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getRolloutPlan() { + return rolloutPlan; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the RolloutPlan resource to delete. */ + public Delete setRolloutPlan(java.lang.String rolloutPlan) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + this.rolloutPlan = rolloutPlan; return this; } @@ -224411,71 +212083,71 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves a list of Router resources available to the specified project. + * Gets details of a single project-scoped RolloutPlan. * - * Create a request for the method "routers.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 rolloutPlan Name of the persistent rollout plan to return. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + 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 List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; + private static final String REST_PATH = "projects/{project}/global/rolloutPlans/{rolloutPlan}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-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}"); /** - * Retrieves a list of Router resources available to the specified project. + * Gets details of a single project-scoped RolloutPlan. * - * Create a request for the method "routers.list". + * 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 List#execute()} method to invoke the remote operation.

    {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote 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 rolloutPlan Name of the persistent rollout plan to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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}"); } } @@ -224490,63 +212162,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -224560,7 +212232,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -224570,366 +212242,261 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the persistent rollout plan to return. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String rolloutPlan; - /** Name of the region for this request. + /** Name of the persistent rollout plan to return. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getRolloutPlan() { + return rolloutPlan; } - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** Name of the persistent rollout plan to return. */ + public Get setRolloutPlan(java.lang.String rolloutPlan) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Creates a new RolloutPlan in a given project and location. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "rolloutPlans.insert". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * 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.

    * - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + 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])?))"); + } + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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; + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of router bgp routes available to the specified project. + * Lists RolloutPlans in a given project and location. * - * Create a request for the method "routers.listBgpRoutes". + * 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 ListBgpRoutes#execute()} method to invoke the remote operation. + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class ListBgpRoutes extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes"; + private static final String REST_PATH = "projects/{project}/global/rolloutPlans"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Lists RolloutPlans in a given project and location. * - * Create a request for the method "routers.listBgpRoutes". + * 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 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. - *

    + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override @@ -224943,63 +212510,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListBgpRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListBgpRoutes) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListBgpRoutes setAccessToken(java.lang.String accessToken) { - return (ListBgpRoutes) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListBgpRoutes setAlt(java.lang.String alt) { - return (ListBgpRoutes) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListBgpRoutes setCallback(java.lang.String callback) { - return (ListBgpRoutes) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListBgpRoutes setFields(java.lang.String fields) { - return (ListBgpRoutes) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListBgpRoutes setKey(java.lang.String key) { - return (ListBgpRoutes) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListBgpRoutes setOauthToken(java.lang.String oauthToken) { - return (ListBgpRoutes) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListBgpRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListBgpRoutes) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListBgpRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListBgpRoutes) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListBgpRoutes setUploadType(java.lang.String uploadType) { - return (ListBgpRoutes) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public ListBgpRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListBgpRoutes) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public ListBgpRoutes setUserIp(java.lang.String userIp) { - return (ListBgpRoutes) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -225013,7 +212580,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListBgpRoutes setProject(java.lang.String project) { + 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 " + @@ -225023,87 +212590,6 @@ public ListBgpRoutes setProject(java.lang.String 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 @@ -225235,7 +212721,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListBgpRoutes setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -225264,7 +212750,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -225308,7 +212794,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListBgpRoutes setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -225331,211 +212817,579 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List 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. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String peer; + private java.lang.Boolean returnPartialSuccess; - /**( Required) limit results to the BGP peer with the given name. Name should conform to RFC1035. - ( + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getPeer() { - return peer; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * (Required) limit results to the BGP peer with the given name. Name should conform to - * RFC1035. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public ListBgpRoutes setPeer(java.lang.String peer) { - this.peer = peer; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the 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 { + + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + * 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}"); + } + } + + @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.Boolean policyApplied; + private java.lang.String project; - /** When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. - [default: true] + /** Project ID for this request. */ - public java.lang.Boolean getPolicyApplied() { - return policyApplied; + public java.lang.String getProject() { + return project; } - /** - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + /** 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 ListBgpRoutes setPolicyApplied(java.lang.Boolean policyApplied) { - this.policyApplied = policyApplied; + 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; } /** - * 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}. - *

    + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - *

    - * 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}. - *

    + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - *

    - * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. - *

    + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public boolean isPolicyApplied() { - if (policyApplied == null || policyApplied == com.google.api.client.util.Data.NULL_BOOLEAN) { - return true; - } - return policyApplied; + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 returnPartialSuccess; + private java.lang.Boolean rollback; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** 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; + } - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** + * 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 getReturnPartialSuccess() { - return returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * Deletes a Rollout. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * 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 */ - public ListBgpRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + 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}"); + } + } + + @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; } /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String routeType; + private java.lang.String requestId; - /**( Required) limit results to this type of route (either LEARNED or ADVERTISED) [default: - ( UNSPECIFIED_ROUTE_TYPE] - ( + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRouteType() { - return routeType; + public java.lang.String getRequestId() { + return requestId; } /** - * (Required) limit results to this type of route (either LEARNED or ADVERTISED) + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListBgpRoutes setRouteType(java.lang.String routeType) { - this.routeType = routeType; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListBgpRoutes set(String parameterName, Object value) { - return (ListBgpRoutes) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves a list of router named set subresources available to the specified project. + * Gets details of a single project-scoped Rollout. * - * Create a request for the method "routers.listNamedSets". + * 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 ListNamedSets#execute()} method to invoke the remote operation. + * 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 or id of the resource for this request. - Name should conform to RFC1035. + * @param rollout Name of the persistent rollout to return. * @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); + 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 ListNamedSets extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listNamedSets"; + private static final String REST_PATH = "projects/{project}/global/rollouts/{rollout}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Retrieves a list of router named set subresources available to the specified project. + * Gets details of a single project-scoped Rollout. * - * Create a request for the method "routers.listNamedSets". + * 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 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. - *

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 or id of the resource for this request. - Name should conform to RFC1035. + * @param rollout Name of the persistent rollout to return. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(ROUTER_PATTERN.matcher(router).matches(), - "Parameter router must conform to the pattern " + + 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}"); } } @@ -225551,63 +213405,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListNamedSets set$Xgafv(java.lang.String $Xgafv) { - return (ListNamedSets) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ListNamedSets setAccessToken(java.lang.String accessToken) { - return (ListNamedSets) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ListNamedSets setAlt(java.lang.String alt) { - return (ListNamedSets) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ListNamedSets setCallback(java.lang.String callback) { - return (ListNamedSets) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ListNamedSets setFields(java.lang.String fields) { - return (ListNamedSets) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ListNamedSets setKey(java.lang.String key) { - return (ListNamedSets) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ListNamedSets setOauthToken(java.lang.String oauthToken) { - return (ListNamedSets) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ListNamedSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNamedSets) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ListNamedSets setQuotaUser(java.lang.String quotaUser) { - return (ListNamedSets) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public ListNamedSets setUploadType(java.lang.String uploadType) { - return (ListNamedSets) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public ListNamedSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNamedSets) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public ListNamedSets setUserIp(java.lang.String userIp) { - return (ListNamedSets) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -225621,7 +213475,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNamedSets setProject(java.lang.String project) { + 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 " + @@ -225631,49 +213485,167 @@ public ListNamedSets setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the persistent rollout to return. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String rollout; - /** Name of the region for this request. + /** Name of the persistent rollout to return. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getRollout() { + return rollout; } - /** Name of the region for this request. */ - public ListNamedSets setRegion(java.lang.String region) { + /** Name of the persistent rollout to return. */ + public Get setRollout(java.lang.String rollout) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + 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.region = region; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** - * Name or id of the resource for this request. Name should conform to RFC1035. + * 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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 router; + private java.lang.String project; - /** Name or id of the resource for this request. Name should conform to RFC1035. + /** Project ID for this request. */ - public java.lang.String getRouter() { - return router; + public java.lang.String getProject() { + return project; } - /** - * Name or id of the resource for this request. Name should conform to RFC1035. - */ - public ListNamedSets setRouter(java.lang.String router) { + /** Project ID for this request. */ + public List setProject(java.lang.String project) { 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}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.router = router; + this.project = project; return this; } @@ -225808,7 +213780,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListNamedSets setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -225837,7 +213809,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -225881,7 +213853,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListNamedSets setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -225904,7 +213876,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -225936,86 +213908,91 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListNamedSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListNamedSets set(String parameterName, Object value) { - return (ListNamedSets) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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 a list of router route policy subresources available to the specified project. + * Retrieves an aggregated list of routers. * - * Create a request for the method "routers.listRoutePolicies". + * 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 ListRoutePolicies#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class ListRoutePolicies extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/routers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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. + * Retrieves an aggregated list of routers. * - * Create a request for the method "routers.listRoutePolicies". + * 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 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 + * 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. - * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); - } } @Override @@ -226029,63 +214006,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListRoutePolicies set$Xgafv(java.lang.String $Xgafv) { - return (ListRoutePolicies) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public ListRoutePolicies setAccessToken(java.lang.String accessToken) { - return (ListRoutePolicies) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public ListRoutePolicies setAlt(java.lang.String alt) { - return (ListRoutePolicies) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public ListRoutePolicies setCallback(java.lang.String callback) { - return (ListRoutePolicies) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public ListRoutePolicies setFields(java.lang.String fields) { - return (ListRoutePolicies) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public ListRoutePolicies setKey(java.lang.String key) { - return (ListRoutePolicies) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public ListRoutePolicies setOauthToken(java.lang.String oauthToken) { - return (ListRoutePolicies) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public ListRoutePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListRoutePolicies) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public ListRoutePolicies setQuotaUser(java.lang.String quotaUser) { - return (ListRoutePolicies) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public ListRoutePolicies setUploadType(java.lang.String uploadType) { - return (ListRoutePolicies) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } - @Override - public ListRoutePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (ListRoutePolicies) super.setUploadProtocol(uploadProtocol); + @Override + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public ListRoutePolicies setUserIp(java.lang.String userIp) { - return (ListRoutePolicies) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226099,7 +214076,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListRoutePolicies setProject(java.lang.String project) { + 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 " + @@ -226109,52 +214086,6 @@ public ListRoutePolicies setProject(java.lang.String 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 @@ -226286,11 +214217,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListRoutePolicies setFilter(java.lang.String filter) { + 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 @@ -226315,7 +214280,7 @@ public java.lang.Long getMaxResults() { * 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) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -226359,7 +214324,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListRoutePolicies setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -226382,7 +214347,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -226414,38 +214379,59 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListRoutePolicies setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; 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 ListRoutePolicies set(String parameterName, Object value) { - return (ListRoutePolicies) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) 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. + * Deletes the specified Router resource. * - * Create a request for the method "routers.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param router Name of the Router resource to delete. * @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); + 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; @@ -226459,24 +214445,22 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 patch. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param router Name of the Router resource to delete. * @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); + 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(), @@ -226498,63 +214482,63 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226568,7 +214552,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -226589,7 +214573,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { + 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 " + @@ -226599,18 +214583,18 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the Router resource to patch. */ + /** Name of the Router resource to delete. */ @com.google.api.client.util.Key private java.lang.String router; - /** Name of the Router resource to patch. + /** Name of the Router resource to delete. */ public java.lang.String getRouter() { return router; } - /** Name of the Router resource to patch. */ - public Patch setRouter(java.lang.String 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 " + @@ -226664,39 +214648,38 @@ public java.lang.String getRequestId() { * 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches Named Set + * Deletes Route Policy * - * Create a request for the method "routers.patchNamedSet". + * 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 PatchNamedSet#execute()} method to invoke the remote operation. + * 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 Named Set is defined. - * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @param router Name of the Router resource where Route Policy is defined. * @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); + 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 PatchNamedSet extends ComputeRequest { + public class DeleteRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchNamedSet"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -226708,24 +214691,23 @@ public class PatchNamedSet extends ComputeRequest - * {@link PatchNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

    + * 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 Named Set is defined. - * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @param router Name of the Router resource where Route Policy is defined. * @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); + 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(), @@ -226747,63 +214729,63 @@ protected PatchNamedSet(java.lang.String project, java.lang.String region, java. } @Override - public PatchNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (PatchNamedSet) super.set$Xgafv($Xgafv); + public DeleteRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (DeleteRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public PatchNamedSet setAccessToken(java.lang.String accessToken) { - return (PatchNamedSet) super.setAccessToken(accessToken); + public DeleteRoutePolicy setAccessToken(java.lang.String accessToken) { + return (DeleteRoutePolicy) super.setAccessToken(accessToken); } @Override - public PatchNamedSet setAlt(java.lang.String alt) { - return (PatchNamedSet) super.setAlt(alt); + public DeleteRoutePolicy setAlt(java.lang.String alt) { + return (DeleteRoutePolicy) super.setAlt(alt); } @Override - public PatchNamedSet setCallback(java.lang.String callback) { - return (PatchNamedSet) super.setCallback(callback); + public DeleteRoutePolicy setCallback(java.lang.String callback) { + return (DeleteRoutePolicy) super.setCallback(callback); } @Override - public PatchNamedSet setFields(java.lang.String fields) { - return (PatchNamedSet) super.setFields(fields); + public DeleteRoutePolicy setFields(java.lang.String fields) { + return (DeleteRoutePolicy) super.setFields(fields); } @Override - public PatchNamedSet setKey(java.lang.String key) { - return (PatchNamedSet) super.setKey(key); + public DeleteRoutePolicy setKey(java.lang.String key) { + return (DeleteRoutePolicy) super.setKey(key); } @Override - public PatchNamedSet setOauthToken(java.lang.String oauthToken) { - return (PatchNamedSet) super.setOauthToken(oauthToken); + public DeleteRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (DeleteRoutePolicy) super.setOauthToken(oauthToken); } @Override - public PatchNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchNamedSet) super.setPrettyPrint(prettyPrint); + public DeleteRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public PatchNamedSet setQuotaUser(java.lang.String quotaUser) { - return (PatchNamedSet) super.setQuotaUser(quotaUser); + public DeleteRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (DeleteRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public PatchNamedSet setUploadType(java.lang.String uploadType) { - return (PatchNamedSet) super.setUploadType(uploadType); + public DeleteRoutePolicy setUploadType(java.lang.String uploadType) { + return (DeleteRoutePolicy) super.setUploadType(uploadType); } @Override - public PatchNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchNamedSet) super.setUploadProtocol(uploadProtocol); + public DeleteRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteRoutePolicy) super.setUploadProtocol(uploadProtocol); } @Override - public PatchNamedSet setUserIp(java.lang.String userIp) { - return (PatchNamedSet) super.setUserIp(userIp); + public DeleteRoutePolicy setUserIp(java.lang.String userIp) { + return (DeleteRoutePolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -226817,7 +214799,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchNamedSet setProject(java.lang.String project) { + 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 " + @@ -226838,7 +214820,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public PatchNamedSet setRegion(java.lang.String region) { + 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 " + @@ -226848,18 +214830,18 @@ public PatchNamedSet setRegion(java.lang.String region) { return this; } - /** Name of the Router resource where Named Set is defined. */ + /** 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 Named Set is defined. + /** Name of the Router resource where Route Policy 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) { + /** 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 " + @@ -226869,6 +214851,22 @@ public PatchNamedSet setRouter(java.lang.String 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 @@ -226913,39 +214911,38 @@ public java.lang.String getRequestId() { * 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) { + public DeleteRoutePolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchNamedSet set(String parameterName, Object value) { - return (PatchNamedSet) super.set(parameterName, value); + public DeleteRoutePolicy set(String parameterName, Object value) { + return (DeleteRoutePolicy) super.set(parameterName, value); } } /** - * Patches Route Policy + * Returns the specified Router resource. * - * Create a request for the method "routers.patchRoutePolicy". + * 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 PatchRoutePolicy#execute()} method to invoke the remote operation. + * 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 where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @param router Name of the Router resource to return. * @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); + 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 PatchRoutePolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -226957,24 +214954,22 @@ public class PatchRoutePolicy extends ComputeRequest {@link PatchRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogle - * ClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 where Route Policy is defined. - * @param content the {@link com.google.api.services.compute.model.RoutePolicy} + * @param router Name of the Router resource to return. * @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); + 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(), @@ -226996,63 +214991,73 @@ protected PatchRoutePolicy(java.lang.String project, java.lang.String region, ja } @Override - public PatchRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (PatchRoutePolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchRoutePolicy setAccessToken(java.lang.String accessToken) { - return (PatchRoutePolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchRoutePolicy setAlt(java.lang.String alt) { - return (PatchRoutePolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchRoutePolicy setCallback(java.lang.String callback) { - return (PatchRoutePolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchRoutePolicy setFields(java.lang.String fields) { - return (PatchRoutePolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchRoutePolicy setKey(java.lang.String key) { - return (PatchRoutePolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (PatchRoutePolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRoutePolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (PatchRoutePolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchRoutePolicy setUploadType(java.lang.String uploadType) { - return (PatchRoutePolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRoutePolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchRoutePolicy setUserIp(java.lang.String userIp) { - return (PatchRoutePolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -227066,7 +215071,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -227087,7 +215092,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public PatchRoutePolicy setRegion(java.lang.String region) { + 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 " + @@ -227097,18 +215102,18 @@ public PatchRoutePolicy setRegion(java.lang.String region) { return this; } - /** Name of the Router resource where Route Policy is defined. */ + /** Name of the Router resource to return. */ @com.google.api.client.util.Key private java.lang.String router; - /** Name of the Router resource where Route Policy is defined. + /** Name of the Router resource to return. */ public java.lang.String getRouter() { return router; } - /** Name of the Router resource where Route Policy is defined. */ - public PatchRoutePolicy setRouter(java.lang.String 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 " + @@ -227118,84 +215123,260 @@ public PatchRoutePolicy setRouter(java.lang.String router) { return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Retrieves runtime NAT IP information. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "routers.getNatIpInfo". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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 requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** + * Name of the Router resource to query for Nat IP information. The name should conform to + * RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + @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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Router resource to query for Nat IP information. The name should conform to + * RFC1035. */ - public PatchRoutePolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; + 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 PatchRoutePolicy set(String parameterName, Object value) { - return (PatchRoutePolicy) super.set(parameterName, value); + public GetNatIpInfo set(String parameterName, Object value) { + return (GetNatIpInfo) super.set(parameterName, value); } } /** - * Preview fields auto-generated during router create andupdate operations. Calling this method does - * NOT create or update the router. + * Retrieves runtime Nat mapping information of VM endpoints. * - * Create a request for the method "routers.preview". + * 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 Preview#execute()} method to invoke the remote operation. + * 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. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param router Name of the Router resource to query for Nat Mapping information of + VM endpoints. * @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); + 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 Preview extends ComputeRequest { + public class GetNatMappingInfo extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/preview"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -227207,25 +215388,24 @@ public class Preview extends ComputeRequest - * {@link - * Preview#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param router Name of the Router resource to query for Nat Mapping information of + VM endpoints. * @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); + 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(), @@ -227247,63 +215427,73 @@ protected Preview(java.lang.String project, java.lang.String region, java.lang.S } @Override - public Preview set$Xgafv(java.lang.String $Xgafv) { - return (Preview) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Preview setAccessToken(java.lang.String accessToken) { - return (Preview) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Preview setAlt(java.lang.String alt) { - return (Preview) super.setAlt(alt); + public GetNatMappingInfo set$Xgafv(java.lang.String $Xgafv) { + return (GetNatMappingInfo) super.set$Xgafv($Xgafv); } @Override - public Preview setCallback(java.lang.String callback) { - return (Preview) super.setCallback(callback); + public GetNatMappingInfo setAccessToken(java.lang.String accessToken) { + return (GetNatMappingInfo) super.setAccessToken(accessToken); } @Override - public Preview setFields(java.lang.String fields) { - return (Preview) super.setFields(fields); + public GetNatMappingInfo setAlt(java.lang.String alt) { + return (GetNatMappingInfo) super.setAlt(alt); } @Override - public Preview setKey(java.lang.String key) { - return (Preview) super.setKey(key); + public GetNatMappingInfo setCallback(java.lang.String callback) { + return (GetNatMappingInfo) super.setCallback(callback); } @Override - public Preview setOauthToken(java.lang.String oauthToken) { - return (Preview) super.setOauthToken(oauthToken); + public GetNatMappingInfo setFields(java.lang.String fields) { + return (GetNatMappingInfo) super.setFields(fields); } @Override - public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Preview) super.setPrettyPrint(prettyPrint); + public GetNatMappingInfo setKey(java.lang.String key) { + return (GetNatMappingInfo) super.setKey(key); } @Override - public Preview setQuotaUser(java.lang.String quotaUser) { - return (Preview) super.setQuotaUser(quotaUser); + public GetNatMappingInfo setOauthToken(java.lang.String oauthToken) { + return (GetNatMappingInfo) super.setOauthToken(oauthToken); } @Override - public Preview setUploadType(java.lang.String uploadType) { - return (Preview) super.setUploadType(uploadType); + public GetNatMappingInfo setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetNatMappingInfo) super.setPrettyPrint(prettyPrint); } @Override - public Preview setUploadProtocol(java.lang.String uploadProtocol) { - return (Preview) super.setUploadProtocol(uploadProtocol); + public GetNatMappingInfo setQuotaUser(java.lang.String quotaUser) { + return (GetNatMappingInfo) super.setQuotaUser(quotaUser); } @Override - public Preview setUserIp(java.lang.String userIp) { - return (Preview) super.setUserIp(userIp); + 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. */ @@ -227317,7 +215507,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Preview setProject(java.lang.String project) { + 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 " + @@ -227329,74 +215519,365 @@ public Preview setProject(java.lang.String project) { /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + 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; - /** Name of the region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } - /** Name of the Router resource to query. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String router; + private java.lang.Boolean returnPartialSuccess; - /** Name of the Router resource to query. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRouter() { - return router; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public GetNatMappingInfo setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Preview set(String parameterName, Object value) { - return (Preview) super.set(parameterName, value); + public GetNatMappingInfo set(String parameterName, Object value) { + return (GetNatMappingInfo) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns specified Route Policy * - * Create a request for the method "routers.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRoutePolicy#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class GetRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -227404,28 +215885,25 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

    + * 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 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} + * @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 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); + 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(), @@ -227438,72 +215916,77 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "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}"); - } + this.router = com.google.api.client.util.Preconditions.checkNotNull(router, "Required parameter router must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetRoutePolicy setAccessToken(java.lang.String accessToken) { + return (GetRoutePolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetRoutePolicy setAlt(java.lang.String alt) { + return (GetRoutePolicy) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetRoutePolicy setCallback(java.lang.String callback) { + return (GetRoutePolicy) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetRoutePolicy setFields(java.lang.String fields) { + return (GetRoutePolicy) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetRoutePolicy setKey(java.lang.String key) { + return (GetRoutePolicy) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (GetRoutePolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (GetRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + 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. */ @@ -227517,7 +216000,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -227527,18 +216010,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** 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. + /** 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) { + /** 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 " + @@ -227548,57 +216031,71 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String router; - /** Name or id of the resource for this request. + /** Name of the Router resource to query for the route policy. The name should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRouter() { + return router; } - /** 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; + /** + * 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetRoutePolicy set(String parameterName, Object value) { + return (GetRoutePolicy) 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. + * Retrieves runtime information of the specified router. * - * Create a request for the method "routers.update". + * 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 Update#execute()} method to invoke the remote operation. + * 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 update. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param router Name of the Router resource to query. * @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); + 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 Update extends ComputeRequest { + public class GetRouterStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/getRouterStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -227610,25 +216107,23 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

    + * 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 update. - * @param content the {@link com.google.api.services.compute.model.Router} + * @param router Name of the Router resource to query. * @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); + 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(), @@ -227650,63 +216145,73 @@ protected Update(java.lang.String project, java.lang.String region, java.lang.St } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public GetRouterStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetRouterStatus) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public GetRouterStatus setAccessToken(java.lang.String accessToken) { + return (GetRouterStatus) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public GetRouterStatus setAlt(java.lang.String alt) { + return (GetRouterStatus) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public GetRouterStatus setCallback(java.lang.String callback) { + return (GetRouterStatus) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public GetRouterStatus setFields(java.lang.String fields) { + return (GetRouterStatus) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public GetRouterStatus setKey(java.lang.String key) { + return (GetRouterStatus) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public GetRouterStatus setOauthToken(java.lang.String oauthToken) { + return (GetRouterStatus) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public GetRouterStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRouterStatus) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public GetRouterStatus setQuotaUser(java.lang.String quotaUser) { + return (GetRouterStatus) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + 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. */ @@ -227720,7 +216225,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + 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 " + @@ -227741,7 +216246,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public Update setRegion(java.lang.String region) { + 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 " + @@ -227751,18 +216256,18 @@ public Update setRegion(java.lang.String region) { return this; } - /** Name of the Router resource to update. */ + /** Name of the Router resource to query. */ @com.google.api.client.util.Key private java.lang.String router; - /** Name of the Router resource to update. + /** Name of the Router resource to query. */ public java.lang.String getRouter() { return router; } - /** Name of the Router resource to update. */ - public Update setRouter(java.lang.String 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 " + @@ -227772,83 +216277,34 @@ public Update setRouter(java.lang.String 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); + public GetRouterStatus set(String parameterName, Object value) { + return (GetRouterStatus) super.set(parameterName, value); } } /** - * Updates or creates new Named Set + * Creates a Router resource in the specified project and region using the data included in the + * request. * - * Create a request for the method "routers.updateNamedSet". + * 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 UpdateNamedSet#execute()} method to invoke the remote operation. + * 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 router Name of the Router resource where Named Set is defined. - * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @param content the {@link com.google.api.services.compute.model.Router} * @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); + 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 UpdateNamedSet extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateNamedSet"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -227856,27 +216312,23 @@ public class UpdateNamedSet extends ComputeRequest {@link UpdateNamedSet#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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 router Name of the Router resource where Named Set is defined. - * @param content the {@link com.google.api.services.compute.model.NamedSet} + * @param content the {@link com.google.api.services.compute.model.Router} * @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) { + 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()) { @@ -227890,72 +216342,66 @@ protected UpdateNamedSet(java.lang.String project, java.lang.String region, java "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}"); - } } @Override - public UpdateNamedSet set$Xgafv(java.lang.String $Xgafv) { - return (UpdateNamedSet) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public UpdateNamedSet setAccessToken(java.lang.String accessToken) { - return (UpdateNamedSet) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public UpdateNamedSet setAlt(java.lang.String alt) { - return (UpdateNamedSet) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public UpdateNamedSet setCallback(java.lang.String callback) { - return (UpdateNamedSet) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public UpdateNamedSet setFields(java.lang.String fields) { - return (UpdateNamedSet) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public UpdateNamedSet setKey(java.lang.String key) { - return (UpdateNamedSet) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public UpdateNamedSet setOauthToken(java.lang.String oauthToken) { - return (UpdateNamedSet) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public UpdateNamedSet setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateNamedSet) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public UpdateNamedSet setQuotaUser(java.lang.String quotaUser) { - return (UpdateNamedSet) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public UpdateNamedSet setUploadType(java.lang.String uploadType) { - return (UpdateNamedSet) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public UpdateNamedSet setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateNamedSet) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public UpdateNamedSet setUserIp(java.lang.String userIp) { - return (UpdateNamedSet) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -227969,7 +216415,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateNamedSet setProject(java.lang.String project) { + 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 " + @@ -227990,7 +216436,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public UpdateNamedSet setRegion(java.lang.String region) { + 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 " + @@ -228000,27 +216446,6 @@ public UpdateNamedSet setRegion(java.lang.String 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 @@ -228065,39 +216490,37 @@ public java.lang.String getRequestId() { * 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdateNamedSet set(String parameterName, Object value) { - return (UpdateNamedSet) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Updates or creates new Route Policy + * Retrieves a list of Router resources available to the specified project. * - * Create a request for the method "routers.updateRoutePolicy". + * 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 UpdateRoutePolicy#execute()} method to invoke the remote operation. + * 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. - * @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); + 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 UpdateRoutePolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -228105,28 +216528,22 @@ public class UpdateRoutePolicy extends ComputeRequest {@link UpdateRoutePolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

    + * 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. - * @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); + 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(), @@ -228139,72 +216556,76 @@ protected UpdateRoutePolicy(java.lang.String project, java.lang.String region, j "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}"); - } } @Override - public UpdateRoutePolicy set$Xgafv(java.lang.String $Xgafv) { - return (UpdateRoutePolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public UpdateRoutePolicy setAccessToken(java.lang.String accessToken) { - return (UpdateRoutePolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public UpdateRoutePolicy setAlt(java.lang.String alt) { - return (UpdateRoutePolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public UpdateRoutePolicy setCallback(java.lang.String callback) { - return (UpdateRoutePolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public UpdateRoutePolicy setFields(java.lang.String fields) { - return (UpdateRoutePolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public UpdateRoutePolicy setKey(java.lang.String key) { - return (UpdateRoutePolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public UpdateRoutePolicy setOauthToken(java.lang.String oauthToken) { - return (UpdateRoutePolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public UpdateRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateRoutePolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public UpdateRoutePolicy setQuotaUser(java.lang.String quotaUser) { - return (UpdateRoutePolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public UpdateRoutePolicy setUploadType(java.lang.String uploadType) { - return (UpdateRoutePolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public UpdateRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateRoutePolicy) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public UpdateRoutePolicy setUserIp(java.lang.String userIp) { - return (UpdateRoutePolicy) super.setUserIp(userIp); + 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. */ @@ -228218,7 +216639,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateRoutePolicy setProject(java.lang.String project) { + 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 " + @@ -228239,7 +216660,7 @@ public java.lang.String getRegion() { } /** Name of the region for this request. */ - public UpdateRoutePolicy setRegion(java.lang.String region) { + 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 " + @@ -228249,372 +216670,343 @@ public UpdateRoutePolicy setRegion(java.lang.String 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. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String filter; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public UpdateRoutePolicy set(String parameterName, Object value) { - return (UpdateRoutePolicy) super.set(parameterName, value); - } - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - /** - * 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(); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - /** - * The "routes" collection of methods. - */ - public class Routes { + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - /** - * 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; - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - public class Delete extends ComputeRequest { + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private static final String REST_PATH = "projects/{project}/global/routes/{route}"; + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - 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}"); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Deletes the specified Route resource. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "routes.delete". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param route Name of the Route resource to delete. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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}"); - } - } - - @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); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - /** Name of the Route resource to delete. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String route; + private java.lang.String pageToken; - /** Name of the Route resource to delete. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRoute() { - return route; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * Specifies 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the specified Route resource. + * Retrieves a list of router bgp routes available to the specified project. * - * Create a request for the method "routes.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link ListBgpRoutes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param route Name of the Route resource to return. + * @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 Get get(java.lang.String project, java.lang.String route) throws java.io.IOException { - Get result = new Get(project, route); + 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 Get extends ComputeRequest { + public class ListBgpRoutes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes/{route}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listBgpRoutes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 Route resource. + * Retrieves a list of router bgp routes available to the specified project. * - * Create a request for the method "routes.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 route Name of the Route resource to return. + * @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 Get(java.lang.String project, java.lang.String route) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Route.class); + 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.route = com.google.api.client.util.Preconditions.checkNotNull(route, "Required parameter route must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + + com.google.api.client.util.Preconditions.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}"); } } @@ -228630,63 +217022,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListBgpRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListBgpRoutes) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListBgpRoutes setAccessToken(java.lang.String accessToken) { + return (ListBgpRoutes) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListBgpRoutes setAlt(java.lang.String alt) { + return (ListBgpRoutes) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListBgpRoutes setCallback(java.lang.String callback) { + return (ListBgpRoutes) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListBgpRoutes setFields(java.lang.String fields) { + return (ListBgpRoutes) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListBgpRoutes setKey(java.lang.String key) { + return (ListBgpRoutes) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListBgpRoutes setOauthToken(java.lang.String oauthToken) { + return (ListBgpRoutes) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListBgpRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListBgpRoutes) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListBgpRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListBgpRoutes) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListBgpRoutes setUploadType(java.lang.String uploadType) { + return (ListBgpRoutes) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListBgpRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListBgpRoutes) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListBgpRoutes setUserIp(java.lang.String userIp) { + return (ListBgpRoutes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -228700,7 +217092,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -228710,261 +217102,521 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the Route resource to return. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String route; + private java.lang.String region; - /** Name of the Route resource to return. + /** Name of the region for this request. */ - public java.lang.String getRoute() { - return route; + public java.lang.String getRegion() { + return region; } - /** Name of the Route resource to return. */ - public Get setRoute(java.lang.String route) { + /** Name of the region for this request. */ + public ListBgpRoutes setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ROUTE_PATTERN.matcher(route).matches(), - "Parameter route must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).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.route = route; + this.router = router; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** (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; } - } - /** - * 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 { + /** (Required) limit results to this address family (either IPv4 or IPv6) */ + public ListBgpRoutes setAddressFamily(java.lang.String addressFamily) { + this.addressFamily = addressFamily; + return this; + } - private static final String REST_PATH = "projects/{project}/global/routes"; + /** Limit results to destinations that are subnets of this CIDR range */ + @com.google.api.client.util.Key + private java.lang.String destinationPrefix; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** 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; + } /** - * Creates a Route resource in the specified project using the data included in the request. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "routes.insert". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * 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.

    + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Route} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - 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])?))"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances 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; } - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that 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; } - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; } - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + /** + * Specifies 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; } - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + /** + * (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; } - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + /** + * (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; } - /** Project ID for this request. */ + /** + * When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Boolean policyApplied; - /** Project ID for this request. + /** When true, the method returns post-policy routes. Otherwise, it returns pre-policy routes. + [default: true] */ - public java.lang.String getProject() { - return project; + public java.lang.Boolean getPolicyApplied() { + return policyApplied; } - /** 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; + /** + * 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; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + *

    + * 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}. + *

    * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + *

    + * 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. + *

    */ - @com.google.api.client.util.Key - private java.lang.String requestId; + public boolean isPolicyApplied() { + if (policyApplied == null || policyApplied == com.google.api.client.util.Data.NULL_BOOLEAN) { + return true; + } + return policyApplied; + } - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListBgpRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * (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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public ListBgpRoutes set(String parameterName, Object value) { + return (ListBgpRoutes) super.set(parameterName, value); } } /** - * Retrieves the list of Route resources available to the specified project. + * Retrieves a list of router route policy subresources available to the specified project. * - * Create a request for the method "routes.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class ListRoutePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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 the list of Route resources available to the specified project. + * Retrieves a list of router route policy subresources available to the specified project. * - * Create a request for the method "routes.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RouteList.class); + 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}"); + } } @Override @@ -228978,63 +217630,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public ListRoutePolicies set$Xgafv(java.lang.String $Xgafv) { + return (ListRoutePolicies) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListRoutePolicies setAccessToken(java.lang.String accessToken) { + return (ListRoutePolicies) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListRoutePolicies setAlt(java.lang.String alt) { + return (ListRoutePolicies) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListRoutePolicies setCallback(java.lang.String callback) { + return (ListRoutePolicies) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListRoutePolicies setFields(java.lang.String fields) { + return (ListRoutePolicies) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListRoutePolicies setKey(java.lang.String key) { + return (ListRoutePolicies) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListRoutePolicies setOauthToken(java.lang.String oauthToken) { + return (ListRoutePolicies) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListRoutePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListRoutePolicies) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListRoutePolicies setQuotaUser(java.lang.String quotaUser) { + return (ListRoutePolicies) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListRoutePolicies setUploadType(java.lang.String uploadType) { + return (ListRoutePolicies) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListRoutePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (ListRoutePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListRoutePolicies setUserIp(java.lang.String userIp) { + return (ListRoutePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -229048,7 +217700,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -229058,6 +217710,52 @@ public List setProject(java.lang.String 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 @@ -229189,7 +217887,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListRoutePolicies setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -229218,234 +217916,495 @@ public java.lang.Long getMaxResults() { * 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) { + 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. - */ + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public ListRoutePolicies setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.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}"); + } + } + + @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 orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private java.lang.String region; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the region for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRegion() { + return region; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this 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; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the Router resource to patch. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String router; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the Router resource to patch. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRouter() { + return router; } - /** - * Specifies 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; + /** 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; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Patches Route Policy * - * Create a request for the method "routes.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchRoutePolicy#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} + * @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 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); + 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 TestIamPermissions extends ComputeRequest { + public class PatchRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.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 permissions that a caller has on the specified resource. + * Patches Route Policy * - * Create a request for the method "routes.testIamPermissions". + * 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 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.

    + * 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @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 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); + 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.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}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public PatchRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (PatchRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public PatchRoutePolicy setAccessToken(java.lang.String accessToken) { + return (PatchRoutePolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public PatchRoutePolicy setAlt(java.lang.String alt) { + return (PatchRoutePolicy) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public PatchRoutePolicy setCallback(java.lang.String callback) { + return (PatchRoutePolicy) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public PatchRoutePolicy setFields(java.lang.String fields) { + return (PatchRoutePolicy) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public PatchRoutePolicy setKey(java.lang.String key) { + return (PatchRoutePolicy) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public PatchRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (PatchRoutePolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public PatchRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public PatchRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (PatchRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public PatchRoutePolicy setUploadType(java.lang.String uploadType) { + return (PatchRoutePolicy) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public PatchRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRoutePolicy) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public PatchRoutePolicy setUserIp(java.lang.String userIp) { + return (PatchRoutePolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -229459,7 +218418,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + 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 " + @@ -229469,174 +218428,234 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String region; - /** Name or id of the resource for this request. + /** Name of the region for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRegion() { + return region; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the region for this request. */ + public PatchRoutePolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.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 = resource; + this.region = region; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** 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 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(); - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; - /** - * The "securityPolicies" collection of methods. - */ - public class SecurityPolicies { + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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); + } + } /** - * Inserts a rule into a security policy. + * 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 "securityPolicies.addRule". + * 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 AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Preview#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} + * @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 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); + 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 AddRule extends ComputeRequest { + public class Preview extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/preview"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * Inserts a rule into a security policy. + * 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 "securityPolicies.addRule". + * 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 AddRule#execute()} method to invoke the remote operation.

    + * parameters, call the {@link Preview#execute()} method to invoke the remote operation.

    * {@link - * AddRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @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 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); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public Preview set$Xgafv(java.lang.String $Xgafv) { + return (Preview) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public Preview setAccessToken(java.lang.String accessToken) { + return (Preview) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Preview setAlt(java.lang.String alt) { + return (Preview) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Preview setCallback(java.lang.String callback) { + return (Preview) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Preview setFields(java.lang.String fields) { + return (Preview) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Preview setKey(java.lang.String key) { + return (Preview) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Preview setOauthToken(java.lang.String oauthToken) { + return (Preview) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Preview setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Preview) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Preview setQuotaUser(java.lang.String quotaUser) { + return (Preview) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Preview setUploadType(java.lang.String uploadType) { + return (Preview) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Preview setUploadProtocol(java.lang.String uploadProtocol) { + return (Preview) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Preview setUserIp(java.lang.String userIp) { + return (Preview) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -229650,7 +218669,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + 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 " + @@ -229660,186 +218679,197 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the security policy to update. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to update. + /** Name of the region for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the region for this request. */ + public Preview setRegion(java.lang.String region) { 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}"); + com.google.api.client.util.Preconditions.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 = securityPolicy; + this.region = region; return this; } - /** If true, the request will not be committed. */ + /** Name of the Router resource to query. */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.String router; - /** If true, the request will not be committed. + /** Name of the Router resource to query. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.String getRouter() { + return router; } - /** If true, the request will not be committed. */ - public AddRule setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + /** 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 AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Preview set(String parameterName, Object value) { + return (Preview) 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`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "securityPolicies.aggregatedList". + * Create a request for the method "routers.testIamPermissions". * * 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. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/securityPolicies"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + /** - * 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`. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "securityPolicies.aggregatedList". + * Create a request for the method "routers.testIamPermissions". * * 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.

    + * 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 Name of the project scoping this request. + * @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 AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesAggregatedList.class); + 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}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String 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 " + @@ -229849,448 +218879,186 @@ public AggregatedList setProject(java.lang.String 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; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String region; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** The name of the region for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRegion() { + return region; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String resource; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name or id of the resource for this request. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Deletes the specified policy. + * 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 "securityPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to delete. + * @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 Delete delete(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - Delete result = new Delete(project, securityPolicy); + 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 Delete extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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 policy. + * 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 "securityPolicies.delete". + * 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 Delete#execute()} method to invoke the remote operation.

    {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 securityPolicy Name of the security policy to delete. + * @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 Delete(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -230304,7 +219072,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + 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 " + @@ -230314,24 +219082,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the security policy to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to delete. + /** Name of the region for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the region for this request. */ + public Update setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.securityPolicy = securityPolicy; + this.router = router; return this; } @@ -230379,142 +219168,146 @@ public java.lang.String getRequestId() { * 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) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * List all of the ordered rules present in a single specified policy. + * Updates or creates new Route Policy * - * Create a request for the method "securityPolicies.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link UpdateRoutePolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param securityPolicy Name of the security policy to get. + * @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 Get get(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - Get result = new Get(project, securityPolicy); + 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 Get extends ComputeRequest { + public class UpdateRoutePolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + private final java.util.regex.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}"); /** - * List all of the ordered rules present in a single specified policy. + * Updates or creates new Route Policy * - * Create a request for the method "securityPolicies.get". + * 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 Get#execute()} method to invoke the remote operation.

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

    + * 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 securityPolicy Name of the security policy to get. + * @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 Get(java.lang.String project, java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region 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 " + + com.google.api.client.util.Preconditions.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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public UpdateRoutePolicy set$Xgafv(java.lang.String $Xgafv) { + return (UpdateRoutePolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public UpdateRoutePolicy setAccessToken(java.lang.String accessToken) { + return (UpdateRoutePolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public UpdateRoutePolicy setAlt(java.lang.String alt) { + return (UpdateRoutePolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public UpdateRoutePolicy setCallback(java.lang.String callback) { + return (UpdateRoutePolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public UpdateRoutePolicy setFields(java.lang.String fields) { + return (UpdateRoutePolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public UpdateRoutePolicy setKey(java.lang.String key) { + return (UpdateRoutePolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public UpdateRoutePolicy setOauthToken(java.lang.String oauthToken) { + return (UpdateRoutePolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public UpdateRoutePolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateRoutePolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public UpdateRoutePolicy setQuotaUser(java.lang.String quotaUser) { + return (UpdateRoutePolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public UpdateRoutePolicy setUploadType(java.lang.String uploadType) { + return (UpdateRoutePolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public UpdateRoutePolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateRoutePolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public UpdateRoutePolicy setUserIp(java.lang.String userIp) { + return (UpdateRoutePolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -230528,7 +219321,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + 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 " + @@ -230538,159 +219331,241 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the security policy to get. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String region; - /** Name of the security policy to get. + /** Name of the region for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRegion() { + return region; } - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the region for this request. */ + public UpdateRoutePolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter 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.securityPolicy = securityPolicy; + 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + 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 { + /** - * Gets a rule at the specified priority. + * Deletes the specified Route resource. * - * Create a request for the method "securityPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation. + * 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 which the queried rule belongs. + * @param route Name of the Route resource to delete. * @return the request */ - public GetRule getRule(java.lang.String project, java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, securityPolicy); + 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 GetRule extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/global/routes/{route}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 = + 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}"); /** - * Gets a rule at the specified priority. + * Deletes the specified Route resource. * - * Create a request for the method "securityPolicies.getRule". + * 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 GetRule#execute()} method to invoke the remote operation.

    - * {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 which the queried rule belongs. + * @param route Name of the Route resource to delete. * @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); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + 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}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -230704,7 +219579,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + 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 " + @@ -230714,155 +219589,207 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the security policy to which the queried rule belongs. */ + /** Name of the Route resource to delete. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String route; - /** Name of the security policy to which the queried rule belongs. + /** Name of the Route resource to delete. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getRoute() { + return route; } - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the Route resource to delete. */ + public Delete setRoute(java.lang.String route) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + + 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.securityPolicy = securityPolicy; + this.route = route; return this; } - /** The priority of the rule to get from the security policy. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String requestId; - /** The priority of the rule to get from the security policy. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getRequestId() { + return requestId; } - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate 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 GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a new policy in the specified project using the data included in the request. + * Returns the specified Route resource. * - * Create a request for the method "securityPolicies.insert". + * 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 Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param route Name of the Route resource to return. * @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); + 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 Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies"; + private static final String REST_PATH = "projects/{project}/global/routes/{route}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + /** - * Creates a new policy in the specified project using the data included in the request. + * Returns the specified Route resource. * - * Create a request for the method "securityPolicies.insert". + * 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 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.

    + * parameters, call the {@link Get#execute()} method to invoke the remote 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 content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @param route Name of the Route resource to return. * @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); + 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}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public 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. */ @@ -230876,7 +219803,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + 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 " + @@ -230886,115 +219813,73 @@ public Insert setProject(java.lang.String 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. */ + /** Name of the Route resource to return. */ @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; + private java.lang.String route; - /** If true, the request will not be committed. + /** Name of the Route resource to return. */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; + public java.lang.String getRoute() { + return route; } - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; + /** 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 Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * List all the policies that have been configured for the specified project. + * Creates a Route resource in the specified project using the data included in the request. * - * Create a request for the method "securityPolicies.list". + * 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 List#execute()} method to invoke the remote operation. + * 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies"; + private static final String REST_PATH = "projects/{project}/global/routes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Creates a Route resource in the specified project using the data included in the request. * - * Create a request for the method "securityPolicies.list". + * 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 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.

    + * 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 List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); + 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(), @@ -231004,73 +219889,63 @@ protected List(java.lang.String project) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws 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); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -231084,7 +219959,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + 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 " + @@ -231095,315 +219970,98 @@ public List setProject(java.lang.String project) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Retrieves the list of Route resources available to the specified project. * - * Create a request for the method "securityPolicies.listPreconfiguredExpressionSets". + * 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 ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation. + * parameters, call the {@link List#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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class ListPreconfiguredExpressionSets extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets"; + private static final String REST_PATH = "projects/{project}/global/routes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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. + * Retrieves the list of Route resources available to the specified project. * - * Create a request for the method "securityPolicies.listPreconfiguredExpressionSets". + * 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 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.

    + * 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 ListPreconfiguredExpressionSets(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); + 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(), @@ -231423,63 +220081,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { - return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { - return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { - return (ListPreconfiguredExpressionSets) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { - return (ListPreconfiguredExpressionSets) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { - return (ListPreconfiguredExpressionSets) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public ListPreconfiguredExpressionSets setKey(java.lang.String key) { - return (ListPreconfiguredExpressionSets) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { - return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { - return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { - return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { - return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -231493,7 +220151,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPreconfiguredExpressionSets setProject(java.lang.String project) { + 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 " + @@ -231634,7 +220292,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -231663,7 +220321,7 @@ public java.lang.Long getMaxResults() { * 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) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -231707,7 +220365,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -231730,7 +220388,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -231762,140 +220420,135 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); + 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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "securityPolicies.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#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} + * @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 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); + 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 Patch extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "projects/{project}/global/routes/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + private final java.util.regex.Pattern RESOURCE_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. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "securityPolicies.patch". + * 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 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.

    + * 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @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 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); + 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.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -231909,7 +220562,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -231919,120 +220572,77 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the security policy to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String resource; - /** Name of the security policy to update. + /** Name or id of the resource for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the security policy to update. */ - public Patch setSecurityPolicy(java.lang.String securityPolicy) { + /** 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.securityPolicy = securityPolicy; + 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** 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; - } + /** + * 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(); + } - /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** + * The "securityPolicies" collection of methods. + */ + public class SecurityPolicies { - @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. + * Inserts a rule into a security policy. * - * Create a request for the method "securityPolicies.patchRule". + * 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 PatchRule#execute()} method to invoke the remote operation. + * 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 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); + 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 PatchRule extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -232041,23 +220651,22 @@ public class PatchRule extends ComputeRequest + * parameters, call the {@link AddRule#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.

    + * 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 PatchRule(java.lang.String project, java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + 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()) { @@ -232074,63 +220683,63 @@ protected PatchRule(java.lang.String project, java.lang.String securityPolicy, c } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -232144,7 +220753,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + 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 " + @@ -232165,7 +220774,7 @@ public java.lang.String getSecurityPolicy() { } /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + 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 " + @@ -232175,38 +220784,6 @@ public PatchRule setSecurityPolicy(java.lang.String 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; @@ -232218,567 +220795,24 @@ public java.lang.Boolean getValidateOnly() { } /** If true, the request will not be committed. */ - public PatchRule setValidateOnly(java.lang.Boolean validateOnly) { + public AddRule 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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); - } - } - - @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 "securityPolicies.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/securityPolicies/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 "securityPolicies.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}"); - } - } - - @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); + public AddRule set(String parameterName, Object value) { + return (AddRule) 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 + * 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 "serviceAttachments.aggregatedList". + * 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. @@ -232792,21 +220826,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/serviceAttachments"; + private static final String REST_PATH = "projects/{project}/aggregated/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 + * 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 "serviceAttachments.aggregatedList". + * 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. @@ -232818,7 +220852,7 @@ public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 ServiceAttachment in the given scope + * Deletes the specified policy. * - * Create a request for the method "serviceAttachments.delete". + * 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 @@ -233287,11 +221317,10 @@ public class Delete extends ComputeRequest * * @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. + * @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 serviceAttachment) { + 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()) { @@ -233299,16 +221328,10 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + + 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}"); } } @@ -233394,45 +221417,24 @@ public Delete setProject(java.lang.String 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. */ + /** Name of the security policy to delete. */ @com.google.api.client.util.Key - private java.lang.String serviceAttachment; + private java.lang.String securityPolicy; - /** Name of the ServiceAttachment resource to delete. + /** Name of the security policy to delete. */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the ServiceAttachment resource to delete. */ - public Delete setServiceAttachment(java.lang.String serviceAttachment) { + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + + 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.serviceAttachment = serviceAttachment; + this.securityPolicy = securityPolicy; return this; } @@ -233491,41 +221493,37 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified ServiceAttachment resource in the given scope. + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "serviceAttachments.get". + * 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 region Name of the region of this request. - * @param serviceAttachment Name of the ServiceAttachment resource to return. + * @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 serviceAttachment) throws java.io.IOException { - Get result = new Get(project, region, serviceAttachment); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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}"); /** - * Returns the specified ServiceAttachment resource in the given scope. + * List all of the ordered rules present in a single specified policy. * - * Create a request for the method "serviceAttachments.get". + * 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 @@ -233533,28 +221531,21 @@ public class Get extends ComputeRequest * * @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. + * @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 serviceAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ServiceAttachment.class); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + + 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}"); } } @@ -233650,61 +221641,24 @@ public Get setProject(java.lang.String 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. */ + /** Name of the security policy to get. */ @com.google.api.client.util.Key - private java.lang.String serviceAttachment; + private java.lang.String securityPolicy; - /** Name of the ServiceAttachment resource to return. + /** Name of the security policy to get. */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name of the ServiceAttachment resource to return. */ - public Get setServiceAttachment(java.lang.String serviceAttachment) { + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SERVICE_ATTACHMENT_PATTERN.matcher(serviceAttachment).matches(), - "Parameter serviceAttachment must conform to the pattern " + + 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.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; + this.securityPolicy = securityPolicy; return this; } @@ -233714,72 +221668,60 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Gets a rule at the specified priority. * - * Create a request for the method "serviceAttachments.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRule#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 securityPolicy Name of the security policy to which the queried rule belongs. * @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); + 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 GetIamPolicy extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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 = + 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 the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Gets a rule at the specified priority. * - * Create a request for the method "serviceAttachments.getIamPolicy". + * 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 GetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link GetRule#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.

    + * 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 The name of the region for this request. - * @param resource Name or id of the resource for this request. + * @param securityPolicy Name of the security policy to which the queried rule belongs. * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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}"); } } @@ -233795,63 +221737,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -233865,7 +221807,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -233875,104 +221817,77 @@ public GetIamPolicy setProject(java.lang.String 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. */ + /** Name of the security policy to which the queried rule belongs. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String securityPolicy; - /** Name or id of the resource for this request. + /** Name of the security policy to which the queried rule belongs. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.resource = resource; + this.securityPolicy = securityPolicy; return this; } - /** Requested IAM Policy version. */ + /** The priority of the rule to get from the security policy. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.Integer priority; - /** Requested IAM Policy version. + /** The priority of the rule to get from the security policy. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Integer getPriority() { + return priority; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Creates a ServiceAttachment in the specified project in the given scope using the parameters that - * are included in the request. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "serviceAttachments.insert". + * 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 region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.ServiceAttachment} + * @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.ServiceAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + 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}/regions/{region}/serviceAttachments"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "serviceAttachments.insert". + * 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 @@ -233980,11 +221895,10 @@ public class Insert extends ComputeRequest * * @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} + * @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.ServiceAttachment content) { + 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()) { @@ -233992,12 +221906,6 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -234081,27 +221989,6 @@ public Insert setProject(java.lang.String 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 @@ -234151,43 +222038,55 @@ public Insert setRequestId(java.lang.String 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); } } /** - * Lists the ServiceAttachments for a project in the given scope. + * List all the policies that have been configured for the specified project. * - * Create a request for the method "serviceAttachments.list". + * 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. - * @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); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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. + * List all the policies that have been configured for the specified project. * - * Create a request for the method "serviceAttachments.list". + * 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 @@ -234195,23 +222094,16 @@ public class List extends ComputeRequest * * @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); + 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])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } } @Override @@ -234305,24 +222197,412 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** Name of the region of this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** Name of the region of this request. */ - public List setRegion(java.lang.String region) { + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = region; + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; } @@ -234457,7 +222737,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -234486,7 +222766,7 @@ public java.lang.Long getMaxResults() { * 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) { + public ListPreconfiguredExpressionSets setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -234530,7 +222810,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -234553,7 +222833,7 @@ public java.lang.String getPageToken() { * Specifies 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) { + public ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -234585,51 +222865,55 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) 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. + * 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 "serviceAttachments.patch". + * 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 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} + * @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 serviceAttachment, com.google.api.services.compute.model.ServiceAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, serviceAttachment, content); + 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}/regions/{region}/serviceAttachments/{serviceAttachment}"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{securityPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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 ServiceAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * 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 "serviceAttachments.patch". + * 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 @@ -234637,14 +222921,11 @@ public class Patch extends ComputeRequest * * @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} + * @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 serviceAttachment, com.google.api.services.compute.model.ServiceAttachment content) { + 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()) { @@ -234652,68 +222933,521 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-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."); + 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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } + } + + @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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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}"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -234727,7 +223461,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + 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 " + @@ -234737,229 +223471,169 @@ public Patch setProject(java.lang.String 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. - */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String serviceAttachment; + private java.lang.String securityPolicy; - /** 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. + /** Name of the security policy to update. */ - public java.lang.String getServiceAttachment() { - return serviceAttachment; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** - * 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; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** The priority of the rule to remove from the security policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer priority; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The priority of the rule to remove from the security policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPriority() { + return priority; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate 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; + /** 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + 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. + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "serviceAttachments.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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 SetIamPolicy extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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. + * Sets the labels on a security policy. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "serviceAttachments.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation.

    + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

    * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 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} + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -234973,7 +223647,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + 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 " + @@ -234983,27 +223657,6 @@ public SetIamPolicy setProject(java.lang.String 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; @@ -235015,58 +223668,54 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + 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}"); + "[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); + 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 "serviceAttachments.testIamPermissions". + * Create a request for the method "securityPolicies.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); + 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}/regions/{region}/serviceAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/securityPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.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}"); + 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". + * Create a request for the method "securityPolicies.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 @@ -235075,12 +223724,11 @@ public class TestIamPermissions extends ComputeRequest * * @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) { + 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()) { @@ -235088,17 +223736,11 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -235183,27 +223825,6 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -235219,7 +223840,7 @@ 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}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -235234,57 +223855,534 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the SnapshotGroups collection. + * An accessor for creating requests from the ServiceAttachments collection. * *

    The typical use is:

    *
        *   {@code Compute compute = new Compute(...);}
    -   *   {@code Compute.SnapshotGroups.List request = compute.snapshotGroups().list(parameters ...)}
    +   *   {@code Compute.ServiceAttachments.List request = compute.serviceAttachments().list(parameters ...)}
        * 
    * * @return the resource collection */ - public SnapshotGroups snapshotGroups() { - return new SnapshotGroups(); + public ServiceAttachments serviceAttachments() { + return new ServiceAttachments(); } /** - * The "snapshotGroups" collection of methods. + * The "serviceAttachments" collection of methods. */ - public class SnapshotGroups { + 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws 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; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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 SnapshotGroup resource + * Deletes the specified ServiceAttachment in the given scope * - * Create a request for the method "snapshotGroups.delete". + * 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 snapshotGroup Name of the SnapshotGroup resource to delete. + * @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 snapshotGroup) throws java.io.IOException { - Delete result = new Delete(project, snapshotGroup); + 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}/global/snapshotGroups/{snapshotGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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_GROUP_PATTERN = + private final java.util.regex.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 SnapshotGroup resource + * Deletes the specified ServiceAttachment in the given scope * - * Create a request for the method "snapshotGroups.delete". + * 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 @@ -235292,10 +224390,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param snapshotGroup Name of the SnapshotGroup resource to delete. + * @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 snapshotGroup) { + 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()) { @@ -235303,10 +224402,16 @@ protected Delete(java.lang.String project, java.lang.String snapshotGroup) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.snapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(snapshotGroup, "Required parameter snapshotGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), - "Parameter snapshotGroup must conform to the pattern " + + 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}"); } } @@ -235392,24 +224497,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the SnapshotGroup resource to delete. */ + /** 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 snapshotGroup; + private java.lang.String serviceAttachment; - /** Name of the SnapshotGroup resource to delete. + /** Name of the ServiceAttachment resource to delete. */ - public java.lang.String getSnapshotGroup() { - return snapshotGroup; + public java.lang.String getServiceAttachment() { + return serviceAttachment; } - /** Name of the SnapshotGroup resource to delete. */ - public Delete setSnapshotGroup(java.lang.String snapshotGroup) { + /** Name of the ServiceAttachment resource to delete. */ + public Delete setServiceAttachment(java.lang.String serviceAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), - "Parameter snapshotGroup must conform to the pattern " + + 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.snapshotGroup = snapshotGroup; + this.serviceAttachment = serviceAttachment; return this; } @@ -235468,37 +224594,41 @@ public Delete set(String parameterName, Object value) { } } /** - * returns the specified SnapshotGroup resource. + * Returns the specified ServiceAttachment resource in the given scope. * - * Create a request for the method "snapshotGroups.get". + * 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 snapshotGroup Name of the SnapshotGroup resource to return. + * @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 snapshotGroup) throws java.io.IOException { - Get result = new Get(project, snapshotGroup); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshotGroups/{snapshotGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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_GROUP_PATTERN = + private final java.util.regex.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 SnapshotGroup resource. + * Returns the specified ServiceAttachment resource in the given scope. * - * Create a request for the method "snapshotGroups.get". + * 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 @@ -235506,21 +224636,28 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param snapshotGroup Name of the SnapshotGroup resource to return. + * @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 snapshotGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotGroup.class); + 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.snapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(snapshotGroup, "Required parameter snapshotGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), - "Parameter snapshotGroup must conform to the pattern " + + 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}"); } } @@ -235616,24 +224753,61 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the SnapshotGroup resource to return. */ + /** 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 snapshotGroup; + private java.lang.String serviceAttachment; - /** Name of the SnapshotGroup resource to return. + /** Name of the ServiceAttachment resource to return. */ - public java.lang.String getSnapshotGroup() { - return snapshotGroup; + public java.lang.String getServiceAttachment() { + return serviceAttachment; } - /** Name of the SnapshotGroup resource to return. */ - public Get setSnapshotGroup(java.lang.String snapshotGroup) { + /** Name of the ServiceAttachment resource to return. */ + public Get setServiceAttachment(java.lang.String serviceAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SNAPSHOT_GROUP_PATTERN.matcher(snapshotGroup).matches(), - "Parameter snapshotGroup must conform to the pattern " + + 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.snapshotGroup = snapshotGroup; + 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; } @@ -235645,36 +224819,40 @@ public Get set(String parameterName, Object 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 "snapshotGroups.getIamPolicy". + * 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 resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + 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}/global/snapshotGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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 "snapshotGroups.getIamPolicy". + * 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.

    @@ -235683,10 +224861,11 @@ public class GetIamPolicy extends ComputeRequest * * @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 resource) { + 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()) { @@ -235694,11 +224873,17 @@ protected GetIamPolicy(java.lang.String project, java.lang.String resource) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -235793,6 +224978,27 @@ public GetIamPolicy setProject(java.lang.String 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; @@ -235808,7 +225014,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -235836,34 +225042,40 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a snapshot group in the specified project using the data included in the request. + * 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 "snapshotGroups.insert". + * 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 content the {@link com.google.api.services.compute.model.SnapshotGroup} + * @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, com.google.api.services.compute.model.SnapshotGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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}/global/snapshotGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 group in the specified project using the data included in the request. + * 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 "snapshotGroups.insert". + * 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 @@ -235871,10 +225083,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotGroup} + * @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, com.google.api.services.compute.model.SnapshotGroup content) { + 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()) { @@ -235882,6 +225095,12 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -235965,6 +225184,27 @@ public Insert setProject(java.lang.String 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 @@ -236020,33 +225260,37 @@ public Insert set(String parameterName, Object value) { } } /** - * retrieves the list of SnapshotGroup resources contained within the specified project. + * Lists the ServiceAttachments for a project in the given scope. * - * Create a request for the method "snapshotGroups.list". + * 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) throws java.io.IOException { - List result = new List(project); + 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 { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/snapshotGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-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 SnapshotGroup resources contained within the specified project. + * Lists the ServiceAttachments for a project in the given scope. * - * Create a request for the method "snapshotGroups.list". + * 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 @@ -236054,16 +225298,23 @@ public class List extends ComputeRequest * * @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) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListSnapshotGroups.class); + 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])?"); + } } @Override @@ -236157,6 +225408,27 @@ public List setProject(java.lang.String 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 @@ -236426,39 +225698,278 @@ 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 final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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."); + } + + @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 "snapshotGroups.setIamPolicy". + * 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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @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); + 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}/global/snapshotGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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 "snapshotGroups.setIamPolicy". + * 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.

    @@ -236467,11 +225978,12 @@ public class SetIamPolicy extends ComputeRequest * * @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.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + 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()) { @@ -236479,11 +225991,17 @@ protected SetIamPolicy(java.lang.String project, java.lang.String resource, com. "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -236568,6 +226086,27 @@ public SetIamPolicy setProject(java.lang.String 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; @@ -236583,7 +226122,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -236597,36 +226136,40 @@ public SetIamPolicy set(String parameterName, Object value) { /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "snapshotGroups.testIamPermissions". + * 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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + 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}/global/snapshotGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.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}"); + 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 "snapshotGroups.testIamPermissions". + * 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 @@ -236635,11 +226178,12 @@ public class TestIamPermissions extends ComputeRequest * * @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 resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + 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()) { @@ -236647,11 +226191,17 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -236736,6 +226286,27 @@ public TestIamPermissions setProject(java.lang.String 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; @@ -236751,7 +226322,7 @@ 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -280477,7 +270048,8 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@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}
  • + *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java index bb97180b273..ca908adabeb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorType.java @@ -62,8 +62,7 @@ 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] The type of the resource. Alwayscompute#acceleratorType for accelerator types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -84,7 +83,7 @@ public final class AcceleratorType extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [Output Only] Server-defined, fully qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -168,8 +167,7 @@ public AcceleratorType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -177,8 +175,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for - * accelerator types. + * [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) { @@ -221,7 +218,7 @@ public AcceleratorType setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [Output Only] Server-defined, fully qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -229,7 +226,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined, fully qualified URL for this resource. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java index 8ef1a82145b..01a36ed3d8c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for - * aggregated lists of accelerator types. + * [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 @@ -62,14 +62,14 @@ public final class AcceleratorTypeAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AcceleratorTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AcceleratorTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java index 8573d2e33b6..d6ce17db7a8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AcceleratorTypeList.java @@ -50,8 +50,8 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. + * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator + * types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class AcceleratorTypeList extends com.google.api.client.json.Generi 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 @@ -116,8 +116,8 @@ public AcceleratorTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. + * [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of accelerator + * types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeList for lists of - * accelerator types. + * [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) { @@ -158,7 +158,7 @@ public AcceleratorTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 AcceleratorTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java index 41d68db5279..de46a322098 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AccessConfig.java @@ -49,7 +49,7 @@ public final class AccessConfig extends com.google.api.client.json.GenericJson { private java.lang.Integer externalIpv6PrefixLength; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -168,7 +168,7 @@ public AccessConfig setExternalIpv6PrefixLength(java.lang.Integer externalIpv6Pr } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -176,7 +176,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig for access configs. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java index b6268dcc2d2..6b442a7cd99 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Address.java @@ -53,7 +53,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String addressType; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,8 +67,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -104,7 +103,7 @@ public final class Address extends com.google.api.client.json.GenericJson { private java.lang.String ipv6EndpointType; /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * [Output Only] Type of the resource. Always compute#address for addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -190,9 +189,9 @@ public final class Address extends com.google.api.client.json.GenericJson { 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.* + * [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 @@ -206,10 +205,10 @@ public final class Address extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -268,7 +267,7 @@ public Address setAddressType(java.lang.String addressType) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -276,7 +275,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Address setCreationTimestamp(java.lang.String creationTimestamp) { @@ -302,8 +301,7 @@ public Address setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -311,8 +309,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -388,7 +385,7 @@ public Address setIpv6EndpointType(java.lang.String ipv6EndpointType) { } /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * [Output Only] Type of the resource. Always compute#address for addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -396,7 +393,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#address for addresses. + * [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) { @@ -624,9 +621,9 @@ public Address setPurpose(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.* + * [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() { @@ -634,9 +631,9 @@ public java.lang.String getRegion() { } /** - * 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.* + * [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) { @@ -662,10 +659,10 @@ public Address setSelfLink(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. + * [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() { @@ -673,10 +670,10 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java index 981d91082fb..ce17cb61122 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressAggregatedList.java @@ -44,8 +44,8 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. + * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of + * addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class AddressAggregatedList extends com.google.api.client.json.Gene 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public AddressAggregatedList setItems(java.util.Map } /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. + * [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated lists of + * addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#addressAggregatedList for aggregated - * lists of addresses. + * [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) { @@ -159,7 +159,7 @@ public AddressAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -167,7 +167,7 @@ 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 AddressAggregatedList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public AddressAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public AddressAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java index 62ab8af2ff8..68e6eb54491 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AddressList.java @@ -50,7 +50,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * [Output Only] Type of resource. Always compute#addressList for lists of addresses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class AddressList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public AddressList setItems(java.util.List
      items) { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * [Output Only] Type of resource. Always compute#addressList for lists of addresses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#addressList for lists of addresses. + * [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) { @@ -155,7 +155,7 @@ public AddressList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 AddressList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java index 9684fa1e3a2..f35db35aee5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationAggregateReservation.java @@ -40,22 +40,22 @@ public final class AllocationAggregateReservation extends com.google.api.client. private java.lang.Integer hostCount; /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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. Number of instances currently in use in this reservation. + * Number of instances currently in use in this reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer inUseInstanceCount; /** - * Output only. [Output only] List of resources currently in use. + * [Output only] List of resources currently in use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -102,8 +102,8 @@ public AllocationAggregateReservation setHostCount(java.lang.Integer hostCount) } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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() { @@ -111,8 +111,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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 AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseHostCount) { @@ -121,7 +121,7 @@ public AllocationAggregateReservation setInUseHostCount(java.lang.Integer inUseH } /** - * Output only. Number of instances currently in use in this reservation. + * Number of instances currently in use in this reservation. * @return value or {@code null} for none */ public java.lang.Integer getInUseInstanceCount() { @@ -129,7 +129,7 @@ public java.lang.Integer getInUseInstanceCount() { } /** - * Output only. Number of instances currently in use in this reservation. + * Number of instances currently in use in this reservation. * @param inUseInstanceCount inUseInstanceCount or {@code null} for none */ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer inUseInstanceCount) { @@ -138,7 +138,7 @@ public AllocationAggregateReservation setInUseInstanceCount(java.lang.Integer in } /** - * Output only. [Output only] List of resources currently in use. + * [Output only] List of resources currently in use. * @return value or {@code null} for none */ public java.util.List getInUseResources() { @@ -146,7 +146,7 @@ public java.util.List getInU } /** - * Output only. [Output only] List of resources currently in use. + * [Output only] List of resources currently in use. * @param inUseResources inUseResources or {@code null} for none */ public AllocationAggregateReservation setInUseResources(java.util.List inUseResources) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java index 5a212f176c5..54dce0f90d4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUAllocationReservedInstanceProperties.java @@ -17,7 +17,7 @@ package com.google.api.services.compute.model; /** - * Properties of the SKU instances being reserved. Next ID: 10 + * Properties of the SKU instances being reserved. Next ID: 9 * *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java index de9079076b2..d928aa8151f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AllocationSpecificSKUReservation.java @@ -30,7 +30,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. + * [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 @@ -44,7 +44,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.Long count; /** - * Output only. [Output Only] Indicates how many instances are in use. + * [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 @@ -72,7 +72,7 @@ public final class AllocationSpecificSKUReservation extends com.google.api.clien private java.lang.String sourceInstanceTemplate; /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. + * [Output Only] Indicates how many instances are actually usable currently. * @return value or {@code null} for none */ public java.lang.Long getAssuredCount() { @@ -80,7 +80,7 @@ public java.lang.Long getAssuredCount() { } /** - * Output only. [Output Only] Indicates how many instances are actually usable currently. + * [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) { @@ -106,7 +106,7 @@ public AllocationSpecificSKUReservation setCount(java.lang.Long count) { } /** - * Output only. [Output Only] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. * @return value or {@code null} for none */ public java.lang.Long getInUseCount() { @@ -114,7 +114,7 @@ public java.lang.Long getInUseCount() { } /** - * Output only. [Output Only] Indicates how many instances are in use. + * [Output Only] Indicates how many instances are in use. * @param inUseCount inUseCount or {@code null} for none */ public AllocationSpecificSKUReservation setInUseCount(java.lang.Long inUseCount) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java index 35d4504dab6..cbd43c65f04 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDisk.java @@ -30,8 +30,7 @@ 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. + * [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 @@ -117,9 +116,8 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -147,25 +145,25 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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. + * [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List licenses; /** - * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is - * not allowed to be detached from the instance, or to be used as the source of the snapshot - * creation, and the image creation. The instance with at least one locked attached disk is not - * allow to be used as source of machine image creation, instant snapshot creation, and not - * allowed to be deleted with --keep-disk parameter set to true for locked disks. + * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed + * to be detached from the instance, or to be used as the source of the snapshot creation, and the + * image creation. The instance with at least one locked attached disk is not allow to be used as + * source of machine image creation, instant snapshot creation, and not allowed to be deleted with + * --keep-disk parameter set to true for locked disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -180,16 +178,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { 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. + * 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 + * [Output Only] shielded vm initial state stored on disk * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,8 +217,16 @@ public final class AttachedDisk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. + * [Output Only] A list of user provided licenses. It represents a list of URLs to the license + * resource. Unlike regular licenses, user provided licenses can be modified after the disk is + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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() { @@ -228,8 +234,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the attached disk. Valid values are ARM64 or - * X86_64. + * [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) { @@ -417,9 +422,8 @@ public AttachedDisk setGuestOsFeatures(java.util.List guestOsFea } /** - * 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. + * [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() { @@ -427,9 +431,8 @@ public java.lang.Integer getIndex() { } /** - * 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. + * [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) { @@ -486,7 +489,7 @@ public AttachedDisk setInterface(java.lang.String interface__) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -494,7 +497,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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) { @@ -503,7 +506,7 @@ public AttachedDisk setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -511,7 +514,7 @@ public java.util.List getLicenses() { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @param licenses licenses or {@code null} for none */ public AttachedDisk setLicenses(java.util.List licenses) { @@ -520,11 +523,11 @@ public AttachedDisk setLicenses(java.util.List licenses) { } /** - * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is - * not allowed to be detached from the instance, or to be used as the source of the snapshot - * creation, and the image creation. The instance with at least one locked attached disk is not - * allow to be used as source of machine image creation, instant snapshot creation, and not - * allowed to be deleted with --keep-disk parameter set to true for locked disks. + * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed + * to be detached from the instance, or to be used as the source of the snapshot creation, and the + * image creation. The instance with at least one locked attached disk is not allow to be used as + * source of machine image creation, instant snapshot creation, and not allowed to be deleted with + * --keep-disk parameter set to true for locked disks. * @return value or {@code null} for none */ public java.lang.Boolean getLocked() { @@ -532,11 +535,11 @@ public java.lang.Boolean getLocked() { } /** - * Output only. [Output Only] Whether to indicate the attached disk is locked. The locked disk is - * not allowed to be detached from the instance, or to be used as the source of the snapshot - * creation, and the image creation. The instance with at least one locked attached disk is not - * allow to be used as source of machine image creation, instant snapshot creation, and not - * allowed to be deleted with --keep-disk parameter set to true for locked disks. + * [Output Only] Whether to indicate the attached disk is locked. The locked disk is not allowed + * to be detached from the instance, or to be used as the source of the snapshot creation, and the + * image creation. The instance with at least one locked attached disk is not allow to be used as + * source of machine image creation, instant snapshot creation, and not allowed to be deleted with + * --keep-disk parameter set to true for locked disks. * @param locked locked or {@code null} for none */ public AttachedDisk setLocked(java.lang.Boolean locked) { @@ -564,9 +567,9 @@ public AttachedDisk setMode(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. + * 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() { @@ -574,9 +577,9 @@ public java.lang.String getSavedState() { } /** - * 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. + * 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) { @@ -585,7 +588,7 @@ public AttachedDisk setSavedState(java.lang.String savedState) { } /** - * Output only. [Output Only] shielded vm initial state stored on disk + * [Output Only] shielded vm initial state stored on disk * @return value or {@code null} for none */ public InitialStateConfig getShieldedInstanceInitialState() { @@ -593,7 +596,7 @@ public InitialStateConfig getShieldedInstanceInitialState() { } /** - * Output only. [Output Only] shielded vm initial state stored on disk + * [Output Only] shielded vm initial state stored on disk * @param shieldedInstanceInitialState shieldedInstanceInitialState or {@code null} for none */ public AttachedDisk setShieldedInstanceInitialState(InitialStateConfig shieldedInstanceInitialState) { @@ -653,6 +656,27 @@ public AttachedDisk setType(java.lang.String type) { return this; } + /** + * [Output Only] A list of user provided licenses. It represents a list of URLs to the license + * resource. Unlike regular licenses, user provided licenses can be modified after the disk is + * created. + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * [Output Only] A list of user provided licenses. It represents a list of URLs to the license + * resource. Unlike regular licenses, user provided licenses can be modified after the disk is + * created. + * @param userLicenses userLicenses or {@code null} for none + */ + public AttachedDisk setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public AttachedDisk set(String fieldName, Object value) { return (AttachedDisk) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index 9a47f765c61..0b7a73a71eb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -163,11 +163,9 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -567,11 +565,9 @@ public AttachedDiskInitializeParams setReplicaZones(java.util.List getResourceManagerTags() { @@ -579,11 +575,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public AttachedDiskInitializeParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java index 43d862b13ea..d57466ad937 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Autoscaler.java @@ -53,7 +53,7 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private AutoscalingPolicy autoscalingPolicy; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,15 +67,14 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,25 +92,25 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { 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. + * [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). + * [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. + * [Output Only] Status information of existing scaling schedules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,8 +155,8 @@ public final class Autoscaler extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). + * [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 @@ -189,7 +188,7 @@ public Autoscaler setAutoscalingPolicy(AutoscalingPolicy autoscalingPolicy) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -197,7 +196,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Autoscaler setCreationTimestamp(java.lang.String creationTimestamp) { @@ -223,8 +222,7 @@ public Autoscaler setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -232,8 +230,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -242,7 +239,7 @@ public Autoscaler setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -250,7 +247,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers. + * [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) { @@ -284,10 +281,10 @@ public Autoscaler setName(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. + * [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() { @@ -295,10 +292,10 @@ public java.lang.Integer getRecommendedSize() { } /** - * 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. + * [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) { @@ -307,8 +304,8 @@ public Autoscaler setRecommendedSize(java.lang.Integer recommendedSize) { } /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). + * [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() { @@ -316,8 +313,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers - * living in regional scope). + * [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) { @@ -326,7 +323,7 @@ public Autoscaler setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Status information of existing scaling schedules. + * [Output Only] Status information of existing scaling schedules. * @return value or {@code null} for none */ public java.util.Map getScalingScheduleStatus() { @@ -334,7 +331,7 @@ public java.util.Map getScalingScheduleStatus() { } /** - * Output only. [Output Only] Status information of existing scaling schedules. + * [Output Only] Status information of existing scaling schedules. * @param scalingScheduleStatus scalingScheduleStatus or {@code null} for none */ public Autoscaler setScalingScheduleStatus(java.util.Map scalingScheduleStatus) { @@ -431,8 +428,8 @@ public Autoscaler setTarget(java.lang.String target) { } /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). + * [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() { @@ -440,8 +437,8 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers - * living in zonal scope). + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java index 0b34b95a635..579ee9e1a4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerAggregatedList.java @@ -44,8 +44,8 @@ public final class AutoscalerAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for - * aggregated lists of autoscalers. + * [Output Only] Type of resource. Alwayscompute#autoscalerAggregatedList for aggregated lists of + * autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,15 +62,14 @@ 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,8 +117,8 @@ public AutoscalerAggregatedList setItems(java.util.Map getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public AutoscalerAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java index 3fe3fa8efb5..a53c5719b71 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/AutoscalerList.java @@ -50,8 +50,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. + * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class AutoscalerList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public AutoscalerList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. + * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#autoscalerList for lists of - * autoscalers. + * [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) { @@ -158,7 +155,7 @@ public AutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 AutoscalerList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java index 530e78865ef..b40ba7c0d02 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Backend.java @@ -189,13 +189,6 @@ public final class Backend extends com.google.api.client.json.GenericJson { @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 @@ -582,23 +575,6 @@ public Backend setMaxUtilization(java.lang.Float 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.java deleted file mode 100644 index b296411823a..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBackendOrchestrationInfo.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.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/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java index 75e8b9b836e..2c56d989ea9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucket.java @@ -99,7 +99,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. Type of the resource. + * Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -135,9 +135,9 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson 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. + * [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 @@ -151,7 +151,7 @@ public final class BackendBucket extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] List of resources referencing that backend bucket. + * [Output Only] List of resources referencing that backend bucket. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -317,7 +317,7 @@ public BackendBucket setId(java.math.BigInteger id) { } /** - * Output only. Type of the resource. + * Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -325,7 +325,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of the resource. + * Type of the resource. * @param kind kind or {@code null} for none */ public BackendBucket setKind(java.lang.String kind) { @@ -401,9 +401,9 @@ public BackendBucket setParams(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. + * [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() { @@ -411,9 +411,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -439,7 +439,7 @@ public BackendBucket setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] List of resources referencing that backend bucket. + * [Output Only] List of resources referencing that backend bucket. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -447,7 +447,7 @@ public java.util.List getUsedBy() { } /** - * Output only. [Output Only] List of resources referencing that backend bucket. + * [Output Only] List of resources referencing that backend bucket. * @param usedBy usedBy or {@code null} for none */ public BackendBucket setUsedBy(java.util.List usedBy) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java index f4416b7bc94..8333e93f482 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class BackendBucketAggregatedList extends com.google.api.client.jso 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 @@ -109,7 +109,7 @@ public BackendBucketAggregatedList setItems(java.util.Map items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public BackendBucketList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public BackendBucketList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 BackendBucketList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java index ee9f13e6fba..02ce2377248 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketListUsable.java @@ -50,8 +50,8 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. + * [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 @@ -68,7 +68,7 @@ public final class BackendBucketListUsable extends com.google.api.client.json.Ge 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 @@ -116,8 +116,8 @@ public BackendBucketListUsable setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendBucketList for lists of - * usable backend buckets. + * [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) { @@ -158,7 +158,7 @@ public BackendBucketListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 BackendBucketListUsable setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java index e7045e0c2e3..da75c481ccb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendBucketUsedBy.java @@ -30,14 +30,14 @@ public final class BackendBucketUsedBy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * [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. + * [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. * @return value or {@code null} for none */ public java.lang.String getReference() { @@ -45,7 +45,7 @@ public java.lang.String getReference() { } /** - * Output only. [Output Only] Server-defined URL for UrlMaps referencing that BackendBucket. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java index 7f13e2409b8..729581ff67b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -127,7 +127,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private ConsistentHashLoadBalancerSettings consistentHash; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,8 +331,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private java.lang.String ipAddressSelectionPolicy; /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. + * [Output Only] Type of resource. Always compute#backendService for backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -461,13 +460,6 @@ public final class BackendService extends com.google.api.client.json.GenericJson @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 @@ -542,9 +534,9 @@ public final class BackendService extends com.google.api.client.json.GenericJson 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. + * [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 @@ -647,7 +639,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson private BackendServiceTlsSettings tlsSettings; /** - * Output only. [Output Only] List of resources referencing given backend service. + * [Output Only] List of resources referencing given backend service. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -834,7 +826,7 @@ public BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consi } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -842,7 +834,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public BackendService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -1331,8 +1323,7 @@ public BackendService setIpAddressSelectionPolicy(java.lang.String ipAddressSele } /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. + * [Output Only] Type of resource. Always compute#backendService for backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -1340,8 +1331,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#backendService for backend - * services. + * [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) { @@ -1622,23 +1612,6 @@ public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetwork 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 @@ -1801,9 +1774,9 @@ public BackendService setProtocol(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. + * [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() { @@ -1811,9 +1784,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -2044,7 +2017,7 @@ public BackendService setTlsSettings(BackendServiceTlsSettings tlsSettings) { } /** - * Output only. [Output Only] List of resources referencing given backend service. + * [Output Only] List of resources referencing given backend service. * @return value or {@code null} for none */ public java.util.List getUsedBy() { @@ -2052,7 +2025,7 @@ public java.util.List getUsedBy() { } /** - * Output only. [Output Only] List of resources referencing given backend service. + * [Output Only] List of resources referencing given backend service. * @param usedBy usedBy or {@code null} for none */ public BackendService setUsedBy(java.util.List usedBy) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java index 313198d23b6..e0afada0240 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceAggregatedList.java @@ -44,7 +44,7 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class BackendServiceAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public BackendServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public BackendServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java index cf815c0675f..0cedf515d3b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwarding.java @@ -29,13 +29,6 @@ @SuppressWarnings("javadoc") public final class BackendServiceDynamicForwarding extends com.google.api.client.json.GenericJson { - /** - * Dynamic Forwarding Proxy configuration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private BackendServiceDynamicForwardingForwardProxy forwardProxy; - /** * IP:PORT based dynamic forwarding configuration. * The value may be {@code null}. @@ -43,23 +36,6 @@ public final class BackendServiceDynamicForwarding extends com.google.api.client @com.google.api.client.util.Key private BackendServiceDynamicForwardingIpPortSelection ipPortSelection; - /** - * Dynamic Forwarding Proxy configuration. - * @return value or {@code null} for none - */ - public BackendServiceDynamicForwardingForwardProxy getForwardProxy() { - return forwardProxy; - } - - /** - * Dynamic Forwarding Proxy configuration. - * @param forwardProxy forwardProxy or {@code null} for none - */ - public BackendServiceDynamicForwarding setForwardProxy(BackendServiceDynamicForwardingForwardProxy forwardProxy) { - this.forwardProxy = forwardProxy; - return this; - } - /** * IP:PORT based dynamic forwarding configuration. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.java deleted file mode 100644 index 030061819d7..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceDynamicForwardingForwardProxy.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.model; - -/** - * Defines Dynamic Forwarding Proxy configuration. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class BackendServiceDynamicForwardingForwardProxy extends com.google.api.client.json.GenericJson { - - /** - * A boolean flag enabling dynamic forwarding proxy. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean enabled; - - /** - * Determines the dynamic forwarding proxy mode. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String proxyMode; - - /** - * A boolean flag enabling dynamic forwarding proxy. - * @return value or {@code null} for none - */ - public java.lang.Boolean getEnabled() { - return enabled; - } - - /** - * A boolean flag enabling dynamic forwarding proxy. - * @param enabled enabled or {@code null} for none - */ - public BackendServiceDynamicForwardingForwardProxy setEnabled(java.lang.Boolean enabled) { - this.enabled = enabled; - return this; - } - - /** - * Determines the dynamic forwarding proxy mode. - * @return value or {@code null} for none - */ - public java.lang.String getProxyMode() { - return proxyMode; - } - - /** - * Determines the dynamic forwarding proxy mode. - * @param proxyMode proxyMode or {@code null} for none - */ - public BackendServiceDynamicForwardingForwardProxy setProxyMode(java.lang.String proxyMode) { - this.proxyMode = proxyMode; - return this; - } - - @Override - public BackendServiceDynamicForwardingForwardProxy set(String fieldName, Object value) { - return (BackendServiceDynamicForwardingForwardProxy) super.set(fieldName, value); - } - - @Override - public BackendServiceDynamicForwardingForwardProxy clone() { - return (BackendServiceDynamicForwardingForwardProxy) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java index 6d41f11341d..efdb6b23e77 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceFailoverPolicy.java @@ -38,7 +38,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.json.GenericJson { /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * This can be set to true only if the protocol isTCP. * * The default is false. * The value may be {@code null}. @@ -73,7 +73,7 @@ public final class BackendServiceFailoverPolicy extends com.google.api.client.js private java.lang.Float failoverRatio; /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * This can be set to true only if the protocol isTCP. * * The default is false. * @return value or {@code null} for none @@ -83,7 +83,7 @@ public java.lang.Boolean getDisableConnectionDrainOnFailover() { } /** - * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. + * This can be set to true only if the protocol isTCP. * * The default is false. * @param disableConnectionDrainOnFailover disableConnectionDrainOnFailover or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java index 2df9c4eb5fe..bc3239368af 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceGroupHealth.java @@ -45,8 +45,8 @@ public final class BackendServiceGroupHealth extends com.google.api.client.json. private java.util.List healthStatus; /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. + * [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 @@ -89,8 +89,8 @@ public BackendServiceGroupHealth setHealthStatus(java.util.List he } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. + * [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() { @@ -98,8 +98,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceGroupHealth for the - * health of backend services. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java index dd4899bf142..04c9a74f9e2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceIAP.java @@ -55,7 +55,7 @@ public final class BackendServiceIAP extends com.google.api.client.json.GenericJ private java.lang.String oauth2ClientSecret; /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * [Output Only] SHA256 hash value for the field oauth2_client_secret above. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,7 +121,7 @@ public BackendServiceIAP setOauth2ClientSecret(java.lang.String oauth2ClientSecr } /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * [Output Only] SHA256 hash value for the field oauth2_client_secret above. * @return value or {@code null} for none */ public java.lang.String getOauth2ClientSecretSha256() { @@ -129,7 +129,7 @@ public java.lang.String getOauth2ClientSecretSha256() { } /** - * Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java index a9fbe1babdc..55bacc0e85b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceList.java @@ -50,8 +50,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. + * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class BackendServiceList extends com.google.api.client.json.Generic 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 @@ -116,8 +115,7 @@ public BackendServiceList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. + * [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of backend services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#backendServiceList for lists of - * backend services. + * [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) { @@ -158,7 +155,7 @@ public BackendServiceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 BackendServiceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java index eeee3073ad5..68b53b5decb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceListUsable.java @@ -50,8 +50,8 @@ public final class BackendServiceListUsable extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. + * [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 @@ -68,7 +68,7 @@ public final class BackendServiceListUsable 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 @@ -116,8 +116,8 @@ public BackendServiceListUsable setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableBackendServiceList for lists - * of usable backend services. + * [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) { @@ -158,7 +158,7 @@ public BackendServiceListUsable setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 BackendServiceListUsable setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceOrchestrationInfo.java deleted file mode 100644 index a3e10b1d879..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java index d1f47ab4d6d..cebbcab9361 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java @@ -30,16 +30,16 @@ 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. + * [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. + * [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() { @@ -47,8 +47,8 @@ public java.lang.String getReference() { } /** - * Output only. [Output Only] Server-defined URL for resources referencing given BackendService - * like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java index f4e2917b118..9c057f2e6c6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRoute.java @@ -30,42 +30,42 @@ public final class BgpRoute extends com.google.api.client.json.GenericJson { /** - * Output only. [Output only] AS-PATH for the route + * [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. + * [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 + * [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 + * [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) + * [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 + * [Output only] AS-PATH for the route * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -73,7 +73,7 @@ public java.util.List getAsPaths() { } /** - * Output only. [Output only] AS-PATH for the route + * [Output only] AS-PATH for the route * @param asPaths asPaths or {@code null} for none */ public BgpRoute setAsPaths(java.util.List asPaths) { @@ -82,7 +82,7 @@ public BgpRoute setAsPaths(java.util.List asPaths) { } /** - * Output only. [Output only] BGP communities in human-readable A:B format. + * [Output only] BGP communities in human-readable A:B format. * @return value or {@code null} for none */ public java.util.List getCommunities() { @@ -90,7 +90,7 @@ public java.util.List getCommunities() { } /** - * Output only. [Output only] BGP communities in human-readable A:B format. + * [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) { @@ -99,7 +99,7 @@ public BgpRoute setCommunities(java.util.List communities) { } /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * [Output only] Destination IP range for the route, in human-readable CIDR format * @return value or {@code null} for none */ public BgpRouteNetworkLayerReachabilityInformation getDestination() { @@ -107,7 +107,7 @@ public BgpRouteNetworkLayerReachabilityInformation getDestination() { } /** - * Output only. [Output only] Destination IP range for the route, in human-readable CIDR format + * [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) { @@ -116,7 +116,7 @@ public BgpRoute setDestination(BgpRouteNetworkLayerReachabilityInformation desti } /** - * Output only. [Output only] BGP multi-exit discriminator + * [Output only] BGP multi-exit discriminator * @return value or {@code null} for none */ public java.lang.Long getMed() { @@ -124,7 +124,7 @@ public java.lang.Long getMed() { } /** - * Output only. [Output only] BGP multi-exit discriminator + * [Output only] BGP multi-exit discriminator * @param med med or {@code null} for none */ public BgpRoute setMed(java.lang.Long med) { @@ -133,7 +133,7 @@ public BgpRoute setMed(java.lang.Long med) { } /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @return value or {@code null} for none */ public java.lang.String getOrigin() { @@ -141,7 +141,7 @@ public java.lang.String getOrigin() { } /** - * Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) + * [Output only] BGP origin (EGP, IGP or INCOMPLETE) * @param origin origin or {@code null} for none */ public BgpRoute setOrigin(java.lang.String origin) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java index 34de456cbc3..da0ffd82c86 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BgpRouteAsPath.java @@ -30,30 +30,30 @@ 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. + * [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. + * [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) + * [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. + * [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() { @@ -61,7 +61,7 @@ public java.util.List getAsns() { } /** - * Output only. [Output only] ASNs in the path segment. When type is SEQUENCE, these are ordered. + * [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) { @@ -70,9 +70,9 @@ public BgpRouteAsPath setAsns(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. + * [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() { @@ -80,9 +80,9 @@ public java.util.List getAsns32() { } /** - * 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. + * [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) { @@ -91,7 +91,7 @@ public BgpRouteAsPath setAsns32(java.util.List asns32) { } /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * [Output only] Type of AS-PATH segment (SEQUENCE or SET) * @return value or {@code null} for none */ public java.lang.String getType() { @@ -99,7 +99,7 @@ public java.lang.String getType() { } /** - * Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java index 50d73f8419b..8b94819315a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertDiskResource.java @@ -30,20 +30,6 @@ @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 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/ @@ -55,40 +41,6 @@ public final class BulkInsertDiskResource extends com.google.api.client.json.Gen @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. - * @return value or {@code null} for none - */ - public SnapshotGroupParameters getSnapshotGroupParameters() { - return snapshotGroupParameters; - } - - /** - * The parameters for the snapshot group. - * @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/ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java index 00fb6aa915d..85b65abd943 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResource.java @@ -37,13 +37,6 @@ public final class BulkInsertInstanceResource extends com.google.api.client.json @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. @@ -124,23 +117,6 @@ public BulkInsertInstanceResource setCount(java.lang.Long 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java index e8d1e697aa7..aca17118fa4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BulkInsertInstanceResourcePerInstanceProperties.java @@ -38,7 +38,7 @@ public final class BulkInsertInstanceResourcePerInstanceProperties extends com.g private java.lang.String hostname; /** - * Output only. This field is only temporary. It will be removed. Do not use it. + * 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 @@ -64,7 +64,7 @@ public BulkInsertInstanceResourcePerInstanceProperties setHostname(java.lang.Str } /** - * Output only. This field is only temporary. It will be removed. Do not use it. + * 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() { @@ -72,7 +72,7 @@ public java.lang.String getName() { } /** - * Output only. This field is only temporary. It will be removed. Do not use it. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java deleted file mode 100644 index 637cb5ec264..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicy.java +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -/* - * This code 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 cachePolicy.cacheMode settings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List cacheBypassRequestHeaderNames; - - /** - * The CacheKeyPolicy for this CachePolicy. - * 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, the default - * value is 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 Duration 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. 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. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Duration 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). - * 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 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 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 cachePolicy.cacheMode settings. - * @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 cachePolicy.cacheMode settings. - * @param cacheBypassRequestHeaderNames cacheBypassRequestHeaderNames or {@code null} for none - */ - public CachePolicy setCacheBypassRequestHeaderNames(java.util.List cacheBypassRequestHeaderNames) { - this.cacheBypassRequestHeaderNames = cacheBypassRequestHeaderNames; - return this; - } - - /** - * The CacheKeyPolicy for this CachePolicy. - * @return value or {@code null} for none - */ - public CachePolicyCacheKeyPolicy getCacheKeyPolicy() { - return cacheKeyPolicy; - } - - /** - * The CacheKeyPolicy for this CachePolicy. - * @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, the default - * value is 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 route. If not specified, the default - * value is CACHE_ALL_STATIC. - * @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. 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 Duration 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 CachePolicy setClientTtl(Duration 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. 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. - * @return value or {@code null} for none - */ - public Duration 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. 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. - * @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 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). - * Infrequently accessed objects may be evicted from the cache before the defined TTL. - * @return value or {@code null} for none - */ - public Duration 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). - * Infrequently accessed objects may be evicted from the cache before the defined TTL. - * @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 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 CachePolicy 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 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. - * @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 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/beta/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyCacheKeyPolicy.java deleted file mode 100644 index 83241e3f631..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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 excluded_query_parameters or included_query_parameters, 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 a 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 - * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 excluded_query_parameters or included_query_parameters, 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 a 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 excluded_query_parameters or included_query_parameters, 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 a 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 - * included_query_parameters and excluded_query_parameters. 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 a 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 - * included_query_parameters and excluded_query_parameters. 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 a 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 included_query_parameters or excluded_query_parameters, 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 included_query_parameters or excluded_query_parameters, 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/beta/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CachePolicyNegativeCachingPolicy.java deleted file mode 100644 index 99e81ac96dd..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/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 5d94997191e..b8cecc3fbc9 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 @@ -58,7 +58,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String category; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. + * [Output Only] Commitment end time inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,15 +95,14 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List existingReservations; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#commitment for commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -147,8 +146,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String plan; /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. + * [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 @@ -168,7 +166,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List reservations; /** - * Output only. [Output Only] Status information for Commitment resource. + * [Output Only] Status information for Commitment resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,7 +181,7 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.util.List resources; /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,23 +196,23 @@ public final class Commitment extends com.google.api.client.json.GenericJson { private java.lang.String splitSourceCommitment; /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. + * [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. + * [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. + * [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -230,11 +228,10 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * 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,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, - * STORAGE_OPTIMIZED_Z3. 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. + * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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 @@ -293,7 +290,7 @@ public Commitment setCategory(java.lang.String category) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -301,7 +298,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -350,7 +347,7 @@ public Commitment setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. + * [Output Only] Commitment end time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getEndTimestamp() { @@ -358,7 +355,7 @@ public java.lang.String getEndTimestamp() { } /** - * Output only. [Output Only] Commitment end time inRFC3339 text format. + * [Output Only] Commitment end time inRFC3339 text format. * @param endTimestamp endTimestamp or {@code null} for none */ public Commitment setEndTimestamp(java.lang.String endTimestamp) { @@ -382,8 +379,7 @@ public Commitment setExistingReservations(java.util.List exist } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -391,8 +387,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -401,7 +396,7 @@ public Commitment setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. + * [Output Only] Type of the resource. Always compute#commitment for commitments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -409,7 +404,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. + * [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) { @@ -504,8 +499,7 @@ public Commitment setPlan(java.lang.String plan) { } /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. + * [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() { @@ -513,8 +507,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the commitment and committed resources are - * located. + * [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) { @@ -552,7 +545,7 @@ public Commitment setReservations(java.util.List reservations) { } /** - * Output only. [Output Only] Status information for Commitment resource. + * [Output Only] Status information for Commitment resource. * @return value or {@code null} for none */ public CommitmentResourceStatus getResourceStatus() { @@ -560,7 +553,7 @@ public CommitmentResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for Commitment resource. + * [Output Only] Status information for Commitment resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Commitment setResourceStatus(CommitmentResourceStatus resourceStatus) { @@ -588,7 +581,7 @@ public Commitment setResources(java.util.List resources) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -596,7 +589,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Commitment setSelfLink(java.lang.String selfLink) { @@ -624,7 +617,7 @@ public Commitment setSplitSourceCommitment(java.lang.String splitSourceCommitmen } /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. + * [Output Only] Commitment start time inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getStartTimestamp() { @@ -632,7 +625,7 @@ public java.lang.String getStartTimestamp() { } /** - * Output only. [Output Only] Commitment start time inRFC3339 text format. + * [Output Only] Commitment start time inRFC3339 text format. * @param startTimestamp startTimestamp or {@code null} for none */ public Commitment setStartTimestamp(java.lang.String startTimestamp) { @@ -641,9 +634,9 @@ public Commitment setStartTimestamp(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. + * [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() { @@ -651,9 +644,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -662,7 +655,7 @@ public Commitment setStatus(java.lang.String status) { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -670,7 +663,7 @@ public java.lang.String getStatusMessage() { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [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) { @@ -688,11 +681,10 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * 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,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, - * STORAGE_OPTIMIZED_Z3. 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. + * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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() { @@ -709,11 +701,10 @@ public java.lang.String getType() { * 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,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, - * STORAGE_OPTIMIZED_Z3. 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. + * MEMORY_OPTIMIZED,MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4,STORAGE_OPTIMIZED_Z3. 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/CommitmentAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java index f2e7e93ec6f..ebea0717115 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentAggregatedList.java @@ -44,8 +44,8 @@ public final class CommitmentAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for - * aggregated lists of commitments. + * [Output Only] Type of resource. Alwayscompute#commitmentAggregatedList for aggregated lists of + * commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class CommitmentAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public CommitmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CommitmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java index 1b42ceec78e..888c1afdb74 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentList.java @@ -50,8 +50,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. + * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class CommitmentList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public CommitmentList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. + * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of - * commitments. + * [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) { @@ -158,7 +155,7 @@ public CommitmentList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 CommitmentList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java index f2ef349ba88..f044c949ee2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CommitmentResourceStatus.java @@ -30,18 +30,18 @@ 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. + * [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. + * [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() { @@ -49,9 +49,9 @@ public java.lang.String getCustomTermEligibilityEndTimestamp() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java index 54846cd5537..91e7eed3e7d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheck.java @@ -34,7 +34,7 @@ public final class CompositeHealthCheck extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,16 +78,15 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener private java.util.List healthSources; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -105,30 +104,30 @@ public final class CompositeHealthCheck extends com.google.api.client.json.Gener 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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -136,7 +135,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CompositeHealthCheck setCreationTimestamp(java.lang.String creationTimestamp) { @@ -267,8 +266,7 @@ public CompositeHealthCheck setHealthSources(java.util.List he } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -276,8 +274,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -286,8 +283,8 @@ public CompositeHealthCheck setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -295,8 +292,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [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) { @@ -330,9 +327,9 @@ public CompositeHealthCheck setName(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. + * [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() { @@ -340,9 +337,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -351,7 +348,7 @@ public CompositeHealthCheck setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -359,7 +356,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { @@ -368,7 +365,7 @@ public CompositeHealthCheck setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -376,7 +373,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java index 88a96d851a4..82598e5f984 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckAggregatedList.java @@ -44,7 +44,7 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class CompositeHealthCheckAggregatedList extends com.google.api.cli 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public CompositeHealthCheckAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public CompositeHealthCheckAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java index d0904ef3566..c811ce5d44d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CompositeHealthCheckList.java @@ -50,8 +50,8 @@ public final class CompositeHealthCheckList extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public CompositeHealthCheckList setItems(java.util.List it } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health + * checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for - * composite health checks. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java index 02b1ed22200..46323370db3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetwork.java @@ -33,7 +33,7 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,16 +47,15 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +73,14 @@ public final class CrossSiteNetwork extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -89,7 +88,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public CrossSiteNetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -115,8 +114,8 @@ public CrossSiteNetwork setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -124,8 +123,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -134,8 +133,7 @@ public CrossSiteNetwork setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -143,8 +141,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [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) { @@ -178,7 +175,7 @@ public CrossSiteNetwork setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -186,7 +183,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public CrossSiteNetwork setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java index 24e29d0450f..110bd4bdc2d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/CrossSiteNetworkList.java @@ -56,8 +56,7 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -81,8 +80,7 @@ public final class CrossSiteNetworkList extends com.google.api.client.json.Gener private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,8 +143,7 @@ public CrossSiteNetworkList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -154,8 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site - * networks. + * [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) { @@ -204,8 +200,7 @@ public CrossSiteNetworkList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public CrossSiteNetworkList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java index 4e9055fce8e..c032f57408a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Disk.java @@ -72,14 +72,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private DiskAsyncReplication asyncPrimaryDisk; /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,8 +141,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List guestOsFeatures; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -157,7 +156,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String interface__; /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * [Output Only] Type of the resource. Always compute#disk for disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -184,14 +183,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * [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. + * [Output Only] Last detach timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -220,11 +219,11 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String locationHint; /** - * Output only. [Output Only] The field indicates if the disk is created from a locked source - * image. Attachment of a disk created from a locked source image will cause the following - * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other - * instance - Disk detachment. And the disk can only be deleted when the instance is deleted - * - Creation of images or snapshots - Disk cloning + * [Output Only] The field indicates if the disk is created from a locked source image. Attachment + * of a disk created from a locked source image will cause the following operations to become + * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk + * detachment. And the disk can only be deleted when the instance is deleted - Creation of + * images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -297,9 +296,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -321,7 +320,7 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.util.List resourcePolicies; /** - * Output only. [Output Only] Status information for the disk resource. + * [Output Only] Status information for the disk resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -335,14 +334,14 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -361,16 +360,16 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.Long sizeGb; /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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. + * [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 @@ -390,10 +389,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -435,10 +434,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -456,8 +455,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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 + * [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. @@ -485,10 +484,10 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -506,9 +505,9 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -542,7 +541,18 @@ public final class Disk extends com.google.api.client.json.GenericJson { private java.lang.String type; /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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}. */ @@ -550,8 +560,8 @@ public final class Disk extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -621,7 +631,7 @@ public Disk setAsyncPrimaryDisk(DiskAsyncReplication asyncPrimaryDisk) { } /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * [Output Only] A list of disks this disk is asynchronously replicated to. * @return value or {@code null} for none */ public java.util.Map getAsyncSecondaryDisks() { @@ -629,7 +639,7 @@ public java.util.Map getAsyncSecondaryDisks() } /** - * Output only. [Output Only] A list of disks this disk is asynchronously replicated to. + * [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) { @@ -638,7 +648,7 @@ public Disk setAsyncSecondaryDisks(java.util.Map guestOsFeatures) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -789,8 +798,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -818,7 +826,7 @@ public Disk setInterface(java.lang.String interface__) { } /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * [Output Only] Type of the resource. Always compute#disk for disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -826,7 +834,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#disk for disks. + * [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) { @@ -921,7 +929,7 @@ public Disk setLabels(java.util.Map labels) { } /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * [Output Only] Last attach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastAttachTimestamp() { @@ -929,7 +937,7 @@ public java.lang.String getLastAttachTimestamp() { } /** - * Output only. [Output Only] Last attach timestamp inRFC3339 text format. + * [Output Only] Last attach timestamp inRFC3339 text format. * @param lastAttachTimestamp lastAttachTimestamp or {@code null} for none */ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { @@ -938,7 +946,7 @@ public Disk setLastAttachTimestamp(java.lang.String lastAttachTimestamp) { } /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * [Output Only] Last detach timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastDetachTimestamp() { @@ -946,7 +954,7 @@ public java.lang.String getLastDetachTimestamp() { } /** - * Output only. [Output Only] Last detach timestamp inRFC3339 text format. + * [Output Only] Last detach timestamp inRFC3339 text format. * @param lastDetachTimestamp lastDetachTimestamp or {@code null} for none */ public Disk setLastDetachTimestamp(java.lang.String lastDetachTimestamp) { @@ -1008,11 +1016,11 @@ public Disk setLocationHint(java.lang.String locationHint) { } /** - * Output only. [Output Only] The field indicates if the disk is created from a locked source - * image. Attachment of a disk created from a locked source image will cause the following - * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other - * instance - Disk detachment. And the disk can only be deleted when the instance is deleted - * - Creation of images or snapshots - Disk cloning + * [Output Only] The field indicates if the disk is created from a locked source image. Attachment + * of a disk created from a locked source image will cause the following operations to become + * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk + * detachment. And the disk can only be deleted when the instance is deleted - Creation of + * images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1026,11 +1034,11 @@ public java.lang.Boolean getLocked() { } /** - * Output only. [Output Only] The field indicates if the disk is created from a locked source - * image. Attachment of a disk created from a locked source image will cause the following - * operations to become irreversibly prohibited: - R/W or R/O disk attachment to any other - * instance - Disk detachment. And the disk can only be deleted when the instance is deleted - * - Creation of images or snapshots - Disk cloning + * [Output Only] The field indicates if the disk is created from a locked source image. Attachment + * of a disk created from a locked source image will cause the following operations to become + * irreversibly prohibited: - R/W or R/O disk attachment to any other instance - Disk + * detachment. And the disk can only be deleted when the instance is deleted - Creation of + * images or snapshots - Disk cloning * * Furthermore, the instance with at least one disk with locked flag set to true will be * prohibited from performing the operations below: - Further attachment of secondary @@ -1186,9 +1194,9 @@ public Disk setProvisionedThroughput(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. + * [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() { @@ -1196,9 +1204,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -1243,7 +1251,7 @@ public Disk setResourcePolicies(java.util.List resourcePolicie } /** - * Output only. [Output Only] Status information for the disk resource. + * [Output Only] Status information for the disk resource. * @return value or {@code null} for none */ public DiskResourceStatus getResourceStatus() { @@ -1251,7 +1259,7 @@ public DiskResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for the disk resource. + * [Output Only] Status information for the disk resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Disk setResourceStatus(DiskResourceStatus resourceStatus) { @@ -1277,7 +1285,7 @@ public Disk setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1285,7 +1293,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1294,7 +1302,7 @@ public Disk setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1302,7 +1310,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -1338,8 +1346,8 @@ public Disk setSizeGb(java.lang.Long sizeGb) { } /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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() { @@ -1347,8 +1355,8 @@ public java.lang.String getSourceConsistencyGroupPolicy() { } /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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) { @@ -1357,8 +1365,8 @@ public Disk setSourceConsistencyGroupPolicy(java.lang.String sourceConsistencyGr } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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() { @@ -1366,8 +1374,8 @@ public java.lang.String getSourceConsistencyGroupPolicyId() { } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk that was - * created using a consistency group. + * [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) { @@ -1405,10 +1413,10 @@ public Disk setSourceDisk(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. + * [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() { @@ -1416,10 +1424,10 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -1504,10 +1512,10 @@ public Disk setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncrypt } /** - * 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. + * [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() { @@ -1515,10 +1523,10 @@ public java.lang.String getSourceImageId() { } /** - * 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. + * [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) { @@ -1552,8 +1560,8 @@ public Disk setSourceInstantSnapshot(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 + * [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. @@ -1564,8 +1572,8 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * 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 + * [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. @@ -1619,10 +1627,10 @@ public Disk setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshotE } /** - * 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. + * [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() { @@ -1630,10 +1638,10 @@ public java.lang.String getSourceSnapshotId() { } /** - * 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. + * [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) { @@ -1667,9 +1675,9 @@ public Disk setSourceStorageObject(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. + * [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() { @@ -1677,9 +1685,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -1751,7 +1759,32 @@ public Disk setType(java.lang.String type) { } /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @param userLicenses userLicenses or {@code null} for none + */ + public Disk setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + + /** + * [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 */ @@ -1760,7 +1793,7 @@ public java.util.List getUsers() { } /** - * Output only. [Output Only] Links to the users of the disk (attached instances) in + * [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 */ @@ -1770,8 +1803,8 @@ public Disk setUsers(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. + * [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() { @@ -1779,8 +1812,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java index a396284404a..b61dce2084d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAggregatedList.java @@ -44,8 +44,8 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. + * [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 @@ -62,14 +62,14 @@ public final class DiskAggregatedList extends com.google.api.client.json.Generic 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public DiskAggregatedList setItems(java.util.Map items) } /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. + * [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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskAggregatedList for aggregated - * lists of persistent disks. + * [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) { @@ -159,7 +159,7 @@ public DiskAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -167,7 +167,7 @@ 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 DiskAggregatedList setSelfLink(java.lang.String selfLink) { @@ -176,7 +176,7 @@ public DiskAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java index e31cddc0dd0..c8fb4fbcba9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskAsyncReplication.java @@ -30,16 +30,16 @@ 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. + * [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. + * [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 @@ -56,19 +56,19 @@ public final class DiskAsyncReplication extends com.google.api.client.json.Gener 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. + * [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. + * [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() { @@ -76,8 +76,8 @@ public java.lang.String getConsistencyGroupPolicy() { } /** - * Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. + * [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) { @@ -86,8 +86,8 @@ public DiskAsyncReplication setConsistencyGroupPolicy(java.lang.String consisten } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. + * [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() { @@ -95,8 +95,8 @@ public java.lang.String getConsistencyGroupPolicyId() { } /** - * Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on - * the disk as a member of a group. + * [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) { @@ -128,11 +128,11 @@ public DiskAsyncReplication setDisk(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. + * [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() { @@ -140,11 +140,11 @@ public java.lang.String getDiskId() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java index af6eab69258..340802d6056 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskList.java @@ -50,7 +50,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * [Output Only] Type of resource. Always compute#diskList for lists of disks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class DiskList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public DiskList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * [Output Only] Type of resource. Always compute#diskList for lists of disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#diskList for lists of disks. + * [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) { @@ -155,7 +155,7 @@ public DiskList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 DiskList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java index ca12f2eb573..1ffac25638f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskParams.java @@ -30,22 +30,18 @@ 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -53,11 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public DiskParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java index c5420ed501b..9f59a1aaff3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskType.java @@ -79,7 +79,7 @@ public final class DiskType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * [Output Only] Type of the resource. Always compute#diskType for disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,7 +209,7 @@ public DiskType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * [Output Only] Type of the resource. Always compute#diskType for disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -217,7 +217,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#diskType for disk types. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java index cf1cb69068d..c1ded43bc49 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. + * [Output Only] Type of resource. Alwayscompute#diskTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class DiskTypeAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public DiskTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public DiskTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java index c14af4a2a50..514356f0f16 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DiskTypeList.java @@ -50,7 +50,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * [Output Only] Type of resource. Always compute#diskTypeList for disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class DiskTypeList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public DiskTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * [Output Only] Type of resource. Always compute#diskTypeList for disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#diskTypeList for disk types. + * [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) { @@ -155,7 +155,7 @@ public DiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 DiskTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java index 5559090d792..b9ce02ac6f5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DistributionPolicy.java @@ -38,11 +38,7 @@ public final class DistributionPolicy extends com.google.api.client.json.Generic 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. + * Zones where the regional managed instance group will create and manage its instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,11 +64,7 @@ public DistributionPolicy setTargetShape(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. + * Zones where the regional managed instance group will create and manage its instances. * @return value or {@code null} for none */ public java.util.List getZones() { @@ -80,11 +72,7 @@ public java.util.List getZones() { } /** - * 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. + * Zones where the regional managed instance group will create and manage its instances. * @param zones zones or {@code null} for none */ public DistributionPolicy setZones(java.util.List zones) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java index 5e63c8f113a..b29773cfbb2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExchangedPeeringRoutesList.java @@ -50,8 +50,8 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json } /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. + * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering + * routes lists. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class ExchangedPeeringRoutesList extends com.google.api.client.json 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 @@ -116,8 +116,8 @@ public ExchangedPeeringRoutesList setItems(java.util.List } /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. + * [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for exchanged peering + * routes lists. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#exchangedPeeringRoutesList for - * exchanged peering routes lists. + * [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) { @@ -158,7 +158,7 @@ public ExchangedPeeringRoutesList setNextPageToken(java.lang.String nextPageToke } /** - * 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() { @@ -166,7 +166,7 @@ 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 ExchangedPeeringRoutesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java index 268e207e284..8e6b9b4a0b1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGateway.java @@ -40,7 +40,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,8 +54,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -73,8 +72,7 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.util.List interfaces; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for - * externalVpnGateways. + * [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,14 +110,6 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic @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}. @@ -128,14 +118,14 @@ public final class ExternalVpnGateway extends com.google.api.client.json.Generic private java.lang.String redundancyType; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -143,7 +133,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ExternalVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -169,8 +159,7 @@ public ExternalVpnGateway setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -178,8 +167,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -213,8 +201,7 @@ public ExternalVpnGateway setInterfaces(java.util.List items) } /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @return value or {@code null} for none */ @@ -146,7 +146,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of + * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of * externalVpnGateways. * @param kind kind or {@code null} for none */ @@ -179,7 +179,7 @@ public ExternalVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -187,7 +187,7 @@ 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 ExternalVpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ExternalVpnGatewayParams.java deleted file mode 100644 index ae9a0a6eea6..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/Firewall.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Firewall.java index 9f5ad347f61..7a9db9c8f4f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Firewall.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Firewall.java @@ -47,7 +47,7 @@ public final class Firewall extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,15 +109,14 @@ public final class Firewall extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableLogging; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#firewall for firewall rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -265,7 +264,7 @@ public Firewall setAllowed(java.util.List allowed) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -273,7 +272,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Firewall setCreationTimestamp(java.lang.String creationTimestamp) { @@ -398,8 +397,7 @@ public Firewall setEnableLogging(java.lang.Boolean enableLogging) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -407,8 +405,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -417,7 +414,7 @@ public Firewall setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * [Output Only] Type of the resource. Always compute#firewall for firewall rules. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -425,7 +422,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#firewall for firewall rules. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java index c80b819385c..96b60b0b731 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallList.java @@ -50,8 +50,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. + * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class FirewallList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public FirewallList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. + * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#firewallList for lists of - * firewalls. + * [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) { @@ -158,7 +155,7 @@ public FirewallList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 FirewallList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java index 3f0fd7877bd..609dcacbde5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class FirewallPoliciesListAssociationsResponse extends com.google.a private java.util.List associations; /** - * Output only. [Output Only] Type of firewallPolicy associations. + * [Output Only] Type of firewallPolicy associations. * Alwayscompute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. * The value may be {@code null}. */ @@ -62,7 +62,7 @@ public FirewallPoliciesListAssociationsResponse setAssociations(java.util.List associations; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,8 +85,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies + * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,22 +107,16 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.util.List packetMirroringRules; /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. + * [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; /** - * Indicates the source of this Firewall Policy. This field is optional on creation and defaults - * to USER_DEFINED. - * - * The USER_DEFINED value indicates a regular firewall policy. - * - * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This - * SYSTEM value is reserved for internal services and cannot be set by users during policy - * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or + * SYSTEM if created by managed services like GKE. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,17 +132,17 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson 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. + * [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. + * [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 @@ -172,7 +165,7 @@ public final class FirewallPolicy extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -209,7 +202,7 @@ public FirewallPolicy setAssociations(java.util.List } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -217,7 +210,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public FirewallPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -360,8 +353,7 @@ public FirewallPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies + * [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -369,8 +361,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall - * policies + * [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) { @@ -415,8 +406,8 @@ public FirewallPolicy setPacketMirroringRules(java.util.List } /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. + * [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() { @@ -424,8 +415,8 @@ public java.lang.String getParent() { } /** - * Output only. [Output Only] The parent of the firewall policy. This field is not applicable to - * network firewall policies. + * [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) { @@ -434,14 +425,8 @@ public FirewallPolicy setParent(java.lang.String parent) { } /** - * Indicates the source of this Firewall Policy. This field is optional on creation and defaults - * to USER_DEFINED. - * - * The USER_DEFINED value indicates a regular firewall policy. - * - * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This - * SYSTEM value is reserved for internal services and cannot be set by users during policy - * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or + * SYSTEM if created by managed services like GKE. * @return value or {@code null} for none */ public java.lang.String getPolicySource() { @@ -449,14 +434,8 @@ public java.lang.String getPolicySource() { } /** - * Indicates the source of this Firewall Policy. This field is optional on creation and defaults - * to USER_DEFINED. - * - * The USER_DEFINED value indicates a regular firewall policy. - * - * The SYSTEM value indicates a system-level policy managed by an internal service like GKE. This - * SYSTEM value is reserved for internal services and cannot be set by users during policy - * creation. Policies with a SYSTEM source cannot be modified or deleted by users. + * [Output Only] Source of this Firewall Policy. USER_DEFINED if created by a Cloud user, or + * SYSTEM if created by managed services like GKE. * @param policySource policySource or {@code null} for none */ public FirewallPolicy setPolicySource(java.lang.String policySource) { @@ -486,9 +465,9 @@ public FirewallPolicy setPolicyType(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. + * [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() { @@ -496,9 +475,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -507,8 +486,8 @@ public FirewallPolicy setRegion(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. + * [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() { @@ -516,8 +495,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy - * can not exceed a set number of tuples. + * [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) { @@ -564,7 +543,7 @@ public FirewallPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -572,7 +551,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java index da4f0aa51e9..ed43590239d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyAssociation.java @@ -45,7 +45,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.String displayName; /** - * Output only. [Output Only] The firewall policy ID of the association. + * [Output Only] The firewall policy ID of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class FirewallPolicyAssociation extends com.google.api.client.json. private java.lang.Integer priority; /** - * Output only. [Output Only] The short name of the firewall policy of the association. + * [Output Only] The short name of the firewall policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -113,7 +113,7 @@ public FirewallPolicyAssociation setDisplayName(java.lang.String displayName) { } /** - * Output only. [Output Only] The firewall policy ID of the association. + * [Output Only] The firewall policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicyId() { @@ -121,7 +121,7 @@ public java.lang.String getFirewallPolicyId() { } /** - * Output only. [Output Only] The firewall policy ID of the association. + * [Output Only] The firewall policy ID of the association. * @param firewallPolicyId firewallPolicyId or {@code null} for none */ public FirewallPolicyAssociation setFirewallPolicyId(java.lang.String firewallPolicyId) { @@ -172,7 +172,7 @@ public FirewallPolicyAssociation setPriority(java.lang.Integer priority) { } /** - * Output only. [Output Only] The short name of the firewall policy of the association. + * [Output Only] The short name of the firewall policy of the association. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -180,7 +180,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the firewall policy of the association. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java index 5ced755c298..5f6cb2a7687 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyList.java @@ -50,8 +50,7 @@ public final class FirewallPolicyList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies + * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,8 +108,7 @@ public FirewallPolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies + * [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof FirewallPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -118,8 +116,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#firewallPolicyList for listsof - * FirewallPolicies + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java index 6d2b0ebd702..c5c7032c624 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRule.java @@ -72,8 +72,8 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.Boolean enableLogging; /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. + * [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 @@ -104,7 +104,7 @@ public final class FirewallPolicyRule extends com.google.api.client.json.Generic private java.lang.String ruleName; /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * [Output Only] Calculation of the complexity of a single firewall policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -274,8 +274,8 @@ public FirewallPolicyRule setEnableLogging(java.lang.Boolean enableLogging) { } /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. + * [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() { @@ -283,8 +283,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Returnscompute#firewallPolicyRule for firewall - * rules andcompute#packetMirroringRule for packet mirroring rules. + * [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) { @@ -350,7 +350,7 @@ public FirewallPolicyRule setRuleName(java.lang.String ruleName) { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * [Output Only] Calculation of the complexity of a single firewall policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -358,7 +358,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall policy rule. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java index 47b0274ddc1..8903a438792 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleMatcher.java @@ -53,14 +53,6 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @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 scope of the traffic destination. * The value may be {@code null}. @@ -123,14 +115,6 @@ public final class FirewallPolicyRuleMatcher extends com.google.api.client.json. @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 scope of the traffic source. * The value may be {@code null}. @@ -234,25 +218,6 @@ public FirewallPolicyRuleMatcher setDestIpRanges(java.util.List 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 scope of the traffic source. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java index 3aa52411ce1..b8b606b7f46 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FirewallPolicyRuleSecureTag.java @@ -37,8 +37,8 @@ public final class FirewallPolicyRuleSecureTag extends com.google.api.client.jso 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. + * [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 @@ -62,8 +62,8 @@ public FirewallPolicyRuleSecureTag setName(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. + * [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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java index d244d6d7f04..96e626ed323 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FixedOrPercent.java @@ -30,8 +30,7 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Absolute value of VM instances calculated based on the specific - * mode. + * [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 * @@ -59,8 +58,7 @@ public final class FixedOrPercent extends com.google.api.client.json.GenericJson private java.lang.Integer percent; /** - * Output only. [Output Only] Absolute value of VM instances calculated based on the specific - * mode. + * [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 * @@ -74,8 +72,7 @@ public java.lang.Integer getCalculated() { } /** - * Output only. [Output Only] Absolute value of VM instances calculated based on the specific - * mode. + * [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 * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java index 36f13e72ddc..d28846f8d69 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FlexibleTimeRange.java @@ -17,7 +17,8 @@ package com.google.api.services.compute.model; /** - * Specifies a flexible time range with flexible start time and duration. + * A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start + * time, (2) a flexible end time, (3) a flexible duration. * * It is possible to specify a contradictory time range that cannot be matched by any Interval. This * causes a validation error. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java index 81a6ded2da2..aed27864563 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRule.java @@ -123,6 +123,19 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.Boolean allowPscGlobalAccess; + /** + * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to + * inject packets into the consumer's network. If set to true, the target service attachment must + * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC + * forwarding rules should not use this field. + * + * This field was never released to any customers and is deprecated and will be removed in the + * future. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowPscPacketInjection; + /** * Identifies the backend service to which the forwarding rule sends traffic. Required for * internal and external passthrough Network Load Balancers; must be omitted for all other load @@ -133,17 +146,17 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -240,8 +253,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.Boolean isMirroringCollector; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. + * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -414,9 +426,9 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson 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. + * [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 @@ -430,7 +442,7 @@ public final class ForwardingRule extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -691,6 +703,35 @@ public ForwardingRule setAllowPscGlobalAccess(java.lang.Boolean allowPscGlobalAc return this; } + /** + * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to + * inject packets into the consumer's network. If set to true, the target service attachment must + * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC + * forwarding rules should not use this field. + * + * This field was never released to any customers and is deprecated and will be removed in the + * future. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowPscPacketInjection() { + return allowPscPacketInjection; + } + + /** + * This is used in PSC consumer ForwardingRule to control whether the producer is allowed to + * inject packets into the consumer's network. If set to true, the target service attachment must + * have tunneling enabled and TunnelingConfig.RoutingMode set to PACKET_INJECTION Non-PSC + * forwarding rules should not use this field. + * + * This field was never released to any customers and is deprecated and will be removed in the + * future. + * @param allowPscPacketInjection allowPscPacketInjection or {@code null} for none + */ + public ForwardingRule setAllowPscPacketInjection(java.lang.Boolean allowPscPacketInjection) { + this.allowPscPacketInjection = allowPscPacketInjection; + return this; + } + /** * Identifies the backend service to which the forwarding rule sends traffic. Required for * internal and external passthrough Network Load Balancers; must be omitted for all other load @@ -713,10 +754,10 @@ public ForwardingRule setBackendService(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. + * [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() { @@ -724,10 +765,10 @@ public java.lang.String getBaseForwardingRule() { } /** - * 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. + * [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) { @@ -736,7 +777,7 @@ public ForwardingRule setBaseForwardingRule(java.lang.String baseForwardingRule) } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -744,7 +785,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp) { @@ -995,8 +1036,7 @@ public ForwardingRule setIsMirroringCollector(java.lang.Boolean isMirroringColle } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. + * [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding rule resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -1004,8 +1044,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#forwardingRule for forwarding - * rule resources. + * [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) { @@ -1422,9 +1461,9 @@ public ForwardingRule setPscConnectionStatus(java.lang.String pscConnectionStatu } /** - * 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. + * [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() { @@ -1432,9 +1471,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -1460,7 +1499,7 @@ public ForwardingRule setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -1468,7 +1507,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java index 01fcda7261e..b3edbe7c261 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleAggregatedList.java @@ -44,8 +44,8 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for - * lists of forwarding rules. + * [Output Only] Type of resource. Alwayscompute#forwardingRuleAggregatedList for lists of + * forwarding rules. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class ForwardingRuleAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public ForwardingRuleAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ForwardingRuleAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java index eadbc548ba5..f54e7f24f8a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ForwardingRuleList.java @@ -50,7 +50,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ForwardingRuleList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public ForwardingRuleList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ForwardingRuleList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ForwardingRuleList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 ForwardingRuleList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java index 3600a30c335..12dc3ab2d6f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class FutureReservation extends com.google.api.client.json.GenericJson { - /** - * Advanced control for cluster management, applicable only to DENSE deployment type future - * reservations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationAdvancedDeploymentControl advancedDeploymentControl; - /** * Aggregate reservation details for the future reservation. * The value may be {@code null}. @@ -81,14 +73,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ 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. + * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,16 +102,15 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.Boolean enableEmergentMaintenance; /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,14 +175,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private java.lang.String schedulingType; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -228,7 +212,7 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationSpecificSKUProperties specificSkuProperties; /** - * Output only. [Output only] Status of the Future Reservation + * [Output only] Status of the Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -242,31 +226,12 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ private FutureReservationTimeWindow timeWindow; /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. + * [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; - /** - * Advanced control for cluster management, applicable only to DENSE deployment type future - * reservations. - * @return value or {@code null} for none - */ - public ReservationAdvancedDeploymentControl getAdvancedDeploymentControl() { - return advancedDeploymentControl; - } - - /** - * Advanced control for cluster management, applicable only to DENSE deployment type future - * reservations. - * @param advancedDeploymentControl advancedDeploymentControl or {@code null} for none - */ - public FutureReservation setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl advancedDeploymentControl) { - this.advancedDeploymentControl = advancedDeploymentControl; - return this; - } - /** * Aggregate reservation details for the future reservation. * @return value or {@code null} for none @@ -369,23 +334,7 @@ public FutureReservation setCommitmentInfo(FutureReservationCommitmentInfo commi } /** - * @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. + * [Output Only] The creation timestamp for this future reservation inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -393,8 +342,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text - * format. + * [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) { @@ -456,8 +404,8 @@ public FutureReservation setEnableEmergentMaintenance(java.lang.Boolean enableEm } /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. + * [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() { @@ -465,8 +413,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this future reservation. The server defines - * this identifier. + * [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) { @@ -475,8 +423,7 @@ public FutureReservation setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future - * reservations. + * [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -484,8 +431,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future - * reservations. + * [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) { @@ -631,7 +577,7 @@ public FutureReservation setSchedulingType(java.lang.String schedulingType) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -639,7 +585,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -648,7 +594,7 @@ public FutureReservation setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -656,7 +602,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -720,7 +666,7 @@ public FutureReservation setSpecificSkuProperties(FutureReservationSpecificSKUPr } /** - * Output only. [Output only] Status of the Future Reservation + * [Output only] Status of the Future Reservation * @return value or {@code null} for none */ public FutureReservationStatus getStatus() { @@ -728,7 +674,7 @@ public FutureReservationStatus getStatus() { } /** - * Output only. [Output only] Status of the Future Reservation + * [Output only] Status of the Future Reservation * @param status status or {@code null} for none */ public FutureReservation setStatus(FutureReservationStatus status) { @@ -754,7 +700,7 @@ public FutureReservation setTimeWindow(FutureReservationTimeWindow timeWindow) { } /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. + * [Output Only] URL of the Zone where this future reservation resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -762,7 +708,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] URL of the Zone where this future reservation resides. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java index 2595b4830d2..59fbc1a6f59 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationStatus.java @@ -30,39 +30,38 @@ public final class FutureReservationStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The current status of the requested amendment. + * [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. + * 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. [Output Only] Represents the existing matching usage for the future reservation. + * [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. + * 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 + * [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}. */ @@ -70,17 +69,17 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge 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. + * 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 + * Current state of this Future Reservation * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,7 +92,7 @@ public final class FutureReservationStatus extends com.google.api.client.json.Ge private FutureReservationStatusSpecificSKUProperties specificSkuProperties; /** - * Output only. [Output Only] The current status of the requested amendment. + * [Output Only] The current status of the requested amendment. * @return value or {@code null} for none */ public java.lang.String getAmendmentStatus() { @@ -101,7 +100,7 @@ public java.lang.String getAmendmentStatus() { } /** - * Output only. [Output Only] The current status of the requested amendment. + * [Output Only] The current status of the requested amendment. * @param amendmentStatus amendmentStatus or {@code null} for none */ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStatus) { @@ -110,7 +109,7 @@ public FutureReservationStatus setAmendmentStatus(java.lang.String amendmentStat } /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. + * Fully qualified urls of the automatically created reservations at start_time. * @return value or {@code null} for none */ public java.util.List getAutoCreatedReservations() { @@ -118,7 +117,7 @@ public java.util.List getAutoCreatedReservations() { } /** - * Output only. Fully qualified urls of the automatically created reservations at start_time. + * 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) { @@ -127,7 +126,7 @@ public FutureReservationStatus setAutoCreatedReservations(java.util.List items; /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#futureReservationsAggregatedListResponse for future resevation aggregated list - * response. + * [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 @@ -69,14 +68,14 @@ public final class FutureReservationsAggregatedListResponse extends com.google.a 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,9 +138,8 @@ public FutureReservationsAggregatedListResponse setItems(java.util.Map getUnreachables() { @@ -208,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java index 26c435a877b..967fa4b6712 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/FutureReservationsListResponse.java @@ -56,8 +56,8 @@ public final class FutureReservationsListResponse extends com.google.api.client. } /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations + * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of + * reservations * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,14 @@ public final class FutureReservationsListResponse extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,8 +144,8 @@ public FutureReservationsListResponse setItems(java.util.List } /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations + * [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for lists of + * reservations * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -153,8 +153,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Alwayscompute#FutureReservationsListResponse for - * lists of reservations + * [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) { @@ -186,7 +186,7 @@ public FutureReservationsListResponse setNextPageToken(java.lang.String nextPage } /** - * 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() { @@ -194,7 +194,7 @@ 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 FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { @@ -203,7 +203,7 @@ public FutureReservationsListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public FutureReservationsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadata.java deleted file mode 100644 index 9333f196ff6..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.java deleted file mode 100644 index 1e457d9c5ac..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GetVersionOperationMetadataSbomInfo.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.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 { - - /** - * SBOM versions currently applied to the resource. The key is the component name and the value is - * the version. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map currentComponentVersions; - - /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value - * is the version. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map targetComponentVersions; - - /** - * SBOM versions currently applied to the resource. The key is the component name and the value is - * the version. - * @return value or {@code null} for none - */ - public java.util.Map getCurrentComponentVersions() { - return currentComponentVersions; - } - - /** - * SBOM versions currently applied to the resource. The key is the component name and the value is - * the version. - * @param currentComponentVersions currentComponentVersions or {@code null} for none - */ - public GetVersionOperationMetadataSbomInfo setCurrentComponentVersions(java.util.Map currentComponentVersions) { - this.currentComponentVersions = currentComponentVersions; - return this; - } - - /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value - * is the version. - * @return value or {@code null} for none - */ - public java.util.Map getTargetComponentVersions() { - return targetComponentVersions; - } - - /** - * SBOM versions scheduled for the next maintenance. The key is the component name and the value - * is the version. - * @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/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java index b52d5081698..a571737cc93 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -52,8 +52,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.Map extensionPolicies; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -68,7 +67,7 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private java.util.List instanceSelectors; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for + * [Output Only] Type of the resource. Alwayscompute#globalVmExtensionPolicy for * globalVmExtensionPolicies. * The value may be {@code null}. */ @@ -105,36 +104,36 @@ public final class GlobalVmExtensionPolicy extends com.google.api.client.json.Ge private GlobalVmExtensionPolicyRolloutOperation rolloutOperation; /** - * Output only. [Output Only] The scoped resource status. It's only for tracking the purging - * status of the policy. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -142,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public GlobalVmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -187,8 +186,7 @@ public GlobalVmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public GlobalVmExtensionPolicyList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java index 84a7cc8f18f..6a4402d2d7f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperation.java @@ -37,7 +37,7 @@ public final class GlobalVmExtensionPolicyRolloutOperation extends com.google.ap private GlobalVmExtensionPolicyRolloutOperationRolloutInput rolloutInput; /** - * Output only. [Output Only] The rollout status of the policy. + * [Output Only] The rollout status of the policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public GlobalVmExtensionPolicyRolloutOperation setRolloutInput(GlobalVmExtension } /** - * Output only. [Output Only] The rollout status of the policy. + * [Output Only] The rollout status of the policy. * @return value or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { @@ -69,7 +69,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus getRolloutStatus() { } /** - * Output only. [Output Only] The rollout status of the policy. + * [Output Only] The rollout status of the policy. * @param rolloutStatus rolloutStatus or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperation setRolloutStatus(GlobalVmExtensionPolicyRolloutOperationRolloutStatus rolloutStatus) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java index 9a91e54bcec..b38f098b052 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutInput.java @@ -30,19 +30,12 @@ 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. + * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a + * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the + * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the + * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If + * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the + * zonal policy was updated out of band by a zonal API, it's a conflict. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,41 +49,28 @@ public final class GlobalVmExtensionPolicyRolloutOperationRolloutInput extends c 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. + * Optional. Predefined rollout plan. * 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. + * Optional. The UUID of the retry action. Only set it if this is a retry for an existing + * resource. This is for the user re-populate the resource without changes. An error will be + * returned if the retry_uuid is set but the resource get modified. * 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. + * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a + * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the + * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the + * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If + * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the + * zonal policy was updated out of band by a zonal API, it's a conflict. * @return value or {@code null} for none */ public java.lang.String getConflictBehavior() { @@ -98,19 +78,12 @@ public java.lang.String getConflictBehavior() { } /** - * 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. + * Optional. [Optional] Specifies the behavior of the Rollout if a conflict is detected in a + * project during a Rollout. It can be one of the following values: 1) empty : don't overwrite the + * local value if conflict happens. This is the default behavior. 2) "overwrite" : Overwrite the + * local value with the rollout value. The concept of "conflict" applies to: 1) Insert action. If + * the zonal policy already exists when Insert happens, it's a conflict. 2) Update action. If the + * zonal policy was updated out of band by a zonal API, it's a conflict. * @param conflictBehavior conflictBehavior or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setConflictBehavior(java.lang.String conflictBehavior) { @@ -136,9 +109,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setName(java.lang.Str } /** - * 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. + * Optional. Predefined rollout plan. * @return value or {@code null} for none */ public java.lang.String getPredefinedRolloutPlan() { @@ -146,9 +117,7 @@ public java.lang.String getPredefinedRolloutPlan() { } /** - * 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. + * Optional. Predefined rollout plan. * @param predefinedRolloutPlan predefinedRolloutPlan or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutPlan(java.lang.String predefinedRolloutPlan) { @@ -157,13 +126,9 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setPredefinedRolloutP } /** - * 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. + * Optional. The UUID of the retry action. Only set it if this is a retry for an existing + * resource. This is for the user re-populate the resource without changes. An error will be + * returned if the retry_uuid is set but the resource get modified. * @return value or {@code null} for none */ public java.lang.String getRetryUuid() { @@ -171,13 +136,9 @@ public java.lang.String getRetryUuid() { } /** - * 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. + * Optional. The UUID of the retry action. Only set it if this is a retry for an existing + * resource. This is for the user re-populate the resource without changes. An error will be + * returned if the retry_uuid is set but the resource get modified. * @param retryUuid retryUuid or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutInput setRetryUuid(java.lang.String retryUuid) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java index 4b905fd66b1..a2f7a1ab433 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatus.java @@ -30,24 +30,24 @@ 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. + * [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. + * [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. + * [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() { @@ -55,8 +55,8 @@ public java.util.List currentRollouts) { @@ -65,8 +65,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatus setCurrentRollouts(j } /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. + * [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() { @@ -74,8 +74,8 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata getPr } /** - * Output only. [Output Only] The last completed rollout resource. This field will not be - * populated until the first rollout is completed. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java index 52e24e59562..9f532f3b012 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.java @@ -30,56 +30,28 @@ 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/. + * [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/. + * [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. + * [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/. + * [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. * @return value or {@code null} for none */ public java.lang.String getRollout() { @@ -87,7 +59,7 @@ public java.lang.String getRollout() { } /** - * Output only. [Output Only] The name of the rollout. Ex. projects//locations/global/rollouts/. + * [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) { @@ -96,8 +68,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. + * [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() { @@ -105,8 +76,7 @@ public java.lang.String getRolloutPlan() { } /** - * Output only. [Output Only] The name of the rollout plan. Ex. - * projects//locations/global/rolloutPlans/. + * [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) { @@ -115,7 +85,7 @@ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setRo } /** - * Output only. [Output Only] The overall state of the rollout. + * [Output Only] The overall state of the rollout. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -123,7 +93,7 @@ public java.lang.String getState() { } /** - * Output only. [Output Only] The overall state of the rollout. + * [Output Only] The overall state of the rollout. * @param state state or {@code null} for none */ public GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.java deleted file mode 100644 index 692e5153c0e..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java index 03028ade01e..d17716bd84f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/GuestAttributes.java @@ -30,8 +30,7 @@ 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. + * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -46,14 +45,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String queryPath; /** - * Output only. [Output Only] The value of the requested queried path. + * [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. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,15 +66,14 @@ public final class GuestAttributes extends com.google.api.client.json.GenericJso private java.lang.String variableKey; /** - * Output only. [Output Only] The value found for the requested key. + * [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. + * [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -83,8 +81,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest - * attributes entry. + * [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) { @@ -112,7 +109,7 @@ public GuestAttributes setQueryPath(java.lang.String queryPath) { } /** - * Output only. [Output Only] The value of the requested queried path. + * [Output Only] The value of the requested queried path. * @return value or {@code null} for none */ public GuestAttributesValue getQueryValue() { @@ -120,7 +117,7 @@ public GuestAttributesValue getQueryValue() { } /** - * Output only. [Output Only] The value of the requested queried path. + * [Output Only] The value of the requested queried path. * @param queryValue queryValue or {@code null} for none */ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { @@ -129,7 +126,7 @@ public GuestAttributes setQueryValue(GuestAttributesValue queryValue) { } /** - * 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() { @@ -137,7 +134,7 @@ 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 GuestAttributes setSelfLink(java.lang.String selfLink) { @@ -163,7 +160,7 @@ public GuestAttributes setVariableKey(java.lang.String variableKey) { } /** - * Output only. [Output Only] The value found for the requested key. + * [Output Only] The value found for the requested key. * @return value or {@code null} for none */ public java.lang.String getVariableValue() { @@ -171,7 +168,7 @@ public java.lang.String getVariableValue() { } /** - * Output only. [Output Only] The value found for the requested key. + * [Output Only] The value found for the requested key. * @param variableValue variableValue or {@code null} for none */ public GuestAttributes setVariableValue(java.lang.String variableValue) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java index 5854e52ebe9..9576c103227 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicy.java @@ -34,7 +34,7 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,16 +72,15 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge private java.lang.Long healthyPercentThreshold; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health + * aggregation policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,30 +121,30 @@ public final class HealthAggregationPolicy extends com.google.api.client.json.Ge 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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -153,7 +152,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthAggregationPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -269,8 +268,7 @@ public HealthAggregationPolicy setHealthyPercentThreshold(java.lang.Long healthy } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -278,8 +276,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -288,8 +285,8 @@ public HealthAggregationPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. + * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health + * aggregation policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -297,8 +294,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. + * [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) { @@ -384,9 +381,9 @@ public HealthAggregationPolicy setPolicyType(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. + * [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() { @@ -394,9 +391,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -405,7 +402,7 @@ public HealthAggregationPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -413,7 +410,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { @@ -422,7 +419,7 @@ public HealthAggregationPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -430,7 +427,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java index ef8315f5b60..f4afe8045ce 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyAggregatedList.java @@ -50,7 +50,7 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,14 +67,14 @@ public final class HealthAggregationPolicyAggregatedList extends com.google.api. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public HealthAggregationPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +187,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthAggregationPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java index bf5d73570e9..effd9cc356e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthAggregationPolicyList.java @@ -50,8 +50,8 @@ public final class HealthAggregationPolicyList extends com.google.api.client.jso } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for - * health aggregation policies. + * [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health + * aggregation policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public HealthAggregationPolicyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public HealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 HealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java index a04d25735c2..cd690ba7201 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckService.java @@ -30,7 +30,7 @@ public final class HealthCheckService extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,16 +99,14 @@ public final class HealthCheckService extends com.google.api.client.json.Generic private java.lang.String healthStatusAggregationStrategy; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,23 +143,23 @@ public final class HealthCheckService extends com.google.api.client.json.Generic 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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -169,7 +167,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthCheckService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -353,8 +351,7 @@ public HealthCheckService setHealthStatusAggregationStrategy(java.lang.String he } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -362,8 +359,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -372,8 +368,7 @@ public HealthCheckService setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. + * [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health check services. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -381,8 +376,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#healthCheckServicefor health - * check services. + * [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) { @@ -460,9 +454,9 @@ public HealthCheckService setNotificationEndpoints(java.util.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 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/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java index e80bc5dfb36..e77f8500ff9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesList.java @@ -30,14 +30,14 @@ public final class HealthCheckServicesList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier 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. + * A list of HealthCheckService resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,25 +50,25 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,7 +82,7 @@ public final class HealthCheckServicesList extends com.google.api.client.json.Ge private Warning warning; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -99,7 +99,7 @@ public HealthCheckServicesList setId(java.lang.String id) { } /** - * Output only. A list of HealthCheckService resources. + * A list of HealthCheckService resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -107,7 +107,7 @@ public java.util.List getItems() { } /** - * Output only. A list of HealthCheckService resources. + * A list of HealthCheckService resources. * @param items items or {@code null} for none */ public HealthCheckServicesList setItems(java.util.List items) { @@ -116,8 +116,8 @@ public HealthCheckServicesList setItems(java.util.List items } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. + * [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for lists of + * HealthCheckServices. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthCheckServicesList for - * lists of HealthCheckServices. + * [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) { @@ -135,10 +135,10 @@ public HealthCheckServicesList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public HealthCheckServicesList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 HealthCheckServicesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthCheckServicesScopedList.java deleted file mode 100644 index 84c685f8110..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java index 65b6d6c9236..18d8d8076ef 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthChecksAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthChecksAggregatedList extends com.google.api.client.json 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthChecksAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthChecksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java index e645a8cd5d1..ee2c30bd156 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSource.java @@ -33,7 +33,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,14 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.lang.String healthAggregationPolicy; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,23 +91,23 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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. + * [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,7 +133,7 @@ public final class HealthSource extends com.google.api.client.json.GenericJson { private java.util.List sources; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -142,7 +141,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public HealthSource setCreationTimestamp(java.lang.String creationTimestamp) { @@ -248,8 +247,7 @@ public HealthSource setHealthAggregationPolicy(java.lang.String healthAggregatio } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -257,8 +255,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -267,7 +264,7 @@ public HealthSource setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -275,7 +272,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [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) { @@ -309,9 +306,9 @@ public HealthSource setName(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. + * [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() { @@ -319,9 +316,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -330,7 +327,7 @@ public HealthSource setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -338,7 +335,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public HealthSource setSelfLink(java.lang.String selfLink) { @@ -347,7 +344,7 @@ public HealthSource setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -355,7 +352,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java index 1ec07ab4b13..9f69f1113b0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceAggregatedList.java @@ -44,7 +44,7 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class HealthSourceAggregatedList extends com.google.api.client.json 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public HealthSourceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public HealthSourceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java index 6bb05406796..f2077b0a56e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HealthSourceList.java @@ -50,7 +50,7 @@ public final class HealthSourceList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,7 +115,7 @@ public HealthSourceList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java index f7f6e7a324b..cb4c89b509a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHeaderMatch.java @@ -117,7 +117,7 @@ public final class HttpHeaderMatch extends com.google.api.client.json.GenericJso * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -316,7 +316,7 @@ public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch) { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -334,7 +334,7 @@ public java.lang.String getRegexMatch() { * set. * * Regular expressions can only be used when the loadBalancingScheme is set to - * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @param regexMatch regexMatch or {@code null} for none */ public HttpHeaderMatch setRegexMatch(java.lang.String regexMatch) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java index 438550bb2f3..8b653628100 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheck.java @@ -80,8 +80,7 @@ public final class HttpHealthCheck extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. + * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -243,8 +242,7 @@ public HttpHealthCheck setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. + * [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health checks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -252,8 +250,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#httpHealthCheck for HTTP health - * checks. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java index 42f2fddf7a6..1df376c1629 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpHealthCheckList.java @@ -50,7 +50,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class HttpHealthCheckList extends com.google.api.client.json.Generi 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 @@ -115,7 +115,7 @@ public HttpHealthCheckList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public HttpHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 HttpHealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java index 3393e1b57b1..5d4f2e2caf8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpQueryParameterMatch.java @@ -64,7 +64,7 @@ public final class HttpQueryParameterMatch extends com.google.api.client.json.Ge * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -142,7 +142,7 @@ public HttpQueryParameterMatch setPresentMatch(java.lang.Boolean presentMatch) { * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @return value or {@code null} for none */ public java.lang.String getRegexMatch() { @@ -156,7 +156,7 @@ public java.lang.String getRegexMatch() { * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * @param regexMatch regexMatch or {@code null} for none */ public HttpQueryParameterMatch setRegexMatch(java.lang.String regexMatch) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java index 29ceb250d4a..406373c5fe0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -29,14 +29,6 @@ @SuppressWarnings("javadoc") public final class HttpRouteAction extends com.google.api.client.json.GenericJson { - /** - * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer - * schemes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private 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. @@ -141,25 +133,6 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private java.util.List weightedBackendServices; - /** - * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer - * schemes. - * @return value or {@code null} for none - */ - public CachePolicy getCachePolicy() { - return cachePolicy; - } - - /** - * Cache policy for this URL Map’s route. Available only for Global EXTERNAL_MANAGED load balancer - * schemes. - * @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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java index cd8eebf2f5c..27d237f9ccf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteRuleMatch.java @@ -96,18 +96,14 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic 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. + * If specified, the route is a pattern match expression that must match the :path header once 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: + * A pattern match allows you to match - The value must be between 1 and 1024 + * characters - The pattern must start with a leading slash ("/") - There may be no + * more than 5 operators in pattern * - * - 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. + * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,10 +115,8 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * * 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. + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * specified. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,7 +146,7 @@ public final class HttpRouteRuleMatch extends com.google.api.client.json.Generic * 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. + * INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -289,18 +283,14 @@ public HttpRouteRuleMatch setMetadataFilters(java.util.List meta } /** - * If specified, this field defines a path template pattern that must match the :path header after - * the query string is removed. + * If specified, the route is a pattern match expression that must match the :path header once 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: + * A pattern match allows you to match - The value must be between 1 and 1024 + * characters - The pattern must start with a leading slash ("/") - There may be no + * more than 5 operators in pattern * - * - 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. + * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. * @return value or {@code null} for none */ public java.lang.String getPathTemplateMatch() { @@ -308,18 +298,14 @@ public java.lang.String getPathTemplateMatch() { } /** - * 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: + * If specified, the route is a pattern match expression that must match the :path header once the + * query string is removed. * - * - 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. + * A pattern match allows you to match - The value must be between 1 and 1024 + * characters - The pattern must start with a leading slash ("/") - There may be no + * more than 5 operators in pattern * - * Precisely one ofprefixMatch, fullPathMatch,regexMatch, or pathTemplateMatch must be set. + * Precisely one ofprefix_match, full_path_match,regex_match or path_template_match must be set. * @param pathTemplateMatch pathTemplateMatch or {@code null} for none */ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatch) { @@ -333,10 +319,8 @@ public HttpRouteRuleMatch setPathTemplateMatch(java.lang.String pathTemplateMatc * * 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. + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * specified. * @return value or {@code null} for none */ public java.lang.String getPrefixMatch() { @@ -349,10 +333,8 @@ public java.lang.String getPrefixMatch() { * * 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. + * Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must be specified. + * specified. * @param prefixMatch prefixMatch or {@code null} for none */ public HttpRouteRuleMatch setPrefixMatch(java.lang.String prefixMatch) { @@ -391,7 +373,7 @@ public HttpRouteRuleMatch setQueryParameterMatches(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public HttpsHealthCheckList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public HttpsHealthCheckList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 HttpsHealthCheckList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java index 927b3ca744a..9e6b80f7cb4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Image.java @@ -46,14 +46,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Long archiveSizeBytes; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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 deprecation status associated with this image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +74,8 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * 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 @@ -110,8 +110,7 @@ public final class Image extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -134,7 +133,7 @@ public final class Image extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey imageEncryptionKey; /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. + * [Output Only] Type of the resource. Always compute#image for images. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -245,14 +244,14 @@ public final class Image extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -287,9 +286,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -317,9 +316,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -347,9 +346,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -363,9 +362,9 @@ public final class Image extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -378,6 +377,17 @@ public final class Image extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List storageLocations; + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + /** * The architecture of the image. Valid values are ARM64 or X86_64. * @return value or {@code null} for none @@ -413,7 +423,7 @@ public Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -421,7 +431,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Image setCreationTimestamp(java.lang.String creationTimestamp) { @@ -430,7 +440,7 @@ public Image setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. The deprecation status associated with this image. + * The deprecation status associated with this image. * @return value or {@code null} for none */ public DeprecationStatus getDeprecated() { @@ -438,7 +448,7 @@ public DeprecationStatus getDeprecated() { } /** - * Output only. The deprecation status associated with this image. + * The deprecation status associated with this image. * @param deprecated deprecated or {@code null} for none */ public Image setDeprecated(DeprecationStatus deprecated) { @@ -481,8 +491,8 @@ public Image setDiskSizeGb(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. + * 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() { @@ -490,8 +500,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * 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. + * 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) { @@ -550,8 +560,7 @@ public Image setGuestOsFeatures(java.util.List guestOsFeatures) } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -559,8 +568,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -604,7 +612,7 @@ public Image setImageEncryptionKey(CustomerEncryptionKey imageEncryptionKey) { } /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. + * [Output Only] Type of the resource. Always compute#image for images. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -612,7 +620,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#image for images. + * [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) { @@ -899,7 +907,7 @@ public Image setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -907,7 +915,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -916,7 +924,7 @@ public Image setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -924,7 +932,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Image setSelfLink(java.lang.String selfLink) { @@ -998,9 +1006,9 @@ public Image setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncrypti } /** - * 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. + * [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() { @@ -1008,9 +1016,9 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -1067,9 +1075,9 @@ public Image setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncryp } /** - * 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. + * [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() { @@ -1077,9 +1085,9 @@ public java.lang.String getSourceImageId() { } /** - * 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. + * [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) { @@ -1136,9 +1144,9 @@ public Image setSourceSnapshotEncryptionKey(CustomerEncryptionKey sourceSnapshot } /** - * 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. + * [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() { @@ -1146,9 +1154,9 @@ public java.lang.String getSourceSnapshotId() { } /** - * 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. + * [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) { @@ -1174,9 +1182,9 @@ public Image setSourceType(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. + * [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() { @@ -1184,9 +1192,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -1211,6 +1219,31 @@ public Image setStorageLocations(java.util.List storageLocatio return this; } + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * A list of publicly visible user-licenses. Unlike regular licenses, user provided licenses can + * be modified after the disk is created. This includes a list of URLs to the license resource. + * For example, to provide a debian license: + * + * https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch + * @param userLicenses userLicenses or {@code null} for none + */ + public Image setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public Image set(String fieldName, Object value) { return (Image) super.set(fieldName, value); @@ -1244,13 +1277,10 @@ public static final class RawDisk extends com.google.api.client.json.GenericJson 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: - + * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are + * valid formats for the URL: - * 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 + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_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 @@ -1301,13 +1331,10 @@ public RawDisk setSha1Checksum(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: - + * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are + * valid formats for the URL: - * 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 + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_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 @@ -1319,13 +1346,10 @@ public java.lang.String getSource() { } /** - * The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is - * stored. The following are valid formats: - + * The full Google Cloud Storage URL where the raw disk image archive is stored. The following are + * valid formats for the URL: - * 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 + * https://storage.googleapis.com/bucket_name/folder_name/image_archive_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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java index 5dadcb0dd06..a61438b1d5b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageList.java @@ -50,7 +50,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ImageList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public ImageList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ImageList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 ImageList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java index e15c382b178..8d4975d6e7a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageParams.java @@ -30,22 +30,18 @@ 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/456` 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. + * Resource manager tags to be bound to the image. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. 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/456` 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. + * Resource manager tags to be bound to the image. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -53,11 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the image. Tag keys and values have the same definition as + * resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the + * format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public ImageParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java index 5266ff4645c..dc12051d629 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Instance.java @@ -55,14 +55,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ConfidentialInstanceConfig confidentialInstanceConfig; /** - * Output only. [Output Only] The CPU platform used by this instance. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -146,8 +146,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String hostname; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -176,7 +175,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.lang.String keyRevocationActionType; /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * [Output Only] Type of the resource. Always compute#instance for instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -202,21 +201,21 @@ public final class Instance extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * [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. + * [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. + * [Output Only] Last suspended timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -331,22 +330,22 @@ public final class Instance extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -360,7 +359,7 @@ public final class Instance extends com.google.api.client.json.GenericJson { private Scheduling scheduling; /** - * 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 @@ -390,14 +389,14 @@ public final class Instance extends com.google.api.client.json.GenericJson { private ShieldedInstanceIntegrityPolicy shieldedInstanceIntegrityPolicy; /** - * Output only. Deprecating, please use shielded_instance_config. + * Deprecating, please use shielded_instance_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private ShieldedVmConfig shieldedVmConfig; /** - * Output only. Deprecating, please use shielded_instance_integrity_policy. + * Deprecating, please use shielded_instance_integrity_policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -418,24 +417,24 @@ public final class Instance extends com.google.api.client.json.GenericJson { private CustomerEncryptionKey sourceMachineImageEncryptionKey; /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. + * [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. + * [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. + * [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -452,14 +451,8 @@ public final class Instance extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -519,7 +512,7 @@ public Instance setConfidentialInstanceConfig(ConfidentialInstanceConfig confide } /** - * Output only. [Output Only] The CPU platform used by this instance. + * [Output Only] The CPU platform used by this instance. * @return value or {@code null} for none */ public java.lang.String getCpuPlatform() { @@ -527,7 +520,7 @@ public java.lang.String getCpuPlatform() { } /** - * Output only. [Output Only] The CPU platform used by this instance. + * [Output Only] The CPU platform used by this instance. * @param cpuPlatform cpuPlatform or {@code null} for none */ public Instance setCpuPlatform(java.lang.String cpuPlatform) { @@ -536,7 +529,7 @@ public Instance setCpuPlatform(java.lang.String cpuPlatform) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -544,7 +537,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Instance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -745,8 +738,7 @@ public Instance setHostname(java.lang.String hostname) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -754,8 +746,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -814,7 +805,7 @@ public Instance setKeyRevocationActionType(java.lang.String keyRevocationActionT } /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * [Output Only] Type of the resource. Always compute#instance for instances. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -822,7 +813,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#instance for instances. + * [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) { @@ -913,7 +904,7 @@ public Instance setLabels(java.util.Map labels) { } /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * [Output Only] Last start timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStartTimestamp() { @@ -921,7 +912,7 @@ public java.lang.String getLastStartTimestamp() { } /** - * Output only. [Output Only] Last start timestamp inRFC3339 text format. + * [Output Only] Last start timestamp inRFC3339 text format. * @param lastStartTimestamp lastStartTimestamp or {@code null} for none */ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { @@ -930,7 +921,7 @@ public Instance setLastStartTimestamp(java.lang.String lastStartTimestamp) { } /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * [Output Only] Last stop timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastStopTimestamp() { @@ -938,7 +929,7 @@ public java.lang.String getLastStopTimestamp() { } /** - * Output only. [Output Only] Last stop timestamp inRFC3339 text format. + * [Output Only] Last stop timestamp inRFC3339 text format. * @param lastStopTimestamp lastStopTimestamp or {@code null} for none */ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { @@ -947,7 +938,7 @@ public Instance setLastStopTimestamp(java.lang.String lastStopTimestamp) { } /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * [Output Only] Last suspended timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastSuspendedTimestamp() { @@ -955,7 +946,7 @@ public java.lang.String getLastSuspendedTimestamp() { } /** - * Output only. [Output Only] Last suspended timestamp inRFC3339 text format. + * [Output Only] Last suspended timestamp inRFC3339 text format. * @param lastSuspendedTimestamp lastSuspendedTimestamp or {@code null} for none */ public Instance setLastSuspendedTimestamp(java.lang.String lastSuspendedTimestamp) { @@ -1216,8 +1207,8 @@ public Instance setResourcePolicies(java.util.List resourcePol } /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. + * [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() { @@ -1225,8 +1216,8 @@ public ResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Specifies values set for instance attributes as compared to the - * values requested by user in the corresponding input only field. + * [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) { @@ -1235,7 +1226,7 @@ public Instance setResourceStatus(ResourceStatus resourceStatus) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -1243,7 +1234,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -1252,7 +1243,7 @@ public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1260,7 +1251,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1286,7 +1277,7 @@ public Instance setScheduling(Scheduling scheduling) { } /** - * 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() { @@ -1294,7 +1285,7 @@ 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 Instance setSelfLink(java.lang.String selfLink) { @@ -1358,7 +1349,7 @@ public Instance setShieldedInstanceIntegrityPolicy(ShieldedInstanceIntegrityPoli } /** - * Output only. Deprecating, please use shielded_instance_config. + * Deprecating, please use shielded_instance_config. * @return value or {@code null} for none */ public ShieldedVmConfig getShieldedVmConfig() { @@ -1366,7 +1357,7 @@ public ShieldedVmConfig getShieldedVmConfig() { } /** - * Output only. Deprecating, please use shielded_instance_config. + * Deprecating, please use shielded_instance_config. * @param shieldedVmConfig shieldedVmConfig or {@code null} for none */ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { @@ -1375,7 +1366,7 @@ public Instance setShieldedVmConfig(ShieldedVmConfig shieldedVmConfig) { } /** - * Output only. Deprecating, please use shielded_instance_integrity_policy. + * Deprecating, please use shielded_instance_integrity_policy. * @return value or {@code null} for none */ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { @@ -1383,7 +1374,7 @@ public ShieldedVmIntegrityPolicy getShieldedVmIntegrityPolicy() { } /** - * Output only. Deprecating, please use shielded_instance_integrity_policy. + * Deprecating, please use shielded_instance_integrity_policy. * @param shieldedVmIntegrityPolicy shieldedVmIntegrityPolicy or {@code null} for none */ public Instance setShieldedVmIntegrityPolicy(ShieldedVmIntegrityPolicy shieldedVmIntegrityPolicy) { @@ -1426,8 +1417,8 @@ public Instance setSourceMachineImageEncryptionKey(CustomerEncryptionKey sourceM } /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. + * [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() { @@ -1435,8 +1426,8 @@ public java.lang.Boolean getStartRestricted() { } /** - * Output only. [Output Only] Whether a VM has been restricted for start because Compute Engine - * has detected suspicious activity. + * [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) { @@ -1445,9 +1436,9 @@ public Instance setStartRestricted(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. + * [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() { @@ -1455,9 +1446,9 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { @@ -1466,7 +1457,7 @@ public Instance setStatus(java.lang.String status) { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -1474,7 +1465,7 @@ public java.lang.String getStatusMessage() { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [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) { @@ -1506,23 +1497,8 @@ public Instance setTags(Tags tags) { } /** - * @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. + * [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() { @@ -1530,8 +1506,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java index e9839b02983..8ace3b07ae4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceAggregatedList.java @@ -44,8 +44,8 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceAggregatedList for - * aggregated lists of Instance resources. + * [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 @@ -62,14 +62,14 @@ public final class InstanceAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java index 0802df8ace4..a460f6a71e8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionData.java @@ -30,21 +30,21 @@ public final class InstanceConsumptionData extends com.google.api.client.json.GenericJson { /** - * Output only. Resources consumed by the instance. + * 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. + * 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. + * Resources consumed by the instance. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumptionInfo() { @@ -52,7 +52,7 @@ public InstanceConsumptionInfo getConsumptionInfo() { } /** - * Output only. Resources consumed by the instance. + * Resources consumed by the instance. * @param consumptionInfo consumptionInfo or {@code null} for none */ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consumptionInfo) { @@ -61,7 +61,7 @@ public InstanceConsumptionData setConsumptionInfo(InstanceConsumptionInfo consum } /** - * Output only. Server-defined URL for the instance. + * Server-defined URL for the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -69,7 +69,7 @@ public java.lang.String getInstance() { } /** - * Output only. Server-defined URL for the instance. + * Server-defined URL for the instance. * @param instance instance or {@code null} for none */ public InstanceConsumptionData setInstance(java.lang.String instance) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java index 045c36fe60e..9964f0ec7b8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceConsumptionInfo.java @@ -30,35 +30,35 @@ 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 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 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 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 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. + * The number of virtual CPUs that are available to the instance. * @return value or {@code null} for none */ public java.lang.Integer getGuestCpus() { @@ -66,7 +66,7 @@ public java.lang.Integer getGuestCpus() { } /** - * Output only. The number of virtual CPUs that are available to the instance. + * 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) { @@ -75,7 +75,7 @@ public InstanceConsumptionInfo setGuestCpus(java.lang.Integer guestCpus) { } /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * 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() { @@ -83,7 +83,7 @@ public java.lang.Integer getLocalSsdGb() { } /** - * Output only. The amount of local SSD storage available to the instance, defined in GiB. + * 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) { @@ -92,7 +92,7 @@ public InstanceConsumptionInfo setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * Output only. The amount of physical memory available to the instance, defined in MiB. + * The amount of physical memory available to the instance, defined in MiB. * @return value or {@code null} for none */ public java.lang.Integer getMemoryMb() { @@ -100,7 +100,7 @@ public java.lang.Integer getMemoryMb() { } /** - * Output only. The amount of physical memory available to the instance, defined in MiB. + * 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) { @@ -109,7 +109,7 @@ public InstanceConsumptionInfo setMemoryMb(java.lang.Integer memoryMb) { } /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * The minimal guaranteed number of virtual CPUs that are reserved. * @return value or {@code null} for none */ public java.lang.Integer getMinNodeCpus() { @@ -117,7 +117,7 @@ public java.lang.Integer getMinNodeCpus() { } /** - * Output only. The minimal guaranteed number of virtual CPUs that are reserved. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicy.java deleted file mode 100644 index 681d9b2c7a7..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java deleted file mode 100644 index 11f9142150d..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceFlexibilityPolicyInstanceSelection.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -/* - * This code 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; - - /** - * 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; - } - - /** - * 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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java index 1347250c1d6..b4c883b718f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroup.java @@ -43,8 +43,7 @@ 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. + * [Output Only] The creation timestamp for this instance group inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,24 +57,22 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson 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. + * [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. + * [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. + * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,47 +108,45 @@ public final class InstanceGroup extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). + * [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. + * [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. + * [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). + * [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). + * [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. + * [Output Only] The creation timestamp for this instance group inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -159,8 +154,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this instance group inRFC3339 text - * format. + * [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) { @@ -186,8 +180,8 @@ public InstanceGroup setDescription(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. + * [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 */ @@ -196,8 +190,8 @@ public java.lang.String getFingerprint() { } /** - * 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. + * [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 * @@ -208,8 +202,8 @@ public byte[] decodeFingerprint() { } /** - * 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. + * [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 */ @@ -219,8 +213,8 @@ public InstanceGroup setFingerprint(java.lang.String 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. + * [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() * *

      @@ -235,8 +229,7 @@ public InstanceGroup encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] A unique identifier for this instance group, generated by the - * server. + * [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() { @@ -244,8 +237,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this instance group, generated by the - * server. + * [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) { @@ -254,8 +246,7 @@ public InstanceGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance - * groups. + * [Output Only] The resource type, which is alwayscompute#instanceGroup for instance groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -263,8 +254,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroup for instance - * groups. + * [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) { @@ -340,8 +330,8 @@ public InstanceGroup setNetwork(java.lang.String network) { } /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). + * [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() { @@ -349,8 +339,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of theregion where the instance group is located (for - * regional resources). + * [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) { @@ -359,7 +349,7 @@ public InstanceGroup setRegion(java.lang.String region) { } /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * [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() { @@ -367,7 +357,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this instance group. The server generates this URL. + * [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) { @@ -376,7 +366,7 @@ public InstanceGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] The total number of instances in the instance group. + * [Output Only] The total number of instances in the instance group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -384,7 +374,7 @@ public java.lang.Integer getSize() { } /** - * Output only. [Output Only] The total number of instances in the instance group. + * [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) { @@ -393,9 +383,9 @@ public InstanceGroup setSize(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). + * [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() { @@ -403,9 +393,9 @@ public java.lang.String getSubnetwork() { } /** - * 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). + * [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) { @@ -414,8 +404,7 @@ public InstanceGroup setSubnetwork(java.lang.String subnetwork) { } /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). + * [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() { @@ -423,8 +412,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The URL of thezone where the instance group is located (for zonal - * resources). + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java index e5e5e311a40..5d0836701f5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupAggregatedList.java @@ -30,7 +30,7 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,46 +44,46 @@ public final class InstanceGroupAggregatedList extends com.google.api.client.jso private java.util.Map items; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupAggregatedList for aggregated lists of instance groups. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -91,7 +91,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -117,8 +117,8 @@ public InstanceGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupAggregatedList setUnreachables(java.util.List unreachables) { @@ -193,7 +193,7 @@ public InstanceGroupAggregatedList setUnreachables(java.util.List items) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupList for - * instance group lists. + * [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) { @@ -135,10 +135,10 @@ public InstanceGroupList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public InstanceGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 InstanceGroupList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java index e8b941d85fe..a9f838e3f4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManager.java @@ -66,16 +66,15 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String baseInstanceName; /** - * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 - * text format. + * [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. [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. + * [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 @@ -116,8 +115,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String fingerprint; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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 @@ -132,7 +130,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy; /** - * Output only. [Output Only] The URL of the Instance Group resource. + * [Output Only] The URL of the Instance Group resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,8 +154,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.lang.String instanceTemplate; /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for - * managed instance groups. + * [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 @@ -202,8 +200,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerParams params; /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). + * [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 @@ -217,22 +215,21 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private InstanceGroupManagerResourcePolicies resourcePolicies; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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] The URL for this managed instance group. The server defines this - * URL. + * [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 @@ -263,7 +260,7 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private StatefulPolicy statefulPolicy; /** - * Output only. [Output Only] The status of this managed instance group. + * [Output Only] The status of this managed instance group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -334,8 +331,8 @@ public final class InstanceGroupManager extends com.google.api.client.json.Gener private java.util.List versions; /** - * Output only. [Output Only] The URL of azone where the managed instance group is located (for - * zonal resources). + * [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 @@ -409,8 +406,7 @@ public InstanceGroupManager setBaseInstanceName(java.lang.String baseInstanceNam } /** - * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 - * text format. + * [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() { @@ -418,8 +414,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 - * text format. + * [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) { @@ -428,8 +423,8 @@ public InstanceGroupManager setCreationTimestamp(java.lang.String creationTimest } /** - * Output only. [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. + * [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() { @@ -437,8 +432,8 @@ public InstanceGroupManagerActionsSummary getCurrentActions() { } /** - * Output only. [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. + * [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) { @@ -563,8 +558,7 @@ public InstanceGroupManager encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -572,8 +566,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -601,7 +594,7 @@ public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerIns } /** - * Output only. [Output Only] The URL of the Instance Group resource. + * [Output Only] The URL of the Instance Group resource. * @return value or {@code null} for none */ public java.lang.String getInstanceGroup() { @@ -609,7 +602,7 @@ public java.lang.String getInstanceGroup() { } /** - * Output only. [Output Only] The URL of the Instance Group resource. + * [Output Only] The URL of the Instance Group resource. * @param instanceGroup instanceGroup or {@code null} for none */ public InstanceGroupManager setInstanceGroup(java.lang.String instanceGroup) { @@ -658,8 +651,8 @@ public InstanceGroupManager setInstanceTemplate(java.lang.String instanceTemplat } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for - * managed instance groups. + * [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() { @@ -667,8 +660,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for - * managed instance groups. + * [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) { @@ -768,8 +761,8 @@ public InstanceGroupManager setParams(InstanceGroupManagerParams params) { } /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). + * [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() { @@ -777,8 +770,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of theregion where the managed instance group resides (for - * regional resources). + * [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) { @@ -804,7 +797,7 @@ public InstanceGroupManager setResourcePolicies(InstanceGroupManagerResourcePoli } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzi() { @@ -812,7 +805,7 @@ public java.lang.Boolean getSatisfiesPzi() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzi satisfiesPzi or {@code null} for none */ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { @@ -821,7 +814,7 @@ public InstanceGroupManager setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -829,7 +822,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -838,8 +831,7 @@ public InstanceGroupManager setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] The URL for this managed instance group. The server defines this - * URL. + * [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() { @@ -847,8 +839,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this managed instance group. The server defines this - * URL. + * [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) { @@ -914,7 +905,7 @@ public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy) { } /** - * Output only. [Output Only] The status of this managed instance group. + * [Output Only] The status of this managed instance group. * @return value or {@code null} for none */ public InstanceGroupManagerStatus getStatus() { @@ -922,7 +913,7 @@ public InstanceGroupManagerStatus getStatus() { } /** - * Output only. [Output Only] The status of this managed instance group. + * [Output Only] The status of this managed instance group. * @param status status or {@code null} for none */ public InstanceGroupManager setStatus(InstanceGroupManagerStatus status) { @@ -1080,8 +1071,8 @@ public InstanceGroupManager setVersions(java.util.List items; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupManagerAggregatedList for an aggregated list of managed instance - * groups. + * [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. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -92,7 +91,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -118,9 +117,8 @@ public InstanceGroupManagerAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List unreachables) { @@ -196,7 +193,7 @@ public InstanceGroupManagerAggregatedList setUnreachables(java.util.List it } /** - * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList - * for a list of managed instance groups. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList - * for a list of managed instance groups. + * [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) { @@ -135,10 +135,10 @@ public InstanceGroupManagerList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public InstanceGroupManagerList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public InstanceGroupManagerList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public InstanceGroupManagerList setWarning(Warning warning) { @@ -202,7 +202,7 @@ public InstanceGroupManagerList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java index b449f96a27d..60357bf4cba 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerParams.java @@ -30,20 +30,18 @@ public final class InstanceGroupManagerParams extends com.google.api.client.json.GenericJson { /** - * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value - * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and - * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and - * `{tag_value_short_name}`. For more information, seeManage tags for resources. + * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys + * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, + * seeManage tags for resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map resourceManagerTags; /** - * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value - * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and - * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and - * `{tag_value_short_name}`. For more information, seeManage tags for resources. + * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys + * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, + * seeManage tags for resources. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -51,10 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * Input only. Resource manager tags to bind to the managed instance group. The tags are key-value - * pairs. Keys and values can be either in numeric format, such as `tagKeys/{tag_key_id}` and - * `tagValues/456` or in namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and - * `{tag_value_short_name}`. For more information, seeManage tags for resources. + * Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys + * must be in the format tagKeys/123 and values in the format tagValues/456. For more information, + * seeManage tags for resources. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceGroupManagerParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java index f5a21112cc1..bf1e21efcc1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerResizeRequest.java @@ -41,8 +41,7 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer count; /** - * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text - * format. + * [Output Only] The creation timestamp for this resize request inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,8 +55,7 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String description; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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 @@ -73,8 +71,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.util.List instances; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceGroupManagerResizeRequest for resize requests. + * [Output Only] The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for + * resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,8 +86,8 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.String name; /** - * Output only. [Output Only] The URL of aregion where the resize request is located. Populated - * only for regional resize requests. + * [Output Only] The URL of aregion where the resize request is located. Populated only for + * regional resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,36 +110,36 @@ public final class InstanceGroupManagerResizeRequest extends com.google.api.clie private java.lang.Integer resizeBy; /** - * Output only. [Output Only] The URL for this resize request. The server defines this URL. + * [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. [Output Only] Server-defined URL for this resource with the resource id. + * [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] Current state of the request. + * [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. [Output only] Status of the request. + * [Output only] Status of the request. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceGroupManagerResizeRequestStatus status; /** - * Output only. [Output Only] The URL of azone where the resize request is located. Populated only - * for zonal resize requests. + * [Output Only] The URL of azone where the resize request is located. Populated only for zonal + * resize requests. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -167,8 +165,7 @@ public InstanceGroupManagerResizeRequest setCount(java.lang.Integer count) { } /** - * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text - * format. + * [Output Only] The creation timestamp for this resize request inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -176,8 +173,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this resize request inRFC3339 text - * format. + * [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) { @@ -203,8 +199,7 @@ public InstanceGroupManagerResizeRequest setDescription(java.lang.String descrip } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -212,8 +207,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -243,8 +237,8 @@ public InstanceGroupManagerResizeRequest setInstances(java.util.List appliedAcceleratorTopologies; - - /** - * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. + * [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. [Output Only] The status of bulk instance operation. + * [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. [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. [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. + * [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. [Output Only] Stateful status of the given Instance Group Manager. + * [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. [Output Only] A status of consistency of Instances' versions with their target - * version specified by version field on Instance Group Manager. + * [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. [Output only] Status of all-instances configuration on the group. + * [Output only] Status of all-instances configuration on the group. * @return value or {@code null} for none */ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { @@ -101,7 +85,7 @@ public InstanceGroupManagerStatusAllInstancesConfig getAllInstancesConfig() { } /** - * Output only. [Output only] Status of all-instances configuration on the group. + * [Output only] Status of all-instances configuration on the group. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStatusAllInstancesConfig allInstancesConfig) { @@ -110,26 +94,7 @@ public InstanceGroupManagerStatus setAllInstancesConfig(InstanceGroupManagerStat } /** - * Output only. [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. [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. [Output Only] The URL of theAutoscaler that targets this instance group manager. + * [Output Only] The URL of theAutoscaler that targets this instance group manager. * @return value or {@code null} for none */ public java.lang.String getAutoscaler() { @@ -137,7 +102,7 @@ public java.lang.String getAutoscaler() { } /** - * Output only. [Output Only] The URL of theAutoscaler that targets this instance group manager. + * [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) { @@ -146,7 +111,7 @@ public InstanceGroupManagerStatus setAutoscaler(java.lang.String autoscaler) { } /** - * Output only. [Output Only] The status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation() { @@ -154,7 +119,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation getBulkInstanceOperation( } /** - * Output only. [Output Only] The status of bulk instance operation. + * [Output Only] The status of bulk instance operation. * @param bulkInstanceOperation bulkInstanceOperation or {@code null} for none */ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation bulkInstanceOperation) { @@ -163,30 +128,11 @@ public InstanceGroupManagerStatus setBulkInstanceOperation(InstanceGroupManagerS } /** - * Output only. [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. [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. [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. + * [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() { @@ -194,11 +140,11 @@ public java.lang.Boolean getIsStable() { } /** - * Output only. [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. + * [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) { @@ -207,7 +153,7 @@ public InstanceGroupManagerStatus setIsStable(java.lang.Boolean isStable) { } /** - * Output only. [Output Only] Stateful status of the given Instance Group Manager. + * [Output Only] Stateful status of the given Instance Group Manager. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStateful getStateful() { @@ -215,7 +161,7 @@ public InstanceGroupManagerStatusStateful getStateful() { } /** - * Output only. [Output Only] Stateful status of the given Instance Group Manager. + * [Output Only] Stateful status of the given Instance Group Manager. * @param stateful stateful or {@code null} for none */ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful stateful) { @@ -224,8 +170,8 @@ public InstanceGroupManagerStatus setStateful(InstanceGroupManagerStatusStateful } /** - * Output only. [Output Only] A status of consistency of Instances' versions with their target - * version specified by version field on Instance Group Manager. + * [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() { @@ -233,8 +179,8 @@ public InstanceGroupManagerStatusVersionTarget getVersionTarget() { } /** - * Output only. [Output Only] A status of consistency of Instances' versions with their target - * version specified by version field on Instance Group Manager. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopology.java deleted file mode 100644 index 26fa1838eb2..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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. [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. [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. [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. [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. [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. [Output Only] The state of the accelerator topology. - * @return value or {@code null} for none - */ - public java.lang.String getState() { - return state; - } - - /** - * Output only. [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. [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. [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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java deleted file mode 100644 index 4846161c97c..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.java +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -/* - * This code was generated by 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. [Output Only] Encountered errors. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Output only. [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. [Output Only] Encountered errors. - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Output only. [Output Only] Encountered errors. - * @param error error or {@code null} for none - */ - public InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails setError(Error error) { - this.error = error; - return this; - } - - /** - * Output only. [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. [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. [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(); - } - - /** - * Model definition for - * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors. - */ - 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(); - } - - /** - * Model definition for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails - * ErrorErrorsErrorDetails. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * @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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java index 3d76a225843..e0e76dce377 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusAllInstancesConfig.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagerStatusAllInstancesConfig extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Current all-instances configuration revision. This value is in - * RFC3339 text format. + * [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. [Output Only] A bit indicating whether this configuration has been applied to all - * managed instances in the group. + * [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. [Output Only] Current all-instances configuration revision. This value is in - * RFC3339 text format. + * [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() { @@ -55,8 +55,8 @@ public java.lang.String getCurrentRevision() { } /** - * Output only. [Output Only] Current all-instances configuration revision. This value is in - * RFC3339 text format. + * [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) { @@ -65,8 +65,8 @@ public InstanceGroupManagerStatusAllInstancesConfig setCurrentRevision(java.lang } /** - * Output only. [Output Only] A bit indicating whether this configuration has been applied to all - * managed instances in the group. + * [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() { @@ -74,8 +74,8 @@ public java.lang.Boolean getEffective() { } /** - * Output only. [Output Only] A bit indicating whether this configuration has been applied to all - * managed instances in the group. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java index 365ad1b4b88..989340fa3df 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperation.java @@ -31,21 +31,21 @@ public final class InstanceGroupManagerStatusBulkInstanceOperation extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * [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. [Output Only] Information from the last progress check of bulk instance operation. + * [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. [Output Only] Informs whether bulk instance operation is in progress. + * [Output Only] Informs whether bulk instance operation is in progress. * @return value or {@code null} for none */ public java.lang.Boolean getInProgress() { @@ -53,7 +53,7 @@ public java.lang.Boolean getInProgress() { } /** - * Output only. [Output Only] Informs whether bulk instance operation is in progress. + * [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) { @@ -62,7 +62,7 @@ public InstanceGroupManagerStatusBulkInstanceOperation setInProgress(java.lang.B } /** - * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * [Output Only] Information from the last progress check of bulk instance operation. * @return value or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastProgressCheck() { @@ -70,7 +70,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck getLastP } /** - * Output only. [Output Only] Information from the last progress check of bulk instance operation. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java index a807d179547..ecbde4accc4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.java @@ -30,22 +30,22 @@ public final class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Errors encountered during bulk instance operation. + * [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. [Output Only] Timestamp of the last progress check of bulk instance operation. - * Timestamp is in RFC3339 text format. + * [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. [Output Only] Errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * @return value or {@code null} for none */ public Error getError() { @@ -53,7 +53,7 @@ public Error getError() { } /** - * Output only. [Output Only] Errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. * @param error error or {@code null} for none */ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError(Error error) { @@ -62,8 +62,8 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck setError } /** - * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. - * Timestamp is in RFC3339 text format. + * [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() { @@ -71,8 +71,8 @@ public String getTimestamp() { } /** - * Output only. [Output Only] Timestamp of the last progress check of bulk instance operation. - * Timestamp is in RFC3339 text format. + * [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) { @@ -91,7 +91,7 @@ public InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck clone() } /** - * Output only. [Output Only] Errors encountered during bulk instance operation. + * [Output Only] Errors encountered during bulk instance operation. */ public static final class Error extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.java deleted file mode 100644 index b83decbf8bf..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusInstanceStatusSummary.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.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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java index 1c67ad04c5b..9206c3f3286 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStateful.java @@ -30,40 +30,40 @@ public final class InstanceGroupManagerStatusStateful extends com.google.api.client.json.GenericJson { /** - * Output only. [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. + * [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. [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. This field is deprecated in favor of has_stateful_config. + * [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. This field is deprecated in favor of has_stateful_config. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isStateful; /** - * Output only. [Output Only] Status of per-instance configurations on the instances. + * [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. [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. + * [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() { @@ -71,11 +71,11 @@ public java.lang.Boolean getHasStatefulConfig() { } /** - * Output only. [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. + * [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) { @@ -84,11 +84,11 @@ public InstanceGroupManagerStatusStateful setHasStatefulConfig(java.lang.Boolean } /** - * Output only. [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. This field is deprecated in favor of has_stateful_config. + * [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. This field is deprecated in favor of has_stateful_config. * @return value or {@code null} for none */ public java.lang.Boolean getIsStateful() { @@ -96,11 +96,11 @@ public java.lang.Boolean getIsStateful() { } /** - * Output only. [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. This field is deprecated in favor of has_stateful_config. + * [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. This field is deprecated in favor of has_stateful_config. * @param isStateful isStateful or {@code null} for none */ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStateful) { @@ -109,7 +109,7 @@ public InstanceGroupManagerStatusStateful setIsStateful(java.lang.Boolean isStat } /** - * Output only. [Output Only] Status of per-instance configurations on the instances. + * [Output Only] Status of per-instance configurations on the instances. * @return value or {@code null} for none */ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfigs() { @@ -117,7 +117,7 @@ public InstanceGroupManagerStatusStatefulPerInstanceConfigs getPerInstanceConfig } /** - * Output only. [Output Only] Status of per-instance configurations on the instances. + * [Output Only] Status of per-instance configurations on the instances. * @param perInstanceConfigs perInstanceConfigs or {@code null} for none */ public InstanceGroupManagerStatusStateful setPerInstanceConfigs(InstanceGroupManagerStatusStatefulPerInstanceConfigs perInstanceConfigs) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java index 0a11f261bbd..cd4fcc7b0cd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusStatefulPerInstanceConfigs.java @@ -30,18 +30,16 @@ 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. + * 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. + * 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() { @@ -49,9 +47,8 @@ public java.lang.Boolean getAllEffective() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java index 47ab8a1d668..daa48f86a9a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerStatusVersionTarget.java @@ -30,18 +30,18 @@ public final class InstanceGroupManagerStatusVersionTarget extends com.google.api.client.json.GenericJson { /** - * Output only. [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. + * [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. [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. + * [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() { @@ -49,9 +49,9 @@ public java.lang.Boolean getIsReached() { } /** - * Output only. [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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.java deleted file mode 100644 index b71abcd8eef..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequest.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.model; - -/** - * InstanceGroupManagers.ConfigureAcceleratorTopologies - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class InstanceGroupManagersConfigureAcceleratorTopologiesRequest extends com.google.api.client.json.GenericJson { - - /** - * Map of accelerator topologies that should have their state changed to the specified value. The - * key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map acceleratorTopologyActions; - - /** - * Map of accelerator topologies that should have their state changed to the specified - * configuration. The map key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.Map acceleratorTopologyConfigurations; - - /** - * Map of accelerator topologies that should have their state changed to the specified value. The - * key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @return value or {@code null} for none - */ - public java.util.Map getAcceleratorTopologyActions() { - return acceleratorTopologyActions; - } - - /** - * Map of accelerator topologies that should have their state changed to the specified value. The - * key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @param acceleratorTopologyActions acceleratorTopologyActions or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyActions(java.util.Map acceleratorTopologyActions) { - this.acceleratorTopologyActions = acceleratorTopologyActions; - return this; - } - - /** - * Map of accelerator topologies that should have their state changed to the specified - * configuration. The map key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @return value or {@code null} for none - */ - public java.util.Map getAcceleratorTopologyConfigurations() { - return acceleratorTopologyConfigurations; - } - - /** - * Map of accelerator topologies that should have their state changed to the specified - * configuration. The map key is the hashed topology locus id. It can be obtained from the - * GetAvailableAcceleratorTopologies rpc. - * @param acceleratorTopologyConfigurations acceleratorTopologyConfigurations or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest setAcceleratorTopologyConfigurations(java.util.Map acceleratorTopologyConfigurations) { - this.acceleratorTopologyConfigurations = acceleratorTopologyConfigurations; - return this; - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest set(String fieldName, Object value) { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequest clone() { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.java deleted file mode 100644 index b3540f47759..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration.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.model; - -/** - * Configuration for a single accelerator 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 InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String action; - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is - * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be - * provided on deactivating as well. This identifier is cleared on successful deform of a sub- - * slice. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalId; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getAction() { - return action; - } - - /** - * @param action action or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setAction(java.lang.String action) { - this.action = action; - return this; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is - * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be - * provided on deactivating as well. This identifier is cleared on successful deform of a sub- - * slice. - * @return value or {@code null} for none - */ - public java.lang.String getExternalId() { - return externalId; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. The format needs to conform to RFC1035 and be unique. The uniqueness is - * guaranteed by the requestor. If it is provided on activating the sub-slice it will have to be - * provided on deactivating as well. This identifier is cleared on successful deform of a sub- - * slice. - * @param externalId externalId or {@code null} for none - */ - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration setExternalId(java.lang.String externalId) { - this.externalId = externalId; - return this; - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration set(String fieldName, Object value) { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration clone() { - return (InstanceGroupManagersConfigureAcceleratorTopologiesRequestAcceleratorTopologyConfiguration) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java index 35e3248c950..aabd38483fb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.java @@ -36,13 +36,6 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.util.Map acceleratorTopologiesInfo; - /** - * URL to MMIG this MIG belongs to. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String multiMig; - /** * The accelerator topology information returned per id of the topology location. * @return value or {@code null} for none @@ -60,23 +53,6 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setAcceler return this; } - /** - * URL to MMIG this MIG belongs to. - * @return value or {@code null} for none - */ - public java.lang.String getMultiMig() { - return multiMig; - } - - /** - * URL to MMIG this MIG belongs to. - * @param multiMig multiMig or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse setMultiMig(java.lang.String multiMig) { - this.multiMig = multiMig; - return this; - } - @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java index 62245dff30e..5a2343fe5ef 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo.java @@ -43,26 +43,6 @@ public final class InstanceGroupManagersGetAvailableAcceleratorTopologiesRespons @com.google.api.client.util.Key private java.lang.String acceleratorTopologyHealth; - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instancesHealth; - - /** - * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level - * topology - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - /** * Topology in the format of: "16x16", "4x4x4", etc. * @return value or {@code null} for none @@ -95,55 +75,6 @@ public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAccelerator return this; } - /** - * @return value or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState getAcceleratorTopologyState() { - return acceleratorTopologyState; - } - - /** - * @param acceleratorTopologyState acceleratorTopologyState or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setAcceleratorTopologyState(InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState acceleratorTopologyState) { - this.acceleratorTopologyState = acceleratorTopologyState; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getInstancesHealth() { - return instancesHealth; - } - - /** - * @param instancesHealth instancesHealth or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setInstancesHealth(java.lang.String instancesHealth) { - this.instancesHealth = instancesHealth; - return this; - } - - /** - * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level - * topology - * @return value or {@code null} for none - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Identified by the topology Id in the accelerator_topology_info map. Empty for the top-level - * topology - * @param parent parent or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo setParent(java.lang.String parent) { - this.parent = parent; - return this; - } - @Override public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo set(String fieldName, Object value) { return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.java deleted file mode 100644 index 7920e4ab13b..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState.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.model; - -/** - * Specifies the 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 InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String currentState; - - /** - * Reason why the topology state change failed - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Error error; - - /** - * Timestamp when the last error happened - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String errorTimestamp; - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating - * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared - * on successful deform of a sub-slice. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String externalId; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getCurrentState() { - return currentState; - } - - /** - * @param currentState currentState or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setCurrentState(java.lang.String currentState) { - this.currentState = currentState; - return this; - } - - /** - * Reason why the topology state change failed - * @return value or {@code null} for none - */ - public Error getError() { - return error; - } - - /** - * Reason why the topology state change failed - * @param error error or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setError(Error error) { - this.error = error; - return this; - } - - /** - * Timestamp when the last error happened - * @return value or {@code null} for none - */ - public String getErrorTimestamp() { - return errorTimestamp; - } - - /** - * Timestamp when the last error happened - * @param errorTimestamp errorTimestamp or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setErrorTimestamp(String errorTimestamp) { - this.errorTimestamp = errorTimestamp; - return this; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating - * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared - * on successful deform of a sub-slice. - * @return value or {@code null} for none - */ - public java.lang.String getExternalId() { - return externalId; - } - - /** - * Identifier of the accelerator topology assigned externally to differentiate who is the owner of - * the topology. This is set in ConfigureAcceleratorTopologies. If it is provided on activating - * the sub-slice it will have to be provided on deactivating as well. This identifier is cleared - * on successful deform of a sub-slice. - * @param externalId externalId or {@code null} for none - */ - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState setExternalId(java.lang.String externalId) { - this.externalId = externalId; - return this; - } - - @Override - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState set(String fieldName, Object value) { - return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.set(fieldName, value); - } - - @Override - public InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState clone() { - return (InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTopologyState) super.clone(); - } - - /** - * Reason why the topology state change failed - */ - 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(); - } - - /** - * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop - * ologyStateErrorErrors. - */ - 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(); - } - - /** - * Model definition for InstanceGroupManagersGetAvailableAcceleratorTopologiesResponseAcceleratorTop - * ologyStateErrorErrorsErrorDetails. - */ - public static final class ErrorDetails extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ErrorInfo errorInfo; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private Help help; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private LocalizedMessage localizedMessage; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private QuotaExceededInfo quotaInfo; - - /** - * @return value or {@code null} for none - */ - public ErrorInfo getErrorInfo() { - return errorInfo; - } - - /** - * @param errorInfo errorInfo or {@code null} for none - */ - public ErrorDetails setErrorInfo(ErrorInfo errorInfo) { - this.errorInfo = errorInfo; - return this; - } - - /** - * @return value or {@code null} for none - */ - public Help getHelp() { - return help; - } - - /** - * @param help help or {@code null} for none - */ - public ErrorDetails setHelp(Help help) { - this.help = help; - return this; - } - - /** - * @return value or {@code null} for none - */ - public LocalizedMessage getLocalizedMessage() { - return localizedMessage; - } - - /** - * @param localizedMessage localizedMessage or {@code null} for none - */ - public ErrorDetails setLocalizedMessage(LocalizedMessage localizedMessage) { - this.localizedMessage = localizedMessage; - return this; - } - - /** - * @return value or {@code null} for none - */ - public QuotaExceededInfo getQuotaInfo() { - return quotaInfo; - } - - /** - * @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/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java index f00dea2d9f0..350007eb424 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListErrorsResponse.java @@ -30,24 +30,24 @@ public final class InstanceGroupManagersListErrorsResponse extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The list of errors of the managed instance group. + * [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. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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 errors of the managed instance group. + * [Output Only] The list of errors of the managed instance group. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -55,7 +55,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] The list of errors of the managed instance group. + * [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListErrorsResponse setItems(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] The list of instances in the managed instance group. * @return value or {@code null} for none */ public java.util.List getManagedInstances() { @@ -55,7 +55,7 @@ public java.util.List getManagedInstances() { } /** - * Output only. [Output Only] The list of instances in the managed instance group. + * [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) { @@ -64,10 +64,10 @@ public InstanceGroupManagersListManagedInstancesResponse setManagedInstances(jav } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -75,10 +75,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java index 39f9310f8a1..6e5441c60d9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersListPerInstanceConfigsResp.java @@ -30,31 +30,31 @@ public final class InstanceGroupManagersListPerInstanceConfigsResp extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The list of PerInstanceConfig. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [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. + * [Output Only] The list of PerInstanceConfig. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -62,7 +62,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] The list of PerInstanceConfig. + * [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List items) { @@ -71,10 +71,10 @@ public InstanceGroupManagersListPerInstanceConfigsResp setItems(java.util.List

      getInstanceGroupManagers() { @@ -61,8 +61,8 @@ public java.util.List getInstanceGroupManagers() { } /** - * Output only. [Output Only] The list of managed instance groups that are contained in the - * specified project and zone. + * [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) { @@ -71,8 +71,8 @@ public InstanceGroupManagersScopedList setInstanceGroupManagers(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. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -85,7 +84,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -111,9 +110,8 @@ public InstanceGroupsListInstances setItems(java.util.List getInstanceGroups() { @@ -59,7 +59,7 @@ public java.util.List getInstanceGroups() { } /** - * Output only. [Output Only] The list ofinstance groups that are contained in this scope. + * [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) { @@ -68,8 +68,8 @@ public InstanceGroupsScopedList setInstanceGroups(java.util.List } /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. + * [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() { @@ -77,8 +77,8 @@ public Warning getWarning() { } /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. + * [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) { @@ -97,8 +97,8 @@ public InstanceGroupsScopedList clone() { } /** - * Output only. [Output Only] An informational warning that replaces the list of instance groups - * when the list is empty. + * [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 { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java index 52708ff7c7d..e04d46dd714 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceList.java @@ -50,8 +50,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. + * [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 @@ -68,7 +67,7 @@ public final class InstanceList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public InstanceList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#instanceList for lists of Instance - * resources. + * [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) { @@ -158,7 +155,7 @@ public InstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 InstanceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java index 0a26dcf6469..77d1bf083d9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceListReferrers.java @@ -44,8 +44,8 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene private java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. + * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance + * referrers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,7 +62,7 @@ public final class InstanceListReferrers extends com.google.api.client.json.Gene 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 @@ -110,8 +110,8 @@ public InstanceListReferrers setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. + * [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of Instance + * referrers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -119,8 +119,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#instanceListReferrers for lists of - * Instance referrers. + * [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) { @@ -152,7 +152,7 @@ public InstanceListReferrers setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -160,7 +160,7 @@ 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 InstanceListReferrers setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index 7d14a73c218..ffd6e4dfa37 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,30 +30,29 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Contents of the error. + * [Output Only] Contents of the error. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorManagedInstanceError error; /** - * Output only. [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. + * [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. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * [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. [Output Only] Contents of the error. + * [Output Only] Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -61,7 +60,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * Output only. [Output Only] Contents of the error. + * [Output Only] Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -70,8 +69,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * Output only. [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. + * [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() { @@ -79,8 +78,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * Output only. [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. + * [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) { @@ -89,8 +88,7 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * [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() { @@ -98,8 +96,7 @@ public java.lang.String getTimestamp() { } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index f92d0a732ed..c0704e627c8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ public final class InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * [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. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * [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. [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. + * [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. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * [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() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * [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) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * [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() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * [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) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * Output only. [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. + * [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() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * Output only. [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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 3006dd39ef3..73b93956f78 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Error code. + * [Output Only] Error code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String code; /** - * Output only. [Output Only] Error message. + * [Output Only] Error message. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String message; /** - * Output only. [Output Only] Error code. + * [Output Only] Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * Output only. [Output Only] Error code. + * [Output Only] Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * Output only. [Output Only] Error message. + * [Output Only] Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * Output only. [Output Only] Error message. + * [Output Only] Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java index 63c2e3a2f6b..95781dfac53 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceParams.java @@ -37,11 +37,9 @@ public final class InstanceParams extends com.google.api.client.json.GenericJson 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/456` 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. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,11 +63,9 @@ public InstanceParams setRequestValidForDuration(Duration requestValidForDuratio } /** - * 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/456` 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. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -77,11 +73,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java index bcb9f5a3f27..509da325764 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceProperties.java @@ -189,10 +189,9 @@ public final class InstanceProperties extends com.google.api.client.json.Generic 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 must be in the format `tagKeys/{tag_key_id}`, - * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when - * empty. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -245,12 +244,6 @@ public final class InstanceProperties extends com.google.api.client.json.Generic @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. @@ -600,10 +593,9 @@ public InstanceProperties setReservationAffinity(ReservationAffinity reservation } /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, - * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when - * empty. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -611,10 +603,9 @@ public java.util.Map getResourceManagerTags() { } /** - * Input only. Resource manager tags to be bound to the instance. Tag keys and values have the - * same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, - * and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when - * empty. + * Resource manager tags to be bound to the instance. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public InstanceProperties setResourceManagerTags(java.util.Map resourceManagerTags) { @@ -734,21 +725,6 @@ public InstanceProperties setTags(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); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java index c8fde84cc91..3fe5bc7a0bf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettings.java @@ -45,8 +45,7 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs private java.lang.String fingerprint; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. + * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,8 +59,8 @@ public final class InstanceSettings extends com.google.api.client.json.GenericJs 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. + * [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 @@ -137,8 +136,7 @@ public InstanceSettings encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. + * [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -146,8 +144,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance - * settings. + * [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) { @@ -173,8 +170,8 @@ public InstanceSettings setMetadata(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. + * [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() { @@ -182,8 +179,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java index 560dee51139..41d708caacc 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceSettingsMetadata.java @@ -37,7 +37,7 @@ public final class InstanceSettingsMetadata extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [Output Only] Type of the resource. Always compute#metadata for metadata. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public InstanceSettingsMetadata setItems(java.util.Map } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [Output Only] Type of the resource. Always compute#metadata for metadata. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java index 403b810a838..5dfcdd971a8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplate.java @@ -44,8 +44,7 @@ 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. + * [Output Only] The creation timestamp for this instance template inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,16 +58,16 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private java.lang.String description; /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. + * [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. + * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance + * templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -93,15 +92,15 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private InstanceProperties properties; /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. + * [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. + * [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 @@ -125,8 +124,7 @@ public final class InstanceTemplate extends com.google.api.client.json.GenericJs private SourceInstanceParams sourceInstanceParams; /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. + * [Output Only] The creation timestamp for this instance template inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -134,8 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this instance template inRFC3339 text - * format. + * [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) { @@ -161,8 +158,8 @@ public InstanceTemplate setDescription(java.lang.String description) { } /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. + * [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() { @@ -170,8 +167,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this instance template. The server defines - * this identifier. + * [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) { @@ -180,8 +177,8 @@ public InstanceTemplate setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. + * [Output Only] The resource type, which is alwayscompute#instanceTemplate for instance + * templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -189,8 +186,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#instanceTemplate for - * instance templates. + * [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) { @@ -241,8 +238,8 @@ public InstanceTemplate setProperties(InstanceProperties properties) { } /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. + * [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() { @@ -250,8 +247,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the instance template resides. Only - * applicable for regional resources. + * [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) { @@ -260,7 +257,7 @@ public InstanceTemplate setRegion(java.lang.String region) { } /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * [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() { @@ -268,7 +265,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this instance template. The server defines this URL. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java index df3fbf15617..a493fec52ef 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceTemplateAggregatedList.java @@ -44,7 +44,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class InstanceTemplateAggregatedList extends com.google.api.client. 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 @@ -109,7 +109,7 @@ public InstanceTemplateAggregatedList setItems(java.util.Map items) { } /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#instanceTemplatesListResponse for instance template lists. + * [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) { @@ -158,7 +158,7 @@ public InstanceTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 InstanceTemplateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java index 0337c8ee34c..c697b45db10 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceWithNamedPorts.java @@ -30,28 +30,28 @@ public final class InstanceWithNamedPorts extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The URL of the instance. + * [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. + * [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. + * [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. + * [Output Only] The URL of the instance. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -59,7 +59,7 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. + * [Output Only] The URL of the instance. * @param instance instance or {@code null} for none */ public InstanceWithNamedPorts setInstance(java.lang.String instance) { @@ -68,7 +68,7 @@ public InstanceWithNamedPorts setInstance(java.lang.String instance) { } /** - * Output only. [Output Only] The named ports that belong to this instance group. + * [Output Only] The named ports that belong to this instance group. * @return value or {@code null} for none */ public java.util.List getNamedPorts() { @@ -76,7 +76,7 @@ public java.util.List getNamedPorts() { } /** - * Output only. [Output Only] The named ports that belong to this instance group. + * [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) { @@ -85,7 +85,7 @@ public InstanceWithNamedPorts setNamedPorts(java.util.List namedPorts } /** - * Output only. [Output Only] The status of the instance. + * [Output Only] The status of the instance. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -93,7 +93,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the instance. + * [Output Only] The status of the instance. * @param status status or {@code null} for none */ public InstanceWithNamedPorts setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 4ef7f976b66..d82f3df25a9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ 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. + * [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. + * [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. + * [Output Only] The packet mirroring rules that apply to the instance. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -81,14 +80,14 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output Only] The short name of the firewall policy. + * [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, + * [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}. */ @@ -96,8 +95,8 @@ public final class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy private java.lang.String type; /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. + * [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() { @@ -105,8 +104,8 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. + * [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) { @@ -115,7 +114,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayN } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -123,7 +122,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -132,7 +131,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(jav } /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * [Output Only] The packet mirroring rules that apply to the instance. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -140,7 +139,7 @@ public java.util.List getPacketMirroringRules() { } /** - * Output only. [Output Only] The packet mirroring rules that apply to the instance. + * [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) { @@ -149,8 +148,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMi } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -158,8 +156,7 @@ public java.lang.Integer getPriority() { } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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) { @@ -189,7 +186,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(ja } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -197,7 +194,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @param shortName shortName or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { @@ -206,7 +203,7 @@ public InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortNam } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ @@ -215,7 +212,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index e9a6ca5f849..3d5173fb948 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,8 +30,7 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. The unique identifier for the security policy. This identifier is defined by the - * server. + * The unique identifier for the security policy. 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 @@ -45,8 +44,7 @@ public final class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPol private java.util.List rules; /** - * Output only. The unique identifier for the security policy. This identifier is defined by the - * server. + * The unique identifier for the security policy. This identifier is defined by the server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -54,8 +52,7 @@ public java.math.BigInteger getId() { } /** - * Output only. The unique identifier for the security policy. This identifier is defined by the - * server. + * The unique identifier for the security policy. This identifier is defined by the server. * @param id id or {@code null} for none */ public InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java index 5bfec0fbc4a..b126103d93c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshot.java @@ -32,15 +32,14 @@ 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,23 +53,22 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.String description; /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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. + * [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. + * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot + * resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,24 +107,15 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso 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. + * [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. + * [Output Only] Status information for the instant snapshot resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -140,21 +129,21 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -175,51 +164,32 @@ public final class InstantSnapshot extends com.google.api.client.json.GenericJso 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. + * [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. + * [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. + * [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. + * [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() { @@ -227,8 +197,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the instant snapshot. Valid values are ARM64 or - * X86_64. + * [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) { @@ -237,7 +206,7 @@ public InstantSnapshot setArchitecture(java.lang.String architecture) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -245,7 +214,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InstantSnapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -271,7 +240,7 @@ public InstantSnapshot setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -279,7 +248,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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) { @@ -288,8 +257,7 @@ public InstantSnapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -297,8 +265,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -307,8 +274,8 @@ public InstantSnapshot setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. + * [Output Only] Type of the resource. Alwayscompute#instantSnapshot for InstantSnapshot + * resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -316,8 +283,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshot for - * InstantSnapshot resources. + * [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) { @@ -439,28 +406,8 @@ public InstantSnapshot setName(java.lang.String name) { } /** - * 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. + * [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() { @@ -468,9 +415,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -479,7 +425,7 @@ public InstantSnapshot setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Status information for the instant snapshot resource. + * [Output Only] Status information for the instant snapshot resource. * @return value or {@code null} for none */ public InstantSnapshotResourceStatus getResourceStatus() { @@ -487,7 +433,7 @@ public InstantSnapshotResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for the instant snapshot resource. + * [Output Only] Status information for the instant snapshot resource. * @param resourceStatus resourceStatus or {@code null} for none */ public InstantSnapshot setResourceStatus(InstantSnapshotResourceStatus resourceStatus) { @@ -513,7 +459,7 @@ public InstantSnapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -521,7 +467,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -530,7 +476,7 @@ public InstantSnapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -538,7 +484,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public InstantSnapshot setSelfLink(java.lang.String selfLink) { @@ -547,7 +493,7 @@ public InstantSnapshot setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -555,7 +501,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { @@ -595,9 +541,9 @@ public InstantSnapshot setSourceDisk(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. + * [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() { @@ -605,9 +551,9 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -616,50 +562,8 @@ public InstantSnapshot setSourceDiskId(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. - * @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. + * [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() { @@ -667,8 +571,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the instantSnapshot. This can beCREATING, DELETING, - * FAILED, orREADY. + * [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) { @@ -677,8 +581,8 @@ public InstantSnapshot setStatus(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. + * [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() { @@ -686,8 +590,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java index a2dec556c4a..142111e4ee5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotAggregatedList.java @@ -44,8 +44,8 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for - * aggregated lists of instantSnapshots. + * [Output Only] Type of resource. Alwayscompute#instantSnapshotAggregatedList for aggregated + * lists of instantSnapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class InstantSnapshotAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InstantSnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InstantSnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroup.java deleted file mode 100644 index cc0835f0895..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupParameters.java deleted file mode 100644 index e40d2be4748..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupResourceStatus.java deleted file mode 100644 index 44d3387e7de..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotGroupSourceInfo.java deleted file mode 100644 index e89704779c9..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java index 455da93a46a..da8ce7d29fa 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotList.java @@ -50,7 +50,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class InstantSnapshotList extends com.google.api.client.json.Generi 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 @@ -115,7 +115,7 @@ public InstantSnapshotList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public InstantSnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public InstantSnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 InstantSnapshotList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstantSnapshotParams.java deleted file mode 100644 index 50d9f5655fe..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java index 62e37b49163..d7674b9f529 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -70,15 +70,14 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.util.List availableFeatures; /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -100,47 +99,46 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] A list of outages expected for this Interconnect. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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 @@ -158,7 +156,7 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String interconnectType; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -245,9 +243,9 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -266,16 +264,16 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { 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. + * [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. + * [Output Only] Number of links actually provisioned in this interconnect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -310,41 +308,42 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.Integer requestedLinkCount; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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 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. + * [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. + * Specific subzone in the InterconnectLocation 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 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. + * [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 @@ -437,8 +436,7 @@ public Interconnect setAvailableFeatures(java.util.List availa } /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. + * [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() { @@ -446,8 +444,7 @@ public java.util.List getCircuitInfos() { } /** - * Output only. [Output Only] A list of CircuitInfo objects, that describe the individual circuits - * in this LAG. + * [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) { @@ -456,7 +453,7 @@ public Interconnect setCircuitInfos(java.util.List circ } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -464,7 +461,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Interconnect setCreationTimestamp(java.lang.String creationTimestamp) { @@ -509,7 +506,7 @@ public Interconnect setDescription(java.lang.String description) { } /** - * Output only. [Output Only] A list of outages expected for this Interconnect. + * [Output Only] A list of outages expected for this Interconnect. * @return value or {@code null} for none */ public java.util.List getExpectedOutages() { @@ -517,7 +514,7 @@ public java.util.List getExpectedOutages() { } /** - * Output only. [Output Only] A list of outages expected for this Interconnect. + * [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) { @@ -526,8 +523,8 @@ public Interconnect setExpectedOutages(java.util.List getInterconnectAttachments() { @@ -592,8 +587,8 @@ public java.util.List getInterconnectAttachments() { } /** - * Output only. [Output Only] A list of the URLs of all InterconnectAttachments configured to use - * this Interconnect. + * [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) { @@ -602,8 +597,8 @@ public Interconnect setInterconnectAttachments(java.util.List } /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. + * [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() { @@ -611,8 +606,8 @@ public java.util.List getInterconnectGroups() { } /** - * Output only. [Output Only] URLs of InterconnectGroups that include this Interconnect. Order is - * arbitrary and items are unique. + * [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) { @@ -646,7 +641,7 @@ public Interconnect setInterconnectType(java.lang.String interconnectType) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -654,7 +649,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnect for interconnects. + * [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) { @@ -887,9 +882,9 @@ public Interconnect setNocContactEmail(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. + * [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 @@ -901,9 +896,9 @@ public java.lang.String getOperationalStatus() { } /** - * 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. + * [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 @@ -935,9 +930,9 @@ public Interconnect setParams(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. + * [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() { @@ -945,9 +940,9 @@ public java.lang.String getPeerIpAddress() { } /** - * 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. + * [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) { @@ -956,7 +951,7 @@ public Interconnect setPeerIpAddress(java.lang.String peerIpAddress) { } /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * [Output Only] Number of links actually provisioned in this interconnect. * @return value or {@code null} for none */ public java.lang.Integer getProvisionedLinkCount() { @@ -964,7 +959,7 @@ public java.lang.Integer getProvisionedLinkCount() { } /** - * Output only. [Output Only] Number of links actually provisioned in this interconnect. + * [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) { @@ -1038,7 +1033,7 @@ public Interconnect setRequestedLinkCount(java.lang.Integer requestedLinkCount) } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -1046,7 +1041,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -1055,7 +1050,7 @@ public Interconnect setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -1063,7 +1058,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Interconnect setSelfLink(java.lang.String selfLink) { @@ -1072,12 +1067,12 @@ public Interconnect setSelfLink(java.lang.String selfLink) { } /** - * 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. + * [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() { @@ -1085,12 +1080,12 @@ public java.lang.String getState() { } /** - * 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. + * [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) { @@ -1099,7 +1094,8 @@ public Interconnect setState(java.lang.String state) { } /** - * To be deprecated. + * Specific subzone in the InterconnectLocation that represents where this connection is to be + * provisioned. * @return value or {@code null} for none */ public java.lang.String getSubzone() { @@ -1107,7 +1103,8 @@ public java.lang.String getSubzone() { } /** - * To be deprecated. + * Specific subzone in the InterconnectLocation that represents where this connection is to be + * provisioned. * @param subzone subzone or {@code null} for none */ public Interconnect setSubzone(java.lang.String subzone) { @@ -1116,8 +1113,8 @@ public Interconnect setSubzone(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. + * [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() { @@ -1125,8 +1122,8 @@ public java.util.List getWireGroups() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java index 049a541c269..371d5d3e87b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachment.java @@ -41,7 +41,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.Boolean adminEnabled; /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * [Output Only] URL of the AttachmentGroup that includes this Attachment. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,16 +119,16 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List candidateSubnets; /** - * Output only. [Output Only] IPv4 address + prefix length to be configured on Cloud Router - * Interface for this interconnect attachment. + * [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. + * [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 @@ -142,31 +142,31 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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. + * [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. + * [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. + * [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 @@ -180,9 +180,9 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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 @@ -224,16 +224,15 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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. + * [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 @@ -263,8 +262,8 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.util.List ipsecInternalAddresses; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for - * interconnect attachments. + * [Output Only] Type of the resource. Alwayscompute#interconnectAttachment for interconnect + * attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -323,10 +322,10 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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 @@ -367,25 +366,25 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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. + * [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 + * [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 @@ -405,14 +404,14 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen private java.lang.String router; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -430,19 +429,19 @@ public final class InterconnectAttachment extends com.google.api.client.json.Gen 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. + * [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 @@ -501,7 +500,7 @@ public InterconnectAttachment setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * [Output Only] URL of the AttachmentGroup that includes this Attachment. * @return value or {@code null} for none */ public java.lang.String getAttachmentGroup() { @@ -509,7 +508,7 @@ public java.lang.String getAttachmentGroup() { } /** - * Output only. [Output Only] URL of the AttachmentGroup that includes this Attachment. + * [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) { @@ -525,7 +524,7 @@ public InterconnectAttachment setAttachmentGroup(java.lang.String attachmentGrou * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * @return value or {@code null} for none */ public java.lang.String getBandwidth() { @@ -540,7 +539,7 @@ public java.lang.String getBandwidth() { * 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 + * Gbit/s - BPS_100G: 100 Gbit/s * @param bandwidth bandwidth or {@code null} for none */ public InterconnectAttachment setBandwidth(java.lang.String bandwidth) { @@ -681,8 +680,8 @@ public InterconnectAttachment setCandidateSubnets(java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentAggregatedList - * for aggregated lists of interconnect attachments. + * [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 @@ -62,14 +62,14 @@ public final class InterconnectAttachmentAggregatedList extends com.google.api.c 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public InterconnectAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java index 1988be83c63..e646f684b49 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentConfigurationConstraints.java @@ -30,8 +30,8 @@ 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, + * [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 @@ -45,10 +45,9 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go 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. + * [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. @@ -58,8 +57,8 @@ public final class InterconnectAttachmentConfigurationConstraints extends com.go 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, + * [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 @@ -74,8 +73,8 @@ public java.lang.String getBgpMd5() { } /** - * 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, + * [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 @@ -91,10 +90,9 @@ public InterconnectAttachmentConfigurationConstraints setBgpMd5(java.lang.String } /** - * 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. + * [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. @@ -105,10 +103,9 @@ public 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. + * [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. + * [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. + * [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() { @@ -97,8 +94,7 @@ public java.util.List getAttachments() { } /** - * Output only. [Output Only] URLs of any particular Attachments to explain this blocker in more - * detail. + * [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) { @@ -122,8 +118,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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() { @@ -131,8 +127,8 @@ public java.lang.String getDocumentationLink() { } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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) { @@ -141,8 +137,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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. + * [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() { @@ -150,8 +146,8 @@ public java.lang.String getExplanation() { } /** - * 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. + * [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) { @@ -160,8 +156,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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 + * [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 */ @@ -170,8 +166,8 @@ public java.util.List getMetros() { } /** - * 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 + * [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 */ @@ -181,9 +177,9 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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. + * [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() { @@ -191,9 +187,9 @@ public java.util.List getRegions() { } /** - * 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. + * [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) { @@ -202,9 +198,8 @@ public InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers s } /** - * 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. + * [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() { @@ -212,9 +207,8 @@ public java.util.List getZones() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java index ac31099ab68..f267df5464a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegion.java @@ -36,7 +36,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegion extends com private java.util.List metros; /** - * Output only. [Output Only] The name of a region, like "us-central1". + * [Output Only] The name of a region, like "us-central1". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,7 +58,7 @@ public InterconnectAttachmentGroupLogicalStructureRegion setMetros(java.util.Lis } /** - * Output only. [Output Only] The name of a region, like "us-central1". + * [Output Only] The name of a region, like "us-central1". * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -66,7 +66,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The name of a region, like "us-central1". + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java index 45ba8bbc924..bba3ca5148d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetro.java @@ -36,8 +36,8 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetro extend 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. + * [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 @@ -59,8 +59,8 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetro setFacilities(java } /** - * 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. + * [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() { @@ -68,8 +68,8 @@ public java.lang.String getMetro() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java index c0d019c94e5..41cf84fc4f2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacility.java @@ -30,7 +30,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The name of a facility, like "iad-1234". + * [Output Only] The name of a facility, like "iad-1234". * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilit private java.util.List zones; /** - * Output only. [Output Only] The name of a facility, like "iad-1234". + * [Output Only] The name of a facility, like "iad-1234". * @return value or {@code null} for none */ public java.lang.String getFacility() { @@ -51,7 +51,7 @@ public java.lang.String getFacility() { } /** - * Output only. [Output Only] The name of a facility, like "iad-1234". + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java index 51dea9c5bf9..aa732b0c6b9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone.java @@ -31,23 +31,23 @@ 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. + * [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". + * [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. + * [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() { @@ -55,8 +55,8 @@ public java.util.List getAttachments() { } /** - * 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. + * [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) { @@ -65,7 +65,7 @@ public InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone setAtt } /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * [Output Only] The name of a zone, either "zone1" or "zone2". * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -73,7 +73,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The name of a zone, either "zone1" or "zone2". + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java index 887526bd499..79f57e9c00f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsListResponse.java @@ -79,8 +79,7 @@ public final class InterconnectAttachmentGroupsListResponse extends com.google.a private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,8 +197,7 @@ public InterconnectAttachmentGroupsListResponse setSelfLink(java.lang.String sel } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -207,8 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectAttachmentGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java index 5789be05d78..f1ab8505df3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatus.java @@ -42,7 +42,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupConfigured configured; /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,7 +55,7 @@ public final class InterconnectAttachmentGroupsOperationalStatus extends com.goo private InterconnectAttachmentGroupIntent intent; /** - * Output only. The operational state of the group, including only active Attachments. + * The operational state of the group, including only active Attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,7 +92,7 @@ public InterconnectAttachmentGroupsOperationalStatus setConfigured(InterconnectA } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -100,7 +100,7 @@ public java.lang.String getGroupStatus() { } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -124,7 +124,7 @@ public InterconnectAttachmentGroupsOperationalStatus setIntent(InterconnectAttac } /** - * Output only. The operational state of the group, including only active Attachments. + * The operational state of the group, including only active Attachments. * @return value or {@code null} for none */ public InterconnectAttachmentGroupConfigured getOperational() { @@ -132,7 +132,7 @@ public InterconnectAttachmentGroupConfigured getOperational() { } /** - * Output only. The operational state of the group, including only active Attachments. + * The operational state of the group, including only active Attachments. * @param operational operational or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatus setOperational(InterconnectAttachmentGroupConfigured operational) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java index 3122c881cc7..6bf525bd03e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentGroupsOperationalStatusAttachmentStatus.java @@ -30,39 +30,39 @@ 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. + * 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 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. + * 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. + * 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Output only. Whether this Attachment is enabled. This becomes false when the customer drains - * their Attachment. + * 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) { @@ -80,7 +80,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAdminEna } /** - * Output only. The URL of the Attachment being described. + * The URL of the Attachment being described. * @return value or {@code null} for none */ public java.lang.String getAttachment() { @@ -88,7 +88,7 @@ public java.lang.String getAttachment() { } /** - * Output only. The URL of the Attachment being described. + * The URL of the Attachment being described. * @param attachment attachment or {@code null} for none */ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachment(java.lang.String attachment) { @@ -97,9 +97,9 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setAttachme } /** - * 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. + * 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() { @@ -107,9 +107,9 @@ public java.lang.String getIsActive() { } /** - * 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. + * 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) { @@ -118,7 +118,7 @@ public InterconnectAttachmentGroupsOperationalStatusAttachmentStatus setIsActive } /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * Whether this Attachment is active, and if so, whether BGP is up. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -126,7 +126,7 @@ public java.lang.String getStatus() { } /** - * Output only. Whether this Attachment is active, and if so, whether BGP is up. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java index d2a89e3a68e..136a013f418 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectAttachmentList.java @@ -50,8 +50,8 @@ public final class InterconnectAttachmentList extends com.google.api.client.json } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists - * of interconnect attachments. + * [Output Only] Type of resource. Alwayscompute#interconnectAttachmentList for lists of + * interconnect attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class InterconnectAttachmentList extends com.google.api.client.json 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 @@ -116,8 +116,8 @@ public InterconnectAttachmentList setItems(java.util.List interconnects; /** - * Output only. [Output Only] Type of the resource. Always compute#InterconnectGroup + * [Output Only] Type of the resource. Always compute#InterconnectGroup * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,7 +109,7 @@ public final class InterconnectGroup extends com.google.api.client.json.GenericJ private InterconnectGroupPhysicalStructure physicalStructure; /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,7 +131,7 @@ public InterconnectGroup setConfigured(InterconnectGroupConfigured configured) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -139,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -188,8 +188,8 @@ public InterconnectGroup setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -197,8 +197,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -245,7 +245,7 @@ public InterconnectGroup setInterconnects(java.util.Map facilities; /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * [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. + * [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". + * [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 @@ -100,8 +100,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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() { @@ -109,8 +109,8 @@ public java.lang.String getDocumentationLink() { } /** - * Output only. [Output Only] The url of Google Cloud public documentation explaining this - * requirement. This is set for every type of requirement. + * [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) { @@ -119,8 +119,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * 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. + * [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() { @@ -128,8 +128,8 @@ public java.lang.String getExplanation() { } /** - * 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. + * [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) { @@ -138,7 +138,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * [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 */ @@ -147,7 +147,7 @@ public java.util.List getFacilities() { } /** - * Output only. [Output Only] Facilities used to explain this blocker in more detail. Like + * [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 */ @@ -157,7 +157,7 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * [Output Only] Interconnects used to explain this blocker in more detail. * @return value or {@code null} for none */ public java.util.List getInterconnects() { @@ -165,7 +165,7 @@ public java.util.List getInterconnects() { } /** - * Output only. [Output Only] Interconnects used to explain this blocker in more detail. + * [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) { @@ -174,9 +174,9 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * 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. + * [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() { @@ -184,9 +184,9 @@ public java.util.List getMetros() { } /** - * 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. + * [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) { @@ -195,8 +195,8 @@ public InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers s } /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". + * [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() { @@ -204,8 +204,8 @@ public java.util.List getZones() { } /** - * Output only. [Output Only] Zones used to explain this blocker in more detail. Zone names are - * "zone1" and/or "zone2". + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java index 39179adb193..1c4b44ca7c0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetros.java @@ -36,8 +36,8 @@ public final class InterconnectGroupPhysicalStructureMetros extends com.google.a 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. + * [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 @@ -59,8 +59,8 @@ public InterconnectGroupPhysicalStructureMetros setFacilities(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. + * [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() { @@ -53,8 +53,8 @@ public java.lang.String getFacility() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java index a71726bdb33..df961f862ac 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupPhysicalStructureMetrosFacilitiesZones.java @@ -30,24 +30,24 @@ 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. + * [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. + * [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. + * [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() { @@ -55,8 +55,8 @@ public java.util.List getInterconnects() { } /** - * Output only. [Output Only] URLs of Interconnects in this redundancy group in the given metro, - * facility, and zone. + * [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) { @@ -65,8 +65,8 @@ public InterconnectGroupPhysicalStructureMetrosFacilitiesZones setInterconnects( } /** - * 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. + * [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() { @@ -74,8 +74,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java index bf7e43b98dc..076722dc0ce 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsListResponse.java @@ -79,8 +79,7 @@ public final class InterconnectGroupsListResponse extends com.google.api.client. private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -198,8 +197,7 @@ public InterconnectGroupsListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -207,8 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public InterconnectGroupsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java index f042bf10e06..80d27d471e5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatus.java @@ -30,21 +30,21 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.client.json.GenericJson { /** - * Output only. The configuration analysis, as returned by Get. + * 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. + * 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 intent of the resource, as returned by Get. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,14 +57,14 @@ public final class InterconnectGroupsOperationalStatus extends com.google.api.cl private java.util.List interconnectStatuses; /** - * Output only. The operational state of the group, including only active Interconnects. + * 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. + * The configuration analysis, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupConfigured getConfigured() { @@ -72,7 +72,7 @@ public InterconnectGroupConfigured getConfigured() { } /** - * Output only. The configuration analysis, as returned by Get. + * The configuration analysis, as returned by Get. * @param configured configured or {@code null} for none */ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfigured configured) { @@ -81,7 +81,7 @@ public InterconnectGroupsOperationalStatus setConfigured(InterconnectGroupConfig } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @return value or {@code null} for none */ public java.lang.String getGroupStatus() { @@ -89,7 +89,7 @@ public java.lang.String getGroupStatus() { } /** - * Output only. Summarizes the status of the group. + * Summarizes the status of the group. * @param groupStatus groupStatus or {@code null} for none */ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String groupStatus) { @@ -98,7 +98,7 @@ public InterconnectGroupsOperationalStatus setGroupStatus(java.lang.String group } /** - * Output only. The intent of the resource, as returned by Get. + * The intent of the resource, as returned by Get. * @return value or {@code null} for none */ public InterconnectGroupIntent getIntent() { @@ -106,7 +106,7 @@ public InterconnectGroupIntent getIntent() { } /** - * Output only. The intent of the resource, as returned by Get. + * The intent of the resource, as returned by Get. * @param intent intent or {@code null} for none */ public InterconnectGroupsOperationalStatus setIntent(InterconnectGroupIntent intent) { @@ -130,7 +130,7 @@ public InterconnectGroupsOperationalStatus setInterconnectStatuses(java.util.Lis } /** - * Output only. The operational state of the group, including only active Interconnects. + * The operational state of the group, including only active Interconnects. * @return value or {@code null} for none */ public InterconnectGroupConfigured getOperational() { @@ -138,7 +138,7 @@ public InterconnectGroupConfigured getOperational() { } /** - * Output only. The operational state of the group, including only active Interconnects. + * The operational state of the group, including only active Interconnects. * @param operational operational or {@code null} for none */ public InterconnectGroupsOperationalStatus setOperational(InterconnectGroupConfigured operational) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java index 4dc45ceabc1..49fd3a7746a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectGroupsOperationalStatusInterconnectStatus.java @@ -30,36 +30,35 @@ public final class InterconnectGroupsOperationalStatusInterconnectStatus extends com.google.api.client.json.GenericJson { /** - * Output only. Whether the Interconnect is enabled. + * 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 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 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. + * 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. + * Whether the Interconnect is enabled. * @return value or {@code null} for none */ public java.lang.Boolean getAdminEnabled() { @@ -67,7 +66,7 @@ public java.lang.Boolean getAdminEnabled() { } /** - * Output only. Whether the Interconnect is enabled. + * Whether the Interconnect is enabled. * @param adminEnabled adminEnabled or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(java.lang.Boolean adminEnabled) { @@ -76,8 +75,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setAdminEnabled(jav } /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. + * The diagnostics of the Interconnect, as returned by the existing get-diagnostics method. * @return value or {@code null} for none */ public InterconnectDiagnostics getDiagnostics() { @@ -85,8 +83,7 @@ public InterconnectDiagnostics getDiagnostics() { } /** - * Output only. The diagnostics of the Interconnect, as returned by the existing get-diagnostics - * method. + * 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) { @@ -95,7 +92,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setDiagnostics(Inte } /** - * Output only. The URL of the Interconnect being described. + * The URL of the Interconnect being described. * @return value or {@code null} for none */ public java.lang.String getInterconnect() { @@ -103,7 +100,7 @@ public java.lang.String getInterconnect() { } /** - * Output only. The URL of the Interconnect being described. + * The URL of the Interconnect being described. * @param interconnect interconnect or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(java.lang.String interconnect) { @@ -112,7 +109,7 @@ public InterconnectGroupsOperationalStatusInterconnectStatus setInterconnect(jav } /** - * Output only. Whether this interconnect is participating in the redundant configuration. + * Whether this interconnect is participating in the redundant configuration. * @return value or {@code null} for none */ public java.lang.String getIsActive() { @@ -120,7 +117,7 @@ public java.lang.String getIsActive() { } /** - * Output only. Whether this interconnect is participating in the redundant configuration. + * Whether this interconnect is participating in the redundant configuration. * @param isActive isActive or {@code null} for none */ public InterconnectGroupsOperationalStatusInterconnectStatus setIsActive(java.lang.String isActive) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java index 1e714fff188..a1b7c05ded9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectList.java @@ -50,8 +50,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. + * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class InterconnectList extends com.google.api.client.json.GenericJs 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 @@ -116,8 +115,7 @@ public InterconnectList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. + * [Output Only] Type of resource. Alwayscompute#interconnectList for lists of interconnects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectList for lists of - * interconnects. + * [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) { @@ -158,7 +155,7 @@ public InterconnectList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 InterconnectList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java index 879497c0276..0beb6df3604 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocation.java @@ -33,8 +33,8 @@ 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. + * [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 @@ -83,7 +83,7 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String continent; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,78 +99,75 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.util.List crossSiteInterconnectInfos; /** - * Output only. [Output Only] An optional description of the resource. + * [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). + * [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). + * [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. + * [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. + * [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. + * [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). + * [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. + * [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. + * [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. + * [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 @@ -187,15 +184,15 @@ public final class InterconnectLocation extends com.google.api.client.json.Gener private java.lang.String status; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [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() { @@ -203,8 +200,8 @@ public java.lang.String getAddress() { } /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. + * [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) { @@ -312,7 +309,7 @@ public InterconnectLocation setContinent(java.lang.String continent) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -320,7 +317,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -350,7 +347,7 @@ public InterconnectLocation setCrossSiteInterconnectInfos(java.util.List getRegionInfos() { @@ -487,9 +479,8 @@ public java.util.List getRegionInfos() { } /** - * 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. + * [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) { @@ -498,7 +489,7 @@ public InterconnectLocation setRegionInfos(java.util.List getSingleRegionProductionCriticalPeerLocations() { @@ -525,9 +516,9 @@ public java.util.List getSingleRegionProductionCriticalPeerLoc } /** - * 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. + * [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) { @@ -559,7 +550,7 @@ public InterconnectLocation setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -567,7 +558,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public InterconnectLocation setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java index c323d785c69..d7e887fbb8a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationCrossSiteInterconnectInfo.java @@ -31,18 +31,16 @@ 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 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 remote location for Cross-Site Interconnect wires. This specifies an - * InterconnectLocation city (metropolitan area designator), which itself may match multiple - * InterconnectLocations. + * 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() { @@ -50,9 +48,8 @@ public java.lang.String getCity() { } /** - * 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 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java index 051f5900f98..c708d024142 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationList.java @@ -50,8 +50,8 @@ public final class InterconnectLocationList extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. + * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of + * interconnect locations. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public final class InterconnectLocationList 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 @@ -116,8 +116,8 @@ public InterconnectLocationList setItems(java.util.List it } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. + * [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists of + * interconnect locations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#interconnectLocationList for lists - * of interconnect locations. + * [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) { @@ -158,7 +158,7 @@ public InterconnectLocationList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 InterconnectLocationList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java index 1e35db8faf6..76fa0dedf9f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectLocationRegionInfo.java @@ -31,38 +31,38 @@ 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. + * 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. + * 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. + * 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. + * 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. + * 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() { @@ -70,8 +70,8 @@ public java.lang.Long getExpectedRttMs() { } /** - * Output only. Expected round-trip time in milliseconds, from this InterconnectLocation to a VM - * in this region. + * 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) { @@ -80,8 +80,8 @@ public InterconnectLocationRegionInfo setExpectedRttMs(java.lang.Long expectedRt } /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. + * 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() { @@ -89,8 +89,8 @@ public java.lang.Boolean getL2ForwardingEnabled() { } /** - * Output only. Identifies whether L2 Interconnect Attachments can be created in this region for - * interconnects that are in this location. + * 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) { @@ -99,7 +99,7 @@ public InterconnectLocationRegionInfo setL2ForwardingEnabled(java.lang.Boolean l } /** - * Output only. Identifies the network presence of this location. + * Identifies the network presence of this location. * @return value or {@code null} for none */ public java.lang.String getLocationPresence() { @@ -107,7 +107,7 @@ public java.lang.String getLocationPresence() { } /** - * Output only. Identifies the network presence of this location. + * Identifies the network presence of this location. * @param locationPresence locationPresence or {@code null} for none */ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locationPresence) { @@ -116,7 +116,7 @@ public InterconnectLocationRegionInfo setLocationPresence(java.lang.String locat } /** - * Output only. URL for the region of this location. + * URL for the region of this location. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -124,7 +124,7 @@ public java.lang.String getRegion() { } /** - * Output only. URL for the region of this location. + * URL for the region of this location. * @param region region or {@code null} for none */ public InterconnectLocationRegionInfo setRegion(java.lang.String region) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java index b39fa5417ea..cb4c1b771a8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectRemoteLocation.java @@ -33,163 +33,161 @@ 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. + * [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. + * [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". + * [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. + * [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 + * [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. + * [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. + * [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). + * [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). + * [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. + * [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. + * [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 + * [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. + * [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. + * [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. + * [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. + * [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). + * [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. + * [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". + * [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. + * [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 + * [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}. */ @@ -197,8 +195,8 @@ public final class InterconnectRemoteLocation extends com.google.api.client.json 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. + * [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() { @@ -206,8 +204,8 @@ public java.lang.String getAddress() { } /** - * Output only. [Output Only] The postal address of the Point of Presence, each line in the - * address is separated by a newline character. + * [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) { @@ -216,8 +214,8 @@ public InterconnectRemoteLocation setAddress(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. + * [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() { @@ -225,8 +223,8 @@ public InterconnectAttachmentConfigurationConstraints getAttachmentConfiguration } /** - * Output only. [Output Only] Subset of fields from InterconnectAttachment's - * |configurationConstraints| field that apply to all attachments for this remote location. + * [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) { @@ -235,8 +233,8 @@ public InterconnectRemoteLocation setAttachmentConfigurationConstraints(Intercon } /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * [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() { @@ -244,8 +242,8 @@ public java.lang.String getCity() { } /** - * Output only. [Output Only] Metropolitan area designator that indicates which city an - * interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". + * [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) { @@ -254,8 +252,8 @@ public InterconnectRemoteLocation setCity(java.lang.String city) { } /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. + * [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect and + * associated InterconnectAttachments. * @return value or {@code null} for none */ public InterconnectRemoteLocationConstraints getConstraints() { @@ -263,8 +261,8 @@ public InterconnectRemoteLocationConstraints getConstraints() { } /** - * Output only. [Output Only] Constraints on the parameters for creating Cross-Cloud Interconnect - * and associated InterconnectAttachments. + * [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) { @@ -273,8 +271,8 @@ public InterconnectRemoteLocation setConstraints(InterconnectRemoteLocationConst } /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * [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() { @@ -282,8 +280,8 @@ public java.lang.String getContinent() { } /** - * Output only. [Output Only] Continent for this location, which can take one of the following - * values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA + * [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) { @@ -292,7 +290,7 @@ public InterconnectRemoteLocation setContinent(java.lang.String continent) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -300,7 +298,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -309,7 +307,7 @@ public InterconnectRemoteLocation setCreationTimestamp(java.lang.String creation } /** - * Output only. [Output Only] An optional description of the resource. + * [Output Only] An optional description of the resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -317,7 +315,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] An optional description of the resource. + * [Output Only] An optional description of the resource. * @param description description or {@code null} for none */ public InterconnectRemoteLocation setDescription(java.lang.String description) { @@ -326,7 +324,7 @@ public InterconnectRemoteLocation setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * [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() { @@ -334,7 +332,7 @@ public java.lang.String getFacilityProvider() { } /** - * Output only. [Output Only] The name of the provider for this facility (e.g., EQUINIX). + * [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) { @@ -343,8 +341,7 @@ public InterconnectRemoteLocation setFacilityProvider(java.lang.String facilityP } /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). + * [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() { @@ -352,8 +349,7 @@ public java.lang.String getFacilityProviderFacilityId() { } /** - * Output only. [Output Only] A provider-assigned Identifier for this facility (e.g., Ashburn- - * DC1). + * [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) { @@ -362,8 +358,7 @@ public InterconnectRemoteLocation setFacilityProviderFacilityId(java.lang.String } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -371,8 +366,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -381,8 +375,8 @@ public InterconnectRemoteLocation setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. + * [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for interconnect + * remote locations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -390,8 +384,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#interconnectRemoteLocation for - * interconnect remote locations. + * [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) { @@ -400,8 +394,8 @@ public InterconnectRemoteLocation setKind(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 + * [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() { @@ -409,8 +403,8 @@ public java.lang.String getLacp() { } /** - * Output only. [Output Only] Link Aggregation Control Protocol (LACP) constraints, which can take - * one of the following values: LACP_SUPPORTED, LACP_UNSUPPORTED + * [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) { @@ -419,8 +413,8 @@ public InterconnectRemoteLocation setLacp(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. + * [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() { @@ -428,8 +422,8 @@ public java.lang.Integer getMaxLagSize100Gbps() { } /** - * 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. + * [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) { @@ -438,8 +432,8 @@ public InterconnectRemoteLocation setMaxLagSize100Gbps(java.lang.Integer maxLagS } /** - * 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. + * [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() { @@ -447,8 +441,8 @@ public java.lang.Integer getMaxLagSize10Gbps() { } /** - * 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. + * [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) { @@ -457,8 +451,8 @@ public InterconnectRemoteLocation setMaxLagSize10Gbps(java.lang.Integer maxLagSi } /** - * 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. + * [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() { @@ -466,8 +460,8 @@ public java.lang.Integer getMaxLagSize400Gbps() { } /** - * 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. + * [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) { @@ -476,7 +470,7 @@ public InterconnectRemoteLocation setMaxLagSize400Gbps(java.lang.Integer maxLagS } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -484,7 +478,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @param name name or {@code null} for none */ public InterconnectRemoteLocation setName(java.lang.String name) { @@ -493,8 +487,8 @@ public InterconnectRemoteLocation setName(java.lang.String name) { } /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). + * [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() { @@ -502,8 +496,8 @@ public java.lang.String getPeeringdbFacilityId() { } /** - * Output only. [Output Only] The peeringdb identifier for this facility (corresponding with a - * netfac type in peeringdb). + * [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) { @@ -512,7 +506,7 @@ public InterconnectRemoteLocation setPeeringdbFacilityId(java.lang.String peerin } /** - * Output only. [Output Only] Permitted connections. + * [Output Only] Permitted connections. * @return value or {@code null} for none */ public java.util.List getPermittedConnections() { @@ -520,7 +514,7 @@ public java.util.List getPermitt } /** - * Output only. [Output Only] Permitted connections. + * [Output Only] Permitted connections. * @param permittedConnections permittedConnections or {@code null} for none */ public InterconnectRemoteLocation setPermittedConnections(java.util.List permittedConnections) { @@ -529,8 +523,8 @@ public InterconnectRemoteLocation setPermittedConnections(java.util.List incompatibleLicenses; /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * [Output Only] Type of resource. Always compute#license for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,14 +129,6 @@ public final class License extends com.google.api.client.json.GenericJson { @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. @@ -162,14 +154,14 @@ public final class License extends com.google.api.client.json.GenericJson { private LicenseResourceRequirements resourceRequirements; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -191,7 +183,7 @@ public final class License extends com.google.api.client.json.GenericJson { private java.lang.Boolean transferable; /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * [Output Only] Last update timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -251,7 +243,7 @@ public License setChargesUseFee(java.lang.Boolean chargesUseFee) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -259,7 +251,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public License setCreationTimestamp(java.lang.String creationTimestamp) { @@ -323,7 +315,7 @@ public License setIncompatibleLicenses(java.util.List incompat } /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * [Output Only] Type of resource. Always compute#license for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -331,7 +323,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#license for licenses. + * [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) { @@ -428,25 +420,6 @@ public License setOsLicense(java.lang.Boolean 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. @@ -505,7 +478,7 @@ public License setResourceRequirements(LicenseResourceRequirements resourceRequi } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -513,7 +486,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public License setSelfLink(java.lang.String selfLink) { @@ -522,7 +495,7 @@ public License setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -530,7 +503,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -575,7 +548,7 @@ public License setTransferable(java.lang.Boolean transferable) { } /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * [Output Only] Last update timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getUpdateTimestamp() { @@ -583,7 +556,7 @@ public java.lang.String getUpdateTimestamp() { } /** - * Output only. [Output Only] Last update timestamp inRFC3339 text format. + * [Output Only] Last update timestamp inRFC3339 text format. * @param updateTimestamp updateTimestamp or {@code null} for none */ public License setUpdateTimestamp(java.lang.String updateTimestamp) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java index 2464bb39832..08b70f3341d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCode.java @@ -33,29 +33,28 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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. + * [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. + * [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#licenseCode for licenses. + * [Output Only] Type of resource. Always compute#licenseCode for licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,37 +68,37 @@ public final class LicenseCode extends com.google.api.client.json.GenericJson { private java.util.List licenseAlias; /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. + * [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; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Current state of this License Code. + * [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. + * [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] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -107,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { @@ -116,7 +115,7 @@ public LicenseCode setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output Only] Description of this License Code. + * [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -124,7 +123,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] Description of this License Code. + * [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCode setDescription(java.lang.String description) { @@ -133,8 +132,7 @@ public LicenseCode setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -142,8 +140,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -152,7 +149,7 @@ public LicenseCode setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * [Output Only] Type of resource. Always compute#licenseCode for licenses. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -160,7 +157,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. + * [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) { @@ -186,8 +183,8 @@ public LicenseCode setLicenseAlias(java.util.List licen } /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. + * [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() { @@ -195,8 +192,8 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Name of the resource. The name is 1-20 characters long and must be a - * valid 64 bit integer. + * [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) { @@ -205,7 +202,7 @@ public LicenseCode setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -213,7 +210,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public LicenseCode setSelfLink(java.lang.String selfLink) { @@ -222,7 +219,7 @@ public LicenseCode setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Current state of this License Code. + * [Output Only] Current state of this License Code. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -230,7 +227,7 @@ public java.lang.String getState() { } /** - * Output only. [Output Only] Current state of this License Code. + * [Output Only] Current state of this License Code. * @param state state or {@code null} for none */ public LicenseCode setState(java.lang.String state) { @@ -239,8 +236,8 @@ public LicenseCode setState(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. + * [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() { @@ -248,8 +245,8 @@ public java.lang.Boolean getTransferable() { } /** - * Output only. [Output Only] If true, the license will remain attached when creating images or - * snapshots from disks. Otherwise, the license is not transferred. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java index cfe3ccb4c83..96398e3c26d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseCodeLicenseAlias.java @@ -30,21 +30,21 @@ public final class LicenseCodeLicenseAlias extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Description of this License Code. + * [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. + * [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. + * [Output Only] Description of this License Code. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -52,7 +52,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] Description of this License Code. + * [Output Only] Description of this License Code. * @param description description or {@code null} for none */ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { @@ -61,7 +61,7 @@ public LicenseCodeLicenseAlias setDescription(java.lang.String description) { } /** - * Output only. [Output Only] URL of license corresponding to this License Code. + * [Output Only] URL of license corresponding to this License Code. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -69,7 +69,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] URL of license corresponding to this License Code. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicenseParams.java deleted file mode 100644 index cfa3866f110..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/456` 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/456` 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/456` 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/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java index 1c5fc4d949c..cee8ece927f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LicensesListResponse.java @@ -60,7 +60,7 @@ public final class LicensesListResponse extends com.google.api.client.json.Gener 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 @@ -131,7 +131,7 @@ public LicensesListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -139,7 +139,7 @@ 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 LicensesListResponse setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListInstantSnapshotGroups.java deleted file mode 100644 index e1e5f9b49c9..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.java deleted file mode 100644 index 2e7147df3ed..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ListSnapshotGroups.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.model; - -/** - * Contains a list of SnapshotGroup 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 ListSnapshotGroups 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 SnapshotGroup resources. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List 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. 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 ListSnapshotGroups 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 ListSnapshotGroups setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of SnapshotGroup resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of SnapshotGroup resources. - * @param items items or {@code null} for none - */ - public ListSnapshotGroups 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 ListSnapshotGroups setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @return value or {@code null} for none - */ - public java.lang.String getNextPageToken() { - return nextPageToken; - } - - /** - * [Output Only] This token allows you to get the next page of results for list requests. If the - * number of results is larger thanmaxResults, use the nextPageToken as a value for the query - * parameter pageToken in the next list request. Subsequent list requests will have their own - * nextPageToken to continue paging through the results. - * @param nextPageToken nextPageToken or {@code null} for none - */ - public ListSnapshotGroups 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 ListSnapshotGroups 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 ListSnapshotGroups 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 ListSnapshotGroups setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public ListSnapshotGroups set(String fieldName, Object value) { - return (ListSnapshotGroups) super.set(fieldName, value); - } - - @Override - public ListSnapshotGroups clone() { - return (ListSnapshotGroups) super.clone(); - } - - /** - * [Output Only] Informational warning message. - */ - public static final class Warning extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String code; - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List data; - - static { - // hack to force ProGuard to consider Data used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(Data.class); - } - - /** - * [Output Only] A human-readable description of the warning code. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String message; - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @return value or {@code null} for none - */ - public java.lang.String getCode() { - return code; - } - - /** - * [Output Only] A warning code, if applicable. For example, Compute Engine returns - * NO_RESULTS_ON_PAGE if there are no results in the response. - * @param code code or {@code null} for none - */ - public Warning setCode(java.lang.String code) { - this.code = code; - return this; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @return value or {@code null} for none - */ - public java.util.List getData() { - return data; - } - - /** - * [Output Only] Metadata about this warning in key: value format. For example: - * - * "data": [ { "key": "scope", "value": "zones/us-east1-d" } - * @param data data or {@code null} for none - */ - public Warning setData(java.util.List data) { - this.data = data; - return this; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @return value or {@code null} for none - */ - public java.lang.String getMessage() { - return message; - } - - /** - * [Output Only] A human-readable description of the warning code. - * @param message message or {@code null} for none - */ - public Warning setMessage(java.lang.String message) { - this.message = message; - return this; - } - - @Override - public Warning set(String fieldName, Object value) { - return (Warning) super.set(fieldName, value); - } - - @Override - public Warning clone() { - return (Warning) super.clone(); - } - - /** - * Model definition for ListSnapshotGroupsWarningData. - */ - public static final class Data extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * [Output Only] A warning data value corresponding to the key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @param key key or {@code null} for none - */ - public Data setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @param value value or {@code null} for none - */ - public Data setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public Data set(String fieldName, Object value) { - return (Data) super.set(fieldName, value); - } - - @Override - public Data clone() { - return (Data) super.clone(); - } - - } - } -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java index 7c437efa39b..afd21b38b7c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicy.java @@ -32,12 +32,7 @@ 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. + * must be represented as valid internal URLs, such as zones/us-central1-a. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,22 +45,9 @@ public final class LocationPolicy extends com.google.api.client.json.GenericJson @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. + * must be represented as valid internal URLs, such as zones/us-central1-a. * @return value or {@code null} for none */ public java.util.Map getLocations() { @@ -74,12 +56,7 @@ public java.util.Map getLocations() { /** * 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. + * must be represented as valid internal URLs, such as zones/us-central1-a. * @param locations locations or {@code null} for none */ public LocationPolicy setLocations(java.util.Map locations) { @@ -104,25 +81,6 @@ public LocationPolicy setTargetShape(java.lang.String 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); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/LocationPolicyZoneConfiguration.java deleted file mode 100644 index df5e3278cbf..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java index 8b4e7fd0cd4..dfce27ca41c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImage.java @@ -34,7 +34,7 @@ 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. + * [Output Only] The creation timestamp for this machine image inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,8 +56,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean guestFlush; /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. + * [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 @@ -71,8 +70,7 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private InstanceProperties instanceProperties; /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. + * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,14 +123,6 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { @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}. @@ -141,22 +131,21 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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 + * 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. + * [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 @@ -181,16 +170,16 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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 @@ -204,14 +193,14 @@ public final class MachineImage extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * Output only. [Output Only] Total size of the storage used by the machine image. + * [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. + * [Output Only] The creation timestamp for this machine image inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -219,7 +208,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format. + * [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) { @@ -264,8 +253,7 @@ public MachineImage setGuestFlush(java.lang.Boolean guestFlush) { } /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. + * [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() { @@ -273,8 +261,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this machine image. The server defines this - * identifier. + * [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) { @@ -300,8 +287,7 @@ public MachineImage setInstanceProperties(InstanceProperties instanceProperties) } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. + * [Output Only] The resource type, which is alwayscompute#machineImage for machine image. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -309,8 +295,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine - * image. + * [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) { @@ -462,25 +447,6 @@ public MachineImage setName(java.lang.String 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 @@ -499,7 +465,7 @@ public MachineImage setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -507,7 +473,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -516,8 +482,7 @@ public MachineImage setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance + * 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() { @@ -525,8 +490,7 @@ public java.util.List getSavedDisks() { } /** - * Output only. An array of Machine Image specific properties for disks attached to the source - * instance + * 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) { @@ -535,7 +499,7 @@ public MachineImage setSavedDisks(java.util.List savedDisks) { } /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * [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() { @@ -543,7 +507,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] The URL for this machine image. The server defines this URL. + * [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) { @@ -594,8 +558,8 @@ public MachineImage setSourceInstance(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. + * [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() { @@ -603,8 +567,8 @@ public SourceInstanceProperties getSourceInstanceProperties() { } /** - * Output only. [Output Only] DEPRECATED: Please use instance_properties instead for source - * instance related properties. New properties will not be added to this field. + * [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) { @@ -613,8 +577,8 @@ public MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceI } /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * [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() { @@ -622,8 +586,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the machine image. One of the following - * values:INVALID, CREATING, READY,DELETING, and UPLOADING. + * [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) { @@ -649,7 +613,7 @@ public MachineImage setStorageLocations(java.util.List storage } /** - * Output only. [Output Only] Total size of the storage used by the machine image. + * [Output Only] Total size of the storage used by the machine image. * @return value or {@code null} for none */ public java.lang.Long getTotalStorageBytes() { @@ -657,7 +621,7 @@ public java.lang.Long getTotalStorageBytes() { } /** - * Output only. [Output Only] Total size of the storage used by the machine image. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java index 2447569de0b..68648fbbe07 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageList.java @@ -50,8 +50,8 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. + * [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 @@ -68,7 +68,7 @@ public final class MachineImageList extends com.google.api.client.json.GenericJs 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 @@ -116,8 +116,8 @@ public MachineImageList setItems(java.util.List items) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#machineImagesListResponse - * for machine image lists. + * [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) { @@ -158,7 +158,7 @@ public MachineImageList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 MachineImageList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineImageParams.java deleted file mode 100644 index 1a76348a584..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/MachineType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineType.java index c0972ae0d14..9dcf4d08d32 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineType.java @@ -104,8 +104,7 @@ public final class MachineType extends com.google.api.client.json.GenericJson { private java.lang.Boolean isSharedCpu; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. + * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -311,8 +310,7 @@ public MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. + * [Output Only] The type of the resource. Alwayscompute#machineType for machine types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -320,8 +318,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#machineType for machine - * types. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java index 8ca50f855de..35ac3fa24d1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#machineTypeAggregatedList for - * aggregated lists of machine types. + * [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 @@ -62,14 +62,14 @@ public final class MachineTypeAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public MachineTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public MachineTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java index a94434edc45..1292b1205e6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MachineTypeList.java @@ -50,8 +50,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso } /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. + * [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 @@ -68,7 +67,7 @@ public final class MachineTypeList extends com.google.api.client.json.GenericJso 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 @@ -116,8 +115,7 @@ public MachineTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of - * machine types. + * [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) { @@ -158,7 +155,7 @@ public MachineTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 MachineTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java index 7a28e0731c2..4a70d884b92 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ManagedInstance.java @@ -30,98 +30,94 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Current all-instances configuration revision applied to this - * instance. + * [Output Only] Current all-instances configuration revision applied to this instance. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceAllInstancesConfig allInstancesConfig; /** - * 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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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 + * [Output Only] Instance properties selected for this instance resulting from * InstanceFlexibilityPolicy. * The value may be {@code null}. */ @@ -129,31 +125,29 @@ public final class ManagedInstance extends com.google.api.client.json.GenericJso private ManagedInstancePropertiesFromFlexibilityPolicy propertiesFromFlexibilityPolicy; /** - * Output only. [Output Only] Information about the termination timestamp of the instance, if - * applicable. + * [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. [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. + * [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. + * [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] Current all-instances configuration revision applied to this - * instance. + * [Output Only] Current all-instances configuration revision applied to this instance. * @return value or {@code null} for none */ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { @@ -161,8 +155,7 @@ public ManagedInstanceAllInstancesConfig getAllInstancesConfig() { } /** - * Output only. [Output Only] Current all-instances configuration revision applied to this - * instance. + * [Output Only] Current all-instances configuration revision applied to this instance. * @param allInstancesConfig allInstancesConfig or {@code null} for none */ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig allInstancesConfig) { @@ -171,22 +164,21 @@ public ManagedInstance setAllInstancesConfig(ManagedInstanceAllInstancesConfig a } /** - * 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. + * [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() { @@ -194,22 +186,21 @@ public java.lang.String getCurrentAction() { } /** - * 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. + * [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) { @@ -218,8 +209,8 @@ public ManagedInstance setCurrentAction(java.lang.String currentAction) { } /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. + * [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() { @@ -227,8 +218,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output only] The unique identifier for this resource. This field is empty when - * instance does not exist. + * [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) { @@ -237,8 +228,8 @@ public ManagedInstance setId(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. + * [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() { @@ -246,8 +237,8 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. The URL can exist even if the instance has - * not yet been created. + * [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) { @@ -256,7 +247,7 @@ public ManagedInstance setInstance(java.lang.String instance) { } /** - * Output only. [Output Only] Health state of the instance per health-check. + * [Output Only] Health state of the instance per health-check. * @return value or {@code null} for none */ public java.util.List getInstanceHealth() { @@ -264,7 +255,7 @@ public java.util.List getInstanceHealth() { } /** - * Output only. [Output Only] Health state of the instance per health-check. + * [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) { @@ -273,8 +264,7 @@ public ManagedInstance setInstanceHealth(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [Output Only] Type of the resource. Always compute#metadata for metadata. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -157,7 +157,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#metadata for metadata. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java index 88009e558c8..a4dd625a14b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMig.java @@ -30,7 +30,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { /** - * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,15 +44,15 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The 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#multiMig for multi-MIGs. + * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,9 +70,8 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output only] The URL of the region where the resource resides. You must specify - * this field as part of the HTTP request URL. You cannot set the region as a field in the request - * body. + * [Output only] The URL of the region where the resource resides. You must specify this field as + * part of the HTTP request URL. You cannot set the region as a field in the request body. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -86,7 +85,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigResourcePolicies resourcePolicies; /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,7 +98,7 @@ public final class MultiMig extends com.google.api.client.json.GenericJson { private MultiMigStatus status; /** - * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -107,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. + * [Output only] The creation timestamp of this multi-MIG in RFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public MultiMig setCreationTimestamp(java.lang.String creationTimestamp) { @@ -133,8 +132,8 @@ public MultiMig setDescription(java.lang.String description) { } /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The unique identifier for this resource type. The server generates this + * identifier. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -142,8 +141,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output only] The unique identifier for this resource type. The server generates - * this identifier. + * [Output only] The unique identifier for this resource type. The server generates this + * identifier. * @param id id or {@code null} for none */ public MultiMig setId(java.math.BigInteger id) { @@ -152,7 +151,7 @@ public MultiMig setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -160,7 +159,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. + * [Output only] Type of the resource. Alwayscompute#multiMig for multi-MIGs. * @param kind kind or {@code null} for none */ public MultiMig setKind(java.lang.String kind) { @@ -194,9 +193,8 @@ public MultiMig setName(java.lang.String name) { } /** - * Output only. [Output only] The URL of the region where the resource resides. You must specify - * this field as part of the HTTP request URL. You cannot set the region as a field in the request - * body. + * [Output only] The URL of the region where the resource resides. You must specify this field as + * part of the HTTP request URL. You cannot set the region as a field in the request body. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -204,9 +202,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output only] The URL of the region where the resource resides. You must specify - * this field as part of the HTTP request URL. You cannot set the region as a field in the request - * body. + * [Output only] The URL of the region where the resource resides. You must specify this field as + * part of the HTTP request URL. You cannot set the region as a field in the request body. * @param region region or {@code null} for none */ public MultiMig setRegion(java.lang.String region) { @@ -232,7 +229,7 @@ public MultiMig setResourcePolicies(MultiMigResourcePolicies resourcePolicies) { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -240,7 +237,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output only] Server-defined URL for the resource. + * [Output only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public MultiMig setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java deleted file mode 100644 index eb23d361f69..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMember.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ -/* - * This code 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 Multi-MIG member 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 MultiMigMember extends com.google.api.client.json.GenericJson { - - /** - * Output only. [Output Only] Creation timestamp of this multi-MIG member 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 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. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String kind; - - /** - * Output only. [Output Only] Server-defined name for the multi-MIG member. - * 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 region where the multi-MIG resides. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** - * 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] The status of this multi-MIG member - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private MultiMigMemberStatus status; - - /** - * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. - * @return value or {@code null} for none - */ - public java.lang.String getCreationTimestamp() { - return creationTimestamp; - } - - /** - * Output only. [Output Only] Creation timestamp of this multi-MIG member inRFC3339 text format. - * @param creationTimestamp creationTimestamp or {@code null} for none - */ - public MultiMigMember setCreationTimestamp(java.lang.String creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return this; - } - - /** - * Output only. [Output only] The 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] The unique identifier for this resource type. The server generates - * this identifier. - * @param id id or {@code null} for none - */ - public MultiMigMember setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. - * @param kind kind or {@code null} for none - */ - public MultiMigMember setKind(java.lang.String kind) { - this.kind = kind; - return this; - } - - /** - * Output only. [Output Only] Server-defined name for the multi-MIG member. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. [Output Only] Server-defined name for the multi-MIG member. - * @param name name or {@code null} for none - */ - public MultiMigMember setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Output only. [Output Only] The URL of the region where the multi-MIG resides. - * @return value or {@code null} for none - */ - public java.lang.String getRegion() { - return region; - } - - /** - * Output only. [Output Only] The URL of the region where the multi-MIG resides. - * @param region region or {@code null} for none - */ - public MultiMigMember setRegion(java.lang.String region) { - this.region = region; - 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 MultiMigMember setSelfLink(java.lang.String selfLink) { - this.selfLink = selfLink; - return this; - } - - /** - * Output only. [Output Only] The status of this multi-MIG member - * @return value or {@code null} for none - */ - public MultiMigMemberStatus getStatus() { - return status; - } - - /** - * Output only. [Output Only] The status of this multi-MIG member - * @param status status or {@code null} for none - */ - public MultiMigMember setStatus(MultiMigMemberStatus status) { - this.status = status; - return this; - } - - @Override - public MultiMigMember set(String fieldName, Object value) { - return (MultiMigMember) super.set(fieldName, value); - } - - @Override - public MultiMigMember clone() { - return (MultiMigMember) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.java deleted file mode 100644 index 5cc8e756e7b..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberList.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.model; - -/** - * Model definition for MultiMigMemberList. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class MultiMigMemberList 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 multi-MIG member 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 MultiMigMember used, since otherwise it would be stripped out - // see https://github.com/google/google-api-java-client/issues/543 - com.google.api.client.util.Data.nullOf(MultiMigMember.class); - } - - /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. - * 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; - - /** - * Output only. [Output only] 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 MultiMigMemberList setId(java.lang.String id) { - this.id = id; - return this; - } - - /** - * A list of multi-MIG member resources. - * @return value or {@code null} for none - */ - public java.util.List getItems() { - return items; - } - - /** - * A list of multi-MIG member resources. - * @param items items or {@code null} for none - */ - public MultiMigMemberList setItems(java.util.List items) { - this.items = items; - return this; - } - - /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. Type of the resource. Alwayscompute#multiMigMember for a list of multi-MIG - * members. - * @param kind kind or {@code null} for none - */ - public MultiMigMemberList 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 MultiMigMemberList 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 MultiMigMemberList 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 MultiMigMemberList setWarning(Warning warning) { - this.warning = warning; - return this; - } - - @Override - public MultiMigMemberList set(String fieldName, Object value) { - return (MultiMigMemberList) super.set(fieldName, value); - } - - @Override - public MultiMigMemberList clone() { - return (MultiMigMemberList) 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 MultiMigMemberListWarningData. - */ - public static final class Data extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String key; - - /** - * [Output Only] A warning data value corresponding to the key. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String value; - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @return value or {@code null} for none - */ - public java.lang.String getKey() { - return key; - } - - /** - * [Output Only] A key that provides more detail on the warning being returned. For example, for - * warnings where there are no results in a list request for a particular zone, this key might be - * scope and the key value might be the zone name. Other examples might be a key indicating a - * deprecated resource and a suggested replacement, or a warning about invalid network settings - * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP - * forwarding). - * @param key key or {@code null} for none - */ - public Data setKey(java.lang.String key) { - this.key = key; - return this; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @return value or {@code null} for none - */ - public java.lang.String getValue() { - return value; - } - - /** - * [Output Only] A warning data value corresponding to the key. - * @param value value or {@code null} for none - */ - public Data setValue(java.lang.String value) { - this.value = value; - return this; - } - - @Override - public Data set(String fieldName, Object value) { - return (Data) super.set(fieldName, value); - } - - @Override - public Data clone() { - return (Data) super.clone(); - } - - } - } -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.java deleted file mode 100644 index eb680189da4..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigMemberStatus.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.model; - -/** - * Model definition for MultiMigMemberStatus. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class MultiMigMemberStatus extends com.google.api.client.json.GenericJson { - - /** - * [Output Only] URL of member instance group manager - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** - * [Output Only] URL of member instance group manager - * @return value or {@code null} for none - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * [Output Only] URL of member instance group manager - * @param instanceGroupManager instanceGroupManager or {@code null} for none - */ - public MultiMigMemberStatus setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - @Override - public MultiMigMemberStatus set(String fieldName, Object value) { - return (MultiMigMemberStatus) super.set(fieldName, value); - } - - @Override - public MultiMigMemberStatus clone() { - return (MultiMigMemberStatus) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java index 04a05930b99..ac702d8a737 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/MultiMigStatus.java @@ -30,23 +30,16 @@ public final class MultiMigStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only - * one accelerator topology is supported. + * [Output Only] The accelerator topology applied to this multi-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. [Output Only] The number of instance group manager members in this multi-MIG. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer membersCount; - - /** - * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only - * one accelerator topology is supported. + * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one + * accelerator topology is supported. * @return value or {@code null} for none */ public java.util.List getAppliedAcceleratorTopologies() { @@ -54,8 +47,8 @@ public java.util.List getAppliedAcceleratorTo } /** - * Output only. [Output Only] The accelerator topology applied to this multi-MIG. Currently only - * one accelerator topology is supported. + * [Output Only] The accelerator topology applied to this multi-MIG. Currently only one + * accelerator topology is supported. * @param appliedAcceleratorTopologies appliedAcceleratorTopologies or {@code null} for none */ public MultiMigStatus setAppliedAcceleratorTopologies(java.util.List appliedAcceleratorTopologies) { @@ -63,23 +56,6 @@ public MultiMigStatus setAppliedAcceleratorTopologies(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -122,7 +122,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public MultiMigsList setKind(java.lang.String kind) { @@ -152,7 +152,7 @@ public MultiMigsList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -160,7 +160,7 @@ 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 MultiMigsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NamedSet.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NamedSet.java deleted file mode 100644 index 302db93730a..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java index ad71f5d0e5a..b880a69e7e6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfo.java @@ -30,21 +30,21 @@ public final class NatIpInfo extends com.google.api.client.json.GenericJson { /** - * Output only. A list of all NAT IPs assigned to this NAT config. + * 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. + * 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. + * A list of all NAT IPs assigned to this NAT config. * @return value or {@code null} for none */ public java.util.List getNatIpInfoMappings() { @@ -52,7 +52,7 @@ public java.util.List getNatIpInfoMappings() { } /** - * Output only. A list of all NAT IPs assigned to this NAT config. + * 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) { @@ -61,7 +61,7 @@ public NatIpInfo setNatIpInfoMappings(java.util.List } /** - * Output only. Name of the NAT config which the NAT IP belongs to. + * Name of the NAT config which the NAT IP belongs to. * @return value or {@code null} for none */ public java.lang.String getNatName() { @@ -69,7 +69,7 @@ public java.lang.String getNatName() { } /** - * Output only. Name of the NAT config which the NAT IP belongs to. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java index 9ca1eff4dd7..223a66411ab 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NatIpInfoNatIpInfoMapping.java @@ -30,28 +30,28 @@ public final class NatIpInfoNatIpInfoMapping extends com.google.api.client.json.GenericJson { /** - * Output only. Specifies whether NAT IP is auto or manual. + * 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. + * 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. + * 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. + * Specifies whether NAT IP is auto or manual. * @return value or {@code null} for none */ public java.lang.String getMode() { @@ -59,7 +59,7 @@ public java.lang.String getMode() { } /** - * Output only. Specifies whether NAT IP is auto or manual. + * Specifies whether NAT IP is auto or manual. * @param mode mode or {@code null} for none */ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { @@ -68,7 +68,7 @@ public NatIpInfoNatIpInfoMapping setMode(java.lang.String mode) { } /** - * Output only. NAT IP address. For example: 203.0.113.11. + * NAT IP address. For example: 203.0.113.11. * @return value or {@code null} for none */ public java.lang.String getNatIp() { @@ -76,7 +76,7 @@ public java.lang.String getNatIp() { } /** - * Output only. NAT IP address. For example: 203.0.113.11. + * NAT IP address. For example: 203.0.113.11. * @param natIp natIp or {@code null} for none */ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { @@ -85,7 +85,7 @@ public NatIpInfoNatIpInfoMapping setNatIp(java.lang.String natIp) { } /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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() { @@ -93,7 +93,7 @@ public java.lang.String getUsage() { } /** - * Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java index b381067197e..fd5195b4cd3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Network.java @@ -57,7 +57,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean autoCreateSubnetworks; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +79,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableUlaInternalIpv6; /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. + * [Output Only] URL of the firewall policy the network is associated with. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -94,8 +94,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIPv4; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -113,7 +112,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String internalIpv6Range; /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * [Output Only] Type of the resource. Always compute#network for networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -166,7 +165,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private NetworkParams params; /** - * Output only. [Output Only] A list of network peerings for the resource. + * [Output Only] A list of network peerings for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -188,7 +187,7 @@ public final class Network extends com.google.api.client.json.GenericJson { private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -256,7 +255,7 @@ public Network setAutoCreateSubnetworks(java.lang.Boolean autoCreateSubnetworks) } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -264,7 +263,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Network setCreationTimestamp(java.lang.String creationTimestamp) { @@ -309,7 +308,7 @@ public Network setEnableUlaInternalIpv6(java.lang.Boolean enableUlaInternalIpv6) } /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. + * [Output Only] URL of the firewall policy the network is associated with. * @return value or {@code null} for none */ public java.lang.String getFirewallPolicy() { @@ -317,7 +316,7 @@ public java.lang.String getFirewallPolicy() { } /** - * Output only. [Output Only] URL of the firewall policy the network is associated with. + * [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) { @@ -345,8 +344,7 @@ public Network setGatewayIPv4(java.lang.String gatewayIPv4) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -354,8 +352,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -389,7 +386,7 @@ public Network setInternalIpv6Range(java.lang.String internalIpv6Range) { } /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * [Output Only] Type of the resource. Always compute#network for networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -397,7 +394,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#network for networks. + * [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) { @@ -513,7 +510,7 @@ public Network setParams(NetworkParams params) { } /** - * Output only. [Output Only] A list of network peerings for the resource. + * [Output Only] A list of network peerings for the resource. * @return value or {@code null} for none */ public java.util.List getPeerings() { @@ -521,7 +518,7 @@ public java.util.List getPeerings() { } /** - * Output only. [Output Only] A list of network peerings for the resource. + * [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) { @@ -566,7 +563,7 @@ public Network setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -574,7 +571,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java index 5320d7e3f2c..eecbab8e189 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachment.java @@ -30,8 +30,8 @@ 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. + * [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 @@ -44,7 +44,7 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String connectionPreference; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,15 +66,15 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -92,10 +92,10 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ 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. + * [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 @@ -118,23 +118,23 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ 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. + * [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. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -149,8 +149,8 @@ public final class NetworkAttachment extends com.google.api.client.json.GenericJ private java.util.List subnetworks; /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. + * [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() { @@ -158,8 +158,8 @@ public java.util.List getConnectionEndpoints } /** - * Output only. [Output Only] An array of connections for all the producers connected to this - * network attachment. + * [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) { @@ -183,7 +183,7 @@ public NetworkAttachment setConnectionPreference(java.lang.String connectionPref } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -191,7 +191,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -266,8 +266,8 @@ public NetworkAttachment encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -275,8 +275,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -285,7 +285,7 @@ public NetworkAttachment setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. + * [Output Only] Type of the resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -293,7 +293,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. + * [Output Only] Type of the resource. * @param kind kind or {@code null} for none */ public NetworkAttachment setKind(java.lang.String kind) { @@ -327,10 +327,10 @@ public NetworkAttachment setName(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. + * [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() { @@ -338,10 +338,10 @@ public java.lang.String getNetwork() { } /** - * 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. + * [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) { @@ -388,9 +388,9 @@ public NetworkAttachment setProducerRejectLists(java.util.List } /** - * 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. + * [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() { @@ -398,9 +398,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -409,7 +409,7 @@ public NetworkAttachment setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -417,7 +417,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkAttachment setSelfLink(java.lang.String selfLink) { @@ -426,7 +426,7 @@ public NetworkAttachment setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -434,7 +434,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java index 6fb5a85ddbf..817d984f250 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkAttachmentConnectedEndpoint.java @@ -75,8 +75,7 @@ public final class NetworkAttachmentConnectedEndpoint extends com.google.api.cli private java.lang.String subnetwork; /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. + * [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 @@ -191,8 +190,7 @@ public NetworkAttachmentConnectedEndpoint setSubnetwork(java.lang.String subnetw } /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. + * [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() { @@ -200,8 +198,7 @@ public java.lang.String getSubnetworkCidrRange() { } /** - * Output only. [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was - * allocated from. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java index 013691466fe..719c606976c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityService.java @@ -30,7 +30,7 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,15 +56,14 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 + * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * The value may be {@code null}. */ @@ -83,8 +82,8 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json 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. + * [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 @@ -99,21 +98,21 @@ public final class NetworkEdgeSecurityService extends com.google.api.client.json private java.lang.String securityPolicy; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -121,7 +120,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEdgeSecurityService setCreationTimestamp(java.lang.String creationTimestamp) { @@ -212,8 +211,7 @@ public NetworkEdgeSecurityService encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -221,8 +219,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -231,7 +228,7 @@ public NetworkEdgeSecurityService setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @return value or {@code null} for none */ @@ -240,7 +237,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for + * [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for * NetworkEdgeSecurityServices * @param kind kind or {@code null} for none */ @@ -275,8 +272,8 @@ public NetworkEdgeSecurityService setName(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. + * [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() { @@ -284,8 +281,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -313,7 +310,7 @@ public NetworkEdgeSecurityService setSecurityPolicy(java.lang.String securityPol } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -321,7 +318,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { @@ -330,7 +327,7 @@ public NetworkEdgeSecurityService setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -338,7 +335,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java index 2817e613104..1fa727e85f7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEdgeSecurityServiceAggregatedList.java @@ -50,9 +50,8 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a private java.util.Map items; /** - * Output only. [Output Only] Type of resource. - * Alwayscompute#networkEdgeSecurityServiceAggregatedList for lists of Network Edge Security - * Services. + * [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 @@ -69,14 +68,14 @@ public final class NetworkEdgeSecurityServiceAggregatedList extends com.google.a 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -139,9 +138,8 @@ public NetworkEdgeSecurityServiceAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEdgeSecurityServiceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java index 639209a0928..23f0dba70f9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroup.java @@ -23,12 +23,6 @@ * 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 @@ -71,7 +65,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupCloudRun cloudRun; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -95,16 +89,15 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint + * group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,14 +157,14 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String pscTargetService; /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -186,7 +179,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private NetworkEndpointGroupServerlessDeployment serverlessDeployment; /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. + * [Output only] Number of network endpoints in the network endpoint group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -200,7 +193,7 @@ public final class NetworkEndpointGroup extends com.google.api.client.json.Gener private java.lang.String subnetwork; /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [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 @@ -281,7 +274,7 @@ public NetworkEndpointGroup setCloudRun(NetworkEndpointGroupCloudRun cloudRun) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -289,7 +282,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkEndpointGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -338,8 +331,7 @@ public NetworkEndpointGroup setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -347,8 +339,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -357,8 +348,8 @@ public NetworkEndpointGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. + * [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network endpoint + * group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -366,8 +357,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkEndpointGroup for network - * endpoint group. + * [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) { @@ -500,7 +491,7 @@ public NetworkEndpointGroup setPscTargetService(java.lang.String pscTargetServic } /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * [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() { @@ -508,7 +499,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The URL of theregion where the network endpoint group is located. + * [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) { @@ -517,7 +508,7 @@ public NetworkEndpointGroup setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -525,7 +516,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkEndpointGroup setSelfLink(java.lang.String selfLink) { @@ -553,7 +544,7 @@ public NetworkEndpointGroup setServerlessDeployment(NetworkEndpointGroupServerle } /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. + * [Output only] Number of network endpoints in the network endpoint group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -561,7 +552,7 @@ public java.lang.Integer getSize() { } /** - * Output only. [Output only] Number of network endpoints in the network endpoint group. + * [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) { @@ -587,7 +578,7 @@ public NetworkEndpointGroup setSubnetwork(java.lang.String subnetwork) { } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [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() { @@ -595,7 +586,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java index a2c8acc31ba..d257a2c16a2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupAggregatedList.java @@ -44,9 +44,8 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli private java.util.Map items; /** - * Output only. [Output Only] The resource type, which is - * alwayscompute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint - * groups. + * [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 @@ -63,14 +62,14 @@ public final class NetworkEndpointGroupAggregatedList extends com.google.api.cli 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,9 +117,8 @@ public NetworkEndpointGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkEndpointGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java index efa4899f51a..b0d4b65954f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupLbNetworkEndpointGroup.java @@ -56,8 +56,8 @@ public final class NetworkEndpointGroupLbNetworkEndpointGroup extends com.google private java.lang.String subnetwork; /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * [Deprecated] This field is deprecated. + * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This + * field is deprecated. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,8 +125,8 @@ public NetworkEndpointGroupLbNetworkEndpointGroup setSubnetwork(java.lang.String } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * [Deprecated] This field is deprecated. + * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This + * field is deprecated. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -134,8 +134,8 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The URL of thezone where the network endpoint group is located. - * [Deprecated] This field is deprecated. + * [Output Only] The URL of thezone where the network endpoint group is located. [Deprecated] This + * field is deprecated. * @param zone zone or {@code null} for none */ public NetworkEndpointGroupLbNetworkEndpointGroup setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java index 8d6eaa31913..a9e2537c619 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupList.java @@ -50,8 +50,8 @@ public final class NetworkEndpointGroupList extends com.google.api.client.json.G } /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. + * [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 @@ -68,7 +68,7 @@ public final class NetworkEndpointGroupList 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 @@ -116,8 +116,8 @@ public NetworkEndpointGroupList setItems(java.util.List it } /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute#networkEndpointGroupList - * for network endpoint group lists. + * [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) { @@ -158,7 +158,7 @@ public NetworkEndpointGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -166,7 +166,7 @@ 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 NetworkEndpointGroupList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java index 294c37e562a..88ee04444bb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupPscData.java @@ -31,8 +31,8 @@ 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. + * [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 @@ -47,22 +47,22 @@ public final class NetworkEndpointGroupPscData extends com.google.api.client.jso private java.lang.Integer producerPort; /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * [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. + * [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. + * [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() { @@ -70,8 +70,8 @@ public java.lang.String getConsumerPscAddress() { } /** - * 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. + * [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) { @@ -99,7 +99,7 @@ public NetworkEndpointGroupPscData setProducerPort(java.lang.Integer producerPor } /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * [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() { @@ -107,7 +107,7 @@ public java.math.BigInteger getPscConnectionId() { } /** - * Output only. [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer. + * [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) { @@ -116,7 +116,7 @@ public NetworkEndpointGroupPscData setPscConnectionId(java.math.BigInteger pscCo } /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * [Output Only] The connection status of the PSC Forwarding Rule. * @return value or {@code null} for none */ public java.lang.String getPscConnectionStatus() { @@ -124,7 +124,7 @@ public java.lang.String getPscConnectionStatus() { } /** - * Output only. [Output Only] The connection status of the PSC Forwarding Rule. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java index b1a4a35294e..cd49337f505 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkEndpointGroupsListNetworkEndpoints.java @@ -44,7 +44,7 @@ public final class NetworkEndpointGroupsListNetworkEndpoints extends com.google. private java.util.List items; /** - * Output only. [Output Only] The resource type, which is + * [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}. @@ -104,7 +104,7 @@ public NetworkEndpointGroupsListNetworkEndpoints setItems(java.util.List getNetworkEndpointGroups() { @@ -59,7 +59,7 @@ public java.util.List getNetworkEndpointGroups() { } /** - * Output only. [Output Only] The list ofnetwork endpoint groups that are contained in this scope. + * [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) { @@ -68,8 +68,8 @@ public NetworkEndpointGroupsScopedList setNetworkEndpointGroups(java.util.List getHealths() { } /** - * Output only. [Output only] The health status of network endpoint. + * [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 @@ -73,7 +73,7 @@ public NetworkEndpointWithHealthStatus setHealths(java.util.List getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkFirewallPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java index 6085e5a035e..3349ccf440f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkInterface.java @@ -58,14 +58,6 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs 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 @@ -107,8 +99,8 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs } /** - * 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. + * [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}. @@ -126,20 +118,12 @@ public final class NetworkInterface extends com.google.api.client.json.GenericJs private java.lang.String ipv6Address; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. + * [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. [Output Only] MAC address assigned to this network interface. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String macAddress; - /** * [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 @@ -274,25 +258,6 @@ public NetworkInterface setAliasIpRanges(java.util.List aliasIpRan 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 @@ -408,8 +373,8 @@ public NetworkInterface setIpv6AccessConfigs(java.util.List ipv6Ac } /** - * 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. + * [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 @@ -419,8 +384,8 @@ public java.lang.String getIpv6AccessType() { } /** - * 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. + * [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 @@ -452,8 +417,7 @@ public NetworkInterface setIpv6Address(java.lang.String ipv6Address) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. + * [Output Only] Type of the resource. Alwayscompute#networkInterface for network interfaces. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -461,8 +425,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkInterface for network - * interfaces. + * [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) { @@ -470,23 +433,6 @@ public NetworkInterface setKind(java.lang.String kind) { return this; } - /** - * Output only. [Output Only] MAC address assigned to this network interface. - * @return value or {@code null} for none - */ - public java.lang.String getMacAddress() { - return macAddress; - } - - /** - * Output only. [Output Only] MAC address assigned to this network interface. - * @param macAddress macAddress or {@code null} for none - */ - public NetworkInterface setMacAddress(java.lang.String macAddress) { - this.macAddress = macAddress; - 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java index e4981ce773e..161aace29df 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkList.java @@ -50,7 +50,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * [Output Only] Type of resource. Always compute#networkList for lists of networks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class NetworkList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public NetworkList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * [Output Only] Type of resource. Always compute#networkList for lists of networks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#networkList for lists of networks. + * [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) { @@ -155,7 +155,7 @@ public NetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 NetworkList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java index 084c972666c..5619d58fdca 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPeering.java @@ -42,7 +42,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.Boolean autoCreateRoutes; /** - * Output only. [Output Only] The effective state of the peering connection as a whole. + * [Output Only] The effective state of the peering connection as a whole. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -110,7 +110,7 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String network; /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * [Output Only] Maximum Transmission Unit in bytes of the peer network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,14 +125,15 @@ public final class NetworkPeering extends com.google.api.client.json.GenericJson private java.lang.String stackType; /** - * Output only. [Output Only] State for the peering. + * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` + * when there's a matching configuration in the peer network. * 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. + * [Output Only] Details about the current state of the peering. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -170,7 +171,7 @@ public NetworkPeering setAutoCreateRoutes(java.lang.Boolean autoCreateRoutes) { } /** - * Output only. [Output Only] The effective state of the peering connection as a whole. + * [Output Only] The effective state of the peering connection as a whole. * @return value or {@code null} for none */ public NetworkPeeringConnectionStatus getConnectionStatus() { @@ -178,7 +179,7 @@ public NetworkPeeringConnectionStatus getConnectionStatus() { } /** - * Output only. [Output Only] The effective state of the peering connection as a whole. + * [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) { @@ -330,7 +331,7 @@ public NetworkPeering setNetwork(java.lang.String network) { } /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * [Output Only] Maximum Transmission Unit in bytes of the peer network. * @return value or {@code null} for none */ public java.lang.Integer getPeerMtu() { @@ -338,7 +339,7 @@ public java.lang.Integer getPeerMtu() { } /** - * Output only. [Output Only] Maximum Transmission Unit in bytes of the peer network. + * [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) { @@ -366,7 +367,8 @@ public NetworkPeering setStackType(java.lang.String stackType) { } /** - * Output only. [Output Only] State for the peering. + * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` + * when there's a matching configuration in the peer network. * @return value or {@code null} for none */ public java.lang.String getState() { @@ -374,7 +376,8 @@ public java.lang.String getState() { } /** - * Output only. [Output Only] State for the peering. + * [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` + * when there's a matching configuration in the peer network. * @param state state or {@code null} for none */ public NetworkPeering setState(java.lang.String state) { @@ -383,7 +386,7 @@ public NetworkPeering setState(java.lang.String state) { } /** - * Output only. [Output Only] Details about the current state of the peering. + * [Output Only] Details about the current state of the peering. * @return value or {@code null} for none */ public java.lang.String getStateDetails() { @@ -391,7 +394,7 @@ public java.lang.String getStateDetails() { } /** - * Output only. [Output Only] Details about the current state of the peering. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java index badc96b3d4a..0dd995dca57 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicy.java @@ -30,14 +30,14 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] A list of associations that belong to this network policy. + * [Output Only] A list of associations that belong to this network 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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network - * policies + * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,45 +72,44 @@ public final class NetworkPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * Output only. [Output Only] URL of the region where the regional network policy resides. 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] URL of the region where the regional network policy 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] Total count of all network policy rule tuples. A network policy can - * not exceed a set number of tuples. + * [Output Only] Total count of all network policy rule tuples. A network 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; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [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] A list of traffic classification rules that belong to this policy. + * [Output Only] A list of traffic classification rules that belong to this policy. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List trafficClassificationRules; /** - * Output only. [Output Only] A list of associations that belong to this network policy. + * [Output Only] A list of associations that belong to this network policy. * @return value or {@code null} for none */ public java.util.List getAssociations() { @@ -119,7 +117,7 @@ public java.util.List getAssociations() { } /** - * Output only. [Output Only] A list of associations that belong to this network policy. + * [Output Only] A list of associations that belong to this network policy. * @param associations associations or {@code null} for none */ public NetworkPolicy setAssociations(java.util.List associations) { @@ -128,7 +126,7 @@ public NetworkPolicy setAssociations(java.util.List as } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -136,7 +134,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -179,8 +177,7 @@ public NetworkPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network - * policies + * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -188,8 +185,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#networkPolicy for network - * policies + * [Output only] Type of the resource. Alwayscompute#networkPolicy for network policies * @param kind kind or {@code null} for none */ public NetworkPolicy setKind(java.lang.String kind) { @@ -215,9 +211,8 @@ public NetworkPolicy setName(java.lang.String name) { } /** - * Output only. [Output Only] URL of the region where the regional network policy resides. 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] URL of the region where the regional network policy 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() { @@ -225,9 +220,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional network policy resides. 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] URL of the region where the regional network policy 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 NetworkPolicy setRegion(java.lang.String region) { @@ -236,8 +230,8 @@ public NetworkPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can - * not exceed a set number of tuples. + * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a + * set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -245,8 +239,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Total count of all network policy rule tuples. A network policy can - * not exceed a set number of tuples. + * [Output Only] Total count of all network policy rule tuples. A network policy can not exceed a + * set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -255,7 +249,7 @@ public NetworkPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -263,7 +257,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkPolicy setSelfLink(java.lang.String selfLink) { @@ -272,7 +266,7 @@ public NetworkPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -280,7 +274,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { @@ -289,7 +283,7 @@ public NetworkPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] A list of traffic classification rules that belong to this policy. + * [Output Only] A list of traffic classification rules that belong to this policy. * @return value or {@code null} for none */ public java.util.List getTrafficClassificationRules() { @@ -297,7 +291,7 @@ public java.util.List getTrafficClassifi } /** - * Output only. [Output Only] A list of traffic classification rules that belong to this policy. + * [Output Only] A list of traffic classification rules that belong to this policy. * @param trafficClassificationRules trafficClassificationRules or {@code null} for none */ public NetworkPolicy setTrafficClassificationRules(java.util.List trafficClassificationRules) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java index d476645f2fd..4dafaa22d20 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyAggregatedList.java @@ -50,8 +50,8 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for - * lists of network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyAggregatedList for lists of network + * policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class NetworkPolicyAggregatedList extends com.google.api.client.jso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public NetworkPolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NetworkPolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java index 913ca8a4d6a..f87dcb81e7b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyList.java @@ -50,8 +50,7 @@ public final class NetworkPolicyList extends com.google.api.client.json.GenericJ } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of - * network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,8 +108,7 @@ public NetworkPolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of - * network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -118,8 +116,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of - * network policies. + * [Output Only] Type of resource. Alwayscompute#networkPolicyList for lists of network policies. * @param kind kind or {@code null} for none */ public NetworkPolicyList setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java index e58090e5b01..ae1ba7866f8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRule.java @@ -54,9 +54,8 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.Boolean disabled; /** - * Output only. [Output only] Type of the resource. - * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification - * rules + * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for + * network policy traffic classification rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,7 +87,7 @@ public final class NetworkPolicyTrafficClassificationRule extends com.google.api private java.lang.String ruleName; /** - * Output only. [Output Only] Calculation of the complexity of a single network policy rule. + * [Output Only] Calculation of the complexity of a single network policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -170,9 +169,8 @@ public NetworkPolicyTrafficClassificationRule setDisabled(java.lang.Boolean disa } /** - * Output only. [Output only] Type of the resource. - * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification - * rules + * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for + * network policy traffic classification rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -180,9 +178,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. - * Alwayscompute#networkPolicyTrafficClassificationRule for network policy traffic classification - * rules + * [Output only] Type of the resource. Alwayscompute#networkPolicyTrafficClassificationRule for + * network policy traffic classification rules * @param kind kind or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setKind(java.lang.String kind) { @@ -250,7 +247,7 @@ public NetworkPolicyTrafficClassificationRule setRuleName(java.lang.String ruleN } /** - * Output only. [Output Only] Calculation of the complexity of a single network policy rule. + * [Output Only] Calculation of the complexity of a single network policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -258,7 +255,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Calculation of the complexity of a single network policy rule. + * [Output Only] Calculation of the complexity of a single network policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public NetworkPolicyTrafficClassificationRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java index cab865cf5bb..434d469ce7e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkPolicyTrafficClassificationRuleSecureTag.java @@ -37,8 +37,8 @@ public final class NetworkPolicyTrafficClassificationRuleSecureTag extends com.g 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. + * [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 @@ -62,8 +62,8 @@ public NetworkPolicyTrafficClassificationRuleSecureTag setName(java.lang.String } /** - * 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. + * [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() { @@ -71,8 +71,8 @@ public java.lang.String getState() { } /** - * 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. + * [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 NetworkPolicyTrafficClassificationRuleSecureTag setState(java.lang.String state) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java index 0e3cfd5fd64..1eaec17410c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfile.java @@ -30,79 +30,77 @@ public final class NetworkProfile extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -110,7 +108,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { @@ -119,7 +117,7 @@ public NetworkProfile setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output Only] An optional description of this resource. + * [Output Only] An optional description of this resource. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -127,7 +125,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] An optional description of this resource. + * [Output Only] An optional description of this resource. * @param description description or {@code null} for none */ public NetworkProfile setDescription(java.lang.String description) { @@ -136,7 +134,7 @@ public NetworkProfile setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Features supported by the network. + * [Output Only] Features supported by the network. * @return value or {@code null} for none */ public NetworkProfileNetworkFeatures getFeatures() { @@ -144,7 +142,7 @@ public NetworkProfileNetworkFeatures getFeatures() { } /** - * Output only. [Output Only] Features supported by the network. + * [Output Only] Features supported by the network. * @param features features or {@code null} for none */ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { @@ -153,8 +151,7 @@ public NetworkProfile setFeatures(NetworkProfileNetworkFeatures features) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -162,8 +159,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -172,8 +168,7 @@ public NetworkProfile setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network - * profiles. + * [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -181,8 +176,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network - * profiles. + * [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) { @@ -191,7 +185,7 @@ public NetworkProfile setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Location to which the network is restricted. + * [Output Only] Location to which the network is restricted. * @return value or {@code null} for none */ public NetworkProfileLocation getLocation() { @@ -199,7 +193,7 @@ public NetworkProfileLocation getLocation() { } /** - * Output only. [Output Only] Location to which the network is restricted. + * [Output Only] Location to which the network is restricted. * @param location location or {@code null} for none */ public NetworkProfile setLocation(NetworkProfileLocation location) { @@ -208,7 +202,7 @@ public NetworkProfile setLocation(NetworkProfileLocation location) { } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -216,7 +210,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] Name of the resource. + * [Output Only] Name of the resource. * @param name name or {@code null} for none */ public NetworkProfile setName(java.lang.String name) { @@ -225,7 +219,7 @@ public NetworkProfile setName(java.lang.String name) { } /** - * Output only. [Output Only] Type of the network profile. + * [Output Only] Type of the network profile. * @return value or {@code null} for none */ public NetworkProfileProfileType getProfileType() { @@ -233,7 +227,7 @@ public NetworkProfileProfileType getProfileType() { } /** - * Output only. [Output Only] Type of the network profile. + * [Output Only] Type of the network profile. * @param profileType profileType or {@code null} for none */ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { @@ -242,7 +236,7 @@ public NetworkProfile setProfileType(NetworkProfileProfileType profileType) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -250,7 +244,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NetworkProfile setSelfLink(java.lang.String selfLink) { @@ -259,7 +253,7 @@ public NetworkProfile setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -267,7 +261,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java index 243b31e663f..f2c615f7569 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeatures.java @@ -36,13 +36,6 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -128,13 +121,6 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -198,20 +184,6 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -247,20 +219,6 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j @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}. @@ -276,14 +234,14 @@ public final class NetworkProfileNetworkFeatures extends com.google.api.client.j private java.util.List subnetStackTypes; /** - * Output only. Specifies which subnetwork purposes are supported. + * 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. + * Specifies which subnetwork stack types are supported. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -313,23 +271,6 @@ public NetworkProfileNetworkFeatures setAddressPurposes(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 @@ -894,7 +750,7 @@ public NetworkProfileNetworkFeatures setSubnetStackTypes(java.util.List getSubnetworkPurposes() { @@ -902,7 +758,7 @@ public java.util.List getSubnetworkPurposes() { } /** - * Output only. Specifies which subnetwork purposes are supported. + * Specifies which subnetwork purposes are supported. * @param subnetworkPurposes subnetworkPurposes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List subnetworkPurposes) { @@ -911,7 +767,7 @@ public NetworkProfileNetworkFeatures setSubnetworkPurposes(java.util.List getSubnetworkStackTypes() { @@ -919,7 +775,7 @@ public java.util.List getSubnetworkStackTypes() { } /** - * Output only. Specifies which subnetwork stack types are supported. + * Specifies which subnetwork stack types are supported. * @param subnetworkStackTypes subnetworkStackTypes or {@code null} for none */ public NetworkProfileNetworkFeatures setSubnetworkStackTypes(java.util.List subnetworkStackTypes) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange.java deleted file mode 100644 index 469b5f50bc5..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java index d126fc2f0bb..b045ed464b2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkProfilesListResponse.java @@ -56,8 +56,7 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. + * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,15 +73,14 @@ public final class NetworkProfilesListResponse extends com.google.api.client.jso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,8 +143,7 @@ public NetworkProfilesListResponse setItems(java.util.List items } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. + * [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -154,8 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network - * profiles. + * [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) { @@ -187,7 +183,7 @@ public NetworkProfilesListResponse setNextPageToken(java.lang.String nextPageTok } /** - * 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() { @@ -195,7 +191,7 @@ 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 NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { @@ -204,8 +200,7 @@ public NetworkProfilesListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public NetworkProfilesListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java index 195b392152e..390f610176d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworkRoutingConfig.java @@ -56,14 +56,14 @@ public final class NetworkRoutingConfig extends com.google.api.client.json.Gener private java.lang.String bgpInterRegionCost; /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * [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. + * [Output Only] Effective value of the bgp_inter_region_cost field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,7 +137,7 @@ public NetworkRoutingConfig setBgpInterRegionCost(java.lang.String bgpInterRegio } /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * [Output Only] Effective value of the bgp_always_compare_med field. * @return value or {@code null} for none */ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { @@ -145,7 +145,7 @@ public java.lang.Boolean getEffectiveBgpAlwaysCompareMed() { } /** - * Output only. [Output Only] Effective value of the bgp_always_compare_med field. + * [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) { @@ -154,7 +154,7 @@ public NetworkRoutingConfig setEffectiveBgpAlwaysCompareMed(java.lang.Boolean ef } /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * [Output Only] Effective value of the bgp_inter_region_cost field. * @return value or {@code null} for none */ public java.lang.String getEffectiveBgpInterRegionCost() { @@ -162,7 +162,7 @@ public java.lang.String getEffectiveBgpInterRegionCost() { } /** - * Output only. [Output Only] Effective value of the bgp_inter_region_cost field. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksCancelRequestRemovePeeringRequest.java deleted file mode 100644 index 3579133fb9c..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 57b26100431..87552222ac0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -30,22 +30,22 @@ 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. + * [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. + * [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. + * [Output Only] The packet mirroring rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,22 +78,22 @@ public final class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy } /** - * Output only. [Output Only] The short name of the firewall policy. + * [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. + * [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. + * [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() { @@ -102,8 +101,8 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] Deprecated, please use short name instead. The display name of the - * firewall policy. + * [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) { @@ -112,7 +111,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayNa } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -120,7 +119,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -129,7 +128,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java } /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. + * [Output Only] The packet mirroring rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -137,7 +136,7 @@ public java.util.List getPacketMirroringRules() { } /** - * Output only. [Output Only] The packet mirroring rules that apply to the network. + * [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) { @@ -146,8 +145,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setPacketMir } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -155,8 +153,7 @@ public java.lang.Integer getPriority() { } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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) { @@ -182,7 +179,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(jav } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -190,7 +187,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the firewall policy. + * [Output Only] The short name of the firewall policy. * @param shortName shortName or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName(java.lang.String shortName) { @@ -199,7 +196,7 @@ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setShortName } /** - * Output only. [Output Only] The type of the firewall policy. + * [Output Only] The type of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -207,7 +204,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The type of the firewall policy. + * [Output Only] The type of the firewall policy. * @param type type or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java index e43c15856e4..3972693f23a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.java @@ -30,8 +30,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The unique identifier for the security policy. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the security policy. 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 @@ -45,8 +45,8 @@ public final class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPoli private java.util.List rules; /** - * Output only. [Output Only] The unique identifier for the security policy. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the security policy. This identifier is defined by the + * server. * @return value or {@code null} for none */ public java.math.BigInteger getId() { @@ -54,8 +54,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the security policy. This identifier is - * defined by the server. + * [Output Only] The unique identifier for the security policy. This identifier is defined by the + * server. * @param id id or {@code null} for none */ public NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy setId(java.math.BigInteger id) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java index 7b34e2e9405..88694064268 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroup.java @@ -42,7 +42,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private NodeGroupAutoscalingPolicy autoscalingPolicy; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,15 +62,14 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,7 +126,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String nodeTemplate; /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -141,7 +140,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private ShareSettings shareSettings; /** - * Output only. [Output Only] The total number of nodes in the node group. + * [Output Only] The total number of nodes in the node group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -154,8 +153,7 @@ public final class NodeGroup extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. + * [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 @@ -179,7 +177,7 @@ public NodeGroup setAutoscalingPolicy(NodeGroupAutoscalingPolicy autoscalingPoli } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -187,7 +185,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -256,8 +254,7 @@ public NodeGroup encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -265,8 +262,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -275,7 +271,7 @@ public NodeGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -283,7 +279,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeGroup for node group. + * [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) { @@ -410,7 +406,7 @@ public NodeGroup setNodeTemplate(java.lang.String nodeTemplate) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -418,7 +414,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeGroup setSelfLink(java.lang.String selfLink) { @@ -444,7 +440,7 @@ public NodeGroup setShareSettings(ShareSettings shareSettings) { } /** - * Output only. [Output Only] The total number of nodes in the node group. + * [Output Only] The total number of nodes in the node group. * @return value or {@code null} for none */ public java.lang.Integer getSize() { @@ -452,7 +448,7 @@ public java.lang.Integer getSize() { } /** - * Output only. [Output Only] The total number of nodes in the node group. + * [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) { @@ -476,8 +472,7 @@ public NodeGroup setStatus(java.lang.String status) { } /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. + * [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() { @@ -485,8 +480,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The name of the zone where the node group resides, such as us- - * central1-a. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java index edaad394eeb..8cd8b43da57 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeGroupAggregatedList for - * aggregated lists of node groups. + * [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 @@ -62,14 +62,14 @@ public final class NodeGroupAggregatedList extends com.google.api.client.json.Ge 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeGroupAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeGroupAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java index 238b1f18114..b9a428b708a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupList.java @@ -50,8 +50,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. + * [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 @@ -68,7 +67,7 @@ public final class NodeGroupList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public NodeGroupList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeGroupList for lists of node - * groups. + * [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) { @@ -158,7 +155,7 @@ public NodeGroupList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 NodeGroupList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java index e316a46ff52..9abff4da59c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupMaintenanceWindow.java @@ -31,8 +31,8 @@ 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. + * [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 @@ -47,8 +47,8 @@ public final class NodeGroupMaintenanceWindow extends com.google.api.client.json 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. + * [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() { @@ -56,8 +56,8 @@ public Duration getMaintenanceDuration() { } /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java index b1af48a0a34..93ab16ab3e6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupNode.java @@ -43,7 +43,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Output only. Node resources that are reserved by all instances. + * Node resources that are reserved by all instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,7 +70,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson } /** - * Output only. Instance data that shows consumed resources on the node. + * Instance data that shows consumed resources on the node. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +104,7 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String nodeType; /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +131,14 @@ public final class NodeGroupNode extends com.google.api.client.json.GenericJson private java.lang.String status; /** - * Output only. Total amount of available resources on the node. + * 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. + * [Output Only] The information about an upcoming maintenance event. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +162,7 @@ public NodeGroupNode setAccelerators(java.util.List accelerat } /** - * Output only. Node resources that are reserved by all instances. + * Node resources that are reserved by all instances. * @return value or {@code null} for none */ public InstanceConsumptionInfo getConsumedResources() { @@ -170,7 +170,7 @@ public InstanceConsumptionInfo getConsumedResources() { } /** - * Output only. Node resources that are reserved by all instances. + * Node resources that are reserved by all instances. * @param consumedResources consumedResources or {@code null} for none */ public NodeGroupNode setConsumedResources(InstanceConsumptionInfo consumedResources) { @@ -213,7 +213,7 @@ public NodeGroupNode setDisks(java.util.List disks) { } /** - * Output only. Instance data that shows consumed resources on the node. + * Instance data that shows consumed resources on the node. * @return value or {@code null} for none */ public java.util.List getInstanceConsumptionData() { @@ -221,7 +221,7 @@ public java.util.List getInstanceConsumptionData() { } /** - * Output only. Instance data that shows consumed resources on the node. + * Instance data that shows consumed resources on the node. * @param instanceConsumptionData instanceConsumptionData or {@code null} for none */ public NodeGroupNode setInstanceConsumptionData(java.util.List instanceConsumptionData) { @@ -281,7 +281,7 @@ public NodeGroupNode setNodeType(java.lang.String nodeType) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -289,7 +289,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public NodeGroupNode setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -347,7 +347,7 @@ public NodeGroupNode setStatus(java.lang.String status) { } /** - * Output only. Total amount of available resources on the node. + * Total amount of available resources on the node. * @return value or {@code null} for none */ public InstanceConsumptionInfo getTotalResources() { @@ -355,7 +355,7 @@ public InstanceConsumptionInfo getTotalResources() { } /** - * Output only. Total amount of available resources on the node. + * Total amount of available resources on the node. * @param totalResources totalResources or {@code null} for none */ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { @@ -364,7 +364,7 @@ public NodeGroupNode setTotalResources(InstanceConsumptionInfo totalResources) { } /** - * Output only. [Output Only] The information about an upcoming maintenance event. + * [Output Only] The information about an upcoming maintenance event. * @return value or {@code null} for none */ public UpcomingMaintenance getUpcomingMaintenance() { @@ -372,7 +372,7 @@ public UpcomingMaintenance getUpcomingMaintenance() { } /** - * Output only. [Output Only] The information about an upcoming maintenance event. + * [Output Only] The information about an upcoming maintenance event. * @param upcomingMaintenance upcomingMaintenance or {@code null} for none */ public NodeGroupNode setUpcomingMaintenance(UpcomingMaintenance upcomingMaintenance) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java index 699a60fca23..b983f28193d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeGroupsListNodes.java @@ -30,7 +30,7 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class NodeGroupsListNodes extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -116,8 +116,8 @@ public NodeGroupsListNodes setItems(java.util.List items) { } /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. + * [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() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The resource type, which is alwayscompute.nodeGroupsListNodes for - * the list of nodes in the specified node group. + * [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) { @@ -135,10 +135,10 @@ public NodeGroupsListNodes setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -146,10 +146,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -158,7 +158,7 @@ public NodeGroupsListNodes setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +166,7 @@ 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 NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { @@ -175,7 +175,7 @@ public NodeGroupsListNodes setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -183,7 +183,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public NodeGroupsListNodes setWarning(Warning warning) { @@ -202,7 +202,7 @@ public NodeGroupsListNodes clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java index 49172d7c01c..390be988f05 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplate.java @@ -52,7 +52,7 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private java.lang.String cpuOvercommitType; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -78,16 +78,14 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -126,15 +124,14 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private NodeTemplateNodeTypeFlexibility nodeTypeFlexibility; /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,15 +149,15 @@ public final class NodeTemplate extends com.google.api.client.json.GenericJson { private ServerBinding serverBinding; /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. + * [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. + * [Output Only] An optional, human-readable explanation of the status. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,7 +196,7 @@ public NodeTemplate setCpuOvercommitType(java.lang.String cpuOvercommitType) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -207,7 +204,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NodeTemplate setCreationTimestamp(java.lang.String creationTimestamp) { @@ -248,8 +245,7 @@ public NodeTemplate setDisks(java.util.List disks) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -257,8 +253,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -267,8 +262,7 @@ public NodeTemplate setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. + * [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node templates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -276,8 +270,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeTemplate for node - * templates. + * [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) { @@ -362,8 +355,7 @@ public NodeTemplate setNodeTypeFlexibility(NodeTemplateNodeTypeFlexibility nodeT } /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. + * [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() { @@ -371,8 +363,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The name of the region where the node template resides, such as us- - * central1. + * [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) { @@ -381,7 +372,7 @@ public NodeTemplate setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -389,7 +380,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeTemplate setSelfLink(java.lang.String selfLink) { @@ -423,8 +414,8 @@ public NodeTemplate setServerBinding(ServerBinding serverBinding) { } /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. + * [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() { @@ -432,8 +423,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the node template. One of the following - * values:CREATING, READY, and DELETING. + * [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) { @@ -442,7 +433,7 @@ public NodeTemplate setStatus(java.lang.String status) { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [Output Only] An optional, human-readable explanation of the status. * @return value or {@code null} for none */ public java.lang.String getStatusMessage() { @@ -450,7 +441,7 @@ public java.lang.String getStatusMessage() { } /** - * Output only. [Output Only] An optional, human-readable explanation of the status. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java index 8108caade4f..99eb552c0f4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json private java.util.Map items; /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTemplateAggregatedList for - * aggregated lists of node templates. + * [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 @@ -62,14 +62,14 @@ public final class NodeTemplateAggregatedList extends com.google.api.client.json 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTemplateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTemplateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java index 975a9ec6bb3..4dec3311cd1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTemplateList.java @@ -50,8 +50,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. + * [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 @@ -68,7 +67,7 @@ public final class NodeTemplateList extends com.google.api.client.json.GenericJs 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 @@ -116,8 +115,7 @@ public NodeTemplateList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node - * templates. + * [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) { @@ -158,7 +155,7 @@ public NodeTemplateList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 NodeTemplateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java index f9f15a051ae..0908c6c1e0a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeType.java @@ -77,7 +77,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,7 +91,7 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.Integer localSsdGb; /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * [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 @@ -112,15 +112,14 @@ public final class NodeType extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. + * [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 @@ -229,7 +228,7 @@ public NodeType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * [Output Only] The type of the resource. Alwayscompute#nodeType for node types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -237,7 +236,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#nodeType for node types. + * [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) { @@ -263,7 +262,7 @@ public NodeType setLocalSsdGb(java.lang.Integer localSsdGb) { } /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * [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() { @@ -271,7 +270,7 @@ public java.lang.Integer getMaxVms() { } /** - * Output only. [Output Only] Maximum number of VMs that can be created for this node type. + * [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) { @@ -314,7 +313,7 @@ public NodeType setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -322,7 +321,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NodeType setSelfLink(java.lang.String selfLink) { @@ -331,8 +330,7 @@ public NodeType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. + * [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() { @@ -340,8 +338,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] The name of the zone where the node type resides, such as us- - * central1-a. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java index b5f8aa4ddf8..2985c263e70 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeAggregatedList.java @@ -44,8 +44,8 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource.Alwayscompute#nodeTypeAggregatedList for aggregated - * lists of node types. + * [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 @@ -62,14 +62,14 @@ public final class NodeTypeAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public NodeTypeAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public NodeTypeAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java index 87afc1e14e8..499df967122 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NodeTypeList.java @@ -50,8 +50,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. + * [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 @@ -68,7 +67,7 @@ public final class NodeTypeList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public NodeTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#nodeTypeList for lists of node - * types. + * [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) { @@ -158,7 +155,7 @@ public NodeTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 NodeTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java index 29423ff6380..df4ed94b238 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpoint.java @@ -35,7 +35,7 @@ public final class NotificationEndpoint extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,16 +56,15 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener private NotificationEndpointGrpcSettings grpcSettings; /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,23 +82,23 @@ public final class NotificationEndpoint extends com.google.api.client.json.Gener 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. + * [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -107,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public NotificationEndpoint setCreationTimestamp(java.lang.String creationTimestamp) { @@ -150,8 +149,7 @@ public NotificationEndpoint setGrpcSettings(NotificationEndpointGrpcSettings grp } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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() { @@ -159,8 +157,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] A unique identifier for this resource type. The server generates - * this identifier. + * [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) { @@ -169,8 +166,8 @@ public NotificationEndpoint setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -178,8 +175,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [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) { @@ -213,9 +210,9 @@ public NotificationEndpoint setName(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. + * [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() { @@ -223,9 +220,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -234,7 +231,7 @@ public NotificationEndpoint setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -242,7 +239,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public NotificationEndpoint setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointAggregatedList.java deleted file mode 100644 index 8a8ca6062f3..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java index 1c0a447d4f3..092c5f23afb 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointList.java @@ -50,8 +50,8 @@ public final class NotificationEndpointList extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public NotificationEndpointList setItems(java.util.List it } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for notification + * endpoints. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#notificationEndpoint for - * notification endpoints. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/NotificationEndpointsScopedList.java deleted file mode 100644 index ee811630738..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/Operation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java index b784a99e70d..1e3a66cfcfa 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Operation.java @@ -84,12 +84,6 @@ public final class Operation extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private Error error; - /** - * 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`. @@ -128,8 +122,7 @@ public final class Operation extends com.google.api.client.json.GenericJson { private InstancesBulkInsertOperationMetadata instancesBulkInsertOperationMetadata; /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. + * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,8 +136,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -183,8 +176,8 @@ public final class Operation extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -350,21 +343,6 @@ public Operation setError(Error error) { 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`. @@ -455,8 +433,7 @@ public Operation setInstancesBulkInsertOperationMetadata(InstancesBulkInsertOper } /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. + * [Output Only] Type of the resource. Always `compute#operation` for Operation resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -464,8 +441,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always `compute#operation` for Operation - * resources. + * [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) { @@ -491,8 +467,8 @@ public Operation setName(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. + * [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() { @@ -500,8 +476,8 @@ public java.lang.String getOperationGroupId() { } /** - * 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. + * [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) { @@ -586,8 +562,8 @@ public Operation setSelfLink(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. + * [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() { @@ -595,8 +571,8 @@ public SetCommonInstanceMetadataOperationMetadata getSetCommonInstanceMetadataOp } /** - * Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this - * field will contain information on all underlying zonal actions and their state. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java index 0a42c170556..923f1b730d8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationAggregatedList.java @@ -44,8 +44,8 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Always `compute#operationAggregatedList` for - * aggregated lists of operations. + * [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 @@ -69,7 +69,7 @@ public final class OperationAggregatedList extends com.google.api.client.json.Ge private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public OperationAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public OperationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java index b993539d1db..c7c27b93315 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OperationList.java @@ -50,8 +50,7 @@ public final class OperationList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. + * [Output Only] Type of resource. Always `compute#operations` for Operations resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +115,7 @@ public OperationList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. + * [Output Only] Type of resource. Always `compute#operations` for Operations resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always `compute#operations` for Operations - * resource. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java index 5608b2e6ea6..92f1e45bacd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationSecurityPoliciesListAssociationsResponse.java @@ -37,7 +37,7 @@ public final class OrganizationSecurityPoliciesListAssociationsResponse extends private java.util.List associations; /** - * Output only. [Output Only] Type of securityPolicy associations. + * [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * The value may be {@code null}. @@ -63,7 +63,7 @@ public OrganizationSecurityPoliciesListAssociationsResponse setAssociations(java } /** - * Output only. [Output Only] Type of securityPolicy associations. + * [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @return value or {@code null} for none @@ -73,7 +73,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of securityPolicy associations. + * [Output Only] Type of securityPolicy associations. * Alwayscompute#organizationSecurityPoliciesListAssociations for lists of securityPolicy * associations. * @param kind kind or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java index b3eb96bcda6..9482b4dce0d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroring.java @@ -43,7 +43,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringForwardingRuleInfo collectorIlb; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,16 +74,14 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private PacketMirroringFilter filter; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -136,7 +134,7 @@ public final class PacketMirroring extends com.google.api.client.json.GenericJso private java.lang.String region; /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,7 +160,7 @@ public PacketMirroring setCollectorIlb(PacketMirroringForwardingRuleInfo collect } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -170,7 +168,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PacketMirroring setCreationTimestamp(java.lang.String creationTimestamp) { @@ -236,8 +234,7 @@ public PacketMirroring setFilter(PacketMirroringFilter filter) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -245,8 +242,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -255,8 +251,7 @@ public PacketMirroring setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. + * [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -264,8 +259,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet - * mirrorings. + * [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) { @@ -381,7 +375,7 @@ public PacketMirroring setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -389,7 +383,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public PacketMirroring setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java index 1037f9cab3d..595728e2281 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringAggregatedList.java @@ -44,7 +44,7 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class PacketMirroringAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public PacketMirroringAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PacketMirroringAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java index 94108ee8069..ec03ec70a94 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringForwardingRuleInfo.java @@ -30,7 +30,7 @@ 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. + * [Output Only] Unique identifier for the forwarding rule; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,7 +45,7 @@ public final class PacketMirroringForwardingRuleInfo extends com.google.api.clie private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * [Output Only] Unique identifier for the forwarding rule; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -53,7 +53,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the forwarding rule; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java index 3d7fba4d7f1..c7915c3357f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringList.java @@ -50,8 +50,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. + * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class PacketMirroringList extends com.google.api.client.json.Generi 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 @@ -116,8 +115,7 @@ public PacketMirroringList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. + * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#packetMirroring for - * packetMirrorings. + * [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) { @@ -158,7 +155,7 @@ public PacketMirroringList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 PacketMirroringList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java index 17b0f288da5..6cb0e091a11 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoInstanceInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * [Output Only] Unique identifier for the instance; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoInstanceInfo extends com.g private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * [Output Only] Unique identifier for the instance; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the instance; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java index afcc0dfdf19..4001f06eabd 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringMirroredResourceInfoSubnetInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * [Output Only] Unique identifier for the subnetwork; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringMirroredResourceInfoSubnetInfo extends com.goo private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * [Output Only] Unique identifier for the subnetwork; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the subnetwork; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java index aba6b27e954..254d520c669 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PacketMirroringNetworkInfo.java @@ -30,7 +30,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. + * [Output Only] Unique identifier for the network; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PacketMirroringNetworkInfo extends com.google.api.client.json private java.lang.String url; /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. + * [Output Only] Unique identifier for the network; defined by the server. * @return value or {@code null} for none */ public java.lang.String getCanonicalUrl() { @@ -52,7 +52,7 @@ public java.lang.String getCanonicalUrl() { } /** - * Output only. [Output Only] Unique identifier for the network; defined by the server. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java index 862d369b8cb..9f3e11621fe 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PathMatcher.java @@ -146,11 +146,8 @@ public final class PathMatcher extends com.google.api.client.json.GenericJson { /** * 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. + * matching is all that's required. 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. @@ -429,11 +426,8 @@ public PathMatcher setName(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. + * matching is all that's required. 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. @@ -447,11 +441,8 @@ public java.util.List getPathRules() { /** * 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. + * matching is all that's required. 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java index 67589c68ecf..65df1d11db3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeature.java @@ -37,30 +37,28 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private java.lang.String activationStatus; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [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. + * [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. + * [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. + * [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 @@ -81,14 +79,14 @@ public final class PreviewFeature extends com.google.api.client.json.GenericJson private PreviewFeatureRolloutOperation rolloutOperation; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output only] Status of the feature. + * [Output only] Status of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,7 +110,7 @@ public PreviewFeature setActivationStatus(java.lang.String activationStatus) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -120,7 +118,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { @@ -129,7 +127,7 @@ public PreviewFeature setCreationTimestamp(java.lang.String creationTimestamp) { } /** - * Output only. [Output Only] Description of the feature. + * [Output Only] Description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -137,7 +135,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] Description of the feature. + * [Output Only] Description of the feature. * @param description description or {@code null} for none */ public PreviewFeature setDescription(java.lang.String description) { @@ -146,8 +144,7 @@ public PreviewFeature setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -155,8 +152,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -165,8 +161,7 @@ public PreviewFeature setId(java.math.BigInteger id) { } /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. + * [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() { @@ -174,8 +169,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview - * features. + * [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) { @@ -218,7 +212,7 @@ public PreviewFeature setRolloutOperation(PreviewFeatureRolloutOperation rollout } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -226,7 +220,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public PreviewFeature setSelfLink(java.lang.String selfLink) { @@ -235,7 +229,7 @@ public PreviewFeature setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output only] Status of the feature. + * [Output only] Status of the feature. * @return value or {@code null} for none */ public PreviewFeatureStatus getStatus() { @@ -243,7 +237,7 @@ public PreviewFeatureStatus getStatus() { } /** - * Output only. [Output only] Status of the feature. + * [Output only] Status of the feature. * @param status status or {@code null} for none */ public PreviewFeature setStatus(PreviewFeatureStatus status) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java index f099ab2a800..7db8ee1c6d8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureList.java @@ -66,15 +66,14 @@ public final class PreviewFeatureList extends com.google.api.client.json.Generic 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public PreviewFeatureList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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,7 +167,7 @@ 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 PreviewFeatureList setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public PreviewFeatureList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public PreviewFeatureList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java index 6b0cd6054f8..af6b1bbc4e8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatus.java @@ -30,14 +30,14 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The description of the feature. + * [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. + * [Output Only] Link to the public documentation for the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,7 +50,7 @@ public final class PreviewFeatureStatus extends com.google.api.client.json.Gener private PreviewFeatureStatusReleaseStatus releaseStatus; /** - * Output only. [Output Only] The description of the feature. + * [Output Only] The description of the feature. * @return value or {@code null} for none */ public java.lang.String getDescription() { @@ -58,7 +58,7 @@ public java.lang.String getDescription() { } /** - * Output only. [Output Only] The description of the feature. + * [Output Only] The description of the feature. * @param description description or {@code null} for none */ public PreviewFeatureStatus setDescription(java.lang.String description) { @@ -67,7 +67,7 @@ public PreviewFeatureStatus setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Link to the public documentation for the feature. + * [Output Only] Link to the public documentation for the feature. * @return value or {@code null} for none */ public java.lang.String getHelpLink() { @@ -75,7 +75,7 @@ public java.lang.String getHelpLink() { } /** - * Output only. [Output Only] Link to the public documentation for the feature. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java index bbefbcc3470..f26a5843a8a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PreviewFeatureStatusReleaseStatus.java @@ -30,7 +30,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The stage of the feature. + * [Output Only] The stage of the feature. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class PreviewFeatureStatusReleaseStatus extends com.google.api.clie private Date updateDate; /** - * Output only. [Output Only] The stage of the feature. + * [Output Only] The stage of the feature. * @return value or {@code null} for none */ public java.lang.String getStage() { @@ -52,7 +52,7 @@ public java.lang.String getStage() { } /** - * Output only. [Output Only] The stage of the feature. + * [Output Only] The stage of the feature. * @param stage stage or {@code null} for none */ public PreviewFeatureStatusReleaseStatus setStage(java.lang.String stage) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java index b8c5d5a80e3..7c97bff47df 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Project.java @@ -33,8 +33,8 @@ 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. + * [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}. @@ -97,15 +97,15 @@ public final class Project extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * [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; /** - * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It - * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of + * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * The value may be {@code null}. @@ -144,7 +144,7 @@ public final class Project extends com.google.api.client.json.GenericJson { private UsageExportLocation usageExportLocation; /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * [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 @@ -159,8 +159,8 @@ public final class Project extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -170,8 +170,8 @@ public java.lang.String getCloudArmorTier() { } /** - * Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the - * following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + * [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 @@ -311,7 +311,7 @@ public Project setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * [Output Only] Type of the resource. Always compute#project for projects. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -319,7 +319,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#project for projects. + * [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) { @@ -328,8 +328,8 @@ public Project setKind(java.lang.String kind) { } /** - * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It - * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of + * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @return value or {@code null} for none @@ -339,8 +339,8 @@ public java.lang.String getManagedProtectionTier() { } /** - * Output only. [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It - * can be one of the following values:CA_STANDARD, CAMP_PLUS_PAYGO. + * [Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of + * the following values:CA_STANDARD, CAMP_PLUS_PAYGO. * * If this field is not specified, it is assumed to beCA_STANDARD. * @param managedProtectionTier managedProtectionTier or {@code null} for none @@ -423,7 +423,7 @@ public Project setUsageExportLocation(UsageExportLocation usageExportLocation) { } /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * [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() { @@ -431,7 +431,7 @@ public java.lang.String getVmDnsSetting() { } /** - * Output only. [Output Only] Default internal DNS setting used by VMs running in this project. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java index cd70d815772..b7574ceac6c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectsGetXpnResources.java @@ -30,18 +30,18 @@ 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) + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,8 +55,8 @@ public final class ProjectsGetXpnResources extends com.google.api.client.json.Ge private java.util.List resources; /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) + * [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() { @@ -64,8 +64,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#projectsGetXpnResources for lists of - * service resources (a.k.a service projects) + * [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) { @@ -74,10 +74,10 @@ public ProjectsGetXpnResources setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -85,10 +85,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java index dffdfa4c908..47997ccbda3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicAdvertisedPrefix.java @@ -32,14 +32,14 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The version of BYOIP API. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -72,8 +72,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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 @@ -94,8 +94,8 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String ipv6AccessType; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised + * prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,15 +125,15 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String pdpScope; /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -159,7 +159,7 @@ public final class PublicAdvertisedPrefix extends com.google.api.client.json.Gen private java.lang.String status; /** - * Output only. [Output Only] The version of BYOIP API. + * [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -167,7 +167,7 @@ public java.lang.String getByoipApiVersion() { } /** - * Output only. [Output Only] The version of BYOIP API. + * [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -176,7 +176,7 @@ public PublicAdvertisedPrefix setByoipApiVersion(java.lang.String byoipApiVersio } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -184,7 +184,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicAdvertisedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -292,8 +292,8 @@ public PublicAdvertisedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -301,8 +301,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -345,8 +345,8 @@ public PublicAdvertisedPrefix setIpv6AccessType(java.lang.String ipv6AccessType) } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised + * prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -354,8 +354,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for - * public advertised prefixes. + * [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) { @@ -416,8 +416,8 @@ public PublicAdvertisedPrefix setPdpScope(java.lang.String pdpScope) { } /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. + * [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() { @@ -425,8 +425,8 @@ public java.util.List getPublicDele } /** - * Output only. [Output Only] The list of public delegated prefixes that exist for this public - * advertised prefix. + * [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) { @@ -435,7 +435,7 @@ public PublicAdvertisedPrefix setPublicDelegatedPrefixs(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. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -202,7 +202,7 @@ public PublicDelegatedPrefix setAllocatablePrefixLength(java.lang.Integer alloca } /** - * Output only. [Output Only] The version of BYOIP API. + * [Output Only] The version of BYOIP API. * @return value or {@code null} for none */ public java.lang.String getByoipApiVersion() { @@ -210,7 +210,7 @@ public java.lang.String getByoipApiVersion() { } /** - * Output only. [Output Only] The version of BYOIP API. + * [Output Only] The version of BYOIP API. * @param byoipApiVersion byoipApiVersion or {@code null} for none */ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion) { @@ -219,7 +219,7 @@ public PublicDelegatedPrefix setByoipApiVersion(java.lang.String byoipApiVersion } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -227,7 +227,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public PublicDelegatedPrefix setCreationTimestamp(java.lang.String creationTimestamp) { @@ -253,8 +253,8 @@ public PublicDelegatedPrefix setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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() { @@ -262,8 +262,8 @@ public java.lang.Boolean getEnableEnhancedIpv4Allocation() { } /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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) { @@ -337,8 +337,8 @@ public PublicDelegatedPrefix encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -346,8 +346,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -373,8 +373,8 @@ public PublicDelegatedPrefix setIpCidrRange(java.lang.String ipCidrRange) { } /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. - * Inherited from parent prefix. + * [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() { @@ -382,8 +382,8 @@ public java.lang.String getIpv6AccessType() { } /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Prefixes. - * Inherited from parent prefix. + * [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) { @@ -409,8 +409,8 @@ public PublicDelegatedPrefix setIsLiveMigration(java.lang.Boolean isLiveMigratio } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public - * delegated prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public delegated + * prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -418,8 +418,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefix for public - * delegated prefixes. + * [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) { @@ -504,9 +504,9 @@ public PublicDelegatedPrefix setPublicDelegatedSubPrefixs(java.util.List items; /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#publicDelegatedPrefixAggregatedList for aggregated lists of public delegated - * prefixes. + * [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 @@ -70,7 +69,7 @@ public final class PublicDelegatedPrefixAggregatedList extends com.google.api.cl private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -118,9 +117,8 @@ public PublicDelegatedPrefixAggregatedList setItems(java.util.Map getUnreachables() { @@ -187,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public PublicDelegatedPrefixAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java index c6896a733e8..661e1a7fb4a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixList.java @@ -50,8 +50,8 @@ public final class PublicDelegatedPrefixList extends com.google.api.client.json. } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public + * delegated prefixes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +116,8 @@ public PublicDelegatedPrefixList setItems(java.util.List } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. + * [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for public + * delegated prefixes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +125,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#publicDelegatedPrefixList for - * public delegated prefixes. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java index db255ac525a..3e7b2b63d57 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PublicDelegatedPrefixPublicDelegatedSubPrefix.java @@ -51,8 +51,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String description; /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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 @@ -66,8 +66,8 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo private java.lang.String ipCidrRange; /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. + * [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 @@ -95,15 +95,15 @@ public final class PublicDelegatedPrefixPublicDelegatedSubPrefix extends com.goo 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. + * [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. + * [Output Only] The status of the sub public delegated prefix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -161,8 +161,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setDescription(java.lang.St } /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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() { @@ -170,8 +170,8 @@ public java.lang.Boolean getEnableEnhancedIpv4Allocation() { } /** - * Output only. [Output Only] Whether this PDP supports enhanced IPv4 allocations. Applicable for - * IPv4 PDPs 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) { @@ -197,8 +197,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setIpCidrRange(java.lang.St } /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. + * [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() { @@ -206,8 +206,8 @@ public java.lang.String getIpv6AccessType() { } /** - * Output only. [Output Only] The internet access type for IPv6 Public Delegated Sub Prefixes. - * Inherited from parent prefix. + * [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) { @@ -267,8 +267,8 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setName(java.lang.String na } /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. + * [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() { @@ -276,8 +276,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] The region of the sub public delegated prefix if it is regional. If - * absent, the sub prefix is global. + * [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) { @@ -286,7 +286,7 @@ public PublicDelegatedPrefixPublicDelegatedSubPrefix setRegion(java.lang.String } /** - * Output only. [Output Only] The status of the sub public delegated prefix. + * [Output Only] The status of the sub public delegated prefix. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -294,7 +294,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the sub public delegated prefix. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java index db743f6ac38..924e8061310 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reference.java @@ -30,7 +30,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * [Output Only] Type of the resource. Always compute#reference for references. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -59,7 +59,7 @@ public final class Reference extends com.google.api.client.json.GenericJson { private java.lang.String target; /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * [Output Only] Type of the resource. Always compute#reference for references. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -67,7 +67,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#reference for references. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java index c244dcb05e6..bccee9a8880 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Region.java @@ -61,7 +61,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * [Output Only] Type of the resource. Always compute#region for regions. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,8 +75,8 @@ public final class Region extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -110,7 +110,7 @@ public final class Region extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,7 +192,7 @@ public Region setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * [Output Only] Type of the resource. Always compute#region for regions. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -200,7 +200,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#region for regions. + * [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) { @@ -226,8 +226,8 @@ public Region setName(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. + * [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() { @@ -235,8 +235,8 @@ public QuotaStatusWarning getQuotaStatusWarning() { } /** - * 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. + * [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) { @@ -296,7 +296,7 @@ public Region setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -304,7 +304,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Region setSupportsPzs(java.lang.Boolean supportsPzs) { @@ -340,8 +340,8 @@ public Region 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. + * [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 { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java index 551ddfd2ac0..2e556ab7d08 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionAutoscalerList.java @@ -50,7 +50,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RegionAutoscalerList extends com.google.api.client.json.Gener 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 @@ -115,7 +115,7 @@ public RegionAutoscalerList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public RegionAutoscalerList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RegionAutoscalerList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RegionAutoscalerList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java index 872032b6f03..75127baf46f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionDiskTypeList.java @@ -50,8 +50,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. + * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class RegionDiskTypeList extends com.google.api.client.json.Generic 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 @@ -116,8 +115,7 @@ public RegionDiskTypeList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. + * [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#regionDiskTypeList for region disk - * types. + * [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) { @@ -158,7 +155,7 @@ public RegionDiskTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 RegionDiskTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java index 85740a56c46..05b7ebc0b41 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,38 +50,38 @@ public final class RegionInstanceGroupList extends com.google.api.client.json.Ge } /** - * Output only. The resource type. + * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupList setItems(java.util.List items) { } /** - * Output only. The resource type. + * The resource type. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. The resource type. + * The resource type. * @param kind kind or {@code null} for none */ public RegionInstanceGroupList setKind(java.lang.String kind) { @@ -132,10 +132,10 @@ public RegionInstanceGroupList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -143,10 +143,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -155,7 +155,7 @@ public RegionInstanceGroupList setNextPageToken(java.lang.String nextPageToken) } /** - * 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() { @@ -163,7 +163,7 @@ 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 RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { @@ -172,7 +172,7 @@ public RegionInstanceGroupList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -180,7 +180,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupList setWarning(Warning warning) { @@ -199,7 +199,7 @@ public RegionInstanceGroupList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java index 5a070239603..92bdbe38b6c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagerList.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,39 +50,39 @@ public final class RegionInstanceGroupManagerList extends com.google.api.client. } /** - * Output only. [Output Only] The resource type, which is always compute#instanceGroupManagerList - * for a list of managed instance groups that exist in th regional scope. + * [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. [Output Only] This token allows you to get the next page of results for list - * requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value - * for the query parameter pageToken in the next list request. Subsequent list requests will have - * their own nextPageToken to continue paging through the results. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -90,7 +90,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -116,8 +116,8 @@ public RegionInstanceGroupManagerList setItems(java.util.List unreachables; /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,7 +110,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setEtag(java.lang.St } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -119,7 +118,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -145,8 +144,8 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setItems(java.util.L } /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * [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() { @@ -154,8 +153,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. - * Alwayscompute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests. + * [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) { @@ -164,10 +163,10 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setKind(java.lang.St } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -175,10 +174,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -187,7 +186,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setNextPageToken(jav } /** - * 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() { @@ -195,7 +194,7 @@ 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 RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lang.String selfLink) { @@ -204,8 +203,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setSelfLink(java.lan } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java.util.List unreachables) { @@ -223,7 +220,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse setUnreachables(java } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -231,7 +228,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagerResizeRequestsListResponse setWarning(Warning warning) { @@ -250,7 +247,7 @@ public RegionInstanceGroupManagerResizeRequestsListResponse clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.java deleted file mode 100644 index 059cdc52e7f..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersAdoptInstancesRequest.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.model; - -/** - * Model definition for RegionInstanceGroupManagersAdoptInstancesRequest. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class RegionInstanceGroupManagersAdoptInstancesRequest extends com.google.api.client.json.GenericJson { - - /** - * The list of per-instance configs specifying instances to adopt. - * 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); - } - - /** - * The list of per-instance configs specifying instances to adopt. - * @return value or {@code null} for none - */ - public java.util.List getInstances() { - return instances; - } - - /** - * The list of per-instance configs specifying instances to adopt. - * @param instances instances or {@code null} for none - */ - public RegionInstanceGroupManagersAdoptInstancesRequest setInstances(java.util.List instances) { - this.instances = instances; - return this; - } - - @Override - public RegionInstanceGroupManagersAdoptInstancesRequest set(String fieldName, Object value) { - return (RegionInstanceGroupManagersAdoptInstancesRequest) super.set(fieldName, value); - } - - @Override - public RegionInstanceGroupManagersAdoptInstancesRequest clone() { - return (RegionInstanceGroupManagersAdoptInstancesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java index 1743aba53b2..c5415e1b6a4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListErrorsResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListErrorsResponse extends com.goo } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListErrorsResponse setItems(java.util.List getItems() { @@ -68,7 +68,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] The list of PerInstanceConfig. + * [Output Only] The list of PerInstanceConfig. * @param items items or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.List items) { @@ -77,10 +77,10 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setItems(java.util.Lis } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -88,10 +88,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -100,7 +100,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp setNextPageToken(java. } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -108,7 +108,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public RegionInstanceGroupManagersListInstanceConfigsResp setWarning(Warning warning) { @@ -127,7 +127,7 @@ public RegionInstanceGroupManagersListInstanceConfigsResp clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java index be961b62fc1..acfc0c7acca 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersListInstancesResponse.java @@ -43,10 +43,10 @@ public final class RegionInstanceGroupManagersListInstancesResponse extends com. } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -70,10 +70,10 @@ public RegionInstanceGroupManagersListInstancesResponse setManagedInstances(java } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -81,10 +81,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java index aefcae26d51..dac1f439e48 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupsListInstances.java @@ -30,7 +30,7 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -50,38 +50,38 @@ public final class RegionInstanceGroupsListInstances extends com.google.api.clie } /** - * Output only. The resource type. + * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -89,7 +89,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -115,7 +115,7 @@ public RegionInstanceGroupsListInstances setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * [Output Only] Type of resource. Always compute#regionList for lists of regions. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#regionList for lists of regions. + * [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) { @@ -155,7 +155,7 @@ public RegionList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RegionList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java index f55221c5cee..ee278d6de38 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.java @@ -30,9 +30,9 @@ 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. + * [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 @@ -52,9 +52,9 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse ex } /** - * 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. + * [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() { @@ -62,9 +62,9 @@ public java.util.List firewallPolicys) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java index 8ee047a1277..c87245ab60e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.java @@ -31,21 +31,21 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The display name of the firewall policy. + * [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. + * [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. + * [Output only] The packet mirroring rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,15 +58,14 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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. + * [Output only] The rules that apply to the network. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -79,7 +78,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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}. */ @@ -87,7 +86,7 @@ public final class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEff private java.lang.String type; /** - * Output only. [Output Only] The display name of the firewall policy. + * [Output Only] The display name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -95,7 +94,7 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] The display name of the firewall policy. + * [Output Only] The display name of the firewall policy. * @param displayName displayName or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setDisplayName(java.lang.String displayName) { @@ -104,7 +103,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -112,7 +111,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the firewall policy. + * [Output Only] The name of the firewall policy. * @param name name or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setName(java.lang.String name) { @@ -121,7 +120,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output only] The packet mirroring rules that apply to the network. + * [Output only] The packet mirroring rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getPacketMirroringRules() { @@ -129,7 +128,7 @@ public java.util.List getPacketMirroringRules() { } /** - * Output only. [Output only] The packet mirroring rules that apply to the network. + * [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) { @@ -138,8 +137,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY. * @return value or {@code null} for none */ public java.lang.Integer getPriority() { @@ -147,8 +145,7 @@ public java.lang.Integer getPriority() { } /** - * Output only. [Output only] Priority of firewall policy association. Not applicable for - * type=HIERARCHY. + * [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) { @@ -157,7 +154,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output only] The rules that apply to the network. + * [Output only] The rules that apply to the network. * @return value or {@code null} for none */ public java.util.List getRules() { @@ -165,7 +162,7 @@ public java.util.List getRules() { } /** - * Output only. [Output only] The rules that apply to the network. + * [Output only] The rules that apply to the network. * @param rules rules or {@code null} for none */ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy setRules(java.util.List rules) { @@ -174,7 +171,7 @@ public RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewa } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ @@ -183,7 +180,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, + * [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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java index 3cfc66df38c..6a972d65efa 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Reservation.java @@ -46,21 +46,15 @@ public final class Reservation extends com.google.api.client.json.GenericJson { 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,15 +90,6 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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. @@ -114,23 +99,22 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.Boolean enableEmergentMaintenance; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [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. + * [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 @@ -147,14 +131,6 @@ public final class Reservation extends com.google.api.client.json.GenericJson { @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). @@ -164,7 +140,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String protectionTier; /** - * Output only. [Output only] Indicates the reservation mode of the reservation. + * [Output only] Indicates the reservation mode of the reservation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -187,14 +163,14 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.util.Map resourcePolicies; /** - * Output only. [Output Only] Status information for Reservation resource. + * [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. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -208,7 +184,7 @@ public final class Reservation extends com.google.api.client.json.GenericJson { private java.lang.String schedulingType; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -240,10 +216,10 @@ public final class Reservation extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -292,8 +268,8 @@ public Reservation setAggregateReservation(AllocationAggregateReservation aggreg } /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. + * [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() { @@ -301,8 +277,8 @@ public java.lang.String getCommitment() { } /** - * Output only. [Output Only] Full or partial URL to a parent commitment. This field displays for - * reservations that are tied to a commitment. + * [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) { @@ -311,22 +287,7 @@ public Reservation setCommitment(java.lang.String commitment) { } /** - * @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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -334,7 +295,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Reservation setCreationTimestamp(java.lang.String creationTimestamp) { @@ -414,27 +375,6 @@ public Reservation setDescription(java.lang.String 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. @@ -455,8 +395,7 @@ public Reservation setEnableEmergentMaintenance(java.lang.Boolean enableEmergent } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -464,8 +403,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -474,7 +412,7 @@ public Reservation setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * [Output Only] Type of the resource. Alwayscompute#reservations for reservations. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -482,7 +420,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations. + * [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) { @@ -491,8 +429,8 @@ public Reservation setKind(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. + * [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() { @@ -500,8 +438,8 @@ public java.util.List getLinkedCommitments() { } /** - * Output only. [Output Only] Full or partial URL to parent commitments. This field displays for - * reservations that are tied to multiple commitments. + * [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) { @@ -534,25 +472,6 @@ public Reservation setName(java.lang.String 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). @@ -573,7 +492,7 @@ public Reservation setProtectionTier(java.lang.String protectionTier) { } /** - * Output only. [Output only] Indicates the reservation mode of the reservation. + * [Output only] Indicates the reservation mode of the reservation. * @return value or {@code null} for none */ public java.lang.String getReservationMode() { @@ -581,7 +500,7 @@ public java.lang.String getReservationMode() { } /** - * Output only. [Output only] Indicates the reservation mode of the reservation. + * [Output only] Indicates the reservation mode of the reservation. * @param reservationMode reservationMode or {@code null} for none */ public Reservation setReservationMode(java.lang.String reservationMode) { @@ -628,7 +547,7 @@ public Reservation setResourcePolicies(java.util.Map r } /** - * Output only. [Output Only] Status information for Reservation resource. + * [Output Only] Status information for Reservation resource. * @return value or {@code null} for none */ public AllocationResourceStatus getResourceStatus() { @@ -636,7 +555,7 @@ public AllocationResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for Reservation resource. + * [Output Only] Status information for Reservation resource. * @param resourceStatus resourceStatus or {@code null} for none */ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { @@ -645,7 +564,7 @@ public Reservation setResourceStatus(AllocationResourceStatus resourceStatus) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -653,7 +572,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Reservation setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -679,7 +598,7 @@ public Reservation setSchedulingType(java.lang.String schedulingType) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -687,7 +606,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -755,10 +674,10 @@ public Reservation setSpecificReservationRequired(java.lang.Boolean specificRese } /** - * 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. + * [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() { @@ -766,10 +685,10 @@ public java.lang.String getStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java index 481d5487015..b89fe21e167 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationAggregatedList.java @@ -44,7 +44,7 @@ public final class ReservationAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ReservationAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ReservationAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ReservationAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index 3cc78bd8634..9c28377a472 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,62 +30,58 @@ 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. + * [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. + * [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. + * [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. + * [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. + * [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. + * 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. + * [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 + * [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}. */ @@ -93,66 +89,64 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs private java.lang.String name; /** - * Output only. [Output Only] The physical topology of the reservation block. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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() { @@ -160,8 +154,7 @@ public java.lang.Integer getCount() { } /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. + * [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) { @@ -170,7 +163,7 @@ public ReservationBlock setCount(java.lang.Integer count) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -178,7 +171,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -187,7 +180,7 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) } /** - * Output only. [Output Only] Health information for the reservation block. + * [Output Only] Health information for the reservation block. * @return value or {@code null} for none */ public ReservationBlockHealthInfo getHealthInfo() { @@ -195,7 +188,7 @@ public ReservationBlockHealthInfo getHealthInfo() { } /** - * Output only. [Output Only] Health information for the reservation block. + * [Output Only] Health information for the reservation block. * @param healthInfo healthInfo or {@code null} for none */ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { @@ -204,8 +197,7 @@ public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -213,8 +205,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -223,8 +214,7 @@ public ReservationBlock setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation block. + * [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() { @@ -232,8 +222,7 @@ public java.lang.Integer getInUseCount() { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation block. + * [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) { @@ -242,8 +231,8 @@ public ReservationBlock setInUseCount(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. + * 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() { @@ -251,8 +240,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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) { @@ -261,8 +250,7 @@ public ReservationBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. + * [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation blocks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -270,8 +258,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationBlock for reservation - * blocks. + * [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) { @@ -280,8 +267,8 @@ public ReservationBlock setKind(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 + * [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 */ @@ -290,8 +277,8 @@ public java.lang.String getName() { } /** - * 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 + * [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 */ @@ -301,7 +288,7 @@ public ReservationBlock setName(java.lang.String name) { } /** - * Output only. [Output Only] The physical topology of the reservation block. + * [Output Only] The physical topology of the reservation block. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopology getPhysicalTopology() { @@ -309,7 +296,7 @@ public ReservationBlockPhysicalTopology getPhysicalTopology() { } /** - * Output only. [Output Only] The physical topology of the reservation block. + * [Output Only] The physical topology of the reservation block. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology physicalTopology) { @@ -318,7 +305,7 @@ public ReservationBlock setPhysicalTopology(ReservationBlockPhysicalTopology phy } /** - * Output only. [Output Only] Maintenance information for this reservation block. + * [Output Only] Maintenance information for this reservation block. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationMaintenance() { @@ -326,7 +313,7 @@ public GroupMaintenanceInfo getReservationMaintenance() { } /** - * Output only. [Output Only] Maintenance information for this reservation block. + * [Output Only] Maintenance information for this reservation block. * @param reservationMaintenance reservationMaintenance or {@code null} for none */ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservationMaintenance) { @@ -335,8 +322,7 @@ public ReservationBlock setReservationMaintenance(GroupMaintenanceInfo reservati } /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. + * [Output Only] The number of reservation subBlocks associated with this reservation block. * @return value or {@code null} for none */ public java.lang.Integer getReservationSubBlockCount() { @@ -344,8 +330,7 @@ public java.lang.Integer getReservationSubBlockCount() { } /** - * Output only. [Output Only] The number of reservation subBlocks associated with this reservation - * block. + * [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) { @@ -354,8 +339,8 @@ public ReservationBlock setReservationSubBlockCount(java.lang.Integer reservatio } /** - * 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. + * [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() { @@ -363,8 +348,8 @@ public java.lang.Integer getReservationSubBlockInUseCount() { } /** - * 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. + * [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) { @@ -373,7 +358,7 @@ public ReservationBlock setReservationSubBlockInUseCount(java.lang.Integer reser } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -381,7 +366,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -390,7 +375,7 @@ public ReservationBlock setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -398,7 +383,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -407,7 +392,7 @@ public ReservationBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] Status of the reservation block. + * [Output Only] Status of the reservation block. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -415,7 +400,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] Status of the reservation block. + * [Output Only] Status of the reservation block. * @param status status or {@code null} for none */ public ReservationBlock setStatus(java.lang.String status) { @@ -424,7 +409,7 @@ public ReservationBlock setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Zone in which the reservation block resides. + * [Output Only] Zone in which the reservation block resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -432,7 +417,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] Zone in which the reservation block resides. + * [Output Only] Zone in which the reservation block resides. * @param zone zone or {@code null} for none */ public ReservationBlock setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java index b51a80d1123..53e85cffd67 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopology.java @@ -44,7 +44,7 @@ public final class ReservationBlockPhysicalTopology extends com.google.api.clien private java.lang.String cluster; /** - * Output only. The detailed instances information for a given Block + * The detailed instances information for a given Block * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,7 +85,7 @@ public ReservationBlockPhysicalTopology setCluster(java.lang.String cluster) { } /** - * Output only. The detailed instances information for a given Block + * The detailed instances information for a given Block * @return value or {@code null} for none */ public java.util.List getInstances() { @@ -93,7 +93,7 @@ public java.util.List getInstances() { } /** - * Output only. The detailed instances information for a given Block + * The detailed instances information for a given Block * @param instances instances or {@code null} for none */ public ReservationBlockPhysicalTopology setInstances(java.util.List instances) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java index 74bbbacca30..bca68a5e4f5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlockPhysicalTopologyInstance.java @@ -37,7 +37,7 @@ public final class ReservationBlockPhysicalTopologyInstance extends com.google.a private java.math.BigInteger instanceId; /** - * Output only. The PhysicalHostTopology of instances within a Block resource. + * The PhysicalHostTopology of instances within a Block resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +68,7 @@ public ReservationBlockPhysicalTopologyInstance setInstanceId(java.math.BigInteg } /** - * Output only. The PhysicalHostTopology of instances within a Block resource. + * The PhysicalHostTopology of instances within a Block resource. * @return value or {@code null} for none */ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalHostTopology() { @@ -76,7 +76,7 @@ public ReservationBlockPhysicalTopologyInstancePhysicalHostTopology getPhysicalH } /** - * Output only. The PhysicalHostTopology of instances within a Block resource. + * The PhysicalHostTopology of instances within a Block resource. * @param physicalHostTopology physicalHostTopology or {@code null} for none */ public ReservationBlockPhysicalTopologyInstance setPhysicalHostTopology(ReservationBlockPhysicalTopologyInstancePhysicalHostTopology physicalHostTopology) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java index 0bad0666237..b036cd71a72 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationList.java @@ -50,8 +50,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso } /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations + * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class ReservationList extends com.google.api.client.json.GenericJso 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 @@ -116,8 +115,7 @@ public ReservationList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations + * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof - * reservations + * [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) { @@ -158,7 +155,7 @@ public ReservationList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 ReservationList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationParams.java deleted file mode 100644 index 30f762638ba..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlot.java deleted file mode 100644 index 9429017cf3c..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotPhysicalTopology.java deleted file mode 100644 index a5343db9f74..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotStatus.java deleted file mode 100644 index 070a4f2ac91..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetResponse.java deleted file mode 100644 index b83cc08701f..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsGetVersionRequest.java deleted file mode 100644 index f00c0534eda..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSlotsListResponse.java deleted file mode 100644 index 9a5b6a712ab..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 7e39ffbcc94..9ae87d6d051 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -30,68 +30,66 @@ public final class ReservationSubBlock extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Slice info for the reservation subBlock. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * 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. + * [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 + * [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}. */ @@ -99,49 +97,49 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi private java.lang.String name; /** - * Output only. [Output Only] The physical topology of the reservation subBlock. + * [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. + * 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. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Slice info for the reservation subBlock. * @return value or {@code null} for none */ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { @@ -149,7 +147,7 @@ public AcceleratorTopologiesInfo getAcceleratorTopologiesInfo() { } /** - * Output only. [Output Only] Slice info for the reservation subBlock. + * [Output Only] Slice info for the reservation subBlock. * @param acceleratorTopologiesInfo acceleratorTopologiesInfo or {@code null} for none */ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInfo acceleratorTopologiesInfo) { @@ -158,7 +156,7 @@ public ReservationSubBlock setAcceleratorTopologiesInfo(AcceleratorTopologiesInf } /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * [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() { @@ -166,7 +164,7 @@ public java.lang.Integer getCount() { } /** - * Output only. [Output Only] The number of hosts that are allocated in this reservation subBlock. + * [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) { @@ -175,7 +173,7 @@ public ReservationSubBlock setCount(java.lang.Integer count) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -183,7 +181,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimestamp) { @@ -192,7 +190,7 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta } /** - * Output only. [Output Only] Health information for the reservation subBlock. + * [Output Only] Health information for the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockHealthInfo getHealthInfo() { @@ -200,7 +198,7 @@ public ReservationSubBlockHealthInfo getHealthInfo() { } /** - * Output only. [Output Only] Health information for the reservation subBlock. + * [Output Only] Health information for the reservation subBlock. * @param healthInfo healthInfo or {@code null} for none */ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { @@ -209,8 +207,7 @@ public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInf } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -218,8 +215,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -228,8 +224,7 @@ public ReservationSubBlock setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation subBlock. + * [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() { @@ -237,8 +232,7 @@ public java.lang.Integer getInUseCount() { } /** - * Output only. [Output Only] The number of instances that are currently in use on this - * reservation subBlock. + * [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) { @@ -247,8 +241,8 @@ public ReservationSubBlock setInUseCount(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. + * 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() { @@ -256,8 +250,8 @@ public java.lang.Integer getInUseHostCount() { } /** - * Output only. Number of hosts currently in use. If there is one or more Instances running on the - * host, it is considered in use. + * 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) { @@ -266,8 +260,8 @@ public ReservationSubBlock setInUseHostCount(java.lang.Integer inUseHostCount) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. + * [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for reservation + * subBlocks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -275,8 +269,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#reservationSubBlock for - * reservation subBlocks. + * [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) { @@ -285,8 +279,8 @@ public ReservationSubBlock setKind(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 + * [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 */ @@ -295,8 +289,8 @@ public java.lang.String getName() { } /** - * 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 + * [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 */ @@ -306,7 +300,7 @@ public ReservationSubBlock setName(java.lang.String name) { } /** - * Output only. [Output Only] The physical topology of the reservation subBlock. + * [Output Only] The physical topology of the reservation subBlock. * @return value or {@code null} for none */ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { @@ -314,7 +308,7 @@ public ReservationSubBlockPhysicalTopology getPhysicalTopology() { } /** - * Output only. [Output Only] The physical topology of the reservation subBlock. + * [Output Only] The physical topology of the reservation subBlock. * @param physicalTopology physicalTopology or {@code null} for none */ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopology physicalTopology) { @@ -323,7 +317,7 @@ public ReservationSubBlock setPhysicalTopology(ReservationSubBlockPhysicalTopolo } /** - * Output only. Maintenance information for this reservation subBlock. + * Maintenance information for this reservation subBlock. * @return value or {@code null} for none */ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { @@ -331,7 +325,7 @@ public GroupMaintenanceInfo getReservationSubBlockMaintenance() { } /** - * Output only. Maintenance information for this reservation subBlock. + * Maintenance information for this reservation subBlock. * @param reservationSubBlockMaintenance reservationSubBlockMaintenance or {@code null} for none */ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInfo reservationSubBlockMaintenance) { @@ -340,7 +334,7 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -348,7 +342,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -357,7 +351,7 @@ public ReservationSubBlock setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -365,7 +359,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { @@ -374,7 +368,7 @@ public ReservationSubBlock setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * Output only. [Output Only] Status of the reservation subBlock. + * [Output Only] Status of the reservation subBlock. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -382,7 +376,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] Status of the reservation subBlock. + * [Output Only] Status of the reservation subBlock. * @param status status or {@code null} for none */ public ReservationSubBlock setStatus(java.lang.String status) { @@ -391,7 +385,7 @@ public ReservationSubBlock setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. + * [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none */ public java.lang.String getZone() { @@ -399,7 +393,7 @@ public java.lang.String getZone() { } /** - * Output only. [Output Only] Zone in which the reservation subBlock resides. + * [Output Only] Zone in which the reservation subBlock resides. * @param zone zone or {@code null} for none */ public ReservationSubBlock setZone(java.lang.String zone) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlocksGetVersionRequest.java deleted file mode 100644 index f10458f7bb3..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java index 6bc0c38c573..1a8c9dc1642 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicy.java @@ -31,7 +31,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -58,8 +58,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyGroupPlacementPolicy groupPlacementPolicy; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 @@ -73,8 +72,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. + * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,14 +96,14 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private java.lang.String region; /** - * Output only. [Output Only] The system status of the resource policy. + * [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. + * [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,7 +117,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy; /** - * Output only. [Output Only] The status of resource policy creation. + * [Output Only] The status of resource policy creation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -133,7 +131,7 @@ public final class ResourcePolicy extends com.google.api.client.json.GenericJson private ResourcePolicyWorkloadPolicy workloadPolicy; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -141,7 +139,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ResourcePolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -199,8 +197,7 @@ public ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -208,8 +205,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -235,8 +231,7 @@ public ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePo } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. + * [Output Only] Type of the resource. Alwayscompute#resource_policies for resource policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -244,8 +239,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#resource_policies for resource - * policies. + * [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) { @@ -294,7 +288,7 @@ public ResourcePolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] The system status of the resource policy. + * [Output Only] The system status of the resource policy. * @return value or {@code null} for none */ public ResourcePolicyResourceStatus getResourceStatus() { @@ -302,7 +296,7 @@ public ResourcePolicyResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] The system status of the resource policy. + * [Output Only] The system status of the resource policy. * @param resourceStatus resourceStatus or {@code null} for none */ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceStatus) { @@ -311,7 +305,7 @@ public ResourcePolicy setResourceStatus(ResourcePolicyResourceStatus resourceSta } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -319,7 +313,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -345,7 +339,7 @@ public ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePo } /** - * Output only. [Output Only] The status of resource policy creation. + * [Output Only] The status of resource policy creation. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -353,7 +347,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of resource policy creation. + * [Output Only] The status of resource policy creation. * @param status status or {@code null} for none */ public ResourcePolicy setStatus(java.lang.String status) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java index 50b94076f75..62d0b0d5449 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyAggregatedList.java @@ -56,7 +56,7 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -73,14 +73,14 @@ public final class ResourcePolicyAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,7 +143,7 @@ public ResourcePolicyAggregatedList setItems(java.util.Map getUnreachables() { @@ -208,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ResourcePolicyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java index a23209854dd..3bdee011222 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyDailyCycle.java @@ -38,8 +38,8 @@ public final class ResourcePolicyDailyCycle extends com.google.api.client.json.G 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. + * [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 @@ -73,8 +73,8 @@ public ResourcePolicyDailyCycle setDaysInCycle(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. + * [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() { @@ -82,8 +82,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] A predetermined duration for the window, automatically chosen to be - * the smallest possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java index 7bc231a7392..344c0e6dd69 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyHourlyCycle.java @@ -30,8 +30,8 @@ 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. + * [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 @@ -54,8 +54,8 @@ public final class ResourcePolicyHourlyCycle extends com.google.api.client.json. private java.lang.String startTime; /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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() { @@ -63,8 +63,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java index 495e033dbc4..0e74d741445 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyList.java @@ -56,8 +56,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies + * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,7 +73,7 @@ public final class ResourcePolicyList extends com.google.api.client.json.Generic 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 @@ -137,8 +136,7 @@ public ResourcePolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies + * [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof resourcePolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -146,8 +144,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource.Alwayscompute#resourcePoliciesList for listsof - * resourcePolicies + * [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) { @@ -179,7 +176,7 @@ public ResourcePolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -187,7 +184,7 @@ 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 ResourcePolicyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java index 530e452effd..0d0dcd61a5e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatus.java @@ -32,18 +32,16 @@ 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. + * [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. + * [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() { @@ -51,9 +49,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus getInstanceSched } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java index 4a6a22e20dd..ee231f26daa 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyResourceStatusInstanceSchedulePolicyStatus.java @@ -30,24 +30,22 @@ 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. + * [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. + * [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. + * [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() { @@ -55,8 +53,7 @@ public java.lang.String getLastRunStartTime() { } /** - * Output only. [Output Only] The last time the schedule successfully ran. The timestamp is an - * RFC3339 string. + * [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) { @@ -65,8 +62,8 @@ public ResourcePolicyResourceStatusInstanceSchedulePolicyStatus setLastRunStartT } /** - * 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. + * [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() { @@ -74,8 +71,8 @@ public java.lang.String getNextRunStartTime() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java index 620437c3886..c95509acb7f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourcePolicyWeeklyCycleDayOfWeek.java @@ -39,8 +39,8 @@ public final class ResourcePolicyWeeklyCycleDayOfWeek extends com.google.api.cli private java.lang.String day; /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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 @@ -76,8 +76,8 @@ public ResourcePolicyWeeklyCycleDayOfWeek setDay(java.lang.String day) { } /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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() { @@ -85,8 +85,8 @@ public java.lang.String getDuration() { } /** - * Output only. [Output only] Duration of the time window, automatically chosen to be smallest - * possible in the given scenario. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index 45529ca6c4f..e357c802616 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -31,34 +31,32 @@ 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. + * [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. + * [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. + * [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. + * [Output Only] Reservation information that the instance is consuming from. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -71,7 +69,7 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson private ResourceStatusScheduling scheduling; /** - * Output only. [Output Only] Details about the instance stopping state. + * [Output Only] Details about the instance stopping state. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -84,9 +82,9 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson 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. + * [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() { @@ -94,9 +92,9 @@ public ResourceStatusEffectiveInstanceMetadata getEffectiveInstanceMetadata() { } /** - * 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. + * [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) { @@ -105,9 +103,8 @@ public ResourceStatus setEffectiveInstanceMetadata(ResourceStatusEffectiveInstan } /** - * 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. + * [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() { @@ -115,9 +112,8 @@ public java.lang.String getPhysicalHost() { } /** - * 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. + * [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) { @@ -126,9 +122,8 @@ public ResourceStatus setPhysicalHost(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. + * [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() { @@ -136,9 +131,8 @@ public ResourceStatusPhysicalHostTopology getPhysicalHostTopology() { } /** - * 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. + * [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) { @@ -147,7 +141,7 @@ public ResourceStatus setPhysicalHostTopology(ResourceStatusPhysicalHostTopology } /** - * Output only. [Output Only] Reservation information that the instance is consuming from. + * [Output Only] Reservation information that the instance is consuming from. * @return value or {@code null} for none */ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() { @@ -155,7 +149,7 @@ public ResourceStatusReservationConsumptionInfo getReservationConsumptionInfo() } /** - * Output only. [Output Only] Reservation information that the instance is consuming from. + * [Output Only] Reservation information that the instance is consuming from. * @param reservationConsumptionInfo reservationConsumptionInfo or {@code null} for none */ public ResourceStatus setReservationConsumptionInfo(ResourceStatusReservationConsumptionInfo reservationConsumptionInfo) { @@ -179,7 +173,7 @@ public ResourceStatus setScheduling(ResourceStatusScheduling scheduling) { } /** - * Output only. [Output Only] Details about the instance stopping state. + * [Output Only] Details about the instance stopping state. * @return value or {@code null} for none */ public ResourceStatusShutdownDetails getShutdownDetails() { @@ -187,7 +181,7 @@ public ResourceStatusShutdownDetails getShutdownDetails() { } /** - * Output only. [Output Only] Details about the instance stopping state. + * [Output Only] Details about the instance stopping state. * @param shutdownDetails shutdownDetails or {@code null} for none */ public ResourceStatus setShutdownDetails(ResourceStatusShutdownDetails shutdownDetails) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java index 4ab03361f12..a4fb3dc3ba9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusEffectiveInstanceMetadata.java @@ -64,13 +64,6 @@ public final class ResourceStatusEffectiveInstanceMetadata extends com.google.ap @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}. @@ -177,23 +170,6 @@ public ResourceStatusEffectiveInstanceMetadata setEnableOsloginMetadataValue(jav 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java index 7753f710612..33bdf54ed61 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -30,16 +30,14 @@ 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. + * [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 that this instance is - * consuming from. + * [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() { @@ -47,8 +45,7 @@ public java.lang.String getConsumedReservation() { } /** - * Output only. [Output Only] The full resource name of the reservation that this instance is - * consuming from. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java index 6f314a3a4c1..f9217b53075 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java @@ -17,10 +17,7 @@ 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. + * Represent a Rollout 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: @@ -47,7 +44,7 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String completionTime; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,15 +72,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String etag; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#rollout for rollouts. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,14 +112,14 @@ public final class Rollout extends com.google.api.client.json.GenericJson { private java.lang.String rolloutPlan; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -178,7 +174,7 @@ public Rollout setCompletionTime(java.lang.String completionTime) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -186,7 +182,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Rollout setCreationTimestamp(java.lang.String creationTimestamp) { @@ -246,8 +242,7 @@ public Rollout setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -255,8 +250,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -265,7 +259,7 @@ public Rollout setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. + * [Output Only] Type of the resource. Always compute#rollout for rollouts. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -273,7 +267,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#rollout for rollouts. + * [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) { @@ -343,7 +337,7 @@ public Rollout setRolloutPlan(java.lang.String rolloutPlan) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -351,7 +345,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -360,7 +354,7 @@ public Rollout setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -368,7 +362,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java index 712a6961446..c24af287777 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlan.java @@ -17,11 +17,7 @@ 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. + * Message describing RolloutPlan 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: @@ -34,7 +30,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -48,15 +44,14 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +77,14 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [Output Only] Server-defined URL for this resource's resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,7 +98,7 @@ public final class RolloutPlan extends com.google.api.client.json.GenericJson { private java.util.List waves; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -111,7 +106,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public RolloutPlan setCreationTimestamp(java.lang.String creationTimestamp) { @@ -137,8 +132,7 @@ public RolloutPlan setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -146,8 +140,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -156,7 +149,7 @@ public RolloutPlan setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -164,7 +157,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. + * [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) { @@ -217,7 +210,7 @@ public RolloutPlan setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -225,7 +218,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -234,7 +227,7 @@ public RolloutPlan setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -242,7 +235,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java index 88f9bd42c32..beb3942d8a9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutPlansListResponse.java @@ -66,15 +66,14 @@ public final class RolloutPlansListResponse 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public RolloutPlansListResponse setNextPageToken(java.lang.String nextPageToken) } /** - * 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,7 +167,7 @@ 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 RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public RolloutPlansListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutPlansListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java index c49f5389511..9c0deff71b3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RolloutsListResponse.java @@ -66,15 +66,14 @@ public final class RolloutsListResponse extends com.google.api.client.json.Gener 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -160,7 +159,7 @@ public RolloutsListResponse setNextPageToken(java.lang.String nextPageToken) { } /** - * 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,7 +167,7 @@ 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 RolloutsListResponse setSelfLink(java.lang.String selfLink) { @@ -177,8 +176,7 @@ public RolloutsListResponse setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -186,8 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public RolloutsListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java index e4a8f6741cb..78775e940d5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Route.java @@ -34,14 +34,14 @@ public final class Route extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] AS path. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -64,15 +64,14 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String destRange; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of this resource. Always compute#routes for Route resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -106,8 +105,8 @@ public final class Route extends com.google.api.client.json.GenericJson { private java.lang.String nextHopGateway; /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. + * [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 @@ -140,18 +139,17 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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 @@ -169,8 +167,8 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -184,16 +182,16 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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 @@ -225,18 +223,18 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [Output only] The status of the route. This status only applies to dynamic routes learned by + * Cloud Routers. This status is not applicable to static routes. * 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 + * [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 @@ -257,8 +255,8 @@ public final class Route extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -271,7 +269,7 @@ public final class Route extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] AS path. + * [Output Only] AS path. * @return value or {@code null} for none */ public java.util.List getAsPaths() { @@ -279,7 +277,7 @@ public java.util.List getAsPaths() { } /** - * Output only. [Output Only] AS path. + * [Output Only] AS path. * @param asPaths asPaths or {@code null} for none */ public Route setAsPaths(java.util.List asPaths) { @@ -288,7 +286,7 @@ public Route setAsPaths(java.util.List asPaths) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -296,7 +294,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Route setCreationTimestamp(java.lang.String creationTimestamp) { @@ -343,8 +341,7 @@ public Route setDestRange(java.lang.String destRange) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -352,8 +349,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -362,7 +358,7 @@ public Route setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * [Output Only] Type of this resource. Always compute#routes for Route resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -370,7 +366,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of this resource. Always compute#routes for Route resources. + * [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) { @@ -442,8 +438,8 @@ public Route setNextHopGateway(java.lang.String nextHopGateway) { } /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. + * [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() { @@ -451,8 +447,8 @@ public java.lang.String getNextHopHub() { } /** - * Output only. [Output Only] The full resource name of the Network Connectivity Center hub that - * will handle matching packets. + * [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) { @@ -519,9 +515,8 @@ public Route setNextHopInstance(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. + * [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() { @@ -529,9 +524,8 @@ public java.lang.Long getNextHopInterRegionCost() { } /** - * 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. + * [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) { @@ -540,9 +534,9 @@ public Route setNextHopInterRegionCost(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. + * [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() { @@ -550,9 +544,9 @@ public java.lang.String getNextHopInterconnectAttachment() { } /** - * 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. + * [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) { @@ -586,8 +580,8 @@ public Route setNextHopIp(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. + * [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() { @@ -595,8 +589,8 @@ public java.lang.Long getNextHopMed() { } /** - * Output only. [Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the - * desirability of a particular route in a network. + * [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) { @@ -622,8 +616,8 @@ public Route setNextHopNetwork(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. + * [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() { @@ -631,8 +625,8 @@ public java.lang.String getNextHopOrigin() { } /** - * Output only. [Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway - * Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + * [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) { @@ -641,8 +635,8 @@ public Route setNextHopOrigin(java.lang.String nextHopOrigin) { } /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. + * [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() { @@ -650,8 +644,8 @@ public java.lang.String getNextHopPeering() { } /** - * Output only. [Output Only] The network peering name that should handle matching packets, which - * should conform to RFC1035. + * [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) { @@ -719,8 +713,8 @@ public Route setPriority(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. + * [Output only] The status of the route. This status only applies to dynamic routes learned by + * Cloud Routers. This status is not applicable to static routes. * @return value or {@code null} for none */ public java.lang.String getRouteStatus() { @@ -728,8 +722,8 @@ public java.lang.String getRouteStatus() { } /** - * [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. + * [Output only] The status of the route. This status only applies to dynamic routes learned by + * Cloud Routers. This status is not applicable to static routes. * @param routeStatus routeStatus or {@code null} for none */ public Route setRouteStatus(java.lang.String routeStatus) { @@ -738,10 +732,10 @@ public Route setRouteStatus(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 + * [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() { @@ -749,10 +743,10 @@ public java.lang.String getRouteType() { } /** - * 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 + * [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) { @@ -795,8 +789,8 @@ public Route setTags(java.util.List tags) { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. + * [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() { @@ -804,8 +798,8 @@ public java.util.List getWarnings() { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this route, this - * field will be populated with warning messages. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java index cd5b56ea9e0..9052a3d434e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouteList.java @@ -50,7 +50,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouteList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public RouteList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public RouteList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public RouteList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RouteList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java index 07fab3bd08e..4367ff87697 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Router.java @@ -48,7 +48,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List bgpPeers; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -89,7 +89,7 @@ public final class Router extends com.google.api.client.json.GenericJson { private java.util.List interfaces; /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public Router setBgpPeers(java.util.List bgpPeers) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -204,7 +204,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Router setCreationTimestamp(java.lang.String creationTimestamp) { @@ -293,7 +293,7 @@ public Router setInterfaces(java.util.List interfaces) { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -301,7 +301,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java index db21c3e9216..307e0afc33c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterAggregatedList.java @@ -44,7 +44,7 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class RouterAggregatedList extends com.google.api.client.json.Gener 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public RouterAggregatedList setItems(java.util.Map it } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public RouterAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public RouterAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -164,7 +164,7 @@ 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 RouterAggregatedList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public RouterAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RouterAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java index b133d765ef9..f4f262041a8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterBgpPeer.java @@ -166,12 +166,12 @@ public final class RouterBgpPeer extends com.google.api.client.json.GenericJson 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. + * [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 @@ -543,12 +543,12 @@ public RouterBgpPeer setIpv6NexthopAddress(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. + * [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() { @@ -556,12 +556,12 @@ public java.lang.String getManagementType() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java index 779d4921d86..93e8c4c2c42 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterInterface.java @@ -69,12 +69,12 @@ public final class RouterInterface extends com.google.api.client.json.GenericJso 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. + * [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 @@ -214,12 +214,12 @@ public RouterInterface setLinkedVpnTunnel(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. + * [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() { @@ -227,12 +227,12 @@ public java.lang.String getManagementType() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java index 95df0e9398e..6f5d8bad44d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterList.java @@ -50,7 +50,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class RouterList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public RouterList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [Output Only] Type of resource. Always compute#router for routers. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#router for routers. + * [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) { @@ -155,7 +155,7 @@ public RouterList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 RouterList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java index 71bdb7c3925..52c5d87fe82 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusBgpPeerStatus.java @@ -49,44 +49,42 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private BfdStatus bfdStatus; /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. + * 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. + * 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. + * 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. + * 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. + * 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. + * URL of the VPN tunnel that this BGP peer controls. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -100,59 +98,59 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. private java.lang.Boolean md5AuthEnabled; /** - * Output only. Name of this BGP peer. Unique within the Routers resource. + * 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. + * 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. + * 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. + * 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. + * 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. + * [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 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} + * Status of the BGP peer: {UP, DOWN} * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -166,15 +164,15 @@ public final class RouterStatusBgpPeerStatus extends com.google.api.client.json. 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 + * 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 + * Time this session has been up, in seconds. Format: 145 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -213,8 +211,7 @@ public RouterStatusBgpPeerStatus setBfdStatus(BfdStatus bfdStatus) { } /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. + * 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() { @@ -222,8 +219,7 @@ public java.lang.Boolean getEnableIpv4() { } /** - * Output only. Enable IPv4 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 4. + * 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) { @@ -232,8 +228,7 @@ public RouterStatusBgpPeerStatus setEnableIpv4(java.lang.Boolean enableIpv4) { } /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. + * 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() { @@ -241,8 +236,7 @@ public java.lang.Boolean getEnableIpv6() { } /** - * Output only. Enable IPv6 traffic over BGP Peer. It is enabled by default if the peerIpAddress - * is version 6. + * 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) { @@ -251,7 +245,7 @@ public RouterStatusBgpPeerStatus setEnableIpv6(java.lang.Boolean enableIpv6) { } /** - * Output only. IP address of the local BGP interface. + * IP address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpAddress() { @@ -259,7 +253,7 @@ public java.lang.String getIpAddress() { } /** - * Output only. IP address of the local BGP interface. + * IP address of the local BGP interface. * @param ipAddress ipAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { @@ -268,7 +262,7 @@ public RouterStatusBgpPeerStatus setIpAddress(java.lang.String ipAddress) { } /** - * Output only. IPv4 address of the local BGP interface. + * IPv4 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv4NexthopAddress() { @@ -276,7 +270,7 @@ public java.lang.String getIpv4NexthopAddress() { } /** - * Output only. IPv4 address of the local BGP interface. + * IPv4 address of the local BGP interface. * @param ipv4NexthopAddress ipv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4NexthopAddress) { @@ -285,7 +279,7 @@ public RouterStatusBgpPeerStatus setIpv4NexthopAddress(java.lang.String ipv4Next } /** - * Output only. IPv6 address of the local BGP interface. + * IPv6 address of the local BGP interface. * @return value or {@code null} for none */ public java.lang.String getIpv6NexthopAddress() { @@ -293,7 +287,7 @@ public java.lang.String getIpv6NexthopAddress() { } /** - * Output only. IPv6 address of the local BGP interface. + * IPv6 address of the local BGP interface. * @param ipv6NexthopAddress ipv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6NexthopAddress) { @@ -302,7 +296,7 @@ public RouterStatusBgpPeerStatus setIpv6NexthopAddress(java.lang.String ipv6Next } /** - * Output only. URL of the VPN tunnel that this BGP peer controls. + * URL of the VPN tunnel that this BGP peer controls. * @return value or {@code null} for none */ public java.lang.String getLinkedVpnTunnel() { @@ -310,7 +304,7 @@ public java.lang.String getLinkedVpnTunnel() { } /** - * Output only. URL of the VPN tunnel that this BGP peer controls. + * 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) { @@ -336,7 +330,7 @@ public RouterStatusBgpPeerStatus setMd5AuthEnabled(java.lang.Boolean md5AuthEnab } /** - * Output only. Name of this BGP peer. Unique within the Routers resource. + * Name of this BGP peer. Unique within the Routers resource. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -344,7 +338,7 @@ public java.lang.String getName() { } /** - * Output only. Name of this BGP peer. Unique within the Routers resource. + * 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) { @@ -353,7 +347,7 @@ public RouterStatusBgpPeerStatus setName(java.lang.String name) { } /** - * Output only. Number of routes learned from the remote BGP Peer. + * Number of routes learned from the remote BGP Peer. * @return value or {@code null} for none */ public java.lang.Long getNumLearnedRoutes() { @@ -361,7 +355,7 @@ public java.lang.Long getNumLearnedRoutes() { } /** - * Output only. Number of routes learned from the remote BGP Peer. + * Number of routes learned from the remote BGP Peer. * @param numLearnedRoutes numLearnedRoutes or {@code null} for none */ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRoutes) { @@ -370,7 +364,7 @@ public RouterStatusBgpPeerStatus setNumLearnedRoutes(java.lang.Long numLearnedRo } /** - * Output only. IP address of the remote BGP interface. + * IP address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpAddress() { @@ -378,7 +372,7 @@ public java.lang.String getPeerIpAddress() { } /** - * Output only. IP address of the remote BGP interface. + * IP address of the remote BGP interface. * @param peerIpAddress peerIpAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress) { @@ -387,7 +381,7 @@ public RouterStatusBgpPeerStatus setPeerIpAddress(java.lang.String peerIpAddress } /** - * Output only. IPv4 address of the remote BGP interface. + * IPv4 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv4NexthopAddress() { @@ -395,7 +389,7 @@ public java.lang.String getPeerIpv4NexthopAddress() { } /** - * Output only. IPv4 address of the remote BGP interface. + * IPv4 address of the remote BGP interface. * @param peerIpv4NexthopAddress peerIpv4NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peerIpv4NexthopAddress) { @@ -404,7 +398,7 @@ public RouterStatusBgpPeerStatus setPeerIpv4NexthopAddress(java.lang.String peer } /** - * Output only. IPv6 address of the remote BGP interface. + * IPv6 address of the remote BGP interface. * @return value or {@code null} for none */ public java.lang.String getPeerIpv6NexthopAddress() { @@ -412,7 +406,7 @@ public java.lang.String getPeerIpv6NexthopAddress() { } /** - * Output only. IPv6 address of the remote BGP interface. + * IPv6 address of the remote BGP interface. * @param peerIpv6NexthopAddress peerIpv6NexthopAddress or {@code null} for none */ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peerIpv6NexthopAddress) { @@ -421,9 +415,9 @@ public RouterStatusBgpPeerStatus setPeerIpv6NexthopAddress(java.lang.String peer } /** - * 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. + * [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() { @@ -431,9 +425,9 @@ public java.lang.String getRouterApplianceInstance() { } /** - * 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. + * [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) { @@ -442,8 +436,8 @@ public RouterStatusBgpPeerStatus setRouterApplianceInstance(java.lang.String rou } /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. + * 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() { @@ -451,8 +445,8 @@ public java.lang.String getState() { } /** - * Output only. The state of the BGP session. For a list of possible values for this field, seeBGP - * session states. + * 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) { @@ -461,7 +455,7 @@ public RouterStatusBgpPeerStatus setState(java.lang.String state) { } /** - * Output only. Status of the BGP peer: {UP, DOWN} + * Status of the BGP peer: {UP, DOWN} * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -469,7 +463,7 @@ public java.lang.String getStatus() { } /** - * Output only. Status of the BGP peer: {UP, DOWN} + * Status of the BGP peer: {UP, DOWN} * @param status status or {@code null} for none */ public RouterStatusBgpPeerStatus setStatus(java.lang.String status) { @@ -495,8 +489,8 @@ public RouterStatusBgpPeerStatus setStatusReason(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 + * 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() { @@ -504,8 +498,8 @@ public java.lang.String getUptime() { } /** - * Output only. Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 - * minutes, 59 seconds + * 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) { @@ -514,7 +508,7 @@ public RouterStatusBgpPeerStatus setUptime(java.lang.String uptime) { } /** - * Output only. Time this session has been up, in seconds. Format: 145 + * Time this session has been up, in seconds. Format: 145 * @return value or {@code null} for none */ public java.lang.String getUptimeSeconds() { @@ -522,7 +516,7 @@ public java.lang.String getUptimeSeconds() { } /** - * Output only. Time this session has been up, in seconds. Format: 145 + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java index ef71891d9b5..7444eae4ae0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatus.java @@ -30,14 +30,14 @@ 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"] + * 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", + * 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}. */ @@ -45,7 +45,7 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene 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", + * 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}. */ @@ -53,23 +53,23 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene 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 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. + * 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. + * Number of VM endpoints (i.e., Nics) that can use NAT. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,22 +83,21 @@ public final class RouterStatusNatStatus extends com.google.api.client.json.Gene private java.util.List ruleStatus; /** - * Output only. A list of fully qualified URLs of reserved IP address resources. + * 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". + * 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"] + * 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() { @@ -106,7 +105,7 @@ public java.util.List getAutoAllocatedNatIps() { } /** - * Output only. A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] + * 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) { @@ -115,7 +114,7 @@ public RouterStatusNatStatus setAutoAllocatedNatIps(java.util.List getDrainAutoAllocatedNatIps() { } /** - * Output only. A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -134,7 +133,7 @@ public RouterStatusNatStatus setDrainAutoAllocatedNatIps(java.util.List getDrainUserAllocatedNatIps() { } /** - * Output only. A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", + * 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 */ @@ -153,9 +152,9 @@ public RouterStatusNatStatus setDrainUserAllocatedNatIps(java.util.List getUserAllocatedNatIpResources() { @@ -233,7 +232,7 @@ public java.util.List getUserAllocatedNatIpResources() { } /** - * Output only. A list of fully qualified URLs of reserved IP address resources. + * 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) { @@ -242,8 +241,7 @@ public RouterStatusNatStatus setUserAllocatedNatIpResources(java.util.List getUserAllocatedNatIps() { @@ -251,8 +249,7 @@ public java.util.List getUserAllocatedNatIps() { } /** - * Output only. A list of IPs user-allocated for NAT. They will be raw IP strings like - * "179.12.26.133". + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java index cbbdfb39f77..db7f3b5c89d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterStatusNatStatusNatRuleStatus.java @@ -30,44 +30,43 @@ 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"]. + * 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"]. + * 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 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. + * 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. + * 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"]. + * 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() { @@ -75,7 +74,7 @@ public java.util.List getActiveNatIps() { } /** - * Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + * 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) { @@ -84,8 +83,7 @@ public RouterStatusNatStatusNatRuleStatus setActiveNatIps(java.util.List getDrainNatIps() { @@ -93,8 +91,7 @@ public java.util.List getDrainNatIps() { } /** - * Output only. A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", - * "179.12.26.133"]. + * 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) { @@ -103,8 +100,8 @@ public RouterStatusNatStatusNatRuleStatus setDrainNatIps(java.util.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 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/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java index 8239df9d7ca..818137164f1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListBgpRoutes.java @@ -43,8 +43,7 @@ public final class RoutersListBgpRoutes extends com.google.api.client.json.Gener private java.lang.String id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of - * bgp routes. + * [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of bgp routes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +73,14 @@ public final class RoutersListBgpRoutes extends com.google.api.client.json.Gener } /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +126,7 @@ public RoutersListBgpRoutes setId(java.lang.String id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of - * bgp routes. + * [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of bgp routes. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -136,8 +134,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListBgpRoutes for lists of - * bgp routes. + * [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) { @@ -186,7 +183,7 @@ public RoutersListBgpRoutes setResult(java.util.List result) { } /** - * 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() { @@ -194,7 +191,7 @@ 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 RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { @@ -203,7 +200,7 @@ public RoutersListBgpRoutes setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListBgpRoutes setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListNamedSets.java deleted file mode 100644 index 4e536a46cba..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java index 1a62c00b46b..b527ad775a6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RoutersListRoutePolicies.java @@ -43,8 +43,8 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G private java.lang.String id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. + * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route + * policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,14 +74,14 @@ public final class RoutersListRoutePolicies extends com.google.api.client.json.G } /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -127,8 +127,8 @@ public RoutersListRoutePolicies setId(java.lang.String id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. + * [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists of route + * policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -136,8 +136,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#routersListRoutePolicies for lists - * of route policies. + * [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) { @@ -186,7 +186,7 @@ public RoutersListRoutePolicies setResult(java.util.List result) { } /** - * 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() { @@ -194,7 +194,7 @@ 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 RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { @@ -203,7 +203,7 @@ public RoutersListRoutePolicies setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public RoutersListRoutePolicies setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java index 200770cde8a..bf7e29946a2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedAttachedDisk.java @@ -67,7 +67,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.Long diskSizeGb; /** - * Output only. [Output Only] URL of the disk type resource. For + * [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}. */ @@ -89,7 +89,7 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ } /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * 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 @@ -103,14 +103,14 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String interface__; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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. + * [Output Only] Any valid publicly visible licenses. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,18 +131,17 @@ public final class SavedAttachedDisk extends com.google.api.client.json.GenericJ private java.lang.String source; /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. + * [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. + * [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 @@ -245,7 +244,7 @@ public SavedAttachedDisk setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Output only. [Output Only] URL of the disk type resource. For + * [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 */ @@ -254,7 +253,7 @@ public java.lang.String getDiskType() { } /** - * Output only. [Output Only] URL of the disk type resource. For + * [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 */ @@ -283,7 +282,7 @@ public SavedAttachedDisk setGuestOsFeatures(java.util.List guest } /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * 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() { @@ -291,7 +290,7 @@ public java.lang.Integer getIndex() { } /** - * Output only. Specifies zero-based index of the disk that is attached to the source instance. + * 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) { @@ -317,7 +316,7 @@ public SavedAttachedDisk setInterface(java.lang.String interface__) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -325,7 +324,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk for attached disks. + * [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) { @@ -334,7 +333,7 @@ public SavedAttachedDisk setKind(java.lang.String kind) { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @return value or {@code null} for none */ public java.util.List getLicenses() { @@ -342,7 +341,7 @@ public java.util.List getLicenses() { } /** - * Output only. [Output Only] Any valid publicly visible licenses. + * [Output Only] Any valid publicly visible licenses. * @param licenses licenses or {@code null} for none */ public SavedAttachedDisk setLicenses(java.util.List licenses) { @@ -385,8 +384,7 @@ public SavedAttachedDisk setSource(java.lang.String source) { } /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. + * [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() { @@ -394,8 +392,7 @@ public java.lang.Long getStorageBytes() { } /** - * Output only. [Output Only] A size of the storage used by the disk's snapshot by this machine - * image. + * [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) { @@ -404,10 +401,10 @@ public SavedAttachedDisk setStorageBytes(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. + * [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() { @@ -415,10 +412,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java index aaed00e16f7..a9935b2bb70 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SavedDisk.java @@ -30,45 +30,45 @@ public final class SavedDisk extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The architecture of the attached disk. + * [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. + * [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. + * 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. + * [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. + * [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. + * [Output Only] The architecture of the attached disk. * @return value or {@code null} for none */ public java.lang.String getArchitecture() { @@ -76,7 +76,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the attached disk. + * [Output Only] The architecture of the attached disk. * @param architecture architecture or {@code null} for none */ public SavedDisk setArchitecture(java.lang.String architecture) { @@ -85,7 +85,7 @@ public SavedDisk setArchitecture(java.lang.String architecture) { } /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -93,7 +93,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + * [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) { @@ -102,7 +102,7 @@ public SavedDisk setKind(java.lang.String kind) { } /** - * Output only. Specifies a URL of the disk attached to the source instance. + * Specifies a URL of the disk attached to the source instance. * @return value or {@code null} for none */ public java.lang.String getSourceDisk() { @@ -110,7 +110,7 @@ public java.lang.String getSourceDisk() { } /** - * Output only. Specifies a URL of the disk attached to the source instance. + * 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) { @@ -119,7 +119,7 @@ public SavedDisk setSourceDisk(java.lang.String sourceDisk) { } /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * [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() { @@ -127,7 +127,7 @@ public java.lang.Long getStorageBytes() { } /** - * Output only. [Output Only] Size of the individual disk snapshot used by this machine image. + * [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) { @@ -136,10 +136,10 @@ public SavedDisk setStorageBytes(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. + * [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() { @@ -147,10 +147,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java index beaceec8af9..ac73a0cd4cf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Scheduling.java @@ -152,15 +152,6 @@ public final class Scheduling extends com.google.api.client.json.GenericJson { @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}. @@ -475,27 +466,6 @@ public Scheduling setPreemptible(java.lang.Boolean 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java index 3aabd23a6e1..4eed043ce0c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Screenshot.java @@ -37,7 +37,7 @@ public final class Screenshot extends com.google.api.client.json.GenericJson { private java.lang.String contents; /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public Screenshot setContents(java.lang.String contents) { } /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * [Output Only] Type of the resource. Always compute#screenshot for the screenshots. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -69,7 +69,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java index a84058c3cc4..b6a54a3106a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPoliciesAggregatedList.java @@ -50,8 +50,8 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for - * lists of Security Policies. + * [Output Only] Type of resource. Alwayscompute#securityPolicyAggregatedList for lists of + * Security Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SecurityPoliciesAggregatedList extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SecurityPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SecurityPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java index cf3148b5805..17ddc586845 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicy.java @@ -52,7 +52,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List associations; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -98,16 +98,14 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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 + * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,7 +143,7 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.lang.String name; /** - * Output only. [Output Only] The parent of the security policy. + * [Output Only] The parent of the security policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -158,16 +156,16 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson 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. + * [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; /** - * Output only. [Output Only] Total count of all security policy rule tuples. A security policy - * can not exceed a set number of tuples. + * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed + * a set number of tuples. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -185,14 +183,14 @@ public final class SecurityPolicy extends com.google.api.client.json.GenericJson private java.util.List rules; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -297,7 +295,7 @@ public SecurityPolicy setAssociations(java.util.List } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -305,7 +303,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SecurityPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -444,8 +442,7 @@ public SecurityPolicy encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -453,8 +450,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -463,8 +459,7 @@ public SecurityPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security - * policies + * [Output only] Type of the resource. Alwayscompute#securityPolicyfor security policies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -472,8 +467,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyfor security - * policies + * [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) { @@ -591,7 +585,7 @@ public SecurityPolicy setName(java.lang.String name) { } /** - * Output only. [Output Only] The parent of the security policy. + * [Output Only] The parent of the security policy. * @return value or {@code null} for none */ public java.lang.String getParent() { @@ -599,7 +593,7 @@ public java.lang.String getParent() { } /** - * Output only. [Output Only] The parent of the security policy. + * [Output Only] The parent of the security policy. * @param parent parent or {@code null} for none */ public SecurityPolicy setParent(java.lang.String parent) { @@ -623,8 +617,8 @@ public SecurityPolicy setRecaptchaOptionsConfig(SecurityPolicyRecaptchaOptionsCo } /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. + * [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() { @@ -632,8 +626,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional security policy resides. This - * field is not applicable to global security policies. + * [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) { @@ -642,8 +636,8 @@ public SecurityPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Total count of all security policy rule tuples. A security policy - * can not exceed a set number of tuples. + * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed + * a set number of tuples. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -651,8 +645,8 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Total count of all security policy rule tuples. A security policy - * can not exceed a set number of tuples. + * [Output Only] Total count of all security policy rule tuples. A security policy can not exceed + * a set number of tuples. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicy setRuleTupleCount(java.lang.Integer ruleTupleCount) { @@ -686,7 +680,7 @@ public SecurityPolicy setRules(java.util.List rules) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -694,7 +688,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SecurityPolicy setSelfLink(java.lang.String selfLink) { @@ -703,7 +697,7 @@ public SecurityPolicy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -711,7 +705,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @param selfLinkWithId selfLinkWithId or {@code null} for none */ public SecurityPolicy setSelfLinkWithId(java.lang.String selfLinkWithId) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java index 9476b243de5..57ec4989820 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyAssociation.java @@ -37,7 +37,7 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String attachmentId; /** - * Output only. [Output Only] The display name of the security policy of the association. + * [Output Only] The display name of the security policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,14 +65,14 @@ public final class SecurityPolicyAssociation extends com.google.api.client.json. private java.lang.String name; /** - * Output only. [Output Only] The security policy ID of the association. + * [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. + * [Output Only] The short name of the security policy of the association. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -96,7 +96,7 @@ public SecurityPolicyAssociation setAttachmentId(java.lang.String attachmentId) } /** - * Output only. [Output Only] The display name of the security policy of the association. + * [Output Only] The display name of the security policy of the association. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { @@ -104,7 +104,7 @@ public java.lang.String getDisplayName() { } /** - * Output only. [Output Only] The display name of the security policy of the association. + * [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) { @@ -164,7 +164,7 @@ public SecurityPolicyAssociation setName(java.lang.String name) { } /** - * Output only. [Output Only] The security policy ID of the association. + * [Output Only] The security policy ID of the association. * @return value or {@code null} for none */ public java.lang.String getSecurityPolicyId() { @@ -172,7 +172,7 @@ public java.lang.String getSecurityPolicyId() { } /** - * Output only. [Output Only] The security policy ID of the association. + * [Output Only] The security policy ID of the association. * @param securityPolicyId securityPolicyId or {@code null} for none */ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPolicyId) { @@ -181,7 +181,7 @@ public SecurityPolicyAssociation setSecurityPolicyId(java.lang.String securityPo } /** - * Output only. [Output Only] The short name of the security policy of the association. + * [Output Only] The short name of the security policy of the association. * @return value or {@code null} for none */ public java.lang.String getShortName() { @@ -189,7 +189,7 @@ public java.lang.String getShortName() { } /** - * Output only. [Output Only] The short name of the security policy of the association. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java index 33873905536..17d5630766a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyDdosProtectionConfig.java @@ -29,90 +29,12 @@ @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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java index 5fd6edbb9dd..19d4c9ad5d2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyList.java @@ -50,8 +50,7 @@ public final class SecurityPolicyList extends com.google.api.client.json.Generic } /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies + * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,8 +108,7 @@ public SecurityPolicyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies + * [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof securityPolicies * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -118,8 +116,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#securityPolicyList for listsof - * securityPolicies + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java index e220085aafd..48ab40cb384 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRule.java @@ -85,8 +85,7 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private SecurityPolicyRuleHttpHeaderAction headerAction; /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules + * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -184,8 +183,7 @@ public final class SecurityPolicyRule extends com.google.api.client.json.Generic private java.lang.Long ruleNumber; /** - * Output only. [Output Only] Calculation of the complexity of a single firewall security policy - * rule. + * [Output Only] Calculation of the complexity of a single firewall security policy rule. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -333,8 +331,7 @@ public SecurityPolicyRule setHeaderAction(SecurityPolicyRuleHttpHeaderAction hea } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules + * [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -342,8 +339,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security - * policy rules + * [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) { @@ -558,8 +554,7 @@ public SecurityPolicyRule setRuleNumber(java.lang.Long ruleNumber) { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall security policy - * rule. + * [Output Only] Calculation of the complexity of a single firewall security policy rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleTupleCount() { @@ -567,8 +562,7 @@ public java.lang.Integer getRuleTupleCount() { } /** - * Output only. [Output Only] Calculation of the complexity of a single firewall security policy - * rule. + * [Output Only] Calculation of the complexity of a single firewall security policy rule. * @param ruleTupleCount ruleTupleCount or {@code null} for none */ public SecurityPolicyRule setRuleTupleCount(java.lang.Integer ruleTupleCount) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java index 6ffbb122749..c0e4da81a12 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SecurityPolicyRulePreconfiguredWafConfigExclusion.java @@ -29,14 +29,6 @@ @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. @@ -86,25 +78,6 @@ public final class SecurityPolicyRulePreconfiguredWafConfigExclusion extends com @com.google.api.client.util.Key private java.lang.String targetRuleSet; - /** - * A list of request body fields to be excluded from inspection during preconfigured WAF - * evaluation. - * @return value or {@code null} for none - */ - public java.util.List getRequestBodiesToExclude() { - return requestBodiesToExclude; - } - - /** - * A list of request body fields to be excluded from inspection during preconfigured WAF - * evaluation. - * @param requestBodiesToExclude requestBodiesToExclude or {@code null} for none - */ - public SecurityPolicyRulePreconfiguredWafConfigExclusion setRequestBodiesToExclude(java.util.List requestBodiesToExclude) { - this.requestBodiesToExclude = requestBodiesToExclude; - return this; - } - /** * A list of request cookie names whose value will be excluded from inspection during * preconfigured WAF evaluation. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java index 55658088fdb..bbb282182db 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SerialPortOutput.java @@ -37,8 +37,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.String contents; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. + * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -54,7 +53,7 @@ public final class SerialPortOutput extends com.google.api.client.json.GenericJs private java.lang.Long next; /** - * 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 @@ -89,8 +88,7 @@ public SerialPortOutput setContents(java.lang.String contents) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. + * [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port output. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -98,8 +96,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serialPortOutput for serial port - * output. + * [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) { @@ -129,7 +126,7 @@ public SerialPortOutput setNext(java.lang.Long next) { } /** - * 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() { @@ -137,7 +134,7 @@ 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 SerialPortOutput setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java index 60323086c10..4e614e1b586 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachment.java @@ -34,8 +34,8 @@ 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. + * [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 @@ -73,7 +73,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.util.List consumerRejectLists; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,16 +115,15 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -182,7 +181,7 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private java.lang.Long propagatedConnectionLimit; /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * [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 @@ -203,16 +202,16 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ 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. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -237,8 +236,8 @@ public final class ServiceAttachment extends com.google.api.client.json.GenericJ private ServiceAttachmentTunnelingConfig tunnelingConfig; /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. + * [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() { @@ -246,8 +245,8 @@ public java.util.List getConnectedEndpoints( } /** - * Output only. [Output Only] An array of connections for all the consumers connected to this - * service attachment. + * [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) { @@ -327,7 +326,7 @@ public ServiceAttachment setConsumerRejectLists(java.util.List } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -335,7 +334,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public ServiceAttachment setCreationTimestamp(java.lang.String creationTimestamp) { @@ -462,8 +461,8 @@ public ServiceAttachment encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -471,8 +470,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -481,8 +480,7 @@ public ServiceAttachment setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -490,8 +488,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [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) { @@ -617,7 +614,7 @@ public ServiceAttachment setPropagatedConnectionLimit(java.lang.Long propagatedC } /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * [Output Only] An 128-bit global unique ID of the PSC service attachment. * @return value or {@code null} for none */ public Uint128 getPscServiceAttachmentId() { @@ -625,7 +622,7 @@ public Uint128 getPscServiceAttachmentId() { } /** - * Output only. [Output Only] An 128-bit global unique ID of the PSC service attachment. + * [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) { @@ -665,9 +662,9 @@ public ServiceAttachment setReconcileConnections(java.lang.Boolean reconcileConn } /** - * 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. + * [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() { @@ -675,9 +672,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { @@ -686,7 +683,7 @@ public ServiceAttachment setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -694,7 +691,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public ServiceAttachment setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java index 4e76e05905c..c059c93940b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentAggregatedList.java @@ -44,7 +44,7 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class ServiceAttachmentAggregatedList extends com.google.api.client 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public ServiceAttachmentAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public ServiceAttachmentAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java index ae7bbed5851..da01d8aa8a6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ServiceAttachmentList.java @@ -50,8 +50,7 @@ public final class ServiceAttachmentList extends com.google.api.client.json.Gene } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +115,7 @@ public ServiceAttachmentList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service attachments. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#serviceAttachment for service - * attachments. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java index 4381a64c967..6aead1f593f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedInstanceIdentity.java @@ -51,8 +51,8 @@ public final class ShieldedInstanceIdentity extends com.google.api.client.json.G private ShieldedInstanceIdentityEntry encryptionKey; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. + * [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 @@ -117,8 +117,8 @@ public ShieldedInstanceIdentity setEncryptionKey(ShieldedInstanceIdentityEntry e } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. + * [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() { @@ -126,8 +126,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedInstanceIdentity for - * shielded Instance identity entry. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java index f9eaa9d86b5..d284f34ce5b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShieldedVmIdentity.java @@ -37,8 +37,8 @@ public final class ShieldedVmIdentity extends com.google.api.client.json.Generic private ShieldedVmIdentityEntry encryptionKey; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded - * VM identity entry. + * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity + * entry. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -69,8 +69,8 @@ public ShieldedVmIdentity setEncryptionKey(ShieldedVmIdentityEntry encryptionKey } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded - * VM identity entry. + * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity + * entry. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -78,8 +78,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded - * VM identity entry. + * [Output Only] Type of the resource. Alwayscompute#shieldedVmIdentity for shielded VM identity + * entry. * @param kind kind or {@code null} for none */ public ShieldedVmIdentity setKind(java.lang.String kind) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java index 5bbb6278aaf..6dd3f8d1426 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -33,15 +33,15 @@ 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. + * [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. + * [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 @@ -59,14 +59,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String chainName; /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,22 +80,22 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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. + * [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. + * 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 @@ -110,9 +110,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -125,16 +125,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -162,16 +160,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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). + * [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 @@ -205,8 +202,8 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private SnapshotParams params; /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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 @@ -220,14 +217,14 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Boolean satisfiesPzi; /** - * Output only. [Output Only] Reserved for future use. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -250,20 +247,6 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { @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 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 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}. @@ -294,9 +277,9 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -321,51 +304,51 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { 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. + * [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. + * [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. + * [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. + * [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. + * [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. [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. + * [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 @@ -379,7 +362,15 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.util.List storageLocations; /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userLicenses; + + /** + * [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() { @@ -387,7 +378,7 @@ public java.lang.String getArchitecture() { } /** - * Output only. [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * [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) { @@ -396,8 +387,8 @@ public Snapshot setArchitecture(java.lang.String architecture) { } /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. + * [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() { @@ -405,8 +396,8 @@ public java.lang.Boolean getAutoCreated() { } /** - * Output only. [Output Only] Set to true if snapshots are automatically created by applying - * resource policy on the target disk. + * [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) { @@ -440,7 +431,7 @@ public Snapshot setChainName(java.lang.String chainName) { } /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [Output Only] Size in bytes of the snapshot at creation time. * @return value or {@code null} for none */ public java.lang.Long getCreationSizeBytes() { @@ -448,7 +439,7 @@ public java.lang.Long getCreationSizeBytes() { } /** - * Output only. [Output Only] Size in bytes of the snapshot at creation time. + * [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) { @@ -457,7 +448,7 @@ public Snapshot setCreationSizeBytes(java.lang.Long creationSizeBytes) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -465,7 +456,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Snapshot setCreationTimestamp(java.lang.String creationTimestamp) { @@ -491,7 +482,7 @@ public Snapshot setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [Output Only] Size of the source disk, specified in GB. * @return value or {@code null} for none */ public java.lang.Long getDiskSizeGb() { @@ -499,7 +490,7 @@ public java.lang.Long getDiskSizeGb() { } /** - * Output only. [Output Only] Size of the source disk, specified in GB. + * [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) { @@ -508,7 +499,7 @@ public Snapshot setDiskSizeGb(java.lang.Long diskSizeGb) { } /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * [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() { @@ -516,7 +507,7 @@ public java.lang.Long getDownloadBytes() { } /** - * Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk. + * [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) { @@ -525,8 +516,8 @@ public Snapshot setDownloadBytes(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. + * 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() { @@ -534,8 +525,8 @@ public java.lang.Boolean getEnableConfidentialCompute() { } /** - * 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. + * 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) { @@ -563,9 +554,9 @@ public Snapshot setGuestFlush(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. + * [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() { @@ -573,9 +564,9 @@ public java.util.List getGuestOsFeatures() { } /** - * 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. + * [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) { @@ -584,8 +575,7 @@ public Snapshot setGuestOsFeatures(java.util.List guestOsFeature } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -593,8 +583,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -603,8 +592,7 @@ public Snapshot setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot - * resources. + * [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -612,8 +600,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#snapshot for Snapshot - * resources. + * [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) { @@ -710,8 +697,7 @@ public Snapshot setLabels(java.util.Map labels) { } /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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() { @@ -719,8 +705,7 @@ public java.util.List getLicenseCodes() { } /** - * Output only. [Output Only] Integer license codes indicating which licenses are attached to this - * snapshot. + * [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) { @@ -729,8 +714,8 @@ public Snapshot setLicenseCodes(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). + * [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() { @@ -738,8 +723,8 @@ public java.util.List getLicenses() { } /** - * 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). + * [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) { @@ -811,8 +796,8 @@ public Snapshot setParams(SnapshotParams params) { } /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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() { @@ -820,8 +805,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the snapshot resides. Only applicable for - * regional snapshots. + * [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) { @@ -847,7 +832,7 @@ public Snapshot setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSatisfiesPzs() { @@ -855,7 +840,7 @@ public java.lang.Boolean getSatisfiesPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param satisfiesPzs satisfiesPzs or {@code null} for none */ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { @@ -864,7 +849,7 @@ public Snapshot setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -872,7 +857,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public Snapshot setSelfLink(java.lang.String selfLink) { @@ -917,40 +902,6 @@ public Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptio return this; } - /** - * Output only. [Output Only] The unique ID of the snapshot group that this snapshot belongs to. - * @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. - * @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. - * @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. - * @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 @@ -1022,9 +973,9 @@ public Snapshot setSourceDiskForRecoveryCheckpoint(java.lang.String sourceDiskFo } /** - * 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. + * [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() { @@ -1032,9 +983,9 @@ public java.lang.String getSourceDiskId() { } /** - * 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. + * [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) { @@ -1085,11 +1036,11 @@ public Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sour } /** - * 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. + * [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() { @@ -1097,11 +1048,11 @@ public java.lang.String getSourceInstantSnapshotId() { } /** - * 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. + * [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) { @@ -1110,7 +1061,7 @@ public Snapshot setSourceInstantSnapshotId(java.lang.String sourceInstantSnapsho } /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * [Output Only] URL of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicy() { @@ -1118,7 +1069,7 @@ public java.lang.String getSourceSnapshotSchedulePolicy() { } /** - * Output only. [Output Only] URL of the resource policy which created this scheduled snapshot. + * [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) { @@ -1127,7 +1078,7 @@ public Snapshot setSourceSnapshotSchedulePolicy(java.lang.String sourceSnapshotS } /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * [Output Only] ID of the resource policy which created this scheduled snapshot. * @return value or {@code null} for none */ public java.lang.String getSourceSnapshotSchedulePolicyId() { @@ -1135,7 +1086,7 @@ public java.lang.String getSourceSnapshotSchedulePolicyId() { } /** - * Output only. [Output Only] ID of the resource policy which created this scheduled snapshot. + * [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) { @@ -1144,8 +1095,8 @@ public Snapshot setSourceSnapshotSchedulePolicyId(java.lang.String sourceSnapsho } /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. + * [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() { @@ -1153,8 +1104,8 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, - * FAILED,READY, or UPLOADING. + * [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) { @@ -1163,8 +1114,8 @@ public Snapshot setStatus(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. + * [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() { @@ -1172,8 +1123,8 @@ public java.lang.Long getStorageBytes() { } /** - * 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. + * [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) { @@ -1182,10 +1133,10 @@ public Snapshot setStorageBytes(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. + * [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() { @@ -1193,10 +1144,10 @@ public java.lang.String getStorageBytesStatus() { } /** - * 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. + * [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 Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { @@ -1221,6 +1172,25 @@ public Snapshot setStorageLocations(java.util.List storageLoca return this; } + /** + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * @return value or {@code null} for none + */ + public java.util.List getUserLicenses() { + return userLicenses; + } + + /** + * [Output Only] A list of user provided licenses represented by a list of URLs to the license + * resource. + * @param userLicenses userLicenses or {@code null} for none + */ + public Snapshot setUserLicenses(java.util.List userLicenses) { + this.userLicenses = userLicenses; + return this; + } + @Override public Snapshot set(String fieldName, Object value) { return (Snapshot) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java index c9adaf64afb..9188a4355ad 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotAggregatedList.java @@ -50,8 +50,8 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for - * aggregated lists of snapshots. + * [Output Only] Type of resource. Alwayscompute#snapshotAggregatedList for aggregated lists of + * snapshots. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SnapshotAggregatedList extends com.google.api.client.json.Gen 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SnapshotAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SnapshotAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.java deleted file mode 100644 index b44d02aa4c3..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroup.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.model; - -/** - * Represents a SnapshotGroup resource. - * - * A snapshot group is a set of 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 SnapshotGroup 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#snapshotGroup for SnapshotGroup - * 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] 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; - - /** - * Output only. [Output Only] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotGroupSourceInfo sourceInfo; - - /** - * Input field for the source instant snapshot group. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstantSnapshotGroup; - - /** - * Output only. [Output Only] - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo; - - /** - * 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] 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 SnapshotGroup 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 SnapshotGroup 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 SnapshotGroup setId(java.math.BigInteger id) { - this.id = id; - return this; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup - * resources. - * @return value or {@code null} for none - */ - public java.lang.String getKind() { - return kind; - } - - /** - * Output only. [Output Only] Type of the resource. Alwayscompute#snapshotGroup for SnapshotGroup - * resources. - * @param kind kind or {@code null} for none - */ - public SnapshotGroup 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 SnapshotGroup 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 SnapshotGroup 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 SnapshotGroup setSelfLinkWithId(java.lang.String selfLinkWithId) { - this.selfLinkWithId = selfLinkWithId; - return this; - } - - /** - * Output only. [Output Only] - * @return value or {@code null} for none - */ - public SnapshotGroupSourceInfo getSourceInfo() { - return sourceInfo; - } - - /** - * Output only. [Output Only] - * @param sourceInfo sourceInfo or {@code null} for none - */ - public SnapshotGroup setSourceInfo(SnapshotGroupSourceInfo sourceInfo) { - this.sourceInfo = sourceInfo; - return this; - } - - /** - * Input field for the source instant snapshot group. - * @return value or {@code null} for none - */ - public java.lang.String getSourceInstantSnapshotGroup() { - return sourceInstantSnapshotGroup; - } - - /** - * Input field for the source instant snapshot group. - * @param sourceInstantSnapshotGroup sourceInstantSnapshotGroup or {@code null} for none - */ - public SnapshotGroup setSourceInstantSnapshotGroup(java.lang.String sourceInstantSnapshotGroup) { - this.sourceInstantSnapshotGroup = sourceInstantSnapshotGroup; - return this; - } - - /** - * Output only. [Output Only] - * @return value or {@code null} for none - */ - public SnapshotGroupSourceInstantSnapshotGroupInfo getSourceInstantSnapshotGroupInfo() { - return sourceInstantSnapshotGroupInfo; - } - - /** - * Output only. [Output Only] - * @param sourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo or {@code null} for none - */ - public SnapshotGroup setSourceInstantSnapshotGroupInfo(SnapshotGroupSourceInstantSnapshotGroupInfo sourceInstantSnapshotGroupInfo) { - this.sourceInstantSnapshotGroupInfo = sourceInstantSnapshotGroupInfo; - 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 SnapshotGroup setStatus(java.lang.String status) { - this.status = status; - return this; - } - - @Override - public SnapshotGroup set(String fieldName, Object value) { - return (SnapshotGroup) super.set(fieldName, value); - } - - @Override - public SnapshotGroup clone() { - return (SnapshotGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupParameters.java deleted file mode 100644 index 3a9185d3108..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.java deleted file mode 100644 index 3a3e7c2a15d..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInfo.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.model; - -/** - * Model definition for SnapshotGroupSourceInfo. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class SnapshotGroupSourceInfo 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 SnapshotGroupSourceInfo 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 SnapshotGroupSourceInfo setConsistencyGroupId(java.lang.String consistencyGroupId) { - this.consistencyGroupId = consistencyGroupId; - return this; - } - - @Override - public SnapshotGroupSourceInfo set(String fieldName, Object value) { - return (SnapshotGroupSourceInfo) super.set(fieldName, value); - } - - @Override - public SnapshotGroupSourceInfo clone() { - return (SnapshotGroupSourceInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.java deleted file mode 100644 index 4f681b07603..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotGroupSourceInstantSnapshotGroupInfo.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.model; - -/** - * Model definition for SnapshotGroupSourceInstantSnapshotGroupInfo. - * - *

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

      - * - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public final class SnapshotGroupSourceInstantSnapshotGroupInfo extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroupId; - - /** - * @return value or {@code null} for none - */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; - } - - /** - * @param instantSnapshotGroup instantSnapshotGroup or {@code null} for none - */ - public SnapshotGroupSourceInstantSnapshotGroupInfo setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { - this.instantSnapshotGroup = instantSnapshotGroup; - return this; - } - - /** - * @return value or {@code null} for none - */ - public java.lang.String getInstantSnapshotGroupId() { - return instantSnapshotGroupId; - } - - /** - * @param instantSnapshotGroupId instantSnapshotGroupId or {@code null} for none - */ - public SnapshotGroupSourceInstantSnapshotGroupInfo setInstantSnapshotGroupId(java.lang.String instantSnapshotGroupId) { - this.instantSnapshotGroupId = instantSnapshotGroupId; - return this; - } - - @Override - public SnapshotGroupSourceInstantSnapshotGroupInfo set(String fieldName, Object value) { - return (SnapshotGroupSourceInstantSnapshotGroupInfo) super.set(fieldName, value); - } - - @Override - public SnapshotGroupSourceInstantSnapshotGroupInfo clone() { - return (SnapshotGroupSourceInstantSnapshotGroupInfo) super.clone(); - } - -} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java index 04f8790fe65..39950d997d4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotList.java @@ -50,7 +50,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SnapshotList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public SnapshotList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public SnapshotList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SnapshotList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 SnapshotList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java index 1191efded34..0f1afad1dce 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SnapshotParams.java @@ -30,22 +30,18 @@ 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/456` 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. + * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. 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/456` 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. + * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @return value or {@code null} for none */ public java.util.Map getResourceManagerTags() { @@ -53,11 +49,9 @@ public java.util.Map getResourceManagerTags() { } /** - * 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/456` 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. + * Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition + * as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in + * the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. * @param resourceManagerTags resourceManagerTags or {@code null} for none */ public SnapshotParams setResourceManagerTags(java.util.Map resourceManagerTags) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java index 2c48c3fa352..f19be8c9f63 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificate.java @@ -71,7 +71,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.lang.String description; /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 + * [Output Only] Expire time of the certificate. RFC3339 * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -85,8 +85,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. + * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -119,8 +118,8 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson 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. + * [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 @@ -141,8 +140,7 @@ public final class SslCertificate extends com.google.api.client.json.GenericJson private SslCertificateSelfManagedSslCertificate selfManaged; /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. + * [Output Only] Domains associated with the certificate via Subject Alternative Name. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -212,7 +210,7 @@ public SslCertificate setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 + * [Output Only] Expire time of the certificate. RFC3339 * @return value or {@code null} for none */ public java.lang.String getExpireTime() { @@ -220,7 +218,7 @@ public java.lang.String getExpireTime() { } /** - * Output only. [Output Only] Expire time of the certificate. RFC3339 + * [Output Only] Expire time of the certificate. RFC3339 * @param expireTime expireTime or {@code null} for none */ public SslCertificate setExpireTime(java.lang.String expireTime) { @@ -246,8 +244,7 @@ public SslCertificate setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. + * [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL certificates. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -255,8 +252,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslCertificate for SSL - * certificates. + * [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) { @@ -326,8 +322,8 @@ public SslCertificate setPrivateKey(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. + * [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() { @@ -335,8 +331,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional SSL Certificate resides. This - * field is not applicable to global SSL Certificate. + * [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) { @@ -379,8 +375,7 @@ public SslCertificate setSelfManaged(SslCertificateSelfManagedSslCertificate sel } /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. + * [Output Only] Domains associated with the certificate via Subject Alternative Name. * @return value or {@code null} for none */ public java.util.List getSubjectAlternativeNames() { @@ -388,8 +383,7 @@ public java.util.List getSubjectAlternativeNames() { } /** - * Output only. [Output Only] Domains associated with the certificate via Subject Alternative - * Name. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java index d806133ed5f..afee0f9e13d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateAggregatedList.java @@ -44,8 +44,8 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for - * lists of SSL Certificates. + * [Output Only] Type of resource. Alwayscompute#sslCertificateAggregatedList for lists of SSL + * Certificates. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class SslCertificateAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SslCertificateAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslCertificateAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java index 27110fd9466..688db9167d9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateList.java @@ -50,7 +50,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class SslCertificateList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public SslCertificateList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public SslCertificateList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public SslCertificateList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 SslCertificateList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java index 8897726891a..2521f524e73 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslCertificateManagedSslCertificate.java @@ -30,8 +30,7 @@ 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. + * [Output only] Detailed statuses of the domains specified for managed certificate resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,15 +46,14 @@ public final class SslCertificateManagedSslCertificate extends com.google.api.cl private java.util.List domains; /** - * Output only. [Output only] Status of the managed certificate resource. + * [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. + * [Output only] Detailed statuses of the domains specified for managed certificate resource. * @return value or {@code null} for none */ public java.util.Map getDomainStatus() { @@ -63,8 +61,7 @@ public java.util.Map getDomainStatus() { } /** - * Output only. [Output only] Detailed statuses of the domains specified for managed certificate - * resource. + * [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) { @@ -94,7 +91,7 @@ public SslCertificateManagedSslCertificate setDomains(java.util.List items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of - * SSL Policies. + * [Output Only] Type of resource. Alwayscompute#sslPolicyAggregatedList for lists of SSL + * Policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,14 +68,14 @@ public final class SslPoliciesAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public SslPoliciesAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SslPoliciesAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java index c8c7092cb3a..775a4adcdbe 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPoliciesList.java @@ -30,39 +30,38 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier 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. + * 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. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-defined URL for this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,7 +75,7 @@ public final class SslPoliciesList extends com.google.api.client.json.GenericJso private Warning warning; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -84,7 +83,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -93,7 +92,7 @@ public SslPoliciesList setId(java.lang.String id) { } /** - * Output only. A list of SslPolicy resources. + * A list of SslPolicy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -101,7 +100,7 @@ public java.util.List getItems() { } /** - * Output only. A list of SslPolicy resources. + * A list of SslPolicy resources. * @param items items or {@code null} for none */ public SslPoliciesList setItems(java.util.List items) { @@ -110,8 +109,7 @@ public SslPoliciesList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. + * [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of sslPolicies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -119,8 +117,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#sslPoliciesList for lists of - * sslPolicies. + * [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) { @@ -129,10 +126,10 @@ public SslPoliciesList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -140,10 +137,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -152,7 +149,7 @@ public SslPoliciesList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -160,7 +157,7 @@ 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 SslPoliciesList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java index 396f7637c52..f4598ad8b00 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SslPolicy.java @@ -34,7 +34,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,7 +57,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] The list of features enabled in the SSL policy. + * [Output Only] The list of features enabled in the SSL policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -76,15 +76,14 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,32 +111,31 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { /** * 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. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If + * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. * 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. + * [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. + * [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. + * [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 @@ -150,7 +148,7 @@ public final class SslPolicy extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -158,7 +156,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public SslPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -205,7 +203,7 @@ public SslPolicy setDescription(java.lang.String description) { } /** - * Output only. [Output Only] The list of features enabled in the SSL policy. + * [Output Only] The list of features enabled in the SSL policy. * @return value or {@code null} for none */ public java.util.List getEnabledFeatures() { @@ -213,7 +211,7 @@ public java.util.List getEnabledFeatures() { } /** - * Output only. [Output Only] The list of features enabled in the SSL policy. + * [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) { @@ -287,8 +285,7 @@ public SslPolicy encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -296,8 +293,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -306,7 +302,7 @@ public SslPolicy setId(java.math.BigInteger id) { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -314,7 +310,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output only] Type of the resource. Alwayscompute#sslPolicyfor SSL policies. + * [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) { @@ -370,9 +366,8 @@ public SslPolicy setName(java.lang.String name) { /** * 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. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If + * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. * @return value or {@code null} for none */ public java.lang.String getProfile() { @@ -381,9 +376,8 @@ public java.lang.String getProfile() { /** * 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. + * negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If + * using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. * @param profile profile or {@code null} for none */ public SslPolicy setProfile(java.lang.String profile) { @@ -392,8 +386,8 @@ public SslPolicy setProfile(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. + * [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() { @@ -401,8 +395,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional SSL policy resides. This field - * is not applicable to global SSL policies. + * [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) { @@ -411,7 +405,7 @@ public SslPolicy setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -419,7 +413,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public SslPolicy setSelfLink(java.lang.String selfLink) { @@ -428,8 +422,8 @@ public SslPolicy setSelfLink(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. + * [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() { @@ -437,8 +431,8 @@ public java.util.List getWarnings() { } /** - * Output only. [Output Only] If potential misconfigurations are detected for this SSL policy, - * this field will be populated with warning messages. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java index 13a2e7a534a..3f2774ef34e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -37,7 +37,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String capacityProvisioningType; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -51,22 +51,14 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] 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. + * [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. + * [Output Only] Type of the resource. Always compute#storagePool for storage pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,14 +95,6 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @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. @@ -144,37 +128,37 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.Long poolProvisionedThroughput; /** - * Output only. [Output Only] Status information for the storage pool resource. + * [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. + * [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. + * [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] 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. + * [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. + * [Output Only] Status information for the storage pool resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -188,8 +172,8 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { 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. + * [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 @@ -213,7 +197,7 @@ public StoragePool setCapacityProvisioningType(java.lang.String capacityProvisio } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -221,7 +205,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -247,25 +231,7 @@ public StoragePool setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB - * @return value or {@code null} for none - */ - public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { - return exapoolProvisionedCapacityGb; - } - - /** - * Output only. [Output Only] 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. + * [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() { @@ -273,8 +239,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -283,7 +248,7 @@ public StoragePool setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * [Output Only] Type of the resource. Always compute#storagePool for storage pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -291,7 +256,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. + * [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) { @@ -410,25 +375,6 @@ public StoragePool setName(java.lang.String 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. @@ -506,7 +452,7 @@ public StoragePool setPoolProvisionedThroughput(java.lang.Long poolProvisionedTh } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getResourceStatus() { @@ -514,7 +460,7 @@ public StoragePoolResourceStatus getResourceStatus() { } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @param resourceStatus resourceStatus or {@code null} for none */ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { @@ -523,7 +469,7 @@ public StoragePool setResourceStatus(StoragePoolResourceStatus resourceStatus) { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -531,7 +477,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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) { @@ -540,7 +486,7 @@ public StoragePool setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [Output Only] Server-defined URL for this resource's resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -548,7 +494,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource's resource id. + * [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) { @@ -557,9 +503,9 @@ public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { } /** - * 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. + * [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() { @@ -567,9 +513,9 @@ public java.lang.String getState() { } /** - * 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. + * [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) { @@ -578,7 +524,7 @@ public StoragePool setState(java.lang.String state) { } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @return value or {@code null} for none */ public StoragePoolResourceStatus getStatus() { @@ -586,7 +532,7 @@ public StoragePoolResourceStatus getStatus() { } /** - * Output only. [Output Only] Status information for the storage pool resource. + * [Output Only] Status information for the storage pool resource. * @param status status or {@code null} for none */ public StoragePool setStatus(StoragePoolResourceStatus status) { @@ -612,8 +558,8 @@ public StoragePool setStoragePoolType(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. + * [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() { @@ -621,8 +567,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java index a6e2968a57e..186794e02ce 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolAggregatedList.java @@ -50,8 +50,8 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolAggregatedList for - * aggregated lists of storage pools. + * [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 @@ -68,14 +68,14 @@ public final class StoragePoolAggregatedList extends com.google.api.client.json. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -138,8 +138,8 @@ public StoragePoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -205,7 +205,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public StoragePoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java index f4aedbc4874..336f05138ed 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolDisk.java @@ -30,84 +30,84 @@ public final class StoragePoolDisk extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Instances this disk is attached to. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [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. + * [Output Only] Instances this disk is attached to. * @return value or {@code null} for none */ public java.util.List getAttachedInstances() { @@ -115,7 +115,7 @@ public java.util.List getAttachedInstances() { } /** - * Output only. [Output Only] Instances this disk is attached to. + * [Output Only] Instances this disk is attached to. * @param attachedInstances attachedInstances or {@code null} for none */ public StoragePoolDisk setAttachedInstances(java.util.List attachedInstances) { @@ -124,7 +124,7 @@ public StoragePoolDisk setAttachedInstances(java.util.List att } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -132,7 +132,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) { @@ -141,7 +141,7 @@ public StoragePoolDisk setCreationTimestamp(java.lang.String creationTimestamp) } /** - * Output only. [Output Only] The URL of the disk. + * [Output Only] The URL of the disk. * @return value or {@code null} for none */ public java.lang.String getDisk() { @@ -149,7 +149,7 @@ public java.lang.String getDisk() { } /** - * Output only. [Output Only] The URL of the disk. + * [Output Only] The URL of the disk. * @param disk disk or {@code null} for none */ public StoragePoolDisk setDisk(java.lang.String disk) { @@ -158,7 +158,7 @@ public StoragePoolDisk setDisk(java.lang.String disk) { } /** - * Output only. [Output Only] The name of the disk. + * [Output Only] The name of the disk. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -166,7 +166,7 @@ public java.lang.String getName() { } /** - * Output only. [Output Only] The name of the disk. + * [Output Only] The name of the disk. * @param name name or {@code null} for none */ public StoragePoolDisk setName(java.lang.String name) { @@ -175,7 +175,7 @@ public StoragePoolDisk setName(java.lang.String name) { } /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. + * [Output Only] The number of IOPS provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedIops() { @@ -183,7 +183,7 @@ public java.lang.Long getProvisionedIops() { } /** - * Output only. [Output Only] The number of IOPS provisioned for the disk. + * [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) { @@ -192,7 +192,7 @@ public StoragePoolDisk setProvisionedIops(java.lang.Long provisionedIops) { } /** - * Output only. [Output Only] The throughput provisioned for the disk. + * [Output Only] The throughput provisioned for the disk. * @return value or {@code null} for none */ public java.lang.Long getProvisionedThroughput() { @@ -200,7 +200,7 @@ public java.lang.Long getProvisionedThroughput() { } /** - * Output only. [Output Only] The throughput provisioned for the disk. + * [Output Only] The throughput provisioned for the disk. * @param provisionedThroughput provisionedThroughput or {@code null} for none */ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroughput) { @@ -209,7 +209,7 @@ public StoragePoolDisk setProvisionedThroughput(java.lang.Long provisionedThroug } /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * [Output Only] Resource policies applied to disk for automatic snapshot creations. * @return value or {@code null} for none */ public java.util.List getResourcePolicies() { @@ -217,7 +217,7 @@ public java.util.List getResourcePolicies() { } /** - * Output only. [Output Only] Resource policies applied to disk for automatic snapshot creations. + * [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) { @@ -226,7 +226,7 @@ public StoragePoolDisk setResourcePolicies(java.util.List reso } /** - * Output only. [Output Only] The disk size, in GB. + * [Output Only] The disk size, in GB. * @return value or {@code null} for none */ public java.lang.Long getSizeGb() { @@ -234,7 +234,7 @@ public java.lang.Long getSizeGb() { } /** - * Output only. [Output Only] The disk size, in GB. + * [Output Only] The disk size, in GB. * @param sizeGb sizeGb or {@code null} for none */ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { @@ -243,7 +243,7 @@ public StoragePoolDisk setSizeGb(java.lang.Long sizeGb) { } /** - * Output only. [Output Only] The disk status. + * [Output Only] The disk status. * @return value or {@code null} for none */ public java.lang.String getStatus() { @@ -251,7 +251,7 @@ public java.lang.String getStatus() { } /** - * Output only. [Output Only] The disk status. + * [Output Only] The disk status. * @param status status or {@code null} for none */ public StoragePoolDisk setStatus(java.lang.String status) { @@ -260,7 +260,7 @@ public StoragePoolDisk setStatus(java.lang.String status) { } /** - * Output only. [Output Only] The disk type. + * [Output Only] The disk type. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -268,7 +268,7 @@ public java.lang.String getType() { } /** - * Output only. [Output Only] The disk type. + * [Output Only] The disk type. * @param type type or {@code null} for none */ public StoragePoolDisk setType(java.lang.String type) { @@ -277,7 +277,7 @@ public StoragePoolDisk setType(java.lang.String type) { } /** - * Output only. [Output Only] Amount of disk space used. + * [Output Only] Amount of disk space used. * @return value or {@code null} for none */ public java.lang.Long getUsedBytes() { @@ -285,7 +285,7 @@ public java.lang.Long getUsedBytes() { } /** - * Output only. [Output Only] Amount of disk space used. + * [Output Only] Amount of disk space used. * @param usedBytes usedBytes or {@code null} for none */ public StoragePoolDisk setUsedBytes(java.lang.Long usedBytes) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolExapoolProvisionedCapacityGb.java deleted file mode 100644 index cea8f8ace37..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java index 34edec41ca8..2d0728fe318 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolList.java @@ -56,8 +56,7 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso } /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. + * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,15 +73,14 @@ public final class StoragePoolList extends com.google.api.client.json.GenericJso 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -145,8 +143,7 @@ public StoragePoolList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. + * [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -154,8 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of - * storagePools. + * [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) { @@ -187,7 +183,7 @@ public StoragePoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -195,7 +191,7 @@ 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 StoragePoolList setSelfLink(java.lang.String selfLink) { @@ -204,8 +200,7 @@ public StoragePoolList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java index 31b6d2f7ece..bb3ca251ff1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolListDisks.java @@ -36,7 +36,7 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener private java.lang.String etag; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -56,40 +56,39 @@ public final class StoragePoolListDisks extends com.google.api.client.json.Gener } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. + * [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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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 + * [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. + * [Output Only] Informational warning message. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -111,7 +110,7 @@ public StoragePoolListDisks setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -119,7 +118,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -145,8 +144,8 @@ public StoragePoolListDisks setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. + * [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() { @@ -154,8 +153,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolListDisks for lists of - * disks in a storagePool. + * [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) { @@ -164,10 +163,10 @@ public StoragePoolListDisks setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -175,10 +174,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -187,7 +186,7 @@ public StoragePoolListDisks setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -195,7 +194,7 @@ 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 StoragePoolListDisks setSelfLink(java.lang.String selfLink) { @@ -204,8 +203,7 @@ public StoragePoolListDisks setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -213,8 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public StoragePoolListDisks setUnreachables(java.util.List unreachables) { @@ -223,7 +220,7 @@ public StoragePoolListDisks setUnreachables(java.util.List unr } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -231,7 +228,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public StoragePoolListDisks setWarning(Warning warning) { @@ -250,7 +247,7 @@ public StoragePoolListDisks clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolParams.java deleted file mode 100644 index f7f367511c0..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/456` 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/456` 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/456` 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/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java index f0abcce09ab..e7e5e4ebc7f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolResourceStatus.java @@ -37,35 +37,7 @@ public final class StoragePoolResourceStatus extends com.google.api.client.json. 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. + * [Output Only] Timestamp of the last successful resize inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -151,75 +123,7 @@ public StoragePoolResourceStatus setDiskCount(java.lang.Long diskCount) { } /** - * 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. + * [Output Only] Timestamp of the last successful resize inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getLastResizeTimestamp() { @@ -227,7 +131,7 @@ public java.lang.String getLastResizeTimestamp() { } /** - * Output only. [Output Only] Timestamp of the last successful resize inRFC3339 text format. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java index 2abe154233a..48b85c05c96 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolType.java @@ -58,8 +58,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. + * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -129,7 +128,7 @@ public final class StoragePoolType extends com.google.api.client.json.GenericJso private java.lang.String selfLink; /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -219,8 +218,7 @@ public StoragePoolType setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. + * [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -228,8 +226,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#storagePoolType for storage pool - * types. + * [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) { @@ -391,7 +388,7 @@ public StoragePoolType setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [Output Only] Server-defined URL for this resource with the resource id. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -399,7 +396,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java index 1831cd7a360..c3fc6a05a48 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/StoragePoolTypeAggregatedList.java @@ -44,7 +44,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. + * [Output Only] Type of resource. Alwayscompute#storagePoolTypeAggregatedList. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,7 +61,7 @@ public final class StoragePoolTypeAggregatedList extends com.google.api.client.j 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 @@ -109,7 +109,7 @@ public StoragePoolTypeAggregatedList setItems(java.util.Map items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. + * [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool types. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#storagePoolTypeList for storage pool - * types. + * [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) { @@ -158,7 +155,7 @@ public StoragePoolTypeList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 StoragePoolTypeList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java index ee23e5ea82b..33a208bc461 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Subnetwork.java @@ -34,8 +34,8 @@ 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 + * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static * 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 @@ -50,13 +50,15 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. + * + * This field cannot be set to true at resource creation time. * 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. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -74,8 +76,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -101,16 +102,15 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String fingerprint; /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * [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. + * [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 @@ -158,28 +158,27 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { private java.lang.String ipv6AccessType; /** - * Output only. [Output Only] This field is for internal use. + * [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. + * [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. + * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -281,7 +280,7 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * 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. + * apatch request. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -306,11 +305,11 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { 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 + * [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 @@ -341,8 +340,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { 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 + * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static * 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 @@ -357,6 +356,8 @@ public final class Subnetwork extends com.google.api.client.json.GenericJson { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. + * + * This field cannot be set to true at resource creation time. * @return value or {@code null} for none */ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { @@ -364,8 +365,8 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { } /** - * 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 + * Whether this subnetwork's ranges can conflict with existing static routes. Setting this to true + * allows this subnetwork's primary and secondary ranges to overlap with (and contain) static * 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 @@ -380,6 +381,8 @@ public java.lang.Boolean getAllowSubnetCidrRoutesOverlap() { * * The default value is false and applies to all existing subnetworks and automatically created * subnetworks. + * + * This field cannot be set to true at resource creation time. * @param allowSubnetCidrRoutesOverlap allowSubnetCidrRoutesOverlap or {@code null} for none */ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetCidrRoutesOverlap) { @@ -388,7 +391,7 @@ public Subnetwork setAllowSubnetCidrRoutesOverlap(java.lang.Boolean allowSubnetC } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -396,7 +399,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public Subnetwork setCreationTimestamp(java.lang.String creationTimestamp) { @@ -427,8 +430,7 @@ public Subnetwork setDescription(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. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. * @return value or {@code null} for none */ public java.lang.Boolean getEnableFlowLogs() { @@ -439,8 +441,7 @@ public java.lang.Boolean getEnableFlowLogs() { * 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. + * supported if the subnet purpose field is set toREGIONAL_MANAGED_PROXY. * @param enableFlowLogs enableFlowLogs or {@code null} for none */ public Subnetwork setEnableFlowLogs(java.lang.Boolean enableFlowLogs) { @@ -531,8 +532,8 @@ public Subnetwork encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * [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() { @@ -540,8 +541,8 @@ public java.lang.String getGatewayAddress() { } /** - * Output only. [Output Only] The gateway address for default routes to reach destination - * addresses outside this subnetwork. + * [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) { @@ -550,8 +551,7 @@ public Subnetwork setGatewayAddress(java.lang.String gatewayAddress) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -559,8 +559,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -663,7 +662,7 @@ public Subnetwork setIpv6AccessType(java.lang.String ipv6AccessType) { } /** - * Output only. [Output Only] This field is for internal use. + * [Output Only] This field is for internal use. * @return value or {@code null} for none */ public java.lang.String getIpv6CidrRange() { @@ -671,7 +670,7 @@ public java.lang.String getIpv6CidrRange() { } /** - * Output only. [Output Only] This field is for internal use. + * [Output Only] This field is for internal use. * @param ipv6CidrRange ipv6CidrRange or {@code null} for none */ public Subnetwork setIpv6CidrRange(java.lang.String ipv6CidrRange) { @@ -680,13 +679,13 @@ public Subnetwork setIpv6CidrRange(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. + * [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() { @@ -694,13 +693,13 @@ public java.lang.String getIpv6GceEndpoint() { } /** - * 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. + * [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) { @@ -709,8 +708,7 @@ public Subnetwork setIpv6GceEndpoint(java.lang.String ipv6GceEndpoint) { } /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. + * [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -718,8 +716,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork - * resources. + * [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) { @@ -948,7 +945,7 @@ public Subnetwork setRole(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. + * apatch request. * @return value or {@code null} for none */ public java.util.List getSecondaryIpRanges() { @@ -959,7 +956,7 @@ public java.util.List getSecondaryIpRanges() { * 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. + * apatch request. * @param secondaryIpRanges secondaryIpRanges or {@code null} for none */ public Subnetwork setSecondaryIpRanges(java.util.List secondaryIpRanges) { @@ -1010,11 +1007,11 @@ public Subnetwork setStackType(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 + * [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() { @@ -1022,11 +1019,11 @@ public java.lang.String getState() { } /** - * 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 + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java index 92577af696e..3ce236d4f61 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkAggregatedList.java @@ -44,8 +44,8 @@ public final class SubnetworkAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for - * aggregated lists of subnetworks. + * [Output Only] Type of resource. Alwayscompute#subnetworkAggregatedList for aggregated lists of + * subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +62,14 @@ public final class SubnetworkAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public SubnetworkAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public SubnetworkAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java index f8578cc2a42..bfed8d09195 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkList.java @@ -50,8 +50,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. + * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class SubnetworkList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public SubnetworkList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. + * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of - * subnetworks. + * [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) { @@ -158,7 +155,7 @@ public SubnetworkList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 SubnetworkList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java index d027af60f2c..e2a3ca20f2c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/SubnetworkSecondaryRange.java @@ -32,31 +32,24 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. + * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed + * in theValid ranges list. * 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/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 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 URL of the reserved internal range. Only IPv4 is supported. + * The URL of the reserved internal range. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -65,15 +58,8 @@ public final class SubnetworkSecondaryRange extends com.google.api.client.json.G /** * 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. + * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed + * in theValid ranges list. * @return value or {@code null} for none */ public java.lang.String getIpCidrRange() { @@ -83,15 +69,8 @@ public java.lang.String getIpCidrRange() { /** * 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. + * secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed + * in theValid ranges list. * @param ipCidrRange ipCidrRange or {@code null} for none */ public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { @@ -100,9 +79,9 @@ public SubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { } /** - * 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 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() { @@ -110,9 +89,9 @@ public java.lang.String getRangeName() { } /** - * 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 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 SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { @@ -121,7 +100,7 @@ public SubnetworkSecondaryRange setRangeName(java.lang.String rangeName) { } /** - * The URL of the reserved internal range. Only IPv4 is supported. + * The URL of the reserved internal range. * @return value or {@code null} for none */ public java.lang.String getReservedInternalRange() { @@ -129,7 +108,7 @@ public java.lang.String getReservedInternalRange() { } /** - * The URL of the reserved internal range. Only IPv4 is supported. + * The URL of the reserved internal range. * @param reservedInternalRange reservedInternalRange or {@code null} for none */ public SubnetworkSecondaryRange setReservedInternalRange(java.lang.String reservedInternalRange) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java index e5b790d1254..8e52f4284e0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxy.java @@ -35,7 +35,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -60,16 +60,15 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String fingerprint; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,14 +86,14 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.String name; /** - * Output only. [Output Only] Server-defined URL for the 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. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +121,7 @@ public final class TargetGrpcProxy extends com.google.api.client.json.GenericJso private java.lang.Boolean validateForProxyless; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -130,7 +129,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetGrpcProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -217,8 +216,8 @@ public TargetGrpcProxy encodeFingerprint(byte[] fingerprint) { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -226,8 +225,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -236,8 +235,7 @@ public TargetGrpcProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -245,8 +243,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [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) { @@ -280,7 +277,7 @@ public TargetGrpcProxy setName(java.lang.String name) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -288,7 +285,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { @@ -297,7 +294,7 @@ public TargetGrpcProxy setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [Output Only] Server-defined URL with id for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLinkWithId() { @@ -305,7 +302,7 @@ public java.lang.String getSelfLinkWithId() { } /** - * Output only. [Output Only] Server-defined URL with id for the resource. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java index 4e795941c63..92580b50781 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetGrpcProxyList.java @@ -50,8 +50,7 @@ public final class TargetGrpcProxyList extends com.google.api.client.json.Generi } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,8 +115,7 @@ public TargetGrpcProxyList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetGrpcProxy for target grpc - * proxies. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java index d1f493c39f2..093c56ea1e4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxy.java @@ -45,7 +45,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -108,8 +108,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. + * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -143,8 +142,8 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso 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. + * [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 @@ -165,7 +164,7 @@ public final class TargetHttpProxy extends com.google.api.client.json.GenericJso private java.lang.String urlMap; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -173,7 +172,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -345,8 +344,7 @@ public TargetHttpProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. + * [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -354,8 +352,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP - * proxies. + * [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) { @@ -424,8 +421,8 @@ public TargetHttpProxy setProxyBind(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. + * [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() { @@ -433,8 +430,8 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java index 76baf55751e..a7392cf3d15 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpProxyAggregatedList for - * lists of Target HTTP Proxies. + * [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 @@ -68,14 +68,14 @@ public final class TargetHttpProxyAggregatedList extends com.google.api.client.j 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java index 437aef687bf..5e34d1a9076 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpProxyList.java @@ -50,8 +50,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi } /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. + * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class TargetHttpProxyList extends com.google.api.client.json.Generi 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 @@ -116,8 +115,7 @@ public TargetHttpProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. + * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP - * proxies. + * 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) { @@ -158,7 +155,7 @@ public TargetHttpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetHttpProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java index 6327f41e582..4a12a88c099 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxy.java @@ -89,7 +89,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.lang.String certificateMap; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -152,8 +152,7 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. + * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,8 +198,8 @@ public final class TargetHttpsProxy extends com.google.api.client.json.GenericJs 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. + * [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 @@ -397,7 +396,7 @@ public TargetHttpsProxy setCertificateMap(java.lang.String certificateMap) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -405,7 +404,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetHttpsProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -577,8 +576,7 @@ public TargetHttpsProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. + * [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -586,8 +584,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxy for target HTTPS - * proxies. + * [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) { @@ -683,8 +680,8 @@ public TargetHttpsProxy setQuicOverride(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. + * [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() { @@ -692,8 +689,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional TargetHttpsProxy resides. This - * field is not applicable to global TargetHttpsProxies. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java index e3b6c0c7bde..c5e35673c5f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetHttpsProxyAggregatedList for - * lists of Target HTTP Proxies. + * [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 @@ -68,14 +68,14 @@ public final class TargetHttpsProxyAggregatedList extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetHttpsProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetHttpsProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java index 30dd6b631cf..2f5c614d3de 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetHttpsProxyList.java @@ -50,8 +50,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener } /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. + * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class TargetHttpsProxyList extends com.google.api.client.json.Gener 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 @@ -116,8 +115,7 @@ public TargetHttpsProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. + * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS - * proxies. + * 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) { @@ -158,7 +155,7 @@ public TargetHttpsProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetHttpsProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java index be7ee592ef0..d8dc46444ae 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstance.java @@ -34,7 +34,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -66,8 +66,7 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson private java.lang.String instance; /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. + * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -115,15 +114,15 @@ public final class TargetInstance extends com.google.api.client.json.GenericJson 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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -131,7 +130,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetInstance setCreationTimestamp(java.lang.String creationTimestamp) { @@ -199,8 +198,7 @@ public TargetInstance setInstance(java.lang.String instance) { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. + * [Output Only] The type of the resource. Alwayscompute#targetInstance for target instances. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -208,8 +206,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] The type of the resource. Alwayscompute#targetInstance for target - * instances. + * [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) { @@ -315,8 +312,8 @@ public TargetInstance setSelfLink(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. + * [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() { @@ -324,8 +321,8 @@ public java.lang.String getZone() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java index 01d803ffaf3..2b3a07f23b9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceAggregatedList.java @@ -44,7 +44,7 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class TargetInstanceAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public TargetInstanceAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetInstanceAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java index 9ed13afb4c8..4ad42444a27 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetInstanceList.java @@ -50,7 +50,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetInstanceList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public TargetInstanceList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public TargetInstanceList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetInstanceList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 TargetInstanceList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java index 107a42242a0..51f47eeb5ab 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPool.java @@ -51,7 +51,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String backupPool; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -107,7 +107,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.util.List instances; /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * [Output Only] Type of the resource. Always compute#targetPool for target pools. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,7 +125,7 @@ public final class TargetPool extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] URL of the region where the target pool resides. + * [Output Only] URL of the region where the target pool resides. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -194,7 +194,7 @@ public TargetPool setBackupPool(java.lang.String backupPool) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -202,7 +202,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetPool setCreationTimestamp(java.lang.String creationTimestamp) { @@ -324,7 +324,7 @@ public TargetPool setInstances(java.util.List instances) { } /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * [Output Only] Type of the resource. Always compute#targetPool for target pools. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -332,7 +332,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. + * [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) { @@ -366,7 +366,7 @@ public TargetPool setName(java.lang.String name) { } /** - * Output only. [Output Only] URL of the region where the target pool resides. + * [Output Only] URL of the region where the target pool resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -374,7 +374,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the target pool resides. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java index a4eaf801e32..965213fa705 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolAggregatedList.java @@ -44,8 +44,8 @@ public final class TargetPoolAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolAggregatedList for - * aggregated lists of target pools. + * [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 @@ -62,14 +62,14 @@ public final class TargetPoolAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +117,8 @@ public TargetPoolAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +184,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetPoolAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java index e1930f67b71..0a8f1b2844c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolInstanceHealth.java @@ -42,8 +42,8 @@ public final class TargetPoolInstanceHealth extends com.google.api.client.json.G } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. + * [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 @@ -65,8 +65,8 @@ public TargetPoolInstanceHealth setHealthStatus(java.util.List hea } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. + * [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() { @@ -74,8 +74,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetPoolInstanceHealth when - * checking the health of an instance. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java index 313eb178dbd..66c2c97ec52 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetPoolList.java @@ -50,8 +50,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. + * [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 @@ -68,7 +67,7 @@ public final class TargetPoolList extends com.google.api.client.json.GenericJson 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 @@ -116,8 +115,7 @@ public TargetPoolList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target - * pools. + * [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) { @@ -158,7 +155,7 @@ public TargetPoolList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetPoolList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java index 0f34d06b101..b63eac66aae 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxy.java @@ -46,7 +46,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.lang.String certificateMap; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,8 +67,7 @@ public final class TargetSslProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -153,7 +152,7 @@ public TargetSslProxy setCertificateMap(java.lang.String certificateMap) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -161,7 +160,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetSslProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -204,8 +203,7 @@ public TargetSslProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -213,8 +211,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL - * proxies. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java index a63574c696b..e8d1f6506b7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetSslProxyList.java @@ -50,7 +50,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetSslProxyList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public TargetSslProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public TargetSslProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetSslProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 TargetSslProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java index 86a88700008..9abb70a4721 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxy.java @@ -34,7 +34,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -55,20 +55,12 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. + * [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 @@ -105,8 +97,8 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson 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. + * [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 @@ -127,7 +119,7 @@ public final class TargetTcpProxy extends com.google.api.client.json.GenericJson private java.lang.String service; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -135,7 +127,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetTcpProxy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -178,8 +170,7 @@ public TargetTcpProxy setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. + * [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP proxies. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -187,8 +178,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#targetTcpProxy for target TCP - * proxies. + * [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) { @@ -196,23 +186,6 @@ public TargetTcpProxy setKind(java.lang.String 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 @@ -293,8 +266,8 @@ public TargetTcpProxy setProxyHeader(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. + * [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() { @@ -302,8 +275,8 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the regional TCP proxy resides. This field - * is not applicable to global TCP proxy. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java index af685bb148e..e6a659795d2 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyAggregatedList.java @@ -50,8 +50,8 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetTcpProxyAggregatedList for - * lists of Target TCP Proxies. + * [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 @@ -68,14 +68,14 @@ public final class TargetTcpProxyAggregatedList extends com.google.api.client.js 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -123,8 +123,8 @@ public TargetTcpProxyAggregatedList setItems(java.util.Map getUnreachables() { @@ -190,7 +190,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetTcpProxyAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java index 51094df31db..f2aae16d2ea 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetTcpProxyList.java @@ -50,7 +50,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class TargetTcpProxyList extends com.google.api.client.json.Generic 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 @@ -115,7 +115,7 @@ public TargetTcpProxyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public TargetTcpProxyList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public TargetTcpProxyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 TargetTcpProxyList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java index 5447e2d91e4..0b20beb9ea8 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGateway.java @@ -33,7 +33,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,8 +62,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.math.BigInteger id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -109,14 +108,6 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs @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. @@ -149,7 +140,7 @@ public final class TargetVpnGateway extends com.google.api.client.json.GenericJs private java.util.List tunnels; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -157,7 +148,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public TargetVpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -219,8 +210,7 @@ public TargetVpnGateway setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -228,8 +218,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [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) { @@ -369,25 +358,6 @@ public TargetVpnGateway setNetwork(java.lang.String 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. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java index fcee0487cb5..a428470d62c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayAggregatedList.java @@ -44,8 +44,7 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -62,14 +61,14 @@ public final class TargetVpnGatewayAggregatedList extends com.google.api.client. 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -117,8 +116,7 @@ public TargetVpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -184,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public TargetVpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java index 6eaf8c73a84..d691fa57cbe 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayList.java @@ -50,8 +50,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -68,7 +67,7 @@ public final class TargetVpnGatewayList extends com.google.api.client.json.Gener 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 @@ -116,8 +115,7 @@ public TargetVpnGatewayList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#targetVpnGateway for target VPN - * gateways. + * [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) { @@ -158,7 +155,7 @@ public TargetVpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 TargetVpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TargetVpnGatewayParams.java deleted file mode 100644 index b920b6f704e..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java index 478c7e5ed3d..f20371fd8f7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMap.java @@ -56,7 +56,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -196,7 +196,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * [Output Only] Type of the resource. Always compute#urlMaps for url maps. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -227,9 +227,9 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { } /** - * 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. + * [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 @@ -254,7 +254,7 @@ public final class UrlMap extends com.google.api.client.json.GenericJson { private java.util.List tests; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -262,7 +262,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public UrlMap setCreationTimestamp(java.lang.String creationTimestamp) { @@ -590,7 +590,7 @@ public UrlMap setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * [Output Only] Type of the resource. Always compute#urlMaps for url maps. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -598,7 +598,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#urlMaps for url maps. + * [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) { @@ -649,9 +649,9 @@ public UrlMap setPathMatchers(java.util.List pathMatchers) { } /** - * 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. + * [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() { @@ -659,9 +659,9 @@ public java.lang.String getRegion() { } /** - * 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. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java index 717e1bf36c0..47969709c14 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapList.java @@ -50,7 +50,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class UrlMapList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public UrlMapList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public UrlMapList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public UrlMapList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 UrlMapList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java index 97dc4836b3e..4ef0ac8e10f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UrlMapsAggregatedList.java @@ -44,7 +44,7 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene private java.util.Map items; /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class UrlMapsAggregatedList extends com.google.api.client.json.Gene 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public UrlMapsAggregatedList setItems(java.util.Map i } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -124,7 +124,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public UrlMapsAggregatedList setKind(java.lang.String kind) { @@ -156,7 +156,7 @@ public UrlMapsAggregatedList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -164,7 +164,7 @@ 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 UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { @@ -173,7 +173,7 @@ public UrlMapsAggregatedList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UrlMapsAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java index 05fe83d9ac0..20241b48f30 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetwork.java @@ -30,14 +30,14 @@ 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. + * [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. + * [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 @@ -108,7 +108,7 @@ public final class UsableSubnetwork extends com.google.api.client.json.GenericJs private java.lang.String subnetwork; /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * [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() { @@ -116,7 +116,7 @@ public java.lang.String getExternalIpv6Prefix() { } /** - * Output only. [Output Only] The external IPv6 address range that is assigned to this subnetwork. + * [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) { @@ -125,7 +125,7 @@ public UsableSubnetwork setExternalIpv6Prefix(java.lang.String externalIpv6Prefi } /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * [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() { @@ -133,7 +133,7 @@ public java.lang.String getInternalIpv6Prefix() { } /** - * Output only. [Output Only] The internal IPv6 address range that is assigned to this subnetwork. + * [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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java index 44ad036dfd4..1ddaab1abe0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworkSecondaryRange.java @@ -30,8 +30,7 @@ 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 range of IP addresses belonging to this subnetwork secondary range. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -47,8 +46,7 @@ public final class UsableSubnetworkSecondaryRange extends com.google.api.client. private java.lang.String rangeName; /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. + * The range of IP addresses belonging to this subnetwork secondary range. * @return value or {@code null} for none */ public java.lang.String getIpCidrRange() { @@ -56,8 +54,7 @@ public java.lang.String getIpCidrRange() { } /** - * The range of IP addresses belonging to this subnetwork secondary range. Can be Ipv4 or Ipv6 - * range. + * The range of IP addresses belonging to this subnetwork secondary range. * @param ipCidrRange ipCidrRange or {@code null} for none */ public UsableSubnetworkSecondaryRange setIpCidrRange(java.lang.String ipCidrRange) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java index 534fc9e95cd..842a539118c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/UsableSubnetworksAggregatedList.java @@ -50,8 +50,8 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. + * [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 @@ -69,7 +69,7 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client private java.lang.String nextPageToken; /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * [Output Only] Informational warning messages for failures encountered from scopes. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -82,14 +82,14 @@ public final class UsableSubnetworksAggregatedList extends com.google.api.client } /** - * 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,8 +137,8 @@ public UsableSubnetworksAggregatedList setItems(java.util.List } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. + * [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() { @@ -146,8 +146,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#usableSubnetworksAggregatedList for - * aggregated lists of usable subnetworks. + * [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) { @@ -181,7 +181,7 @@ public UsableSubnetworksAggregatedList setNextPageToken(java.lang.String nextPag } /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * [Output Only] Informational warning messages for failures encountered from scopes. * @return value or {@code null} for none */ public java.util.List getScopedWarnings() { @@ -189,7 +189,7 @@ public java.util.List getScopedWarnings() { } /** - * Output only. [Output Only] Informational warning messages for failures encountered from scopes. + * [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) { @@ -198,7 +198,7 @@ public UsableSubnetworksAggregatedList setScopedWarnings(java.util.List getUnreachables() { @@ -223,7 +223,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public UsableSubnetworksAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java index dba5c153b73..b745011ac7e 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappings.java @@ -30,7 +30,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.GenericJson { /** - * Output only. Name of the VM instance which the endpoint belongs to + * Name of the VM instance which the endpoint belongs to * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -43,7 +43,7 @@ public final class VmEndpointNatMappings extends com.google.api.client.json.Gene private java.util.List interfaceNatMappings; /** - * Output only. Name of the VM instance which the endpoint belongs to + * Name of the VM instance which the endpoint belongs to * @return value or {@code null} for none */ public java.lang.String getInstanceName() { @@ -51,7 +51,7 @@ public java.lang.String getInstanceName() { } /** - * Output only. Name of the VM instance which the endpoint belongs to + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java index 69ee2a0bc82..09332672258 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappings.java @@ -30,8 +30,8 @@ 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: + * 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}. */ @@ -39,8 +39,8 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. 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: + * 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}. */ @@ -48,46 +48,46 @@ public final class VmEndpointNatMappingsInterfaceNatMappings extends com.google. 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. + * 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. + * 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. + * 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". + * 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. + * 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: + * 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 */ @@ -96,8 +96,8 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -107,8 +107,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setDrainNatIpPortRanges(java.ut } /** - * 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: + * 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 */ @@ -117,8 +117,8 @@ public java.util.List getNatIpPortRanges() { } /** - * 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: + * 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 */ @@ -128,8 +128,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNatIpPortRanges(java.util.Li } /** - * 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. + * 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() { @@ -137,8 +137,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -147,8 +147,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalDrainNatPorts(java.l } /** - * 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. + * 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() { @@ -156,8 +156,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -166,7 +166,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setNumTotalNatPorts(java.lang.I } /** - * Output only. Information about mappings provided by rules in this NAT. + * Information about mappings provided by rules in this NAT. * @return value or {@code null} for none */ public java.util.List getRuleMappings() { @@ -174,7 +174,7 @@ public java.util.List } /** - * Output only. Information about mappings provided by rules in this NAT. + * Information about mappings provided by rules in this NAT. * @param ruleMappings ruleMappings or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List ruleMappings) { @@ -183,8 +183,8 @@ public VmEndpointNatMappingsInterfaceNatMappings setRuleMappings(java.util.List< } /** - * 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". + * 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() { @@ -192,8 +192,8 @@ public java.lang.String getSourceAliasIpRange() { } /** - * 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". + * 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) { @@ -202,7 +202,7 @@ public VmEndpointNatMappingsInterfaceNatMappings setSourceAliasIpRange(java.lang } /** - * Output only. Primary IP of the VM for this NIC. + * Primary IP of the VM for this NIC. * @return value or {@code null} for none */ public java.lang.String getSourceVirtualIp() { @@ -210,7 +210,7 @@ public java.lang.String getSourceVirtualIp() { } /** - * Output only. Primary IP of the VM for this NIC. + * Primary IP of the VM for this NIC. * @param sourceVirtualIp sourceVirtualIp or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappings setSourceVirtualIp(java.lang.String sourceVirtualIp) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java index 1b6a728406e..a29036c0838 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.java @@ -30,50 +30,50 @@ 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"]. + * 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"]. + * 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. + * 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. + * 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. + * 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"]. + * 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() { @@ -81,9 +81,9 @@ public java.util.List getDrainNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -92,9 +92,9 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setDrainNatIpPor } /** - * 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"]. + * 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() { @@ -102,9 +102,9 @@ public java.util.List getNatIpPortRanges() { } /** - * 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"]. + * 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) { @@ -113,8 +113,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNatIpPortRang } /** - * 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. + * 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() { @@ -122,8 +122,8 @@ public java.lang.Integer getNumTotalDrainNatPorts() { } /** - * 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. + * 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) { @@ -132,8 +132,8 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalDrain } /** - * 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. + * 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() { @@ -141,8 +141,8 @@ public java.lang.Integer getNumTotalNatPorts() { } /** - * 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. + * 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) { @@ -151,7 +151,7 @@ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setNumTotalNatPo } /** - * Output only. Rule number of the NAT Rule. + * Rule number of the NAT Rule. * @return value or {@code null} for none */ public java.lang.Integer getRuleNumber() { @@ -159,7 +159,7 @@ public java.lang.Integer getRuleNumber() { } /** - * Output only. Rule number of the NAT Rule. + * Rule number of the NAT Rule. * @param ruleNumber ruleNumber or {@code null} for none */ public VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings setRuleNumber(java.lang.Integer ruleNumber) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java index 5fb6f39d7d1..286f93e7107 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmEndpointNatMappingsList.java @@ -37,8 +37,8 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. private java.lang.String id; /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. + * [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 @@ -68,7 +68,7 @@ public final class VmEndpointNatMappingsList extends com.google.api.client.json. } /** - * 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 @@ -99,8 +99,8 @@ public VmEndpointNatMappingsList setId(java.lang.String id) { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. + * [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() { @@ -108,8 +108,8 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Alwayscompute#vmEndpointNatMappingsList for lists - * of Nat mappings of VM endpoints. + * [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) { @@ -158,7 +158,7 @@ public VmEndpointNatMappingsList setResult(java.util.List } /** - * 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() { @@ -166,7 +166,7 @@ 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 VmEndpointNatMappingsList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java index c33bf330196..2c90d277cdf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicy.java @@ -30,7 +30,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -44,7 +44,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.String description; /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * Required. A map of extension names (e.g., "cloudops") to their corresponding policy * configurations. * The value may be {@code null}. */ @@ -52,16 +52,14 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.Map extensionPolicies; /** - * Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, - * if applicable. + * Optional. [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. + * [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 @@ -76,14 +74,14 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.util.List instanceSelectors; /** - * Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy. + * [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. + * Optional. [Output Only] Indicates if this policy is managed by a global policy. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -104,7 +102,7 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ * 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 + * is assigned a priority of 1000. If priorities are equal, the policy with the more recent * creation timestamp takes precedence. * The value may be {@code null}. */ @@ -112,35 +110,35 @@ public final class VmExtensionPolicy extends com.google.api.client.json.GenericJ private java.lang.Integer priority; /** - * Output only. [Output Only] Server-defined fully-qualified URL for this resource. + * [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. + * [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. + * Optional. [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. + * [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. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -148,7 +146,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VmExtensionPolicy setCreationTimestamp(java.lang.String creationTimestamp) { @@ -174,7 +172,7 @@ public VmExtensionPolicy setDescription(java.lang.String description) { } /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * Required. A map of extension names (e.g., "cloudops") to their corresponding policy * configurations. * @return value or {@code null} for none */ @@ -183,7 +181,7 @@ public java.util.Map getExtensionPolic } /** - * Required. A map of extension names (for example, "ops-agent") to their corresponding policy + * Required. A map of extension names (e.g., "cloudops") to their corresponding policy * configurations. * @param extensionPolicies extensionPolicies or {@code null} for none */ @@ -193,8 +191,7 @@ public VmExtensionPolicy setExtensionPolicies(java.util.Map getUnreachables() { @@ -211,7 +211,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyAggregatedListResponse setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java index 2cc93446c09..28f3a4ef8f7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyList.java @@ -30,8 +30,8 @@ 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 + * [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. * @@ -43,14 +43,14 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene private java.lang.String etag; /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier 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. + * [Output Only] A list of VM extension policy resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -63,46 +63,46 @@ public final class VmExtensionPolicyList extends com.google.api.client.json.Gene } /** - * Output only. Type of resource. + * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to 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. + * [Output Only] Server-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. + * [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. + * [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 + * [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. * @@ -115,8 +115,8 @@ public java.lang.String getEtag() { } /** - * 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 + * [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. * @@ -130,7 +130,7 @@ public VmExtensionPolicyList setEtag(java.lang.String etag) { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. * @return value or {@code null} for none */ public java.lang.String getId() { @@ -138,7 +138,7 @@ public java.lang.String getId() { } /** - * Output only. [Output Only] Unique identifier for the resource; defined by the server. + * [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) { @@ -147,7 +147,7 @@ public VmExtensionPolicyList setId(java.lang.String id) { } /** - * Output only. [Output Only] A list of VM extension policy resources. + * [Output Only] A list of VM extension policy resources. * @return value or {@code null} for none */ public java.util.List getItems() { @@ -155,7 +155,7 @@ public java.util.List getItems() { } /** - * Output only. [Output Only] A list of VM extension policy resources. + * [Output Only] A list of VM extension policy resources. * @param items items or {@code null} for none */ public VmExtensionPolicyList setItems(java.util.List items) { @@ -164,7 +164,7 @@ public VmExtensionPolicyList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -172,7 +172,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public VmExtensionPolicyList setKind(java.lang.String kind) { @@ -181,10 +181,10 @@ public VmExtensionPolicyList setKind(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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. * @return value or {@code null} for none */ public java.lang.String getNextPageToken() { @@ -192,10 +192,10 @@ public java.lang.String getNextPageToken() { } /** - * 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. + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list 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) { @@ -204,7 +204,7 @@ public VmExtensionPolicyList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -212,7 +212,7 @@ 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 VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { @@ -221,7 +221,7 @@ public VmExtensionPolicyList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -229,7 +229,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VmExtensionPolicyList setUnreachables(java.util.List unreachables) { @@ -238,7 +238,7 @@ public VmExtensionPolicyList setUnreachables(java.util.List un } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @return value or {@code null} for none */ public Warning getWarning() { @@ -246,7 +246,7 @@ public Warning getWarning() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. * @param warning warning or {@code null} for none */ public VmExtensionPolicyList setWarning(Warning warning) { @@ -265,7 +265,7 @@ public VmExtensionPolicyList clone() { } /** - * Output only. [Output Only] Informational warning message. + * [Output Only] Informational warning message. */ public static final class Warning extends com.google.api.client.json.GenericJson { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java index d8149f69b9b..521afd329ea 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGateway.java @@ -35,7 +35,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -57,15 +57,14 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.lang.String gatewayIpVersion; /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -112,22 +111,14 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { 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. + * [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. + * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -150,7 +141,7 @@ public final class VpnGateway extends com.google.api.client.json.GenericJson { private java.util.List vpnInterfaces; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -158,7 +149,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnGateway setCreationTimestamp(java.lang.String creationTimestamp) { @@ -203,8 +194,7 @@ public VpnGateway setGatewayIpVersion(java.lang.String gatewayIpVersion) { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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() { @@ -212,8 +202,7 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource. This identifier is defined - * by the server. + * [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) { @@ -222,7 +211,7 @@ public VpnGateway setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -230,7 +219,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [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) { @@ -371,26 +360,7 @@ public VpnGateway setNetwork(java.lang.String network) { } /** - * 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. + * [Output Only] URL of the region where the VPN gateway resides. * @return value or {@code null} for none */ public java.lang.String getRegion() { @@ -398,7 +368,7 @@ public java.lang.String getRegion() { } /** - * Output only. [Output Only] URL of the region where the VPN gateway resides. + * [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) { @@ -407,7 +377,7 @@ public VpnGateway setRegion(java.lang.String region) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -415,7 +385,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public VpnGateway setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java index 125137b6dcb..ad57f221ca9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnGatewayAggregatedList extends com.google.api.client.json.G private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class VpnGatewayAggregatedList 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnGatewayAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnGatewayAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java index 582e5d5df26..5d0c093170d 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayList.java @@ -50,7 +50,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class VpnGatewayList extends com.google.api.client.json.GenericJson 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 @@ -115,7 +115,7 @@ public VpnGatewayList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. + * [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) { @@ -155,7 +155,7 @@ public VpnGatewayList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 VpnGatewayList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayParams.java deleted file mode 100644 index 385521140f5..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java index e70f0cef786..7904e9eec5a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatus.java @@ -30,14 +30,14 @@ public final class VpnGatewayStatus extends com.google.api.client.json.GenericJson { /** - * Output only. List of VPN connection for this VpnGateway. + * 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. + * List of VPN connection for this VpnGateway. * @return value or {@code null} for none */ public java.util.List getVpnConnections() { @@ -45,7 +45,7 @@ public java.util.List getVpnConnections() { } /** - * Output only. List of VPN connection for this VpnGateway. + * List of VPN connection for this VpnGateway. * @param vpnConnections vpnConnections or {@code null} for none */ public VpnGatewayStatus setVpnConnections(java.util.List vpnConnections) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java index ff635e7b322..67a40c89518 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusTunnel.java @@ -30,29 +30,29 @@ public final class VpnGatewayStatusTunnel extends com.google.api.client.json.GenericJson { /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. + * 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 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. + * 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. + * The VPN gateway interface this VPN tunnel is associated with. * @return value or {@code null} for none */ public java.lang.Long getLocalGatewayInterface() { @@ -60,7 +60,7 @@ public java.lang.Long getLocalGatewayInterface() { } /** - * Output only. The VPN gateway interface this VPN tunnel is associated with. + * 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) { @@ -69,8 +69,8 @@ public VpnGatewayStatusTunnel setLocalGatewayInterface(java.lang.Long localGatew } /** - * 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 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() { @@ -78,8 +78,8 @@ public java.lang.Long getPeerGatewayInterface() { } /** - * 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 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) { @@ -88,7 +88,7 @@ public VpnGatewayStatusTunnel setPeerGatewayInterface(java.lang.Long peerGateway } /** - * Output only. URL reference to the VPN tunnel. + * URL reference to the VPN tunnel. * @return value or {@code null} for none */ public java.lang.String getTunnelUrl() { @@ -96,7 +96,7 @@ public java.lang.String getTunnelUrl() { } /** - * Output only. URL reference to the VPN tunnel. + * URL reference to the VPN tunnel. * @param tunnelUrl tunnelUrl or {@code null} for none */ public VpnGatewayStatusTunnel setTunnelUrl(java.lang.String tunnelUrl) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java index af1945dd5b6..1e97486d287 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayStatusVpnConnection.java @@ -31,16 +31,16 @@ 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. + * 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. + * 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 @@ -67,8 +67,8 @@ public final class VpnGatewayStatusVpnConnection extends com.google.api.client.j } /** - * 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. + * 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() { @@ -76,8 +76,8 @@ public java.lang.String getPeerExternalGateway() { } /** - * 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. + * 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) { @@ -86,8 +86,8 @@ public VpnGatewayStatusVpnConnection setPeerExternalGateway(java.lang.String pee } /** - * 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. + * 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() { @@ -95,8 +95,8 @@ public java.lang.String getPeerGcpGateway() { } /** - * 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. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java index a0c47f43cf1..244d89c5e97 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnGatewayVpnGatewayInterface.java @@ -30,8 +30,7 @@ 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. + * [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 @@ -48,22 +47,21 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j 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. + * [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. + * [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}. */ @@ -71,8 +69,7 @@ public final class VpnGatewayVpnGatewayInterface extends com.google.api.client.j private java.lang.String ipv6Address; /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. + * [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() { @@ -80,8 +77,7 @@ public java.lang.Long getId() { } /** - * Output only. [Output Only] Numeric identifier for this VPN interface associated with the VPN - * gateway. + * [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) { @@ -113,14 +109,13 @@ public VpnGatewayVpnGatewayInterface setInterconnectAttachment(java.lang.String } /** - * 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. + * [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() { @@ -128,14 +123,13 @@ public java.lang.String getIpAddress() { } /** - * 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. + * [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) { @@ -144,8 +138,8 @@ public VpnGatewayVpnGatewayInterface setIpAddress(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. + * [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 */ @@ -154,8 +148,8 @@ public java.lang.String getIpv6Address() { } /** - * 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. + * [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 */ diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java index 02513e59931..5febf7b3d74 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnel.java @@ -31,14 +31,6 @@ @SuppressWarnings("javadoc") public final class VpnTunnel extends com.google.api.client.json.GenericJson { - /** - * Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect tunnels to indicate - * different bandwidth limits. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String capacityTier; - /** * User specified list of ciphers to use for the phase 1 and phase 2 of the IKE protocol. * The value may be {@code null}. @@ -47,7 +39,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private VpnTunnelCipherSuite cipherSuite; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -83,7 +75,7 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { private java.lang.Integer ikeVersion; /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -131,14 +123,6 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { @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 @@ -270,25 +254,6 @@ public final class VpnTunnel extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Integer vpnGatewayInterface; - /** - * Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect tunnels to indicate - * different bandwidth limits. - * @return value or {@code null} for none - */ - public java.lang.String getCapacityTier() { - return capacityTier; - } - - /** - * Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect tunnels to indicate - * different bandwidth limits. - * @param capacityTier capacityTier or {@code null} for none - */ - public VpnTunnel setCapacityTier(java.lang.String capacityTier) { - this.capacityTier = capacityTier; - return this; - } - /** * 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 @@ -307,7 +272,7 @@ public VpnTunnel setCipherSuite(VpnTunnelCipherSuite cipherSuite) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -315,7 +280,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public VpnTunnel setCreationTimestamp(java.lang.String creationTimestamp) { @@ -394,7 +359,7 @@ public VpnTunnel setIkeVersion(java.lang.Integer ikeVersion) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -402,7 +367,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [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) { @@ -546,25 +511,6 @@ public VpnTunnel setName(java.lang.String 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 diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java index 803aead4170..8defd580f15 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelAggregatedList.java @@ -44,7 +44,7 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge private java.util.Map items; /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,14 +61,14 @@ public final class VpnTunnelAggregatedList extends com.google.api.client.json.Ge 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 private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -116,7 +116,7 @@ public VpnTunnelAggregatedList setItems(java.util.Map getUnreachables() { @@ -181,7 +181,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. + * [Output Only] Unreachable resources. * @param unreachables unreachables or {@code null} for none */ public VpnTunnelAggregatedList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java index 467d94bfe67..66f5b6260ef 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelList.java @@ -50,7 +50,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class VpnTunnelList extends com.google.api.client.json.GenericJson 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 @@ -115,7 +115,7 @@ public VpnTunnelList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. + * [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) { @@ -155,7 +155,7 @@ public VpnTunnelList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 VpnTunnelList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/VpnTunnelParams.java deleted file mode 100644 index 26bbf26ff78..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/Wire.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Wire.java index d2d7f2d7532..a2ebc4201ae 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Wire.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Wire.java @@ -30,25 +30,25 @@ 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. + * [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. + * 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: + * [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. @@ -58,16 +58,16 @@ public final class Wire extends com.google.api.client.json.GenericJson { private java.lang.String label; /** - * Output only. [Output Only] Properties of the wire. + * [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. + * [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() { @@ -75,9 +75,9 @@ public java.lang.Boolean getAdminEnabled() { } /** - * 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. + * [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) { @@ -86,7 +86,7 @@ public Wire setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Output only. Wire endpoints are specific Interconnect connections. + * Wire endpoints are specific Interconnect connections. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -94,7 +94,7 @@ public java.util.List getEndpoints() { } /** - * Output only. Wire endpoints are specific Interconnect connections. + * Wire endpoints are specific Interconnect connections. * @param endpoints endpoints or {@code null} for none */ public Wire setEndpoints(java.util.List endpoints) { @@ -103,9 +103,9 @@ public Wire setEndpoints(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: + * [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. @@ -116,9 +116,9 @@ public java.lang.String getLabel() { } /** - * 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: + * [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. @@ -130,7 +130,7 @@ public Wire setLabel(java.lang.String label) { } /** - * Output only. [Output Only] Properties of the wire. + * [Output Only] Properties of the wire. * @return value or {@code null} for none */ public WireProperties getWireProperties() { @@ -138,7 +138,7 @@ public WireProperties getWireProperties() { } /** - * Output only. [Output Only] Properties of the wire. + * [Output Only] Properties of the wire. * @param wireProperties wireProperties or {@code null} for none */ public Wire setWireProperties(WireProperties wireProperties) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java index 752bbd5ed82..e074606ba56 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroup.java @@ -39,7 +39,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.Boolean adminEnabled; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -61,15 +61,15 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.util.Map endpoints; /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -87,21 +87,21 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private java.lang.String name; /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * [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. + * [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. + * Topology details for the wire group configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -122,7 +122,7 @@ public final class WireGroup extends com.google.api.client.json.GenericJson { private WireProperties wireProperties; /** - * Output only. The single/redundant wire(s) managed by the wire group. + * The single/redundant wire(s) managed by the wire group. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -156,7 +156,7 @@ public WireGroup setAdminEnabled(java.lang.Boolean adminEnabled) { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getCreationTimestamp() { @@ -164,7 +164,7 @@ public java.lang.String getCreationTimestamp() { } /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * [Output Only] Creation timestamp inRFC3339 text format. * @param creationTimestamp creationTimestamp or {@code null} for none */ public WireGroup setCreationTimestamp(java.lang.String creationTimestamp) { @@ -209,8 +209,8 @@ public WireGroup setEndpoints(java.util.Map endpoints } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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() { @@ -218,8 +218,8 @@ public java.math.BigInteger getId() { } /** - * Output only. [Output Only] The unique identifier for the resource type. The server generates - * this identifier. + * [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) { @@ -228,7 +228,7 @@ public WireGroup setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -236,7 +236,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [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) { @@ -270,7 +270,7 @@ public WireGroup setName(java.lang.String name) { } /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * [Output Only] Indicates whether there are wire changes yet to be processed. * @return value or {@code null} for none */ public java.lang.Boolean getReconciling() { @@ -278,7 +278,7 @@ public java.lang.Boolean getReconciling() { } /** - * Output only. [Output Only] Indicates whether there are wire changes yet to be processed. + * [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) { @@ -287,7 +287,7 @@ public WireGroup setReconciling(java.lang.Boolean reconciling) { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { @@ -295,7 +295,7 @@ public java.lang.String getSelfLink() { } /** - * Output only. [Output Only] Server-defined URL for the resource. + * [Output Only] Server-defined URL for the resource. * @param selfLink selfLink or {@code null} for none */ public WireGroup setSelfLink(java.lang.String selfLink) { @@ -304,7 +304,7 @@ public WireGroup setSelfLink(java.lang.String selfLink) { } /** - * Output only. Topology details for the wire group configuration. + * Topology details for the wire group configuration. * @return value or {@code null} for none */ public WireGroupTopology getTopology() { @@ -312,7 +312,7 @@ public WireGroupTopology getTopology() { } /** - * Output only. Topology details for the wire group configuration. + * Topology details for the wire group configuration. * @param topology topology or {@code null} for none */ public WireGroup setTopology(WireGroupTopology topology) { @@ -355,7 +355,7 @@ public WireGroup setWireProperties(WireProperties wireProperties) { } /** - * Output only. The single/redundant wire(s) managed by the wire group. + * The single/redundant wire(s) managed by the wire group. * @return value or {@code null} for none */ public java.util.List getWires() { @@ -363,7 +363,7 @@ public java.util.List getWires() { } /** - * Output only. The single/redundant wire(s) managed by the wire group. + * 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) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java index b677fb9cd8a..eae81afc621 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupList.java @@ -56,7 +56,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -80,8 +80,7 @@ public final class WireGroupList extends com.google.api.client.json.GenericJson private java.lang.String selfLink; /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -144,7 +143,7 @@ public WireGroupList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -152,7 +151,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. + * [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) { @@ -201,8 +200,7 @@ public WireGroupList setSelfLink(java.lang.String selfLink) { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @return value or {@code null} for none */ public java.util.List getUnreachables() { @@ -210,8 +208,7 @@ public java.util.List getUnreachables() { } /** - * Output only. [Output Only] Unreachable resources. end_interface: - * MixerListResponseWithEtagBuilder + * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @param unreachables unreachables or {@code null} for none */ public WireGroupList setUnreachables(java.util.List unreachables) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java index 9af850296af..bbe19b70c85 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopology.java @@ -30,14 +30,14 @@ public final class WireGroupTopology extends com.google.api.client.json.GenericJson { /** - * Output only. Topology details for all endpoints in the wire group. + * 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. + * Topology details for all endpoints in the wire group. * @return value or {@code null} for none */ public java.util.List getEndpoints() { @@ -45,7 +45,7 @@ public java.util.List getEndpoints() { } /** - * Output only. Topology details for all endpoints in the wire group. + * Topology details for all endpoints in the wire group. * @param endpoints endpoints or {@code null} for none */ public WireGroupTopology setEndpoints(java.util.List endpoints) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java index 78a82e14a9a..c871813ea31 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WireGroupTopologyEndpoint.java @@ -30,23 +30,23 @@ 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 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. + * 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. + * The InterconnectLocation.city (metropolitan area designator) that all interconnects are located + * in. * @return value or {@code null} for none */ public java.lang.String getCity() { @@ -54,8 +54,8 @@ public java.lang.String getCity() { } /** - * Output only. The InterconnectLocation.city (metropolitan area designator) that all - * interconnects are located in. + * 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) { @@ -64,7 +64,7 @@ public WireGroupTopologyEndpoint setCity(java.lang.String city) { } /** - * Output only. Endpoint label from the wire group. + * Endpoint label from the wire group. * @return value or {@code null} for none */ public java.lang.String getLabel() { @@ -72,7 +72,7 @@ public java.lang.String getLabel() { } /** - * Output only. Endpoint label from the wire group. + * Endpoint label from the wire group. * @param label label or {@code null} for none */ public WireGroupTopologyEndpoint setLabel(java.lang.String label) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/WorkloadIdentityConfig.java deleted file mode 100644 index 7332c3016cf..00000000000 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/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.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/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java index 1d968742891..fdb831631b4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/XpnHostList.java @@ -50,8 +50,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { } /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. + * [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 @@ -68,7 +67,7 @@ public final class XpnHostList extends com.google.api.client.json.GenericJson { 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 @@ -116,8 +115,7 @@ public XpnHostList setItems(java.util.List items) { } /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. + * [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() { @@ -125,8 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC - * hosts. + * [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) { @@ -158,7 +155,7 @@ public XpnHostList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -166,7 +163,7 @@ 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 XpnHostList setSelfLink(java.lang.String selfLink) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java index 156d6c6381a..0675cfe1818 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java @@ -68,7 +68,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.math.BigInteger id; /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. + * [Output Only] Type of the resource. Always compute#zone for zones. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,7 +103,7 @@ public final class Zone extends com.google.api.client.json.GenericJson { private java.lang.String status; /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -195,7 +195,7 @@ public Zone setId(java.math.BigInteger id) { } /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. + * [Output Only] Type of the resource. Always compute#zone for zones. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -203,7 +203,7 @@ public java.lang.String getKind() { } /** - * Output only. [Output Only] Type of the resource. Always compute#zone for zones. + * [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) { @@ -280,7 +280,7 @@ public Zone setStatus(java.lang.String status) { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @return value or {@code null} for none */ public java.lang.Boolean getSupportsPzs() { @@ -288,7 +288,7 @@ public java.lang.Boolean getSupportsPzs() { } /** - * Output only. [Output Only] Reserved for future use. + * [Output Only] Reserved for future use. * @param supportsPzs supportsPzs or {@code null} for none */ public Zone setSupportsPzs(java.lang.Boolean supportsPzs) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java index 479ab946be8..5291d3e8c13 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneList.java @@ -50,7 +50,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { } /** - * Output only. Type of resource. + * Type of resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -67,7 +67,7 @@ public final class ZoneList extends com.google.api.client.json.GenericJson { 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 @@ -115,7 +115,7 @@ public ZoneList setItems(java.util.List items) { } /** - * Output only. Type of resource. + * Type of resource. * @return value or {@code null} for none */ public java.lang.String getKind() { @@ -123,7 +123,7 @@ public java.lang.String getKind() { } /** - * Output only. Type of resource. + * Type of resource. * @param kind kind or {@code null} for none */ public ZoneList setKind(java.lang.String kind) { @@ -155,7 +155,7 @@ public ZoneList setNextPageToken(java.lang.String nextPageToken) { } /** - * 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() { @@ -163,7 +163,7 @@ 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 ZoneList setSelfLink(java.lang.String selfLink) { 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 af7130c3e38..c7b84beea79 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-rev20260306-2.0.0 - Compute Engine API beta-rev20260306-2.0.0 + beta-rev20251110-2.0.0 + Compute Engine API beta-rev20251110-2.0.0 jar 2011